Can I use AWT elements in a JSP, and so could I generate events with them?

This is because I�m doing a simple JSP that showing a button, my JSP is:
<html>
<%@ page import="java.awt.*" %>
<%! Button b = new Button("Hola!!!"); %>
<% add(b); %>
</html>
But when I tried to see the button in the browser, my JSP generates the following:
Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
<% add(b); %>
Could somebody help me please?.....
Can I use AWT elements in a JSP, and so could I generate events with them?
Thanks!!!

There are 2 ways to run a web page dynamically:
1) Reload the page via use of javascript or some other scripting language.
2) Use an applet to regularly check a URL for the data
Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
Cheers,
Anthony

Similar Messages

  • Can I Use Swing Components in a JSP Page

    Hi,
    Can I use Swing Componnents in a JSP Page.If so,Can anybody provide with a sample code.
    Thanks.

    hi,
    I wanted to use the JTabbedPane for tab buttons in my
    Jsp Page.Is that possible?I am afraid that you can't.
    As for GUI (graphics) in the HTML page you can use only the html form elements (but you should simulate other behaviours by dynamically reloading the page).-
    Ionel.

  • How can I use photoshop Elements 8 to make a DVD to play on a regular TV-DVD? [was:DVD-CD-r]

    How can I use photoshop Elements 8 to make a DVD that will show on a regular TV-DVD set-up

    You can't do this in PSE by itself. I'm assuming you have windows, so output your slideshow as a wmv file and then use Premiere Elements to finalize the disc, if you have that. If not, use whatever you do have (if you can burn DVDs, you have software). Even windows dvd maker will do this.

  • Can I use my elements 9 with photoshop 12 organizer on my Mac os desktop?

    Can I use my elements 9 with photoshop 12 organizer on my Mac os desktop?

    This HP support page may have the info you need:http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02911238&cc=us&dlc=en&lc=en&os=4114&product=402...
    ======================================================================================
    * I am an HP employee. *
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **
    ***Click on White “Kudos” STAR to say thanks!***

  • Can I use Adobe Elements 12

    Can I use Abobe Elements 12 for Black & White adjustment layers?

    The convert to black and white solution is a good one, but it's not an adjustment layer.
    There are other solutions :
    - combining a hue/sat adjustment layer to play with the colors (like colored filters) and another one with saturation to zero.
    - or using a black to white adjustment layer in luminosity mode, either alone or on top of a hue/sat one like above.

  • I have to downgrade from Yosemite to Snow Leopard because of compatibility issues with some of my software.  Can I use PS Elements 12 with snow leopard?

    I have to downgrade from Yosemite to Snow Leopard because of compatibility issues with some of my software.  Can I use PS Elements 12 with snow leopard?

    PSE12 became a 64 bit app for the first time on Mac. The recommended system requirements are Mac OS X v10.7 through v10.8.
    Are you not able to use lion or Mountain Lion?

  • Can I use my elements 11 with my premier 10

    Can I use my elements 11 with my premier 10

      They will work as separate apps but will not be integrated via the Organizer and you will not be able to output directly from PSE to PRE e.g. when creating a slideshow.

  • Can I use Photoshop Elements 4.0 with Windows Vista OS?

    Can I use Photoshop Elements 4.0 with Windows Vista OS?

    http://roaringapps.com/apps:table
    Check applications for compatibility.
    PE4 won't work.
    PE6 seems to work as well as PE9.

  • Can I use Photoshop Elements 3.0 with Windows 7?

    Can I use Photoshop Elements 3.0 with Windows 7?

    Probably.  Install PSE3 and see if it works.  If not, you can always try setting PSE3's "Compatibility Mode" to XP.
    Ken

  • Can I use photoshop elements 11 or 12 on windows 8?

    Can I use Photoshop elements 11 or 12 with Windows 8?

    Hi,
    Providing you don't have Windows 8 RT then both should work.
    You could download the trial version to check.
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us
    The current versions of Photoshop Elements do not fully support touch screens.
    Brian

  • Can I use Photoshop Elements 13 to create HTML file?

    Can I use Photoshop Elements 13 to create HTML file?

    See Barbara's answer in your duplicated post: How can I save a Photoshop Elements 12 file as HTML?
    No difference with PSE13.

  • Can I use Photoshop elements 12 with Windows 8.1

    Can I use Photoshop elements 12 with Windows 8.1

    I have never been able to open the Edit portion of Photoshop Elements 12 on Windows 8.1.  Have spend hours with the online chat tech but unable to resolve the problem. Does anyone have any ideas?

  • Can I use Photoshop Elements 13 save the photo directly on OneDrive (hence the album eventually example) Reason, I use Office 365 and have so 1T storage, then it is not necessary to have more "cloud"!

    Can I use Photoshop Element 13 save the photo directly on OneDrive (hence the album eventually example) Reason, I use Office 365 and have so 1T

    g.n.a.s
    If your program is Photoshop Elements, you have posted in the wrong forum. Somehow your thread got posted in the Adobe Premiere Elements Forum (video editing).
    If this is the case, please re-post your thread in the Adobe Photoshop Elements Forum or wait for a moderator to see your thread here and move it from here to there.
    Photoshop Elements
    Thank you.
    ATR

  • Can I use Photoshop Elements 10 for RW2 files used by Panasonic?

    Can I use Photoshop Elements 10 for RW2 files used by Panasonic?
    Message title was edited by: Brett N

    PSE supports RW2 from the Lumix DMC-GH1

  • How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?

    How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?

    Did you check the help page for Correct Camera Distortion and Process multiple file
    Correct Camera Distortion: http://helpx.adobe.com/photoshop-elements/using/retouching-correcting.html#main-pars_headi ng_5
    Process multiple files: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fff.html#WS287f927bd30d4b1f89cffc612e28adab65-7ff6

Maybe you are looking for