In my app, users need to select some kind of "code:name" option, for example, <option value="001">Canada</option> which datas seldom change. I create a js file to hold both datas and logic to display datas as html <select> and linked it in jsp files. All of those files are within a war archive which within a ear archive.
The problem is: when the ear is deployed and running, sometimes I need to regenerate the js file to hold more datas(by a javabean also within war), for example, to add a new country, I can't find a way to make this work.
So, would anyone please help me?
Or... there is a better solution for this requirement? the real situation is: when the country is selected, user need to select corresponding province and then city... I solved all the display logic and datas in one js file. So, any other solutions?
thanks
-
is it possible to write a file into a running xxx.war web app? (1 messages)
- Posted by: Nan Ge
- Posted on: April 12 2003 07:47 EDT
Threaded Messages (1)
- Re:is it possible to write a file into a running xxx.war web app by Alan Choy on April 25 2003 17:05 EDT
-
Re:is it possible to write a file into a running xxx.war web app[ Go to top ]
- Posted by: Alan Choy
- Posted on: April 25 2003 17:05 EDT
- in response to Nan Ge
I believe the better way to do it is to extract the display data into a property file, which is out of the ear file. In this way, it should be easy for you to regenerate. In your application, you just need to use JavaBean/JSP to read the data back into the application.