cancel
Showing results for 
Search instead for 
Did you mean: 

400 Bad Request - Invalid path /b2c/secure was requested

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

solved, it was the problem with isaPerform action.

BM