Hi,

 

Probably I'll top the list for seeking dumb advices L

 

I had my head scratched enough on this but couldn't get through. I am
using the <html:link> tag as shown below to navigate to a page called
register.jsp; however when I click the link my browser prompts me to
download the jsp page (surprisingly the html inside the downloaded jsp
page is what I'm expecting).

 

<html:link action="registerUser.do"
styleClass="style.css">Register</html:link>

 

My struts-config.xml action mapping looks as below

 

<action-mappings>

        <action path="/registerUser" forward="/register.jsp"/>

        <action path="/access" forward="/access.jsp"/>

        <action path="/register" name="registrationForm"
input="/register.jsp" scope="request" validate="true"
type="com.btw.action.RegisterAction">

            <forward name="success" path="/access"/>

        </action>

        <action path="/forgotPasssword" name="forgotPasswordForm"
input="/forgotPassword.jsp" scope="request" validate="true"
type="com.btw.action.EmailPasswordAction"/>

        <action path="/login" name="loginForm" input="/access.jsp"
scope="session" validate="true" type="com.btw.action.LoginAction">

            <forward name="success" path="/welcome"/>

            <forward name="failure" path="/access"/>

        </action>

        <action path="/welcome" forward="/welcomeStruts.jsp"/>

    </action-mappings>

 

Am I doing anything wrong with the <html:link> tag?

 

Regards

 

Amit Oberoi

 

 


============================================================================================================================Disclaimer:
  This message and the information contained herein is proprietary and 
confidential and subject to the Tech Mahindra policy statement, you may review 
the policy at <a 
href="http://www.techmahindra.com/Disclaimer.html";>http://www.techmahindra.com/Disclaimer.html</a>
 externally and <a 
href="http://tim.techmahindra.com/Disclaimer.html";>http://tim.techmahindra.com/Disclaimer.html</a>
 internally within Tech 
Mahindra.============================================================================================================================

Reply via email to