java - Get user input from textbox on JSP -


I need to get the value that the user has entered in a text box on JSP. I use javascript to get value, but then I have to use the same variables outside of javascript on that page.

What do I have here:

  & lt; Script type = "text / javascript" & gt; Var SP; Function set (policy). Value; Other warnings ("Would you please enter some text?")}}    

text box:

  input type = "text" id = 'policy' size = "15" tabindex = "1" onblur = "setPolicy ()"  < / Pre> 

But I need to enter the "Policy" text box in this session, which is to call a function within a session, within its session bean. Please Or can there be another way to do this?

Thanks!

< P> Javascript execution executes on client side and scriptlet server side You are trying to combine two.

You should send a page that has the value entered in the text box. The scriptlet should check whether the ultimate exists or not. For the first time on this JSP The ultimate will not be present at the moment, it will only be available when users enter something in the text box.

The best solution can not be because I do not know the full context.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -