This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Suggestion required- struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Suggestion required- struts 2" Watch "Suggestion required- struts 2" New topic

Suggestion required- struts 2

Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155

The home page of the web application we created has 3 jsps included in it using jquery. The problem now is that everytime user logs in to the system the server is hit 4 times. one for the login, the rest for loading the pages.. I wanted to know if its possible to avoid this. A re-work on the architecture is impossible, is there an other way out? Any suggestions would be of great help as the performance of the server is going down drastically.

Jesus Mireles
Ranch Hand

Joined: Mar 10, 2010
Posts: 122

It's close to impossible to give you any advice with the little information you provide. However if you are including 3 jsp's using jQuery you should probably re-architect that page to use something like tiles or something. Regardless, you'll probably need to do some type of re-work to fix any type of performance ... but not sure based on what we know
Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155

My page --

I am using tomcat server..

I am not sure how tiles would help to resolve this issue. 2 of the pages require data from the db to be displayed, the maim purpose for including 3 in 1 was to avoid the whole page from getting rfereshed wen an operation was done say like insert.. i.e say if the user was working one of the 3 jsps, on click of the button in that jsp the other 2 pages would not be affected.

Hope this would give you a bit of idea about the issue
I agree. Here's the link:
subject: Suggestion required- struts 2
Similar Threads
Which Web Server?
USA&FRANCE Connection J2ME
Locking question
SEVERE: Servlet.service() for servlet jsp threw exception
performance issues with file read and write