Can i use swing under JSP?

i have a JSP, now my question is, can I display swing components under JSP?

A JSP is just a way to write HTML back to browser.
It is a mix of HTML and java.
A JSP is converted to a java source file, with code like:
out.println(".... HTML code you wrote ...");In this way a java application writes back to the client browser on a page request.
A totally different mechanism are either a java applet (embedded in an HTML page),
or Java WebStart, which distributes entire java applications via the net.
If you are familiar with Swing, or have an existing Swing application, or need a
user friendly GUI, those are the ways.

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.

  • I can't use swing components in my applets

    When I write an applet without any swing components, my browser never has any trouble finding the classes it needs, whether they're classes I've written or classes that came with Java. However, when I try to use swing components it cannot find them, because it is looking in the wrong place:
    On my computer I have a directory called C:\Java, into which I installed my Java Development Kit (so Sun's classes are stored in the default location within that directory, wherever that is), and I store my classes in C:\Java\Files\[path depends on package]. My browser gives an error message along the lines of "Cannot find class JFrame at C:\Java\Files\javax\swing\JFrame.class"; it shouldn't be looking for this non-existent directory, it should find the swing components where it finds, for example, the Applet class and the Graphics class.
    Is there any way I can set the classpath on my browser? Are the swing components stored separately from other classes (I'm using the J2SE v1.3)?
    Thanks in advance.

    Without having complete information, it appears that you are running your applets using the browser's VM. Further, I assume you are using either IE or Netscape Navigator pre-v6. In that case, your browser only supports Java 1.1, and Swing was implemented in Java 1.2. You need to use the Java plug-in in order to use the Swing classes (see the Plug-in forum for more information), or else download the Swing classes from Sun and include them in your CLASSPATH.
    HTH,
    Carl Rapson

  • I log in under different user and can not use our pictures on iPhoto, how can i use them under different user?

    After creating and signing in under a different user on imac, how can i use iphoto pictures?

    If you want to access the same library from different user accounts on your Mac put the library on an external hard drive connected to the iMac and make sure it's formatted OS X Extended (journaled) with ownership set to be ignored.
    OT

  • I can't use HD4000 under Windows 7 and 8?

    I installed Windows 7 in my rMBP(15 inch), but I found HD4000 was disabled under Windows 7(the same to Windows 8), only GT650M can be used. Who can help me?

    Welcome to Apple Support Communities
    Windows doesn't have the ability to use both GPUs, so you can use only the dedicated GPU. Unfortunately, there's no fix for this

  • Can't use Swing in my java application

    I installed J2SE 5 Update 4 on my machine and was trying my hands on creating GUI using swing. I kept getting the error message: "Package javax,swing not found in import".
    I have the statement: import javax.swing.*; in my code so I don't what to do again.
    Thanks

    I think your best bet is to try uninstalling and installing Java again. Your problem could be something small, however you wull eaist less time to re-install everything, then to try searching for the problem.
    btw-What Development tool do you use? Just in case you may try to check whether it could be a problem of the ide (It should not be however), just check with another Ide, and see if the same happens. If yes, then follow my first advise, I think it would take you less time.

  • Newbie Q: How can I use swing on a Mac

    Can anyone tell me how I can get the swing class libraries installed on my Macintosh? According to the MRJ 2.2.5 (Macintosh Runtime for Java) this is compatible with Swing 1.1.1. But where do I get the class library and where do I put it when I have got it. The only info I have is to see:
    http://java.sun.com
    Well here I am.
    Anyone got any ideas.
    Thanks.

    Here:
    http://java.sun.com/products/jfc/download.archive.html

  • Can we use frames and jsps together..

    Is it good to use frames with jsps.performence wise..bcos when iam calling jsps in frames it taking more time..to laod..
    regards,

    Remember, 2 frames == 2 HTTP requests. 3 frames == 3 requests, etc.
    It will take longer of course. To think otherwise is crazy. However there are times when the benefits are there. I've used them, expecially if it's a situation where taking a little longer on the initial load makes all other accesses faster. This is particularly the case when I've got a fancy UI that uses lots of graphics. I don't need to load the graphics more than once so I put them in separate frames and only have one frame (which is mostly text) change content.

  • Application UI Design using Swing or JSP

    I am in the Design phase of my first project. the technology involved is not defined and the team(of 2) is not sure what would be best to use. we got to work on a staging table. mostly updating it. one complete partition(can have as many as 100K rows) has to be displayed in the UI. once it is updated the effected rows need to be inserted/updated to another permanent table, both in Oracle.
    so in short, the GUI should allow sorting and filtering options to the user to work on the staging table records. I am not sure how JSP's will fit into this piture. the network traffic is a big concern here.
    we might go with Swing Jtable. will that be feasible for this kind of UI? also can this be implemented using MVC(can be struts?) or just Model 1 architecture should do?
    I thought of using hibernate for the ORM but the DBA told that the schema is a bit conplex to work with hibernate. so i might be using plain JDBC prepare statements.
    can anyone put some light based on there experience.
    suggestion and views are welcome!

    Triple-post:
    http://forum.java.sun.com/thread.jspa?threadID=5246519
    http://forum.java.sun.com/thread.jspa?threadID=5246518
    http://forum.java.sun.com/thread.jspa?threadID=5246520

  • Can I use Swing controls with Forms 9i?

    Is there a way to use Java Swing controls with Forms 9i via a PJC or something? If so, is there a white paper on it? Thanks.

    Yes you can. There is a quick start about PJC here:
    http://otn-stage.us.oracle.com/products/forms/htdocs/upgrade/pjc/content.html
    And there is also a paper about Forms in the Java World that you should read.
    http://otn.oracle.com/products/forms/pdf/forms_in_java_world.pdf
    You might want to have a look at the Oracle9i Forms Demos for some code samples as well.

  • Photoshop "can't use product under guest account"?

    I just bought Photoshop 12 today, downloaded it and everything, and now that I'm going to start editing some photos it says "Cannot use this product under a guest account". I am the administrator account so I'm confused?
    Has anyone had this problem? If so, what can I do? I would like to start using this ASAP, I have a lot of photos to edit and I just spent the money on this!!

    You should really post in the PSE forum at http://forums.adobe.com/community/photoshop_elements
    Did you activate and register it?
    But this could also be an OS isue.  You should state which you are using.  Do a web search for permission issue on your OS.

  • How can I use SignalExpress under Linux?

    We have just acquired some Tektronix 1001B oscilloscopes and we are trying to use SignalExpress with a computer working under Linux. How can we do this? Do we need any drivers/special configuration?
    Thank you very much.
    Noelia Gutierrez

    HI Noelia,
    Unfortunatelly Signal Express is only for windows platforms, there is no version for Linux.
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

  • Can't use keyboard under GDM

    i installed the Xorg and make my touchpad and keyboard worked under X,
    then i installed the gnome and gdm.
    when i entered GDM ,the touchpad was working but not the keyboard.
    What can i do with this?
    Arch on ASUS W7J

    Make sure you've got xf86-input-evdev installed.  That may help you out.  It installed as an xorg dependency on my machine, but apparently some people are missing it and have to do it manually.

  • Can we use CS6 under a CC license? We have about 25 CS6 installations and need more CS6-licenses. Our other software is not (yet) compatible with CC.

    We need more CS6 installations at our company. However, it's not possible to buy CS6, only CC. The software we are using in combination with CS6 is still not compatible with CC. So have have to use CS6 until that software is upgraded. Can we buy CC licenses (or membership) and use that licenses to activate new CS6 installations?

    First, yes it IS possible to buy CS6 Creative Suite 6
    Second, Previous via Cloud http://helpx.adobe.com/creative-cloud/help/install-apps.html#previous

  • Urgent!!!!!How can i use javamail in jsp without using javabeans

    hello friend
    I m making a forum in which i want to send response to the user through mail I m not using javabean Can anyone help me.How to use javamail in jsp

    http://java.sun.com/developer/onlineTraining/JavaMail/exercises.html

Maybe you are looking for

  • Silverlight and Windows 8.1 is not working

    Hi, I'm trying to get horizon.tv (by UPC) in The Netherlands working, and on Windows 7 it works, but on Windows 8.1 it simply doesn't work! Very strange, because Silverlight and Windows 8 are both from Microsoft! I've tried starting Firefox, Chrome a

  • DOUBT IN CRETAING DATAFILES

    Hello, i have one doubt in creating datafile if suppose i have created a TABLESPACE T1. with DATAFILE X. CREATE TABLESPACE T1 DATAFILE 'D:\ORACLE\ORADATA\ORCL\X1.DBF' SIZE 1024M Now if suppose that i wan't to increase the tablespace size fot that i h

  • Change documents in POP2

    Hi everybody, how can i active the change documents for TA POP2? Thanks in advance

  • How to reduce the cloning time if using cold backup?

    Hi, We are using EBS r12 (12.0.6) with database 10.2.0.3 in Linux Redhat 4 32-bit envoirnment. Our datbase size is around 480 GB and we are facing the issues to provide the clone to my consultants for meet the target timelines in given time. (Source:

  • Where can I request better iBook organisation in iTunes?

    I'm sure there used to be a discussion group for feature requests. I'm sure that proper organisation of books and documents from within iTunes is on the way, but I'd just like to add my +1 to the folks who are desperate for it. I use smart folders an