• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to forward HTML Form INPUTs from to Servlet via another HTML?

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I invoke a servlet from HTML Form Action then HTML is forwarding all input parameters to the servlet. This is fine.
But I have a HTML1 with some input parameters. pressing submit button invokes another HTML2, which also have some other parameters. HTML2 is invoking Servlet. In servlet script request.getParameterNames() giving only HTML2 parameters but not HTML1 parameters.

How to get both HTML1 and HTML2 parameters to Servlet script.

Thanks,
Yamini
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You obviously need to include the values as part of the second submitted form.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!