on 07-14-2011 12:40 PM
Hallo
ihave created two jsp files wth NWDS. They are at the folder dist / PORTAL-INF / jsp
test1.jsp and test2.jsp.
test1.jsp:
<html>
<body>
<form action="test2.jsp" method="post">
......
<input type="text" name="PARAMETER" >
......
<!-- Button -->
<input type="submit" value=" check">
</form>
</body>
</html>
And how can I get the PARAMETER in the test2.jsp??
I have tried it with:
String passW = request.getAttribute("PARAMETER");
Edited by: Cilvaring on Jul 14, 2011 1:41 PM
Edited by: Cilvaring on Jul 14, 2011 1:43 PM
In your test2.jsp try below :
String passW = request.getParameter("PARAMETER");
It will work.....
When you post a form to server....the input values are posted as parameters and not as attributes.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What is the path you have referred in portal-app.xml and the same path has to be given form action.
Define the path in portal-app.xml to call the test2.jsp, if possible paste the code portal-app.xml.
Check this threads as well.
/thread/1953974 [original link is broken]
/thread/944477 [original link is broken]
/message/10263705#10263705 [original link is broken]
Regards,
Saleem Mohammad.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.