sevlets

Running code in the context of a java WAR from the command line

How would I go about writing some code to allow access to a Java class in my webapp from the command line. E.g. I have a java class with command line interface, that can runs code in the context of the webapp, with access to the DB etc. I want to log on the machine hosting my WARred app in tomcat and be able to interact with it Where ...

RequestDispatcher.forward loop

I am using <url-pattern>/*</url-pattern> to map all the requests to one sevlet,where i do all the authentication work. but I want to skip some static content (like css files).so I tried fowrding them from that sevlet to where the resource file is if(isResourceFile){ RequestDispatcher dispatcher = getServletContext().getRequestDi...

How to provide business logic in spring in an remote server?

Using Spring as Framework, if i need provide business logic's service to either JSP/Servlets(on Web Servers) or to Application desktop client or Mobile clients, the only way to accomplish the logic business(without EJB) in a remote server is through Servlets? ...

Is HttpServlet class is an abstract class? if yes then how ?please can one explain detail....

Respected to every answerers..... Sir , i am perceiving MCA (MASTER OF COMPUTER APPLICATIONS) pg course... we have gone through our syllabus, but we were not able to findout that , IS HttpServlet class is an abstract class ...or not.... in some books it has given it is an abstract class, but in another as not a abstract class...so we ...

Do you take a big performance hit mixing JSP and Servlets?

From my understanding, JSPs are compiled anyway, so I would anticipate you'd get similar performance from both. I want to display a lot of data, and I'm thinking of using JSP for the basics and calling a servlet to generate the code for each row in the table. Unless there's a good way to generate the entire table with one call to the s...