• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

connecting two jsps without using any action class

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic