Hello everyone need a help in JSP.
i have one html form i.e Registration form
and on java program that generated a 4 digit random number.
What i need is when the person clicks on submit button of the form i want a new html page to be opened saying "Thank You for Registering with us. "1234" is your id"
i.e using that java program i want to do this with html.
Here are a few tips to help you make the most of CodeRanch (not codebranch):
Do not attach files. Rather, post code inline as you have in the previous post, but...
Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
Avoid phrases such as "ASAP". Please read EaseUp and KeepItDown to see why this will likely just make people ignore your post.
OK, so the form gets submitted to a servlet. The servlet delegates to the model to set up the new account (or whatever) including a randomly generated id value. The servlet then redirects to the page controller for the welcome JSP.
If any of this seems strange to you, you should read this article to understand how JSP operates, and this article to understand how to structure web applications.