You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amit Oberoi <ao...@TechMahindra.com> on 2010/12/27 15:52:26 UTC
prompting me to download the jsp file rather then displaying it on the browser window
All,
Any suggestions in reference to below email will be helpful; I am not able to dig to the root cause of this issue.
Regards
Amit Oberoi
To: Struts Users Mailing List
Subject: <html:link> prompting me to download the jsp file
Hi,
Probably I'll top the list for seeking dumb advices
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.============================================================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: prompting me to download the jsp file rather then displaying it on the browser window
Posted by jl...@gmail.com.
Check them in the response, not in the request.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: "Amit Oberoi" <ao...@TechMahindra.com>
Date: Mon, 27 Dec 2010 21:09:48
To: Struts Users Mailing List<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: RE: <html:link> prompting me to download the jsp file rather then displaying it on the browser window
Jlmagc,
I tried to view the request headers on the Netbeans 7.0 HTTP monitor.
Below is what I get for the attribute accept
"image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"
However I guess for expected result it should be */*
Can you advice how do we set the accept attribute for the request headers.
Regards
Amit Oberoi
-----Original Message-----
From: jlmagc@gmail.com [mailto:jlmagc@gmail.com]
Sent: Monday, December 27, 2010 8:32 PM
To: Struts Users Mailing List
Subject: Re: <html:link> prompting me to download the jsp file rather then displaying it on the browser window
Check with a proxy(I use Paros) and see the headers thayt you are receiving.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: "Amit Oberoi" <ao...@TechMahindra.com>
Date: Mon, 27 Dec 2010 20:22:26
To: Struts Users Mailing List<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: <html:link> prompting me to download the jsp file rather then displaying it on the browser window
All,
Any suggestions in reference to below email will be helpful; I am not able to dig to the root cause of this issue.
Regards
Amit Oberoi
To: Struts Users Mailing List
Subject: <html:link> prompting me to download the jsp file
Hi,
Probably I'll top the list for seeking dumb advices
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.============================================================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
============================================================================================================================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.============================================================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: prompting me to download the jsp file rather then displaying it on the browser window
Posted by Amit Oberoi <ao...@TechMahindra.com>.
Jlmagc,
I tried to view the request headers on the Netbeans 7.0 HTTP monitor.
Below is what I get for the attribute accept
"image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"
However I guess for expected result it should be */*
Can you advice how do we set the accept attribute for the request headers.
Regards
Amit Oberoi
-----Original Message-----
From: jlmagc@gmail.com [mailto:jlmagc@gmail.com]
Sent: Monday, December 27, 2010 8:32 PM
To: Struts Users Mailing List
Subject: Re: <html:link> prompting me to download the jsp file rather then displaying it on the browser window
Check with a proxy(I use Paros) and see the headers thayt you are receiving.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: "Amit Oberoi" <ao...@TechMahindra.com>
Date: Mon, 27 Dec 2010 20:22:26
To: Struts Users Mailing List<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: <html:link> prompting me to download the jsp file rather then displaying it on the browser window
All,
Any suggestions in reference to below email will be helpful; I am not able to dig to the root cause of this issue.
Regards
Amit Oberoi
To: Struts Users Mailing List
Subject: <html:link> prompting me to download the jsp file
Hi,
Probably I'll top the list for seeking dumb advices
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.============================================================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
============================================================================================================================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.============================================================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: prompting me to download the jsp file rather then displaying it on the browser window
Posted by jl...@gmail.com.
Check with a proxy(I use Paros) and see the headers thayt you are receiving.
Sent via BlackBerry from T-Mobile
-----Original Message-----
From: "Amit Oberoi" <ao...@TechMahindra.com>
Date: Mon, 27 Dec 2010 20:22:26
To: Struts Users Mailing List<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: <html:link> prompting me to download the jsp file rather then displaying it on the browser window
All,
Any suggestions in reference to below email will be helpful; I am not able to dig to the root cause of this issue.
Regards
Amit Oberoi
To: Struts Users Mailing List
Subject: <html:link> prompting me to download the jsp file
Hi,
Probably I'll top the list for seeking dumb advices
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.============================================================================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org