on 01-13-2005 6:07 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.