Servlet to JSP problem
I have an arraylist defined and populated in a servlet. What I want to
do is pass the arraylist to a JSP and display the values in the
arraylist.
Now to accomplish this what I did was to take the request object and
set an attribute on it. The attribute I added was the ArrayList. The
problem was when the JSP receives the request and does a getAttribute
on the request it is saying the ArrayList is null.
Any ideas on how I can pass this arrayList from a servlet to a JSP?
.
Relevant Pages
- Re: my first session bean
... A bean instance associated with the specified id is sought ... and used in the page as it services the current request. ... instance may later be used by any page or servlet in the same webapp, ... JSP forward or include is used -- but do not confuse that with an HTTP ... (comp.lang.java.programmer) - Re: MVC/Servlet & URL links question
... I understand that a typical way of handiing form posts from a JSP page ... is to post to a servlet, which examines a request variable or two, ... forwards the request to a JSP for display. ... I suppose I could add a URL variable to the hyperlinks, ... (comp.lang.java.programmer) - Re: pls explain these methods...
... >> parameter instead of coding it into the servlet. ... and pass the information as a request attribute. ... with the request to some other piece of the request processing chain. ... a JSP page to generate the actual request: ... (comp.lang.java.help) - Re: Testing for a User in a Session (JSP/Servlet)
... the first page is a login JSP ... that forwards a user's credentials to a loginCheck servlet. ... or similar mechanism to match the request, the permission and the target view. ... (comp.lang.java.help) - Help! requested resource not available
... <!-- Faces Servlet Mapping. ... This mapping identifies a jsp page as having JSF content. ... request comes to the server for foo.faces, ... (comp.lang.java.programmer) |
|