is it possible to use Swing in JSP ?

Hi , is there anyway to use swing jOptionpane in JSP, if so please let me know.Thank YouRam Karthik
[127 byte] By [Ram@Palkara] at [2007-11-26 18:54:42]
# 1
> Hi ,> > is there anyway to use swing jOptionpane in JSP, if> so please let me know.> Not directly.You could use and Applet. But why do you even want to do this? Why not just use JavaScript or something more appropriate?
zadoka at 2007-7-9 20:32:13 > top of Java-index,Java Essentials,New To Java...
# 2
Thanks ,am using alert, it seems sometimes its not working so i am trying to use this
Ram@Palkara at 2007-7-9 20:32:13 > top of Java-index,Java Essentials,New To Java...
# 3

> Thanks ,

>

> using alert, it seems sometimes its not working so i

> am trying to use this

Using a Swing component in a JSP in place of a Javascript alert seems to be a very backward and complex workaround. I would suggest spending your time trying to determine why alert sometimes fails.

zadoka at 2007-7-9 20:32:13 > top of Java-index,Java Essentials,New To Java...
# 4
ok see this is my code for alert , In IE 7 sometimes its not working.<%if(_func.getAlertMessage()!=null && _func.getAlertMessage().length()>0){%>alert('<%=_func.getAlertMessage()%>');<%}%>
Ram@Palkara at 2007-7-9 20:32:13 > top of Java-index,Java Essentials,New To Java...
# 5
I'm guessing that your alert fails as soon as your alert message contains a single quote.
gimbal2a at 2007-7-9 20:32:13 > top of Java-index,Java Essentials,New To Java...
# 6

> is there anyway to use swing jOptionpane in JSP, if

> so please let me know.

No, you can't, at least not if you mean "using" as in "displaying it on the client". If that's what you mean, frankly, it shows a severe lack of understanding of the working principles of JSPs. JSPs are executed on the server. All the client ever gets is just another HTML page.

CeciNEstPasUnProgrammeura at 2007-7-9 20:32:13 > top of Java-index,Java Essentials,New To Java...