Skip to Content
author's profile photo Former Member
Former Member

htmlb form action

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 13, 2005 at 10:37 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 13, 2005 at 07:47 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.