tags:

views:

98

answers:

1

hi 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?

+1  A: 
 name="firstname"

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

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

Thilo
oh gosh! i was boggling my head over a spelling mistake all this while!!!!! thanks thilo :)
shil
what are you coding in? eclipse would have pointed this out to you pretty quickly
Mason
@Mason: Really? How so?
Thilo
Sorry mis-read... shouldn't have been posting after my bed time :)
Mason