Help running a simple jsp (with struts and core -sun- taglibs)

Hi, could somebody help me with this simple JSP?
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
     pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:c="http://java.sun.com/jsp/jstl/core"
     xmlns:html="http://struts.apache.org/tags-html">
<head>
     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
     <html:text property="text">text</html:text>
     <label>hello</label>
     <c:forEach begin="1" end="5">
          <label>inside</label>
     </c:forEach>
</body>
</html>When I run it, the c:forEach tag doesn’t work.
Output shows “text hello inside” instead of desired “text hello inside inside inside inside inside”
Any hints will be really appreciated.
Edited by: 792625 on 03-sep-2010 0:15

Add the JSTL Core tag library.
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

Similar Messages

  • Help running a simple jsp file,Tomcat 5.0.16

    Hi,
    This question may be addressed many many times,but do reply.
    I have a Win xp operating system
    Installed Tomcat 5.0.16 in it.
    Next the directory structure
    PS : The sampleapp directory is outside the tomcat installation directory.
    E:/sampleapp
    | |
    ROOT WEB-INF
    |
    classes
    |
    <package1><structure> .class files (for servlet works fine!!!!)
    in the WEB-INF,there is the web.xml,then sourcefiles<dir> and the lib directory which is empty.
    Now the servlet files work fine.........
    I have placed my MyJsp.jsp file in the above mentioned ROOT directory.
    I have not done any thing with the <TOMCAT_HOME>/conf/server.xml file
    and the web.xml which I have written.
    When I give the following URI
    http://localhost:8080/sampleapp/MyJsp.jsp,
    I get the HTTP status 404- /MyJsp.jsp
    description: The requested resource (/MyJsp.jsp) is not available.
    Hoping that I have defined the problem specifically.Kindly show some light on this.
    Thanks
    AS

    Nevermind. I just found the answer. For the record, there are two ways in getting JSPs to work:
    1. Precompiling the JSPs and modifying your webapp's web.xml file with the XML fragment generated in YourWebApp/web/WEB-INF/generated_web.xml;
    2. Not precompiling the JSPs, but simply letting tomcat compile it on the fly on first access.
    PRECOMPILATION METHOD
    Go to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. Copy-and-paste the ant script under the section "Web Application Compilation" into a file called compile.xml. For me, I save it in ~/development/compile.xml. Then compile the JSPs using the command (all in a single line):
    $ANT_HOME/ant -file <PATH_TO_COMPILE.XML> -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>
    In my case, I cd into the directory where my app resides:
    cd ~/development/HelloWorld
    and then I type:
    ant -file ~/development/compile.xml -Dtomcat.home=/var/tomcat5 -Dwebapp.path=.
    (Note the trailing dot since my current directory is my webapp's directory itself. Also, in my case, my shell's PATH contains the path to the ant executable, so I just type 'ant' directly.)
    Open the file ~/development/HelloWorld/web/WEB-INF/generated_web.xml and follow the instructions in that auto-generated file, which is: "Place this fragment in the web.xml before all icon, display-name, description, distributable, and context-param elements."
    The web.xml referred to above is YOUR web.xml. In my case, it is the one in ~/development/HelloWorld/web/WEB-INF/web.xml
    When ready to deploy, type:
    ant dist
    as usual. Deploy the .war file in the dist directory as you normally would. In my case, I do:
    rm -rf $CATALINA_HOME/webapps/hello* (removes my HelloWorld webapp directory and its war file)
    cp ~/development/HelloWorld/dist/hello.war $CATALINA_HOME/webapps
    and wait for tomcat to unravel the war file. I can then access the JSP page based on whatever the generated_web.xml had specified. In my case, it would be http://localhost:8080/hello/sample.jsp
    NON-PRECOMPILATION METHOD
    Copy tools.jar from the Java JDK into tomcat's common/lib. (I found this only in the error message in tomcat's log file!! Didn't find it anywhere else!!). Do this one time only, then restart tomcat:
    cp $JAVA_HOME/lib/tools.jar $CATALINA_HOME/common/lib
    Restart tomcat.
    Deploy your webapp as usual which will include your JSP files stored under your webapp's 'web' directory. No precompilation of JSPs is required. Then access your JSP pages such as http://localhost:8080/HelloWorld/my-jsp-page.jsp and tomcat will compile it on the fly on first access. The disadvantage is that there will be a slight delay on first access.
    [Note:  I am putting all this down for the record, because it took me MANY HOURS to figure all this out as the info on how to do this is not found clearly in one place!!  Hope this helps others.]
    My next step is to incorporate the contents of compile.xml as mentioned above, into my regular build.xml file.

  • Trying to submit back to jsp with struts

    Ok, so I have a jsp page that displays tons of stuff.
    I get there from the struts flow of:
    InputFormJsp -> strutsFormBean ->strutsActionBean->JSP View Page
    So I'm at my view page and I was to resubmit back to the view page again using a bunch of hidden input fields to redo the page with different vars (historic data, based on the 1st time through).
    So it will go:
    JSP View Page->strutsFormBean->strutsActionBean->JSP View Page
    I want to use the same form and action beans and the same view page, just want to pass the hidden vars instead of prompting the user all over again.
    I have my form and hidden fields set up, but my problem is how do I get struts to see the resubmit. I made a new actionmapping that labeled the "input" as the same jsp page as the forward but I keep getting:
    javax.servlet.ServletException
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)followed by a good old NullPointerException from my actionbean's execute method (I think):
    root cause
    java.lang.NullPointerException
         com.air2web.SysReportAction.execute(SysReportAction.java:85)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)struts-config.xml looks like:
    <action   path="/getSysReport"
                  type="com.air2web.SysReportAction"
                  name="SysReportForm"
                  input="/pages/SysReport.jsp"
                  scope="request">
        <forward name="success" path="/pages/genSysReport.jsp"/>         
        </action>
    <action   path="/getSysReportHistoric"
                  type="com.air2web.SysReportAction"
                  name="SysReportForm"
                  input="/pages/genSysReport.jsp"
                  scope="request">
        <forward name="success" path="/pages/genSysReport.jsp"/>         
        </action>Is there a way to specify many input pages or some other trick to do this??
    Thanks
    Chris Liles

    I had exactly the same problem with Struts, and Finally I solve this.
    first of all put into <form-beans> the form path
        <form-bean name="updUserForm" type="com.yourcompany.struts.form.UpdUserForm" />and in <action-mappings >
        <action
          attribute="updUserForm"
          input="/UpdateUser.jsp"
          name="updUserForm"
          path="/updUser"
          scope="request"
          type="com.yourcompany.struts.action.UpdUserAction" >
          <forward name="success" path="/MyJsp.jsp" />
        </action>Be carefull with the first letter of attribute and name they must be in minus! (Instead of mayus in form).
    For more ..
    [email protected]

  • How to run the simple jsp on oracle 9ias application server?

    hi,
    how to run the simple jsp application jst disply the date on oracle 9ias application server?
    can any expline the steps how to do it?
    thanks
    pullareddy

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • HT1349 So everything on this page relates to Apple products. I am running a Sony laptop with Windows and as soon as I install iCloud desktop iTunes has stopped working. The only time I ever needed it. GREAT! Do you do this on purpose?

    So everything on this page relates to Apple products. I am running a Sony laptop with Windows and as soon as I install iCloud desktop iTunes has stopped working. The only time I ever needed it. GREAT! Do you do this on purpose?

    The latest version of iTunes tends to act up occassionaly. See this support document http://support.apple.com/kb/HT1923 and remove and reinstall iTunes. This will not affect your music library, apps or other content in iTunes. Make sure you follow the steps exactly.
    Also, just copying the ringtone will not get it into your phone. iPhone ringtones have an extension of m4r, and you have to first take the Media player file and covert it to an AAC version. From there you need to change the extension from m4a to m4r. If you cannot see file extensions in Windows Explorer, which is actually the default action, go into Organize>Folder and search options, then hit the View tab, and then remove the checkmark by hide file extensions from known file types. After you have created the m4a version and changed the file extension, you can double-click on it and it should show up in the Tones folder in iTunes. From there, sync the phone and it should show up in the list of ringtones.

  • Help regarding a simple JSP file and servlet file

    Hi all,
    I am trying to develop a web based application using Tomca 5.0.16.I wanted to get to know how a simple jsp page could access a servlet.It would be really very beneficial if if any one can give me a sample code that does the interactions,I could run it and understand it,would help me for further development.
    Any help would be appreciated
    Thanks
    AS

    I think it depends on how you want to access the servlet.
    You can forward or redirect from the JSP page to the servlet, thus making it like you went to the servlet directly from the browser (except of course, before the forward or redirect, some stuff can be done).
    You can use URLConnection objects to call the servlet, much like the browser does.
    It depends on what you are trying to do.

  • Question in developing JSP with Struts

    Hello,everybody.
    Recently,I wrote a simple JSP Web program basing on the Struts architecture.It created a page for a user to input his name and password,and after the user click the submit botton on the form,it can redirect to another page and show the name and password that the use has input on the page.I have completed the program but it can't work properly.
    I listed each part of the program as following:
    (a) TestForm.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <head>
    <title>Login Interface</title>
    </head>
    <body vLink="#006666" link="#003366" bgColor="#E0F0F8">
    <img height="33" src="image/enter.gif" width="148">
    <form action="ReadTestForm.do" method="post">
    UserName:
    <input size="15"name="PersonName"><p>
    Password:
    <input type="password" size="15" name="Psw"><p>
    <input type="submit" value="Submit">
    </form>
    (b) MTestForm.java
    package Test;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    public class MTestForm extends ActionForm{
         private String PersonName = null;
         private String Psw = null;
         public MTestForm(){}
    public void setPersonName(String name) {
              this.PersonName = name;
         public String getPersonName() {
              return PersonName;
         public void setPsw(String psw) {
              this.Psw = psw;
         public String getPsw() {
              return Psw;
         public void reset(ActionMapping mapping,
              HttpServletRequest request) {
              this.PersonName = null;
              this.Psw = null;
    (c) ReadTestFormAction.java
    package Test;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessages;
    import org.apache.struts.action.ActionMessage;
    import javax.servlet.ServletContext;
    import javax.sql.DataSource;
    import javax.servlet.http.*;
    public final class ReadTestFormAction extends Action{
         public ActionForward execute(
                   ActionMapping mapping,
                   ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
                   MTestForm TestFormBean = (MTestForm) form;
         String PersonName = TestFormBean.getPersonName();
         String Psw = TestFormBean.getPsw();
         return mapping.findForward("ReadTestFormOk");
    (d) ShowForm.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ page import = "classmate.*" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Read Test Form and Show the Data</title>
    </head>
    <body>
    <%
         MTestForm ReadformBean1 = (MTestForm)request.getAttribute("TestFormBean1");
    %>
    <h1><img src="image/smile.gif">
    Welcome
    <%=ReadformBean1.getPersonName()%>
    Your Password is:
    <%=ReadformBean1.getPsw()%>
    </h1><br>
    </body>
    </html>
    (e) web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- Action Servlet Configuration -->
    <servlet>
    <servlet-name>actionServlet</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    </servlet>
    <!-- Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>actionServlet</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Welcome File List -->
    <welcome-file-list>
    <welcome-file>TestForm.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    (f) struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
         "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
         "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="formBean1" type="Test.UserForm"/>
    <form-bean name="TestFormBean1" type="Test.MTestForm">
    </form-bean>
         <action-mappings>
              <action path="/login" type="Test.LoginAction" name="formBean1" scope="request" input="/login.jsp" >
                   <forward name="failed" path="/error.jsp"></forward>
                   <forward name="successed" path="/right.jsp"></forward>
              </action>
              <action path="/regist" forward="/regist.jsp"/>
    <action path="/ReadTestForm"
              type="classmate.ReadTestFormAction" name="TestFormBean1" scope="request" input="/login.jsp">
         <forward name="ReadTestFormOk" path="/ReadForm.jsp"></forward>
    </action>
         </action-mappings>
    </struts-config>
    After I accessed the page of "TestForm.jsp" and input the " Username and Password",click "Submit " button ,it can redirect to the page of "ShowForm.jsp",but each time both the Username and Password are "Null", It meaned that the statement {which is MTestForm ReadformBean1 = (MTestForm)request.getAttribute("TestFormBean1");
    } and its following statement in the "ShowForm.jsp" can't accessed what the user have input for the Textboxs of Username and Password.
    I have tried and tried and modify the program for many times,but it have not been solved.
    Can you help me to check out what is the wrong with the program?
    Thanks you for help and Regards
    (Can you anybody tell me how edit the text so that it can been printed out clearly in this forum?)
    Message was edited by:
    Devemor

    Well as far as i see there is no mapping working between
    Form input and ActionForm Bean properties as the reset() method would be called b4 action class
    you need to map the properties in the below fashoin
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <head> <title>Login Interface</title> </head>
    <body vLink="#006666" link="#003366" bgColor="#E0F0F8">
    <img height="33" src="image/enter.gif" width="148">
      <form action="ReadTestForm.do" method="post">
         UserName: <input size="15"name="PersonName">
         Password: <input type="password" size="15" name="Psw">
         <input type="submit" value="Submit">
      </form>
    </body>
    </html>MTestForm.java:
    ==============
    package Test;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    public class MTestForm extends ActionForm{
    private String PersonName = null;
    private String Psw = null;
    public MTestForm(){}
    public void setPersonName(String name) { this.PersonName = name; }
    public String getPersonName() { return PersonName; }
    public void setPsw(String psw) { this.Psw = psw; }
    public String getPsw() { return Psw; }
    public void reset(ActionMapping mapping, HttpServletRequest request)
    { this.PersonName = request.getParameter("PersonName");
      this.Psw = request.getParameter("Psw");
    }or try with
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html:html locale="true">
    <head>
       <title><bean:message bundle="form" key="login.title"/></title>  
    </head>
    <body>
    <html:form action="">
    Username : <html:text property="personName" />
    Password : <html:password property="psw"/>
    </html>
    </body>
    </html:html>MTestForm.java:
    ==============
    package Test;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMessage;
    public class MTestForm extends ActionForm{
    private String PersonName = null;
    private String Psw = null;
    public MTestForm(){}
    public void setPersonName(String name) { this.PersonName = name; }
    public String getPersonName() { return PersonName; }
    public void setPsw(String psw) { this.Psw = psw; }
    public String getPsw() { return Psw; }
    public void reset(ActionMapping mapping, HttpServletRequest request)
      this.PersonName = null;
      this.Psw = null;
    }and the controller part would be something like the one below
    ReadTestFormAction.java
    =======================
    package Test;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessages;
    import org.apache.struts.action.ActionMessage;
    import javax.servlet.ServletContext;
    import javax.sql.DataSource;
    import javax.servlet.http.*;
    public final class ReadTestFormAction extends Action{
      public ActionForward execute(ActionMapping mapping,ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
      MTestForm TestFormBean = (MTestForm) form;
      String PersonName = TestFormBean.getPersonName();
      String Psw = TestFormBean.getPsw();
      return mapping.findForward("ReadTestFormOk");
    }struts-config.xml:
    ==================
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="formBean1" type="Test.UserForm"/> <form-bean name="TestFormBean1" type="Test.MTestForm">
    </form-bean>
    <action-mappings>
    <action path="/login" type="Test.LoginAction" name="formBean1" scope="request" input="/login.jsp" >
    <forward name="failed" path="/error.jsp"></forward>
    <forward name="successed" path="/right.jsp"></forward>
    </action>
    <action path="/regist" forward="/regist.jsp"/> <action path="/ReadTestForm" type="classmate.ReadTestFormAction" name="TestFormBean1" scope="request" input="/login.jsp"> <forward name="ReadTestFormOk" path="/ReadForm.jsp"></forward> </action>
    </action-mappings>
    </struts-config>Hope that might help :)
    REGARDS,
    RaHuL

  • JDeveloper editing JSP with Struts tags terribly, terribly slow!?

    I use JDeveloper 10.1.2 and I do not know the reason but it started to take 15min just to change/edit JSP containing Struts tags. RAM memory is 1GB and there is more than 0.5 GB available, but processor usage shows 100% allocated to JDeveloper!? As soon as I do even slight change in a JSP file JDeveloper starts some computations and I have no idea of what it is doing.
    What is JDeveloper computing? It seems it tries to produce some drop-down lists "helping" me to do the editing, add tags and instead I am spending days to just change one small JSP page!
    How can I stop and PREVENT JDeveloper doing ANY "help" during editing of ANY file?
    There must be an option to switch off whatever JDeveloper is doing?
    Many thanks,

    I did that but it is still very slow, it looks like Jdev is doing some intensive calculations whenever I click somewhere on JSP page with tags. Maybe this is related with my other question I posted before this one? Maybe JDev automatically searches for tag libraries it cannot find and copies them to /WEB-INF directory? (other IDEs used in same environment, like Eclipse and IntelliJ, and they do not have this problem)
    Some other strange things: struts-config.xml seems not integrated with CVS from JDev (other files like tiles-config.xml, web.xml etc. are integrated, I can right click and get CVS info on particular file, except struts-config.xml). When I want to check in/out struts-config.xml I have to do it with external tool like WinCVS etc., cannot do that from JDev!

  • Show jsp with struts

    hello,
    i'm building a web-application with struts. now i have the following problem (i don't find den reason, although i'm trying for hours):
    i want to show in the browser (with tomcat) a jsp-site. this site consists of different jsp-parts:
    file neujob.jsp
    <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
    <template:insert template='/templates/eshop.jsp'>
    <template:put name='header' content='/templates/header.jsp' />
    <template:put name='view' content='/view/erstellen.jsp' />
    <template:put name='footer' content='/templates/footer.jsp' />
    </template:insert>
    header and footer are shown correctly, when i call http://localhost:8080/pmtool/neujob.jsp in the browser; but the view-part is not shown. independent of how it looks. even this narrow-version doesn't work:
    file erstellen.jsp
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    huhu<br>
    huhu<br>
    the login.jsp-site however is shown correctly, and actually it is built similarly.
    what may be the reason? what gets wrong?
    thank you for your help!
    paraphrase

    sorry! now i've found my mistake!

  • Call JSP with applet and wait till it is loaded

    Hi,
    I am calling a JSP with a java-script. The targetpage needs some time, until the applet is loaded. I would like to call a function in the applet.
    My problem is, that I cannot set 'location.href' and straight after that call the applet, because it will not be there. How can I delay the applet-call, until it is really there?
    function loadOrder(){
    top.mainFrame.location.href = 'auftragseditor.jsp';
    top.mainFrame.OrderApplet.setOrder( orderno )
    I also fitted a while(...) loop between the two statements, but obviously the page is not build up in another thread. The loading will wait.
    Thanks for your help
    Klaus

    Assuming that top.mainFrame.OrderApplet.setOrder( orderno ) causes an exception because
    the applet is not loaded yet you should put it in a try and catch.
    One other problem is that orderno is not defigned anywhere in your method.
    function loadOrder(){
      top.mainFrame.location.href = 'auftragseditor.jsp';
      callApplet( orderno );
    function callApplet(strPassToApplet){
      try{
         top.mainFrame.OrderApplet.setOrder( orderno )
      }catch(e){
        // try again in .1 seconds
        setTimeout("callApplet(\"" + strPassToApplet + \");",100);
    }

  • How to run a simple program with main?

    I have a simple class with main, something like the following:
    public static void main(String[] args) {
    Is it possible to run / execute this main from within workshop?

    In SP2 we've made it very easy to automatically set the main class name
    when you first try to run a class in a Java project that doesn't have
    already have debugging configured.
    More generalized ways to easily run a class with a main method are
    already on the list for the next release.
    Thanks for the feedback,
    Josh
    Carl wrote:
    Thanks, that worked:)
    Workshop should consider dealing with simple classes with main much
    simpler...
    "Josh Eckels" <[email protected]> wrote in message
    news:3f96f8c1$[email protected]..
    Yes, you can run and debug it, but it needs to be in a Java project. If
    it's not already in one, create a new Java project and copy in the
    source. Go to the Project Properties, and select the Debugger settings.
    Enter the class that contains the main method. If you'd like, you can
    set the checkbox for Build before Debugging so that you are always
    running off the current source code.
    You should then be able to run the project after building it.
    Josh
    Carl wrote:
    I have a simple class with main, something like the following:
    public static void main(String[] args) {
    Is it possible to run / execute this main from within workshop?

  • Creating A Simple Video With Music and A Picture Background

    Some of you all may know that I am in a band. I am wanting to put some of my music on youtube and am wanting to make just a simple video- with the song playing in the background- and just some sort of nature picture, or only a few going in the background. I'm thinking I should use iMovie, but I haven't had a whole lot of luck figuring it out this morning, so I was wondering if anyone here could help me with the task that I mentioned. It would be so greatly appreciated!!!
    Thanks So Much,
    Ethan

    Aluminum or not, there actually is an iMovie forum:
    http://discussions.apple.com/forum.jspa?forumID=1307
    Good luck!

  • How run the simple .jsp file on 9 i as application server?

    hi,
    i developed simple .jsp file on notepad,the same .jsp file to run in 9ias server?
    how can any one help me or send steps how to do?
    jpullareddy

    Hi,
    Try out these samples...
    http://otn.oracle.com/sample_code/tech/java/jsp/htdocs/jspdemo/OjspReadme.html
    Thanks,
    Rajat

  • Need help on enhancement of 0CO_OM_OPA_1 with Material and Plant

    Hi,
    I have a requirement that need to build a BW report which shows Actual costs and Planned Costs of Service Orders. We are getting Actual costs from 0CO_OM_OPA_6 and now i am getting planned costs from 0CO_OM_OPA_1. For actual costs we are getting Service Orders, Material and plant from Satandard DS 0CO_OM_OPA_6. Where as For Planned Costs standard data source 0CO_OM_OPA_1 is not having Material and Plant information. For this we decided to enhance 0CO_OM_OPA_1 with Material and Plant.
    But we are not sure the source tables for material and plant and the logic to extract these data from the tables. Can anybody please help me out.
    Thanks for your supprt in advance.

    It's possible you may need to use a CO-PA (profitability analysis) datasource instead of 0CO_OM_OPA_6.  0CO_OM_OPA_6 extracts data from CO tables. 
    Based on the path you provided "...Profit. segment...", the requested data might exist with CO-PA.
    If you determine the required data resides in CO-PA, you'll have to create a datasource based on the operating concern.  You can perform a search within the online docs for steps to create this datasource.
    Hope this helps.
    Rod

  • HELP: include another page in with JDeveloper and ADF

    Hi all,
    I am trying to make a layout page with JDeveloper and ADF. But I just can't make things work. I have the pre-coded header and footer html pages and want to include them in a jspx somehow. I tried panelPage too, but the rendering style is away from our pre-coded header and footer.
    1. Use jsp:include.
    header works fine but footer is rendered before the page content, even if the footer is placed after the page content. Is there a way to customize the position?
    <f:facet name="footerFacet">
    <f:subview id="footerView"
    binding="#{backing_welcomePage.footerView}">
    <jsp:include page="/footer.jspf"/>
    </f:subview>
    </f:facet>
    2. Use frameBorderLayout.
    I followed the doc and use the document tag. But the frame page is rendered but none of included pages are rendered. So I got a blank page.
    <!-- frame page -->
    <f:view>
    <afh:html>
    <afh:head title="my frame page">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <afh:frameBorderLayout height="100%" width="100%">
    <f:facet name="center">
    <afh:frame source="topPage.jspx" name="topPage3"/>
    </f:facet>
    <f:facet name="top">
    <afh:frame source="topPage.jspx" height="200" name="topPage2"/>
    </f:facet>
    <f:facet name="bottom">
    <afh:frame source="topPage.jspx" height="200" name="topPage1"/>
    </f:facet>
    </afh:frameBorderLayout>
    </afh:body>
    </afh:html>
    </f:view>
    <!-- top page -->
    <f:view>
    <af:document title="FrameBorderLayout Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <f:facet name="separator">
    <af:objectSeparator />
    </f:facet>
    <af:outputFormatted styleUsage="instruction" value="&lt;b>A frameBorderLayout&lt;/b>"/>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>

    for #1 have you tried throwing a verbatim tag around your includes like:
    <f:verbatim>
    <jsp:directive.include file="/includes/footer.jsp"/>
    </f:verbatim>
    it's how we got around intermixing html and jsf

Maybe you are looking for

  • Displaying operation long text in results recording screen

    Hi, all! I am trying to understand why I cannot display the operation long text when in results recording screen (either QE51N or QE01 transaction will not support displaying of operation long text). I have checked all areas that I could think of in

  • PREL TO PNNNN

    Hi I have a proble with this method, the program is this, and the proble is the decimals when i use de method to pass the prel structure to other, because when the prel structure have decimals don't pass this parameters correctly, can you help me ple

  • ITunes trying to sync missing music

    iTunes keeps trying to sync music that isn't there, and I was wondering how to let it know that the music is no longer there?

  • Global Workbook Template

    Hi All How to create a global workbook template. Can anyone give a real time scenario on this..... (version BI 7.0) Regards Naga

  • How do I get the serial number of Adobe Photoshop Lightroom 5 off my mac.

    I'm returning the software, it's too complicated for me.