Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Making page without using ActionForm ( Bean Class )  RSS feed

 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

i wish to make a page using Struts and the thing i like that , i dont want to use <form-bean> in that, means i dont want to use ActionForm .Please tell me the way through which i can achieve that.

Thanks
Regards
Gaurav
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<action path="/<have some path name>" type="<your action classname with package structure>" scope="request"/>

This much entry different in struts-config file

Then all others as usual
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like vidya said...I think...just leave off the name attribute from your action mapping definition in struts-config. In this case the ActionForm parameter to your execute method will be null.

- Brent
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!