generic « Development « JSP-Servlet Q&A

1. How to make the Filepath Generic which suits all OS?

private static final String DESTINATION_DIR_PATH ="/files";
private File destinationDir; 
public void init(ServletConfig config) throws ServletException {
        String ...

2. using generic and for each loop in jsp

I am developing a web application. I am using Eclipse as IDE. I was using generic and for each loop, both being feature of java 1.5, and it compiled ...

3. Suppressing Java unchecked warnings in JSP files

I have a legacy webapp which uses jstl and Struts 1 tags. When I pre-compile the JSP files with Java 5/6, the jstl and Struts 1 tags throw warnings about "unchecked ...

4. In JSP/Java how can I replace getter/setter by more generic?

I am getting tired by adding tons of getters/setters all the time in my beans. Is there a simple way to use annotations to get rid of this stupid work? or any other ...

5. Is there a generic version of servlet-api?

I know that each servlet container (e.g. Tomcat, Glassfish, etc.) comes with an implementation of servlet-api. What I am looking for is a generic (container agnostic) version of servlet-api to compile my ...

6. A generic mechanism to deal with HTTP status codes

I know you can specify error pages in web.xml as below

I find it a bit tedious to list a page for each and ...

8. Generic JSP

HI I want to create a JSP that will be generic meaning I have some already created fields and I just give some name . When i run it shud prompt me to fill in right field names along with whether a text area or body or dropdown along with their field title and display the jsp user wanted to create.Means ...

9. problem using generics jdk1.5 in jsp

12. Generic servlet

13. generic servlet and http servlet

14. Generic objects used by a servlet

15. Generic Servlet

16. generic servlet vs http servlet

17. Generic Servlets

18. Generic Table Maintenance Using Servlets & JSP

Every system needs this but I just can't find a good example. I want to be able to maintain a table with the following or similar screen flow. (Let's take a Customer table as the example.) Step:1) Present a list of Customers (Id, Name, Suburb) with a link to View Edit or Delete. At the bottom of the list there would ...

21. Generic Servlet

22. Generic Servlet

24. Protocols used by a Generic Servlet

25. init() methods in Generic Servlet

26. generic servlets

28. Generic Servlet,HttpServlet

29. Generic Servlet

30. doubt with generic servlet

31. Generics in scriptlets

32. generic type and tld

34. Generics on JSP

35. Problem in jsp while using generics.

Hello all, while writing a jsp page i faced a problem using generics. JspPage

Inside jsp page

<%@ page import="java.util.*" %> <% ArrayList list=new ArrayList(); list.add("Hello"); %> <%= list.get(0) %> the error is: ERROR [[jsp]] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 9 in the ...

36. generic servlet

37. Abstract DAO and Generic Dao

Hi all I am little confused about different terms and technologies in SPring ,hibernate world. What exactly is Abstract DAO and how is it different from Generic DAO. If someone can provide me some basic tutorials link ,that would be great. I understand -Abstract DAO is a design pattern. And Generic DAO - is a ORM Package to write basic CRUD ...

40. Generics problem in JSP?