cancel
Showing results for 
Search instead for 
Did you mean: 

htmlb form action

Former Member
0 Kudos

Hi,

I have a question about the "action" attribute of the htmlb form object. Is it a relative or absolute path that the action attribute expects?

<hbj:form action="nextjsp.jsp">

or

<hbj:form action="pagelet.jsp">

I've tried the JSPDynPage example from the PDK, and the switch statements don't work on my button click. I'm wondering how I can send my request to the correct JSP. Thanks!

-Vu

Accepted Solutions (1)

Accepted Solutions (1)

nol_hendrikx
Active Contributor
0 Kudos

Hi Vu,

In this case you are using relative paths. An absolute path would look like:

... action="/nextjsp.jsp">

Please note this is the root of the webserver (your portal instance).

There are other tricks you can use like:

... action="../nextjsp.jsp">

(relative, one directory below current one)

Hope this helps.

Noel

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Yes I know in the example i was using relative paths. My question is what does the form action attribute expect. I tried relative paths and my request isn't processed properly.

Is having the action attribute set in the form equivalent to having an onClick method in the DynPage to forward the request?

Also, if I'm doing all this with JSPDynpages, does the JSP that I am forwarding the request to in the form have to have it's own DynPage?

Former Member
0 Kudos

Hi Vu,

Did you solve this problem? I´m having the same issue.

Thanks for Your help.

Regards,

SS

Former Member
0 Kudos

Hi,

I did solve this problem. I didn't need the absolute path at all. What messed me up was that the NW developer studio automatically puts in the jsp native tags in the portalapp.xml file. Once you take those out, everything should work.

Former Member
0 Kudos

Thanks Vu.