I want to do this in JSP. What is the equivalent of JSP?
First of all, JSP runs on webserver, sends html / css / javascript and webbrover to webbroower html Retrieves / css / javascript and executes / executes it. If Java / JSP has corrected its work, then the web browser should not get any line of Java / JSP code. Just because it does not make sense, choose the Rightclick page and select View Source Will it be clear what it is? :)
Now, you can use javascript to display a dialog in a webbrover. Like a warning dialog with a button:
& lt; Script & gt; Warning ('a warning message'); & Lt; / Script & gt;
A confirmation dialog with two buttons (which presses depending on the true
or false
button):
& lt; Script & gt; Var confirmation = confirm ('are you sure?'); & Lt; / Script & gt;
A quick communication message with two buttons (which does not give input or anything depending on the button):
& lt; Script & gt; Var input = prompt 'enter input', ''); & Lt; / Script & gt;
Just type it in JSP page as normal. JSP will send it to Webbrover.
See also:
Move one step forward, You can use more advanced javascript and a good shot of CSS can be found in HTML and lt; Div & gt; You can find some examples based on the jQuery UI to create a good-looking dialog with the
element.
Comments
Post a Comment