Hi javaranchers
I am facing the following problem...
I have a
jsp page by name index.jsp and it has the one <html:form> tag with action as login.do that is <html:form action="/login">
and I have 2 <html:link> tags in the same form with different actions
say <html:link action="/activate">
<html:link action="/forgotpassword">
Now the problem is if I try to submit the form I am getting the exception as
javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", "page" or "action"
Is this exception raising just because I have multiple actions in the same form or for something else..
If that is the reason can I use a javascript function to change the action of the form dynamically on click of the link and then submit the form
Will this solve my problemm
I can't try this in my code as I dont have the
testing server up right now.
please give me a solution to this problem as soon as possible.