开发者

passing form values from one jsp to another

开发者 https://www.devze.com 2022-12-25 05:13 出处:网络
i need to access form data given entered in one jsp in another.. this is how my code looks fisrt jsp: <form name=\"register\" action=\"enterRegDetails.jsp\" method=\"POST\">

i need to access form data given entered in one jsp in another.. this is how my code looks fisrt jsp:

<form name="register" action="enterRegDetails.jsp" method="POST">
 <input type="text" name="firstname" id="firstname" value="" size=25开发者_如何转开发/>
<input type="submit" value="SUBMIT" />

second jsp:

 <%=request.getParameter("firstame")%>

now this prints a null value..

what is the mistake here? how do i get to access the values in my second jsp?


 name="firstname"

 <%=request.getParameter("firstame")%>

It is not just the spelling mistake, is it? (Missing n)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号