aspose file tools*
The moose likes Struts and the fly likes Flow of data from Init Servlet to jsp 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 "Flow of data from Init Servlet to jsp" Watch "Flow of data from Init Servlet to jsp" New topic
Author

Flow of data from Init Servlet to jsp

chets patel
Ranch Hand

Joined: Apr 27, 2010
Posts: 72

I have one application in which there is InitServlet load on startup. This init servlet will load some data from database. this data I want to show on index.jsp which is start up page for any request from the user. I am using struts 2 for this application.

Where should I store the data which is read from database as there is no request object in initservlet. also how should I show this data in index.jsp

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Flow of data from Init Servlet to jsp
 
Similar Threads
TomCat refuse to execute init(), but WebLogic could!
Application Scope or Static Methods
How to make MVC controller servlet the "default page"
Web editable table
Get parameter from web.xml file