Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data from ActionForm without using bean:write

 
Daniel Platon
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic