This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes connecting two jsps without using any action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "connecting two jsps without using any action class" Watch "connecting two jsps without using any action class" New topic
Author

connecting two jsps without using any action class

usha mocherla
Ranch Hand

Joined: Sep 24, 2004
Posts: 33
hi
in my jsp page i've one link which has to go to some other jsp page.
say link name is "Add Quote".the destination page is "AddQuote.jsp" whose complete path is "/WEB-INF/jsp-files/corporate/AddQuote.jsp.
i 've used html:link tag but its not working.404 error is displyed.
but if i deploy the jsp page in the weapps folder in tomcat,rather than going to WEB-INF,then the page is displayed.
now i had to create one dummy action class.
i.e. in "html:link" tag i 'll ve to specify dummyAction.do and through struts config i'll 've to go to my destination jsp page "AddQuote.jsp"
I WANT TO KNOW IF WE CAN CONNECT TWO JSPS WITHOUT USING ANY "ACTION CLASS".
plz anybody can help me
regards
Sunil Manheri
Ranch Hand

Joined: Jul 07, 2004
Posts: 32
Hi,
According to the Struts framework, each request should go only through anb Action class. This is the right practice because the end user will not get the page name, only the mapping name. Struts provided built-in Action class for this. You can use this.
Regards,
Sunil.


TechMindViews - Technical Notes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connecting two jsps without using any action class