Whats better Swing JSP or Html JSP?

Hello everyone,
I would like to get some feedback on whether or not Java developers think that Swing user interfaces can be developed at a lower cost than HTML? Or is it the other way around? Do we still build silly HTML JSP's because we think that we can just get the job done faster? What if we have to add some interactivity? Do we then write a tone of JavaScript code? In my opinion, Swing is the cheaper better faster alternative to HTML. Recently I've looked at some "rich gui" startups that provide tools for building Swing guis for web deployment. Check out www.droplets.com and www.spidertop.com. Some of these even go as far as letting you output Swing directly from a JSP. Also deployment costs should be really low now that we have Java Web Start.
Comments anyone?

There are a few threads by user avajain which explains the deployment process perfectly, please go through threads posted by avajain to understand this process.
Thanks
Tapash

Similar Messages

  • Can i import java fx in jsp or html?

    can i import java fx in jsp or html?

    coolsayan.2009 wrote:
    just to test i did rigt-click on my web-based jsp project project->new item->other->javaFX stage and wrote the example code like:
    but got all red under lined word in all the lines what to do???Ouch! Not being familiar with NetBean, I am not sure, but I fear you mix stuff.
    "web-based jsp project" => so you write JSP or HTML stuff there, no? Like including the dtfx.js file and putting the javafx({ ... }) call in the proper places.
    "wrote the example code like (JavaFX code)" => Maybe it should be in a separate JavaFX project? Then generate the .jar file and use it in the above project.
    Now maybe I am misleading (if there is a a JavaFX stage in new items of the projects, perhaps NB allows it?) so I hope somebody knowing NB better than me will help you.
    Just in case: JavaFX code goes to .fx files; you cannot embed JFX code in JSP pages.

  • XML, XSL - HTML(JSP), bad UTF-8 encoding on Tomcat

    I use simple transformation to create HTML (JSP) page from XML, XSL (both are encoded in UTF-8}. When doing this in embedded web server in JD9i developer, the result is fine. But when run at Tomcat 4.0.3, UTF-8 chars are displayed as 2 characters. It's interesting that the transformation gives different results:
    - in JD9i the UTF-8 chars are left unchanged and shown good in IE browser
    - in Tomcat the chars with acute (/) are transformed into "í" , "á" and so on and shown properly, whereas chars with caron (V) are encoded and shown badly.
    Does somebody know solution to this ? Thanks.

    Doing some more experiments reveals a subtle difference between GET and POST with Tomcat - it may apply to other application servers, but I have only tested with Tomcat 5 and Tomcat 6, so I can't say.
    The following is essentially what most people have indicated you need to do to have your JSP handle UTF-8:
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>My Title</title>
    </head>
    <body>
    </body>
    </html>This is what I couldn't get working with my GET (the default for forms) and ended up working when I specified the URIEncoding for the connector in the server.xml file.
    It turns out that the above will work with no modifications to the server.xml file if the form method is POST. If you need to be able use GETs then you will need to modify the connector, otherwise it would seem nothing you do at the JSP or servlet level will make a difference, unless you want to convert each parameter manually:
      String parameter = new String( request.getParameter("myParam").getBytes("ISO-8859-1"), "UTF-8" );Edited by: ajmasx on Sep 27, 2007 10:20 AM

  • What is use of % symbol in JSP

    What is use of % symbol in JSP? Please reply

    What is use of % symbol in JSP? Please replySome people on this thread have provided you good
    answers.
    You may also want to know that the new way ofwriting
    JSPs is with JSTL and scriptlets <% anything that
    goes here is a scriptlet %> are discouraged.
    But it's good to get basic foundation inscriptlets
    too incase there's legacy JSP code.why would you need a foundation in scriptlets,
    though? if it's legacy code, it's already there, and
    it's just java. if you can't work out that the stuff
    that looks like java code in a legacy JSP actually
    is java code, you're in trouble. and wouldn't
    part of the maintenance be to refactor the scriptlets
    out?It's not really just Java IMO because JSP has additional concepts like
    implicit objects such as page, request, session, out etc ---- a newbie who knows Java won't have a clue when the come across the implicit objects and can't find where they were declared.
    Also the concept of directives is not in Java Classes but on in JSPs.
    JSP has some features that would be new or confusing to someone who has only worked with Java, therefore a newbie to JSP would be better off learning JSP concepts.
    -regards
    appy

  • How can one encrypt the source code of a given web page(html, jsp, etc.) ?

    Good Day! I'm just having a hard time of thinking how to encrypt the source code of a given web page(html, jsp, etc.) without affecting how it is previewed in an Internet Browser. What I plan is to disable the capabilities of some malicious Internet users of copying the source codes of my web pages by using the "View Source" option of Internet Explorer and the equivalent function in Netscape Navigator. Please somebody help me in this matter (I'm planning to use an IDEA algorithm using JCE)....
    It would be big help if a running code is supplied.
    Thank you very much in advance.
    God Bless!!!
    - Jonathan Untalan([email protected])

    don't know theses softs. What i know about encrypted web pages, is that you need a secure socket connection (https).
    Your web page will be ciphered, send to the user, and decipher by the browser with the signature file associated to your https connexion.
    It isn't possible to encrypt your page directly, and then decrypt them when requested.
    For the download time, only the server is responsible for this.
    if it is overloaded, then it will slow down its upload.
    Maybe you use some encryption method that require a lot of CPU time.
    For summary : you can only cipher the pipe transport, but not the transported pages.
    Good luck in your search.

  • 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.

  • JSP & APPlet - HTML

    Hi All,
    I am new to web development platform. I know core java, now as I need to proceed to web development I would like to know certain concepts / languages used.
    Jsp - Jsp is used to develop webpages, how does it differ from html.
    Applets - We can develop web pages using applets. Then what are the circumstance we use applets, jsp.
    JSP & Applets - Can JSP and Applet both used to create a webpage? If yes how?
    Kindly answer my question. Thank you.
    Regards,
    lg

    Go look up a basic tutorial dude.
    Basically JSP lets you create an HTML page on the fly. Rather than just serving up a static page, you customise it for each request.
    This gives a pretty good example of how JSP fits into things
    http://www.javaranch.com/journal/200510/Journal200510.jsp#a1
    Applets - Its a program running on a web page. I kinda lump them into the same box as "flash" and "activex". They let you step outside the bounds of html which a webpage is tied to. That has both advantages and disadvantages. Most web applications don't use applets.

  • ADF Faces Components and HTML/JSP Pages

    We would like to create HTML/JSP pages and include some of the ADF Faces Components; ie: date picker, radio buttons, etc.
    When we develop this type of page, upon running in the embedded OC4J, the HTML is processed first and then the ADF Faces Components are processed. In the design panel/editor, everything is in the correct sequence. Upon running in the OC4J, it doesn't matter where in the code we place the ADF Faces Components, these ADF Faces Components always appear at the end of the other HTML and JSF Faces components in the displayed page.
    How can we mix the two technologies? ADF Faces alone is not flexible enough for our needs. We want to use the JSP:include tag for reusable code which works fine in a HTML/JSP page, but not in a ADF Faces PanelPage or PanelBorder or anything similar.
    We're running the EA17 version of the tag library.
    Can we mix the technologies? What are we missing? Is this an issue with the embedded OC4J? Will it make a difference if we develop JSP pages as pure JSP or the JSPX option?
    Thank you.
    Message was edited by:
    [email protected]

    The following tag lib allowed me to mix HTML and JSF tags (not sure about other JSP tags though). Hope this helps:
    http://jsftutorials.net/htmLib/
    Chris

  • HTML/JSP portlet as popup

    Hello,
    I need open JSP portlet into new window (popup). I suppose that render tag standalonePortletUrl can generate needed URL for window.open:
    <render:standalonePortletUrl var="xxx" windowLabel="yyy" >
    where windowLabel "yyy" is Instance label of portlet. This is working for JSR-168 portlet but not for HTML/JSP. I got string "invalidPortletPath" in URL. Am I doing something wrong or is there another way of do it?. Any code or link would be great.
    Thanks a lot.

    There are several cases that standalonePortletUrl can help you solve:
    1) You want to generate a URL to a portlet instance that exists on your desktop
    2) You want to generate a URL to a portlet definition that may or may not exist on any desktop
    If yours is the first case, then what you're doing sounds correct to me. If yours is the second case, then you need to use the portletUri attribute in your tag, instead of the windowLabel attribute.
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadocjsp/framework/render/standalonePortletUrl.html
    Does that help? If not, could you clarify your particular case a little more please?
    George

  • Redirect from jsp bean to jsp or html page

    I am facing a problem in redirecting to a jsp page from jsp bean
    How do i redirect from jsp bean to any other page like jsp or html.
    [email protected]

    Hi
    The solution you suggested we tried it long before only but it is not feasible for us as we have to implement it in all web pages which are in thousands.
    My need is like this.
    We have given specific time to each of our registered user , as user logs to our portal we calculate session time in bean and as he logs out is new time gets updated. (its like dial up connection)
    Now what happens consider user has left only 10 minutes balance, I can calculate and keep track for his time in bean.Now as the time becomes zero I want to redirect him to home page.
    As u said i can get return value zero for bean and can do it ,but our webpages are near about thousands.

  • In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?

    In Dreamweaver MySites[New Site] menu option , if I had a hosting JSP/PHP what I must declare the hosting JSP or PHP ?

    The simplest answer is to choose the language you work best with, and that fits the clients specification the best.
    I have mixed server languages on a site before, (would not recommend) when a client has decided they wish to change from their old one to a new(er) /different one, the only thing you must watch if doing this, is that you do not mix languages on the same page (will not work correctly, if at all), and parameter passing.
    PZ

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • Java applet was loaded in JSP as HTML.

    I was running my web application in Linux platform. I have the lastest mozilla broswer which is 1.7.1. I was installed the Java plugins which this can be proved by i was able to load ICQ2Go of ICQ.com. The Java applet i created was loaded correctly in .html file. Unfortunately the Java applet was not load in .jsp file and a window was pop up to prompt me to go java.sun.com to donwload the proper plugin to view the applet which the link is http://java.sun.com/products/plugin/?application/x-java-applet;. I need help. Please give me a hand. Thank you.
    Coding to load Java applet in .jsp
    <HTML>
    <HEAD>
    <TITLE>Applet In Broswer</TITLE>
    </HEAD>
    <BODY>
    <H1>Applet in Broswer</H1>
    Fibonacci Test in Java Applet.
    <jsp:plugin type="applet" code="foo.FibonacciTest.class" width="800" height="300" >
    </jsp:plugin>
    </BODY>
    </HTML>Coding to load Java applet in .html
    <HTML>
    <HEAD>
    <TITLE>Applet In Broswer</TITLE>
    </HEAD>
    <BODY>
    <H1>Applet in Broswer</H1>
    Fibonacci Test in Java Applet.
    <APPLET CODE="foo.FibonacciTest.class" WIDTH=800 HEIGHT=300>
    </APPLET>
    </BODY>
    </HTML>

    Whoops.. I even make a mistaken on the title of my problem - should be is Java applet was not loaded in JSP as HTML. The problem was solved. Thanks for anyone who had view this.

  • Passing html object in a JSP to another JSP

    Below, I have a jsp page I want to pass the object name "BP" and all its values to a jsp in another jsp page. I can't use the session object can I? The html the jsp creates is within a form.
    I know the request.getParameter("BP") doesn't work because it must be a string.
    out.println("<form name=myform action='RevUpdate.jsp' method=post>");
    out.println("<PRE><Center><TABLE border = '5'>");
    for (int i=0; i < vBP.size(); i++)
    out.println("<TR><TD><font size='4'>" + ((Fetch_BP_RevLetter)vBP.elementAt(i)).getBP() + "</font></TD><TD><font size='4'><input type='text' size='3' maxlength='2' name='BP' value='" + ((Fetch_BP_RevLetter)vBP.elementAt(i)).getItemRev() + "'/></font></TD></TR>");
    out.println("</Center></Table>");
    out.println("<input type='submit' value='Save'><INPUT TYPE='Button' VALUE='Back' onClick='history.go(-1)'>");
    out.println("</Center>");
    out.println("</form>"); //END OF myform
    HttpSession sessionid = request.getSession(false);
    sessionid.invalidate();

    request.setAttribute()

  • Servlet to Html/Jsp

    Can someone enlighten me how to move from servlet code to html/jsp other than using the clumsy meta refresh html code??Many thanksRob Collett
              

    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    Should be between the <HEAD> and </HEAD> tags.

Maybe you are looking for