Hi All,
I have the hidden field defined as:
<form method="post" name="userform" id="userform"><input
<input type="hidden" id="movieIdHidden" name="movieIdHidden"></input>
....
When the form is reload I set this field as
document.userform.movieIdHidden.value=1000;

In the JSP I read this value as:
string strmovie3 = request.getParameter("movieIdHidden");
// convert to int
int movie3 = parseInt(strmovie3 );
Is this the right syntax to read the hidden value from the form?
Please response to email if you know the answer to this question?
Thank in advance.
Kim

That is for a servlet (you aren't using scriptlets in the JSP, are you?).

for a JSP it is ${param.movieIdHidden}

Hi ,
I am not understand why we need to use:
for a JSP it is ${param.movieIdHidden}. What is param in this case.
Thanks,
Kim

The parameters in the request object, it is a JSP default object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.