Including Applets in jsp without using Archive

Can any one help me to include the Applet without using the Archive attribute in either <jsp:plugin> or <applet> tag. I am using WebLogic workshop8.1 on win 200 platform , it builds class files in a seperate directory which starts with .workshop dirctory. I should include that directory as the codebase for the applet.
regards
varada rajulu
Turning Point Software Solutions India

yeah. don't use it. You specify the code (class) and the codebase tag, and the classes have to be loose on the server under the package directory structure that the classes' package is set up for.

Similar Messages

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

    you can do add multiple submit button with this way
    <input type="submit" value="Previous" />
    <input type="submit" value="Next" />
    <input type="submit" value="Finish" />

  • Get site id in WCS jsp without using ics.SQL

    Hi,
    Is there a way i can get siteId of my current site in JSP without using ics.SQL tags and getting it from publication table
    We are trying to implemet a lucene search for loading assets present in current site only.
    Thanks in advance for your help.

    Use the below code to get it.
    <publication:load name="thisPub" field="name" value='<%=ics.GetVar("site") %>'/>
    <publication:get name="thisPub" field="id" output="thisPubID"/>
    Dont forget to import publication.tld
    Regards,
    Ravi G

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

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

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

  • Including applets in JSP - problem!!

    I'll begin by admitting that I am fairly new to JSP. That said, I am experiencing a ClassNotFoundException when trying to include an applet in a JSP under certain conditions. Here's the detail:
    I'm using Tomcat 4.0.4 and am working in the default ROOT webapp directory. This is running on Win2k Pro on port 8080. I HAVE managed to get the applet to load under the following circumstances:
    - JSP page in ROOT/jsp directory
    - applet class file (and supporting classes) ALSO in ROOT/jsp directory
    That's just great... but I want to be able to place the applet class file and supporting classes with all of the other class files in ROOT/WEB-INF/classes. Here's the scenario that fails time and time again:
    - JSP page in ROOT/jsp directory
    - applet class file (and supporting classes) in ROOT/WEB-INF/classes
    - in this scenario I have added a 'codebase' attribute to the applet tag (please be aware that I have tried this with both the APPLET tag and the jsp:plugin tag, each method yielding identical results)
    - I have tried several different codebase values, all listed below:
    codebase="../WEB-INF/classes/"
    codebase="http://localhost:8080/servlet/"
    codebase="http://localhost:8080/WEB-INF/classes/"
    codebase="."
    and I have tried it w/o a codebase at all
    None of these help the JSP to find the applet class file. I've really thrown my hands up in the air with this. I realize that every 3rd or 4th thread is typically a beginner with some Class not found error... but I've put my time in on this one, and I cannot figure it out. Thanks.

    Hi, Ben
    You bring up a very good issue that a lot of these books about JSPs and Servlets usually forget to mention.
    I dont know what sort of Web Servlet Container you are using, but I know that in Tomcat there is a 'lib' and and 'classes' directory, so if you want to have classes that are used by different applications from different directories then you can place them there. If you want you can compile all these classes into a jar and put that jar either in the 'TOMCAT_HOME/lib' or 'TOMCAT_HOME/common/lib' directories or you can simply put all the .class files into either the 'TOMCAT_HOME/classes' or 'TOMCAT_HOME/common/classes' directories. This way your classes will be known to any applications running on your webserver.
    If, however, you want supporting classes to be only used by servlets or jsps, then you should put them in the web-inf directory.
    Let me know if this works,
    Val.

  • Including Applets in JSP

    hi guyz,
    i used <jsp:plugin> to make use of an applet..the browser in which i ran did not have support for the plugin 1.2.2 (which is needed to run applets)..hence there was an automatic download from sun's site..but even after downloading and restarting the machine, the message in <jsp:fallback> is getting displayed....can anyone diagonise the problem...??
    Thx
    Nandoo

    if you want to use applet try applet tag.
    <applet codebase="" archive="xx.jar" code="xx.class" NAME="nam" width="100" height="340" MAYSCRIPT VIEWASTEXT>
    <param name="param1" value=20>
    </applet>

  • How to include applet in jsp if applet.class file in another folder

    hi,
    i'm getting problem when my applet.class file is not with its appropriate jsp file. i'm using jsp :plugin tag.it work when jsp file n apllet.class file at same location.
    in short my jsp file is at location /webapps/jsp-examples/myproject/includeDemo.jsp
    n applet i want in a WEB-INF folder.
    Plz help me to solve this..
    or give me other way that an applet can be loaded in jsp page n applet should be in WEB-INF file..
    Help me for this

    http://forum.java.sun.com/thread.jspa?threadID=5148764&messageID=9556205

  • Reload / Refresh JSP without using parameters

    Hi,
    I have a servlet, which gets data from a mobile phone and puts the data into a database.
    Then I have a Java Beans that takes data from the database. But I dont pass it with the
    request and response parameters.
    I just use the data like you see below, I use the object of the Java Beans mybean. In
    its constructor I do all the stuffs to read data from database.
    <jsp:useBean     id   = "mybean"   scope    = "session" class = "org.myHalloGMap.handler.Handler" />
    <jsp:setProperty name = "mybean"   property = "*" />The data I use like this:
    <%                                  
         for(int i=0;i<mybean.row_count_coordinates;i++){
                  if(mybean.getUsrn().equals(mybean.coordArrUsername)){
    row_count++;
    So my problem is now:
    How can I refresh my jsp, so that I can display the data, i read out of my database?
    When I use the webapplication and put new data into the database, on my webapplication
    is still shown without the new data. When I refresh the browser, it still shows me without
    new data?
    Can someone help me?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Perhaps the bean should be set to the request scope, since you use the constructor to read all the data from the database. When you use the:
    <jsp:useBean     id   = "mybean"   scope    = "session" class = "org.myHalloGMap.handler.Handler" />You will only create a mybean instance if one doesn't exist. When you first visit to the page the session is new, so you will create the mybean instance. After that, the mybean instance is found in the session so a new one isn't made - which means the constructor isn't called, which means no new data is read.
    If you put it in the request scope then the mybean instance will be re-made each request.

  • Get context path in a jsp without using a scriptlet

    Hi Guys
    I am using Scriptlet to get a application context path in a JSP. I want to get the context path with out using an scriptlet in a JSP, is there way to achieve this..?
    <%=request.getContextPath() %>/listofvalues.do?method=viewListOfValues thanks in advance.
    Regards
    Praveen
    Edited by: praveen_kumarvr on Jul 3, 2008 8:30 AM

    ${pageContext.request.contextPath}A common practice is to put this value in the <base href> in the HTML head and then use this as the root for all of the relative URL's in the page.

  • How to iterate List in jsp without using for loop

    Hi,
    I am developing a small application is struts. I have one ActionForm file which contain one List like getEmployeeDetailsList(). When I am using this list in jsp page for displaying data. I want to display it as employee name, employee address, employee designation and employee contact no. These all fields are available in the above list. Now what is the problem is that I am using logic:iterate method to iterate data. but this is not sufficient to display all records in order. like employee name should be in one table and they can be vertical not horizontal, employee address is also should be seperate. and same thing with employee designation and contact no. I don't want to use for loop to iterate this list. Please tell me about optionCollection for this list. only employee names should be one drop down and employee designation is also in another drop down.
    Please help. It is really urgent.
    Any help will be appreciated.
    Thanks in advance.
    Manveer

    I'm not sure what you problem is, but one thing you can do is to create a new class and pass the list into its constructor (and store it as a private variable). Then, provide a set of functions in the new class that extracts data from the list and returns it in a form that the various parts of the JSP page wants. For example, one function may return a sorted list of just the employee names. In this way, all the business logic for formatting the data into a form that JSP page likes is hidden inside the new class.

  • Reload a jsp without using javascript

    I need to reload a jsp based on some jsp condition. I know that I can't do something like below:
    <% if (reloadCondition == true) { %>
    <script language="JavaScript">
    document.location.reload()
    </script>
    <% } %>
    Any suggestions?

    You can redirect the page to the same.
    Some thing like :
    <% if (reloadCondition == true)
    response.sendRedirect("same.jsp");
    return;
    %>

  • 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

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
    <html>
    <applet code="file.class" archive="file.jar" width="500" height="300">
    <param name="name" value="value">
    </applet>
    </html>
    I want to know how to execute this class file without using the html tags.
    pls help me out in this.
    Anki

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

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

    Applets 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

  • HP Laserjet 2200 Series PCL5

      Printing not working properly My printer stop printing with anything coming out -- isn't grabbing the paper from the tray. It sounds like it's going to print (rollers going) and nothing comes out. The red exclamation point light is coming on. I hav

  • Trying to understand the B_EO_INBOUND_PARALLEL ?

    Bonjour a tous et a toutes, We have 15 integrations scenarios. -> ¾ are Async (JMS / IDOC  & IDOC / JMS) -> ¼ are Sync (JMS / RFC to CICS and return in JMS) We are trying to give priority to the Sync scenarios in order to avoid a timeout on the sende

  • Issue with adobe reader with firefox.

    i ahve adobe reader most current verison. but it does not work. it will not uninstall. i have been referred to ms unistall tool.but it was recently discontinued. so..i have reader but get these messages. 1) the adobe acrobat/reader that is running ca

  • GF4 AVI Capture/sync problem and solution.

    1.9ghz Athlon, 512MB RAM, 2x80GB hds, G4 ti4400 128MB card, SBLive Xgamer sound card. Win98SE OS. Now that I've fixed my Mpeg2 capture in WinProducer 2 and WinDVR, I've still had a problem with raw AVI capture. Audio/video sync is usually off with pr

  • Can I copy cell definition in Bex design ??

    Hi, Experts,     Now I have to user cell definition, but all of cell definition are similiar. but I failed to find the way to copy the existing seletion to new cell.    so I had to define them one by one, it's really stupid work. Thanks a lot