Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help, please...

 
Varun Narang
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I need a little help regarding my project design.
I am implementing Struts framework.
I have generated a JSP which has dynamic links based on certain values from previous pages. Now, there are few download links on it, which another Action class takes care of(I want it to use the datasource config of struts-config.xml). But now if user click on the download link, I don't want this page to change. I don't want to do the same using servlet because I'd have to configure seperate connection pool for it then(I am using Tomcat 5.9). Can anyone tell me how I can do that. I don't know how to deal with findForward() so as not to change the current page and still use the same datasource configured for struts.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest that you return null from your execute method. Let me know if that works.

- Brent
[ March 15, 2006: Message edited by: Brent Sterling ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic