Results 1 to 3 of 3
- 05-17-2007, 02:50 AM #1
Member
- Join Date
- May 2007
- Posts
- 38
- Rep Power
- 0
Request attribute PageBean = null
Hello
I have a doubt
Can you explain me ?
I have this jsp:
My idea was when I click submit, in the servlet I can do something like this:Java Code:<jsp:useBean id="pageBean" class="ar.com.MyBean" scope="request"> <jsp:setProperty name="pageBean" property="*"/> </jsp:useBean>
But the Request attribute PageBean are nullJava Code:MyBean myBean = (MyBean)request.getAttribute("pageBean");
Can you explain me what is happening?
Aclaration: I am using servlets and jsp, not struts
thank you
- 05-17-2007, 04:07 AM #2
Member
- Join Date
- May 2007
- Posts
- 41
- Rep Power
- 0
mmmmmm
I would put scope="session" and then recolect it like this: request.getSession().getAttribute("pageBean")
I am not sure, but maybe works.
bye bye
- 05-17-2007, 03:23 PM #3
Member
- Join Date
- Apr 2007
- Location
- Pennsylvania,USA
- Posts
- 45
- Rep Power
- 0
Similar Threads
-
[SOLVED] http request
By Eranga in forum Advanced JavaReplies: 30Last Post: 11-27-2008, 04:35 AM -
respose with out request
By karthikiniyan in forum Java ServletReplies: 1Last Post: 04-09-2008, 03:06 PM -
how to add an attribute with sax?
By cecily in forum New To JavaReplies: 3Last Post: 07-19-2007, 04:09 AM -
Help with request.getParameter()
By Albert in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 07-13-2007, 03:39 PM -
Problem with Attribute in JSP
By Albert in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-13-2007, 03:11 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks