on 07-14-2005 3:35 PM
Hello,
I have a PortalComponent consisting of some native JSP files. The first one ist registered in the portalapp.xml as jspnative. This works fine.
On this JSP I have a native button (input). If the user click on these button i need a forward to another jsp. Simple add an action attr. on the form tag within the JSP. But: how to calculate the path for that ?
If I use the IResource obj and use the URL of that, I got the msg. 'directory browsing not allowed in WEB-INF'.
Any ideas to solve this ?
Hi,
you can calculate the path by calling the request.getContextPath().
something like this
<form name = '' action = '<%= request.getContextPath()%>/forward.jsp'>.
Or on click of the button you can set the document location like this in a javascript mwthod.
document.location.href = '<%= request.getContextPath()%>/forward.jsp'.
Hope this solves your problem
Regards,
Sesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.