Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes URGENT!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "URGENT!!" Watch "URGENT!!" New topic
Author

URGENT!!

Chhaya Dhanani
Ranch Hand

Joined: Apr 11, 2001
Posts: 70
hi all,
my code works in the following manner.
i have a central controller which is a servlet.
i am using the model 2 architecture (MVC) pattern.
all request go to this servlet which sees in the properties file and calls the corresponding business object(logic which is a class).
This class returns a XML file which i have to display on the browser.
my problem is suppose another request comes before the earlier xml file is thrown on the browser, then this file is replaced.
i thought of placing this file in the session..
Is there any other better way to do this..
Certainly all u champs out there can help me on this..
Thanx in advance
Chhaya
prav mane
Greenhorn

Joined: Nov 21, 2001
Posts: 16
I was just wondering,
so you must be having some kind of code like this...
void someMethod(){
try{
id= request.getParameter(<something> );
BusObj busObj = busobjHash.get(id);
...
//render it on browser using
//requestdispatcher?

}
one simple solution could be to synchronize someMethod() so that all the requests are sent in a serialized manner
But this will bring down the performance?
prav.
Originally posted by Chhaya Dhanani:
hi all,
my code works in the following manner.
i have a central controller which is a servlet.
i am using the model 2 architecture (MVC) pattern.
all request go to this servlet which sees in the properties file and calls the corresponding business object(logic which is a class).
This class returns a XML file which i have to display on the browser.
my problem is suppose another request comes before the earlier xml file is thrown on the browser, then this file is replaced.
i thought of placing this file in the session..
Is there any other better way to do this..
Certainly all u champs out there can help me on this..
Thanx in advance
Chhaya

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: URGENT!!
 
Similar Threads
How to get all request stored in databse between two date
XML + Servlet Design problems
Configuring tomcat 6 with eclipse to serve servlets and jsp/html.
"Sending Applet through Servlet"
Error on my first aplication