Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP synchronization with multiple action class

Status
Not open for further replies.

caesarkim

Programmer
Oct 30, 2003
56
US
I have several action classes and some JSP pages. but one JSP page is shared with multiple action classes. The model built in the action class is displayed in the JSP page something like request.getAttribute(DATA_MODEL_VAR).


But I am just curious if there is any synchronization issue for JSP page. The JSP doesn't have isThreadSafe tag. I mean that if it is possible that the model built in A action class can be overriden by the model built in B action class if concurrent multiple requests come in. While I test some load testing, I found something related to synchronization. That's why it makes me curious. It would be great if someone can give me some info or resources.

Thanks.
 
JSP is indirectly converted in Servlet and then executed. in your case ,your JSP is accessed by multiple action classes ,so of course it has multiple representations.
so you should make jsp as a single threaded .
so use threadsafe tag in JSP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top