Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Beginner - please help me  RSS feed

 
subha shree
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir/Madam,

I have a input html page.One of the input column is Total number of levels.Once user enters this value and clicks on calculate button Iam directing it to jsp page which generates text boxes dynamiccaly.I achieve this with for loop and I have named these boxes as var0,var1,var2... etc with respect to loop variable.

I want the user to input into these text boxes and I would like to retrieve these values in the same jsp page and I would like to do some computations.How can I retrieve the values of input tag in the same page.

Please Help me.

With regards,
Subhashree
 
Natesh Kurup
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can use the request implicit object to access the input parameters send from the input page irrespective of the method used ie; post or get.

in your jsp page you can access the field 'name' as follows


after the page is submitted to itself one could check for a parameter and determine whether the form is submitted and suppose to contain values.

Hope this helps
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!