Below is the code I am using:
I am new to JSP. I have searched this forum and found some threads with similar issues, but am not able to get a clear understanding on how exactly to proceed.
Can anyone point me out to the right direction?
you can use a hidden variable on the page and once the user entered value you can set the value of this hidden variable on the same jsp page.
eg. document.getElementById('variableid').value = mobNo;
The important thing is not to stop questioning.Curiosity has its own reason for existing.
Vijay Tidake wrote:you can use a hidden variable on the page and once the user entered value you can set the value of this hidden variable on the same jsp page.
Nope. Because there is no such thing as a JSP page on the client. The JSP executes on the server to send an HTML page to the browser. Please read the article.
Joined: Apr 16, 2012
Thanks for the inputs. The JSP page, within which I am writing my code to accept user input, is a standard component inside SAP Portal.
I cannot show any input field within the same JSP to take user input. Can you suggest what can be the best way to do this?
And I need to use this user input from the same JSP to store its value.
Sorry about the misinterpretation of the question by me as my eyes skipped the part
//This is where I want to use the value which is in the mobNo variable
I thought he would be using the input value on the same page but not inside the jsp tags.