This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT!!