Durham David Contr 805 CSPTS/SCE wrote the following on 9/13/2004 3:13 PM:
function swapAction( formName, action) { formAction = document.getElementById( formName ).action; newAction = '<html:rewrite page="/'+action+'.do"/>';
I don't think this will work, and I find it ironic that you literally mixed client-side and server-side scripting.
It works fine and it's not a 'true' mix of server-side scripting. I could avoid the use of the <html:rewrite > but didn't want to hardcode the context name. I could do away with that tag and just have...
newAction = '/myContext/'+action+'.do';
but I don't like that as much. Actuallly come to think of it I'll probably change the above to the following. Much better actually..
newAction = '${pageContext.request.contextPath}/'+action+'.do';
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]