Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Data from ActionForm without using bean:write Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Data from ActionForm without using bean:write" Watch "Data from ActionForm without using bean:write" New topic
Author

Data from ActionForm without using bean:write

Daniel Platon
Ranch Hand

Joined: Oct 10, 2005
Posts: 42
Hello all...

I need to acces data from an ActionForm using standard JSP code (i.e. scriptlets). From what I understoond I can do something like:


but myForm is null. (I have changed the scope attribute in struts-config.xml to "session"). Should I do this some other way ?

Thank you
Kalyana Sundaram
Ranch Hand

Joined: Mar 18, 2005
Posts: 94
Please post your action-mapping for the one you are talking about. That would be helpful to see why the action-form is null.
And mostly people never tend to use scritplets in JSP. And also there would be less need to refer the form-bean using the JSP useBean tag.

Perhaps It would be easy for me to answer precisely, if you would explain what you were trying to do actually.


Only those who will risk going too far can possibly find out how far one can go !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data from ActionForm without using bean:write
 
Similar Threads
Use form bean in more than one action method
form field population done right
availability of ActionForm object in two action classes.
Tag Library and Struts Framework
Duplicate form submission - Synchronizer Token Pattern