my dog learned polymorphism*
The moose likes Struts and the fly likes Multiple Input Pages for struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple Input Pages for struts" Watch "Multiple Input Pages for struts" New topic
Author

Multiple Input Pages for struts

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
Is it possible to config struts to use several different input pages for one action?


By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
George Franciscus
author
Ranch Hand

Joined: Jan 25, 2005
Posts: 32
Each action mapping has no idea who called him. Therefore, several input pages can post to the same action mapping. What makes this tricky is that an Action is expecting the same form each time it receives a request. So, to answer your question, yes its possible.


George Franciscus<br />george.franciscus@nexcel.ca<br /><a href="http://www.nexcel.ca" target="_blank" rel="nofollow">http://www.nexcel.ca</a><br /><a href="http://www.manning.com/franciscus" target="_blank" rel="nofollow">http://www.manning.com/franciscus</a>
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Dale DeMott:
Is it possible to config struts to use several different input pages for one action?


i never config that in my project.

please show example/case why to config like that ??


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Input Pages for struts
 
Similar Threads
Passing Input parameters in Struts
struts 1.beginner, code not working
question about validator framework
Including Actions in various pages
why cant we use normal html tags instead of struts html when using struts framework?