on 10-03-2009 1:53 AM
Hi,
I have two jsp pages. first page is included as a link in one of the inc.jsp in B2C application.
This page has few input fields and upon submit button. I get error message
400 Bad Request - Invalid path /b2c/secure was requested
the action tag written in config.xml is like:
<action path="/b2c/xyz" type="package_name.xyz">
<forward name="success" path="/b2c/Page2.jsp"/>
<forward name="failure" path="/b2c/Page2.jsp"/>
</action>
in web.xml:
<servlet>
<servlet-name>Page1.jsp</servlet-name>
<jsp-file>/b2c/Page1.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>Page2.jsp</servlet-name>
<jsp-file>/b2c/Page2.jsp</jsp-file>
</servlet>
Please let me know if you could help me with the needful. Appreciate your earliest response.
Hi Bharathi,
If you are embedding a link in jsp where you are directly calling another jsp, its always better to code it like this
<a href="<isa:webappsURL name="/b2c/Page1.jsp"/>" target="_new">
There is no need to make any changes in web.xml file.
If in your inc.jsp you want to call an action class on click on a link than call a javascript method onclick on that link
test() is a javascript method where you will call your action class like
function test() {
isaTop().parent.location.href="<isa:webappsURL name='/b2c/xyz1.do'/>";
}
Changes in config.xml should be like
<action path="/b2c/xyz1" type="package_name.xyz">
<forward name="success" path="/b2c/Page2.jsp"/>
<forward name="failure" path="/b2c/Page2.jsp"/>
</action>
Make use of "<isa:webappsURL name='/test/test.jsp'/>" and it will work. Hope this helps you.
Regards,
Arshi
Edited by: Arshi Arshi on Oct 3, 2009 9:50 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved, it was the problem with isaPerform action.
BM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.