Converting Applet to JSP or JSF
Hello All,
I have a web application with Applet and Corba. It is rather old so I
want to migrate my Applets to a modern web application, with JSP or
JSF.
However number of applets is very huge. So I am looking a way to
convert my Applet to JSF/JSP etc. automatically.
Is there anyway to do that?
Thanks,
aduran
Hello cotton.m,
Thanks for the answer. You are right. But at least, is there any way to convert GUI (awt to JSP/JSF etc.) from applet to HTML look, without business logic or any other stuff.
Similar Messages
-
Hi,
I am new to JSF.
Could someone suggest how to convert existing JSP project to JSF and Tiles ?
TIA,
Oleg.Yes, we do have to convert.
We wrote a pilot of project using JSP [with some YUI and JQuery widgets]
and then learned that client wants JSF (have a bunch of other JSF projects),
so now I have a week or so to convert it. [I personally would use Flex for the GUI] ;-)
Is there a way to wrap up JSP into JSF ?
I guess, we also need to move some HTML/JSP widgets into JSF components.
Please advise,
Oleg. -
How to use javafx in web page written in jsp or jsf
Hello
How can we include our demo of javafx, that come with netbeans IDE , into my web page in JSP or JSF.
Regards
Rajnish ChauhanYou just have to add it like and applet , including this line in your JSP or JSF
<script src="http://dl.javafx.com/dtfx.js"></script>Then add the applet
<script>
javafx(
archive: "./resources/jar/Draw.jar",
width: 400,
height: 200,
code: "Draw",
name: "Draw"
</script>./resources/jar/Draw.jar - is the path and the name of the jar -
hi,
im trying to run an applet from JSP i am not able to see the output of the applet on the JSP page?
<APPLET CODE="com.metro.supex.admin.SampleApplet.class" HEIGHT="25" WIDTH="125" ALIGN="bottom"></APPLET>
this line of code is included in JSP to run the applet, it is giving error
java.lang.ClassNotFoundException:com.metro.supex.admin SampleApplet
please can you help me in this matter.And don't use the applet tag, use object embed.
use the htmlconverter in the jdk bin dir to convert an applet tag. -
Difference between JSP and JSF
What is the difference between JSP and JSF?
Is it necessary to learn JSP before starting with JSF?JSP is a view technology providing a template to write plain HTML/CSS/JS in. JSP supports Java based taglibs to generate output and/or control the page flow dynamically. A well known example is JSTL. JSP also supports access to backend data with help of EL (Expression Language).
JSF is a component based MVC framework which provides taglibs for use in JSP, the JSF core tags in <f:xxx> and the JSF HTML tags in <h:xxx>. Those tags generate HTML output and are tied to JSF component tree in the server memory so that the FacesServlet can work on them to gather request parameters, validate/convert them, update the model values (javabean properties), invoke some actions (javabean action methods) and render the response.
You can use JSF on top of either JSP or Facelets. Facelets is another view technology. JSP is ancient and has its shortcomings when JSF comes into picture. Facelets is designed with JSF in mind and much more well-suited for it and provides great templating/composition capabilities to reuse specific groups of components without the need to wrap them in another custom component (so that you don't duplicate the same code over and over, e.g. label+input+message. -
How to import and display an applet from JSP
i m using netbeans 5.0
i have class named myapplet.class
and jsp named myjsp.jsp
now i want to access(import) this myapplet.class from jsp
also i want to display this applet from this jsp
i am able to do either thing but not both
so please help me it is so urgent and important for me bcoz
i have to complete my project as early as possible
Thanks in advancemy jsp source file page path is D:\Reliance
project\WebApplication3\web\
and classes path is D:\Reliance
project\WebApplication3\build\web\WEB-INF\classes\
so problem is that if i want to use myapplet.class
then i have to put my class in D:\Reliance
project\WebApplication3\build\web\WEB-INF\classes\
location
but at that time i am not able to display this applet
on my jsp
if i put my myapplet.class in
D:\Reliance project\WebApplication3\web\ then i m
able to display
applet but not able to access(import) this class
hope you will got the problem!!!
thanks for your reply !!!try to set the path of your applet on jsp something like this
"WEB-INF/classes/myclass.class" -
How can I pass a variable to an applet in JSP?
I want to invoke an Applet in JSP and pass a variable( ie. port) to the Applet. I do as follows:
<applet code="best.Applet1.class" width=400 height=300 >
<param name=port1 value=port>
</applet>
in Applet1.java , I use getParameter("port1"),yet I got character string "port" ,not the value of port(i.e. 100).
How can I get 100 not "port"? Thanks!!!Assuming that port is a variable defined and initailized in the jsp:
<applet code="best.Applet1.class" width=400 height=300 >
<param name=port1 value=<%= port %>>
</applet> -
What's the difference between jsp and jsf?
who can tell me what's the difference between jsp and jsf?
I'm puzzled when I found some of the technology in jsp is so similar to the ones in jsp( javaserver page)Hi,
Find the difference between JSP and JSF
1. A developer has more control with JSP, but (should) get easier development with JSF
2. Event handling is done differently in JSP (HTTP) and JSF (Java)
3. The UI is designed differently (or should be at least) with JSP (markup) and JSF (components).
4. The end product should also be defined differently - JSP page versus a JSF application.
Is this the only thing that is need to make a decision for either or? Probably not. There are other pieces that need to be taken in account when deciding which technology to use - tools support, enough components, type of application etc.... At this point there are not enough JSF components (although there are some interesting projects underway - Ajaxfaces, Myfaces, ADF Faces, and WebChart 3d) and enterprise tools support is still limited to a few tools vendor. Looking at our ADF Faces components they are currently available as early access (not production) and demands for these components are stacking up, literally, outside my office doorstep. Although I would love to make them production - now! - it is not a viable solution since we are still checking features and fixing critical bugs.
All this combined - not enough enterprise level components in production, lacking tools support etc... - leave customers in a vacuum where the decision is either to continue with JSP, since it is mature and has a wide developer base, or move forward with JSF not sure if the support, or the developers will be there. This is particularly sensitive to customers that need to get started now and be production by summer.
If you are in this vacuum here are some key points promoting JSF:
1. Fundamental unit is the Component
2. Built in event and state management
3. Component sets can be provided by any vendor
4. Closer to ASP.Net or Swing development
5. Choice of UI technology
6. Scale up (rich clients)
7. Scale down (mobile devices)
8. Built into J2EE containers in J2EE 5.0 (tentative) -
Converter for converting all HTML tags to JSF tags
hai all,
i am new to JSF. i need a suggestions to convert all my HTML pages to JSF pages bcoz i was already created more pages in HTML and now i want to convert all the pages to JSF. can u give any suggestion plz post it here or send me a mail to [email protected]
thanks in advance,
regards,
V.Sabarishhi roman,
thanks for ur reply. it converts the file but the links r not converting....so can u suggest me another way for converting a HTML tags to JSF tags. -
Re: Including Applet in JSP with Dynamic input| Help needed
Hi All,
We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application in Portal page.
We can do that once we can embed the result of the standalone application which generates applet based on the input it gets from the current application's database.
If it was static we could have used jsp:plugin but, it fails in our case!
We are clueless as to how to embed an applet which will pick up the data dynamically.
Can anyone of you help me in this regard?
Thanks & Regards
ArthiHi Arthi,
I think this might help you to get an idea why jsp:plugin tag does not allow for dynamically called applets.
<jsp:plugin type=applet height="100%" width="100%"
archive="myjarfile.jar,myotherjar.jar"
codebase="/applets"
code="com.foo.MyApplet" >
<jsp:params>
<jsp:param name="enableDebug" value="true" />
</jsp:params>
<jsp:fallback>
Your browser does not support applets.
</jsp:fallback>
</jsp:plugin>
The plugin example illustrates a <html> uniform way of embedding applets in a web page. Before the advent of the <OBJECT> tag, there was no common way of embedding applets. This tag is poorly designed and hopefully future specs will allow for dynamic attributes (height="${param.height}", code="${chart}", etc) and dynamic parameters. Currently, the jsp:plugin tag does not allow for dynamically called applets. For example, if you have a charting applet that requires the data points to be passed in as parameters, you can't use jsp:params unless the number of data points are constant. You can't, for example, loop through a ResultSet to create the jsp:param tags. You have to hand code each jsp:param tag. Each of those jsp:param tags however can have a dynamic name and a dynamic value.
I think you can get better information if you look in to the below link
http://pdf.coreservlets.com/CSAJSP-Chapter12.pdf
Many Thanks,
Ramesh. -
Hello! I wrote an applet and try to put in jsp page in JDeveloper:
<jsp:plugin type="applet" code="CompositeTest.class"
width="400" height="400">
<jsp:fallback>
<p>Unable to load applet</p>
</jsp:fallback>
</jsp:plugin>
and I copy the class file to folder where the JSP page is located. When I start Jsp page I have a message: "Applet not found"
What I do wrong??? PLZ Help!
BEST REGARDSHi,
I am not sure the JSP file, which resides in the public_html directory, is part of the class path of the running application. If you open the project properties, you can see where JDeveloper looks for Java classes. Try and extend this setting to include the public_hml directory (you can also try and just add the source as a library path (see library section))
Frank -
i have already made an applet code for my program....now i want to make it flexible by using JSP...
Should i write the code from scratch (for JSP)....or is there some way i can call the applet from JSP ...
Please suggest.see if this thread helps you
http://forum.java.sun.com/thread.jsp?forum=45&thread=166514
Cheers
Khalid -
Hi al,
When we try to invoke an applet from jsp, applet class is not able to initialize (not able to load the class)
Exception got in java console as follows :
Load: class SignedAppletDemo.class not found.
java.lang.ClassNotFoundException: SignedAppletDemo.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
We are using <jsp:plugin> tag for access applet from jsp in Oracle Appserver.(OC4J).
If anyone have any idea on the above,please let us know. Please pass on steps to follow for access applet from jsp file.
Thanks,
RajkumarReview
URL.openConnection()
and HttpURLConnection -
Applets in Jsp generates ClassNotFoundException
hi there,
I face a problem of calling applets in Jsp.
The code to call applet is:
<jsp:plugin type="applet"
code="core.TextApplet"
width="475" height="350">
</jsp:plugin>
And I have a 'core' directory in source packages and TextApplet.java in core directory.Wehn I run the TextAppletJSP ,it gives me an error message in applet display area:
Exception:java.lang.ClassNotFoundException:core.TextApplet
Anyone who help me for this problem plz.
thanks for your help.
gezahegnI am also getting out of memory errors, and Tomcat keeps increasing in memory on every page refresh. Please let me know if you get this resolved how you did it. Thanks.
-
Unable to load Applet in JSP using Tomcat 5.5.12
Hi
I am aunable to applet in jsp using Tomcat 5.5.12 and JRE 1.5. Below is the code that I am using
<applet
codebase = "."
archive = "WebPOSApplet.jar"
code = "webposprint.WPMainApplet.class"
name = "Trans Applet"
width = "450"
height = "115"
hspace = "0"
vspace = "0"
align = "middle"
>
<param name = "redirectInfo" value = "SearchProducts.do">
</applet>
<%/*%>
<OBJECT
classid = "clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA"
codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,0"
WIDTH = 450 HEIGHT = 115 >
<PARAM NAME = CODE VALUE = webposprint.WPMainApplet.class>
<PARAM NAME = archive VALUE = WebPOSApplet.jar>
<PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.2">
<param name = "redirectInfo" value = "SearchProducts.do">
<PARAM NAME = "scriptable" VALUE = "false">
<PARAM NAME = model VALUE=models/buckminsterfullerine.xyz>
<embed width="450" height="115" code="webposprint.WPMainApplet.class" archive="WebPOSApplet.jar" type="application/x-java-applet;jpi-version=1.4.2" redirectinfo="SearchProducts.do" scriptable="false" model="models/buckminsterfullerine.xyz" src="webposprint.WPMainApplet.class">
</embed> <COMMENT> <EMBED
type = "application/x-java-applet;jpi-version=1.4.2" \
CODE = webposprint.WPMainApplet.class\
archive = WebPOSApplet.jar\
WIDTH = 373 \
HEIGHT = 167 \
model =models/buckminsterfullerine.xyz \
scriptable = false \
pluginspage = "http://java.sun.com/products/plugin/index.html#download"> <NOEMBED>
alt="Your browser understands the <APPLET>
tag but isn't running the applet, for some reason."
Your browser is completely ignoring the <APPLET>
tag! </NOEMBED> </EMBED> </COMMENT>
</OBJECT>
<%*/%>
This code doesn't seems working with Tomcat 5.5.12. I works fine with Tomcat 4.1.31
Please help
ThanksApplets run client side - which means the relevant class files need to be downloaded to the client.
Anything under the WEB-INF directory is not directly accessible by the client. Nothing under WEB-INF can be downloaded.
ergo, specifying the WEB-INF directory as part of your applet codebase is a bad idea.
I would suggest try copying the applet classes from under WEB-INF to some other place in your application.
Also, you should probably specify the full class name of your Applet in the plugin tag.
<%@ page import="com.util.MyApplet" %>
<jsp:plugin type="applet" code="com.util.MyApplet" codebase="/classes" width="250" height="100" jreversion="1.6">
<jsp:fallback>
<B>Unable to start plugin!</B>
</jsp:fallback>
</jsp:plugin>cheers,
evnafets
Maybe you are looking for
-
Display problem (washed out) on MBP 13" late 2011
I have a Macbook Pro 13" unibody late 2011, i 5 (bought it at 1200 usd). Since last year I have been experiencing an over heating issue and noisy machine or fan (I cant distinguish clearly), even sometimes the machine still works and makes noisy soun
-
I am being prompted for the questions for my apple ID. I have put what I think are the answers and it is still not letting me purchase games from my account. I try to send the answers to my e-mail and I am not getting them. I had account issues abou
-
2 Questions: Changing the file name /title, View albums in Outlook
Hi, I'm considering upgrading to iLife06 but before I do I want to know if it resolved my 2 biggest problems with iPhoto. 1) Can you finally change the tite/file name of a picture in iPhoto and actually find that picture with the "new/changed" title
-
Show Select query result in the text file.
Hi all, i want to show my select statment records in the text file. thanks in advance. Mob.
-
How to Use NDS Tool and create a very simple application
Hi All, Today i have Installed NDS on my machine,but i dont know how to use it,is there any guide inside NDS which gives me step by step procedure to create a simple application. Can any link help me know about this.version of NDS is 2.0.9.Is this