I am using the same jsp for create and modify techonolgy. Due to this i am facing some problems, like for that i need to set the action in the javascript. But for that i have to give the full path of action including base folder. which i think its hardcoding, which i want to avoid.
Is there any way i can do this. or some other way to get out of this problem. What i am doing something like this, <html:form styleId="Body" action="/technologyAction.do" onsubmit="return submitForm()"> function submitForm() { if (valAction == 'SUBMIT') { Body.action="WebGUI/createTechnology.do"; } if (valAction == 'UPDATE') { Body.action="/WebGUI/updateTechnology.do"; } } Dir structure in tomcat is webapps |_WebGUI |_pages |_web-inf. Thanks and regards Deepak. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]