Running jsp using Beans (jsp:useBean) on Tomcat 3.2.1 on Linux 7.0

Hi all,
In which folder do I keep my java bean class files so that my jsp can use jsp:useBean tag while my jsp's are stored in /webapps/examples/jsp/seet folder.
Thanks in advance.
Seetesh

If their just .class files put them into /webapps/project/WEB-INF/classes
If they're packaged as a JAR put them into /webapps/project/WEB-INF/lib
These folders are automatically added to Tomcats classpath.

Similar Messages

  • JSP- Servlet-- Bean-- JSP how to implement

    I have problem.
    My JSP will take a emplyee id .
    Now I want to show all the values regarding that employee in a JSP(JSP form) from the DB(Oracle).
    So Iam planning like
    JSP-->Servlet-->Bean-->JSP
    So my doubts are.
    1. Is it correct approach
    2.If it is correct then which part of the flow connects to DB and stores the value before putting to JSP.
    Iam using Tomcat 4.31
    Plz help me

    I have problem.
    My JSP will take a emplyee id .
    Now I want to show all the values regarding that
    employee in a JSP(JSP form) from the DB(Oracle).
    So Iam planning like
    JSP-->Servlet-->Bean-->JSP
    So my doubts are.
    1. Is it correct approach
    2.If it is correct then which part of the flow
    connects to DB and stores the value before putting to
    JSP.
    Iam using Tomcat 4.31
    Plz help meHI
    What you are probably proposing is an MVC design pattern. I wonder if u have heard of the struts framework. Sruts uses MVC design pattern wherein the servlet u are talking about acts as a controller(C) and the bean acts as the model(M) .The JSPs present the view(V). Hence the name MVC.
    Your approach is right. First get the employee ID from the jsp and get the corresponding data from database(This logic u implement in the servlet). Then save the fetched data in a bean so that the result jsp can fetch data from it.
    Now this is not a strict MVC approach.
    Learn more about struts. It presents a much more cleaner solution.

  • Problem with JSP using bean packaged in jar file

    Hi,
              I am trying to use a java bean in a jsp file. The java bean is packaged
              into a jar file. I am getting class not found compilation error. If the
              bean remains to be a seperated class file, everything work well.
              Does anyone know how I can use bean in a jar file within jsp , i.e. to
              allow the bean to be found during compilation ?
              Thanks,
              Terence.
              [email protected]
              

    Jacek,
              Thanks for replying.
              My JSP's are just files in my document root . However, I found a solution to
              my
              problem. That is to have the jar file defined in my weblogic.class.path. I may
              have missed some files in my original jar file which causes my problem.
              Mayby I should package everything into a web application for deployment. That
              will be my next step.
              Thanks anyway.
              Terence.
              Jacek Laskowski wrote:
              > Terence Lai wrote:
              > >
              > > Hi,
              > >
              > > I am trying to use a java bean in a jsp file. The java bean is packaged
              > > into a jar file. I am getting class not found compilation error. If the
              > > bean remains to be a seperated class file, everything work well.
              >
              > How do you use the JSP file ? Is it a part of web application ? If so,
              > the bean jar package should be located in WEB-INF/lib directory. It's
              > also recommended to put the bean class into a package, so it's not in
              > 'unnamed' package, and <jsp:useBean> can find it.
              >
              > >
              > > Does anyone know how I can use bean in a jar file within jsp , i.e. to
              > > allow the bean to be found during compilation ?
              >
              > see above.
              >
              > > Terence.
              >
              > Jacek Laskowski
              > HP Consulting
              

  • Search Engine Logic using beans & JSP's design needed.

    I am developing a web app (using JSP, tags, beans, and SQL) that stores Electric utility customers info / data (like Account, meter read info & payments etc.) for retrieval based on search criteria input by the user(by acct, meter , meter location etc..). I need some kind of search engine to search the Customer information(data nearly 3 million records) that takes less than a minute.
    Right now I have developed the search engine using JSP's, The JSP's will get the info from resultset query of beans and formatting stuff is done in JSP's. But its very slow....some times it takes 5 to 10 minutes to fetch the results. So, now we have planned to move the "search logic" from JSP's to beans, hoping this will speed up the search engine performance.
    Does anyone know where I can get search engine logic using JSP, JavaBeans? , Please let me know is there discussion on this topic / sample code / links / books anywhere ?.
    I will really appreciate the help.
    Thanks,
    Donthy

    Hi,
    I think to export the logic to the beans will not help a lot, because the .jsp and the beans are compiled together to a servlet anyway. And so, it doesn`t really matter, where the logic has been befor, after compilation it will be in the servlet.. But to have java code logic in the bean and not in the jsp is a good idea anyway. It is always nice to have as few scriptlet code as possible, makes the application more readable..
    I think you should better have a closer look to the search logic, and the database. For such huge data amount, the Oracle database would be the best. And then let the database do as many of the search work as possible, because java is a little slow, and the database will be allways faster for this things of work..
    lexip

  • Portal Runtime Error when communicating from JSPDynPage to JSP Using Bean

    Hi ...
    I am pursuing this problem for quite sometime now. Even opened a high priority message with SAP. We are using a bean to communicate value between a JSPDynPage and a JSP. When trying to access the bean in the doProcessAfterInput of the JSPDynpage, sometimesi get a nullpointer exception ..as if the bean was released ..
    I have tried ComponentProfile, ComponentSession... but in vain. If i try to use HTTPSession, the initialization of the bean in the JSP fails since its scope is applicationIt also fails if i try and reduce the scope of the bean.
    Pls advice. I can post the code on request.
    Thanks,
    Devina

    I believe application has a larger scope than session ..
    Here's the extract of the code
    public void doInitialization() {
    IPortalComponentRequest request =(IPortalComponentRequest) this.getRequest();
              IPortalComponentResponse response =     (IPortalComponentResponse) this.getResponse();
              IPortalComponentContext compcontext = request.getComponentContext();
    zOrgStructBean.setOrgData(aOrgData);
                                  zOrgStructBean.init(); //initialize bean
                   //compcontext.putValue("OrgSelectionBean", zOrgStructBean);
                   myProfile.putValue("OrgSelectionBean", zOrgStructBean);
    public void doProcessBeforeOutput() throws PageException {
              IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
              compcontext = request.getComponentContext();
         this.setJspName("TeamViewer.jsp");
         request = (IPortalComponentRequest) this.getRequest();
              request1 = request.getServletRequest();
              compcontext = request.getComponentContext();
              IPortalComponentProfile myProfile = compcontext.getProfile();
    zOrgStructBean =(OrgSelectionTreeBean) myProfile.getValue("OrgSelectionBean");
    ...// bean is returned as null
    JSP
    <%@ page import="com.hersheys.hr.pcr.exit.HersheyTeamViewerExitBean"%>
    <%@ page import="com.hersheys.hr.pcr.exit.OrgSelectionTreeBean"%>
    <%@ page import="java.util.*"%>
    <%@ page import="com.sapportals.portal.prt.component.*"%>
    <%@ page import="com.sapportals.htmlb.TreeNode"%>
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="OrgSelectionBean" scope="application" class="com.hersheys.hr.pcr.exit.OrgSelectionTreeBean"/>
    <jsp:useBean id="myTableViewBean" scope="application" class="com.hersheys.hr.pcr.exit.HersheyTeamViewerExitBean"/>
    <hbj:content id="myContext" >
    <hbj:page title="AIP TeamViewer" >
            <hbj:form id="myFormId">
                   <%  int j = myTableViewBean.getSelectedRow();
                        pageContext.setAttribute("myRootNode", OrgSelectionBean.getTree());
                    OrgSelectionBean.renderTree(myFormId);
    Bean
    public void init(JCO.Table TableData) {
              Object[] colTitle ={"Name","ID"};
              Object[] colTitleB = {"Forms"};
              data = new Object[TableData.getNumRows()][2];
              bdata = new Object[3][1];
              bdata[0][0]="Termination";
              bdata[1][0]="Retirement";
              bdata[2][0]="Death";
              int j = 0;
                        //int i;
              for (int i = 0; i < TableData.getNumRows(); i++) {
                             //HersheyTeamViewerAIPBean zAIPBean = (HersheyTeamViewerAIPBean)TableData.getRow(i);
                   j = 0;
              //for (JCO.FieldIterator e = TableData.fields(); e.hasMoreElements(); ){
                   JCO.FieldIterator e = TableData.fields();
                   while (e.hasMoreElements()) {
                             JCO.Field field = e.nextField();
                             data<i>[j] = field.getString();
                             j = j + 1;
                        TableData.nextRow();
              this.model = new DefaultTableViewModel(data, colTitle);
              this.setOldTableViewModel(data, colTitle);
              bmodel = new DefaultTableViewModel(bdata, colTitleB);

  • How to insert a parameter into MySql from JSP using bean

    Hai.........
    The files i hav used are: DbConnection.java, LogBean.java, login.jsp, checkUser.jsp, existingUser.jsp, newUser.jsp...................
    I hav problem in newUser.jsp................................................
    ie: plz giv an appropriate code for this code:.........................................
    resultSet = connectionBean.execUpdate("insert into userLogin values('"+uName+"','"+pWord+"') ");
    Message was edited by:
    jaseemkhan

    Here is the code fragment.
    File file = new File ("c:\\t.gif");
    FileInputStream in = new FileInputStream (file);
    int len = (int)file.length();
    PreparedStatement pst = null;
    pst = conn.prepareStatement ("insert into blob_table values (1, ?)");
    pst.setBinaryStream (1, in, len);
    pst.executeUpdate();
    pst.close();
    conn.commit();

  • Urgent : Data Passing Problem in JSP dynpage using bean in SP11

    Hi all
    I am trying to pass data from my jspdynpage to jsp using bean , which is not at all passing any values
    i am pasting code below which works in 6.0 sp09
    I dont know what is happening in sp11
    please suggest me in this situation
    public static class LeaderStatusOverviewDynPage extends JSPDynPage{
        private LeaderStatusBean myBean = null;
        public void doInitialization(){
            this.ensureBeanisSetup();
        public void doProcessAfterInput() throws PageException {
        public void doProcessBeforeOutput() throws PageException {
          this.setJspName("leaderstatus.jsp");
        public void ensureBeanisSetup(){
                IPortalComponentRequest request       = (IPortalComponentRequest)this.getRequest();
                            IPortalComponentContext myContext     = request.getComponentContext();
                //IPortalComponentProfile profile = myContext.getProfile();
                      Object o = myContext.getValue("myBean");
                      if(o==null || !(o instanceof LeaderStatusBean)){
                        myBean = new LeaderStatusBean();
                        myBean.setMessage("This String From Bean");
                        myContext.putValue("myBean",myBean);
                      } else {
                          myBean = (LeaderStatusBean) o;
    My jsp page
    <jsp:useBean id="myBean" scope="application" class="bean.LeaderStatusBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <hbj:form id="myFormId" >
       <% Date today = new Date(); %>
       <h1> This is Test page for NOVA Chemicals </h1>
       <br><br>
       <font color = "blue" size = "4"><center>
       <%=today%>
       </center>
       <br><br> This is the message of Connection  :
       <%=myBean.getMessage()%>
       </font>

    Hallo Prakash,
    I am developing with EP SPS12 and am facing the exact same situation. Values passed to the bean from the dynPage do not get through to the jsp. When removing the respective lines in the portalapps.xml I get a portal runtime exception.
    I am posting my portalapps and the jsp where importing the beans. What am I missing here? Any help would be greatly appreaciated! Thank you in advance.
    BR
    Helga
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
      </application-config>
      <components>
        <component name="AdminComponent">
          <component-config>
            <property name="ClassName" value="com.company.AdminComponent"/>
            <property name="SecurityZone" value="com.company.AdminComponent/low_safety"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/AdminComponentView.jsp"/>
          </component-config>
        </component>
      </components>
      <services/>
    </application>
    <jsp:useBean id="dropDownListBean" scope="application" class="com.company.bean.DropDownListBean" />

  • How can write string in jsp on beans..

    Hello.
    My English ability very poor sorry....
    I am developing jsp using beans..
    I want to see value on beans....
    but I can't see....
    I want to check my values...
    plz help me....
    how can I view my String , int... on the beans....

    Write a "getter" method for each variable you want to be able to read in the JSP.
    example:
    public class yourBean
    // ... some code, contructor, etc...
    private String yourVariable;
    public void setYourVariable(String s)
    yourVariable = s ;
    public String getYourVariable()
    return yourVariable ;
    You can retrieve the value in your jsp with any of these ways:
    1) use the <jsp:getProperty> tag
    2) <%= yourBean.getYourVariable() %>
    3) <% String s = yourBean.getYourVariable() %>
    }

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

  • Using java beans in jsp using tomcat

    hi i have made a form to enter user first name and last anme with html and then i have made a value javabean in which i want to store the information filled bu user. i want to display the information stored in java bean in jsp page i have made the full application and i have made class file of java bean as well as jsp file but when i try to run this web application in tomcat i am getting class not found exception.
    could anybody tell me that where i should store the bean class in tomcat and do i need to make any package in which i have to place my java bean file plz tell me complete procedure along with code if possible

    whew thats a lot of questions... All of this is pretty basic stuff. I would recommend you take a look at the web services tutorial: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    lets see.
    Starting a package name with com is just a generic standard which is followed.
    It is most correct when creating commercial packages to create packages like com.companyName.project
    http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html
    You should not need a page import directive unless you are using classes in scriptlets: ie <% %> tags in your JSP. Your jsp:useBean tag will automatically import necessary classes - you don't need to import classes for beans specifically
    <jsp:useBean id="myClass" scope="session" class="com.myPackage" />
    Your directory structure should be something like this
    webApplicationRootDirectory
    - page1.html
    - page2.html
    - page3.jsp
    - page4.jsp
    - WEB-INF
         - web.xml
         - classes
           - com
             - myPackage
               - myClass.classerrrm. Thats about it I think.

  • How to run jsp using  tomcat server?

    hai friends,
    i'm using jsp for my application and for that i'm using tomcat server.
    i was runing my jsp files like this
    http://localhost:8080/examples/jsp/myapp/index.jsp but instead of this
    i need to run my jsp files like this
    http://localhost:8080/myapp/index.jsp
    what r the changes that i should do in tomcat installation to run myapplication in such a way.
    thanks in advance

    you need to redefine the server root...
    for that do the following...
    copy all the directory tree rooted at
    JAKARTA-HOME/webapps/ROOT/examples/jsp/myapp/ to
    JAKARTA-HOME/webapps/ROOT/myapp/
    -OR-
    in the server.xml, search for "Tomcat Root Context" and un-comment the code defining Root Context...
    change the docBase value from "ROOT" to "ROOT/examples/jsp"
    that shud help...
    -Pranav
    hai friends,
    i'm using jsp for my application and for that i'm
    using tomcat server.
    i was runing my jsp files like this
    http://localhost:8080/examples/jsp/myapp/index.jsp but
    instead of this
    i need to run my jsp files like this
    http://localhost:8080/myapp/index.jsp
    what r the changes that i should do in tomcat
    installation to run myapplication in such a way.
    thanks in advance

  • How use bean of array with tag "jsp:useBean"??

    hi,all
    a bean of array put request with a servlet and forward a jsp page,this jsp use "jsp:useBean" of tag get the bean of array.
    how do for jsp:useBean of tag??
    thx.....

    You can't use an array directly in a jsppage. first u have to write the line <useBean /> through which you can access youtr class
    <jsp:useBean id="email" class="Pack.Email" scope="session" />
    after writing this line you have your class in your hand, you can think of "email" as it is a class object of Email class which is a Bean...
    declare a private array in the Bean and then made method getArray() which will return an array ... then you can use your array in jsp....
    an example of using a class variable in JSp is given below
    public String[] getArray() // note method must be public
    return array;
    now in your jsp page you have to use that class with
    <jsp:useBean id="email" class="Pack.Email" scope="session" />
    and cnow you can use array like this....
    <%
    String[] array=email.getArray();
    for (int i=0; i< array.length;i++ )
    out.println(array]);
    %>
    Does it solve your problem now ?

  • Issues running JSP using Tomcat

    Hello,
    I have installed Eclipse 3.0, Tomcat 5.0 with JDK 1.4.2 . I can view HTML pages but not JSP pages. I am able to run java code and servlets on Eclipse/Tomcat. When I point to a JSP page the page gives the following error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:434)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:492)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:471)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    org.apache.tools.ant.taskdefs.compilers.Compile
    Any help is much appreciated.

    Like the message says, you haven't set the JAVA_HOME variable correctly.
    Have you set it?
    It should point to the ROOT of your java install
    eg
    JAVA_HOME = c:\j2sdk1.4.2_04
    Are you running Tomcat through Eclipse, or on its own?

  • Using Beans in jsp

    hi all,
    i am using bean in my jsp page.but it is not working it shows error. i have run this with even Tomcat or WebLogic. even i have just Copy paste code from net.
    the code is
    index.jsp
    <%@ page errorPage="errorpage.jsp" %>
    <jsp:useBean id="counter" scope="session" class="beans.Counter" />
    <html>
    <head>
    <title>Session Bean Example 1</title>
    </head>
    <body>
    <H3>Session Bean Example 1</H3>
    <center><b>The current count for the counter bean is: </b>
    <%=counter.getCount() %></center>
    </body>
    </html>
    Bean -Counter.java
    package beans;
    import java.io.Serializable;
    public class Counter implements Serializable{
    int count = 0;
    public Counter(){
    public int getCount() {
    count++;
    return this.count;
    public void setCount(int count) {
    this.count = count;
    and error on browser is
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(3,0) The value for the useBean class attribute beans.Counter is invalid.
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: /index.jsp(3,0) The value for the useBean class attribute beans.Counter is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1174)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3320)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Please let me know how can i handle this situation

    Try this
    After<hsp:useBean>
    <jsp:setProperty name="counter" property="setCounter" value=1 />
    <jsp:getProperty name="counter" property="getCounter" />

  • JSP:useBean in Tomcat with external libraries

    Hi!
    I would like to use netbeans 4.1 for developing jsp-pages, but are facing a problem when trying to use the built-in jsp compiler.
    in my code I use something like:
    <jsp:useBean id="id" class="package.Classname" scope="application" />while package is an external package initially created from JAXB. To include it into netbeans, I have put the directory containing all the classes into the build libraries and also into the test libraries. In the 'Projects'-Explorer it shows all the classes contained.
    When I try to run the jsp-File, I get an error like this:
    Compiling 1 source file to C:\Develop\ApplicationDescriptionGenerator\build\generated\classes
    C:\Develop\ApplicationDescriptionGenerator\build\generated\src\org\apache\jsp\general_jsp.java:48: cannot find symbol
    symbol: class Classname
    location packageI do not understand this behaviour, especially, as the 'web' folder created by netbeans includes all necessary classes, and when I copy it to my tomcat installation, it works fine.
    Does anybody know, what I have to change, so that I can test it from inside netbeans?
    Thanks a lot!

    Here is the java program or bean class that I'm using, UserData.java compiled into UserData.class:
    public class UserData {
    String username;
    String email;
    int age;
    public void setUsername( String value )
    username = value;
    public void setEmail( String value )
    email = value;
    public void setAge( int value )
    age = value;
    public String getUsername() { return username; }
    public String getEmail() { return email; }
    public int getAge() { return age; }
    To put the data into the session, I used the following form:
    <HTML>
    <BODY>
    <FORM METHOD=POST ACTION="SaveName.jsp">
    What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
    What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
    What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
    <P><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    and SaveName.jsp is this:
    <jsp:useBean id="user" class="UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <HTML>
    <BODY>
    Continue
    </BODY>
    </HTML>

Maybe you are looking for

  • Process does not follow the routing ends up in complete status

    Installed Adobe LiveCycle server ES 2.5 with SQL Server 2008 as database And followed the tutorial 'Create Your First LiveCycle Application' Deployed it on the server when I test the same i.e. when the workspace user fills in form details and hits co

  • Specific number of rows within field(s)

    I'd like to get Top-N of Amt within Name&Loc as shown below. Is there a way to reset either COUNT or ROWNUM to get this result? Name---Loc--(ROWNUM)--Amt James--abc--------1--1000 James--abc--------2---900 James--abc--------3---750 James--def--------

  • Java EE End Of Support

    I've found information here [http://java.sun.com/products/archive/eol.policy.html] that indicates that support for Java SE 1.4 ends summer 2008, and Java SE 1.5 ends in October 2009. Does the same apply to Java EE 1.4 and 1.5? If not, what are the EO

  • Problem connecting two seperate straight line paths. Please help!

    Hi there, I'm new to illustrator and have been having a problem connecting two straight line paths. They never seem to line up correctly. Attached is a photo of the problem. I assume this is an easy fix but I can't figure it out myself.

  • Where is my Apple TV home page with YouTube, Netflix, etc..?

    My main screen on my apple TV is only showing "Computers" and "Settings". Where is the other options screen with tabs such as Netflix?