Scanning and displaying in JSP

Hai
I want to sacn an image and i want to display in the browser i mean in jsp page is there any API is doing this or else how can i achieve this
thanx in advance
suresh

Hai,
Thanx for ur reply.
But my reqirement is that i want to scan an image from the scanner and then i want to display that image in the browser i mean in the jsp page is there anyway to access an image from the scanner and display it in the browser
thanx in advance
suresh

Similar Messages

  • How to retrieve data and display in JSP page

    hi,
    i am trying to retrieve data from SQL server 2000 and display in JSP Page. I have already place the codes of the retrieve in the bean file. I wanna ask is that how to display in the JSP page. If possible, can provide example codings for mi to reference?
    Thanks
    Regards,
    shixuan

    HI Tan ,
    I pressume that you wanted to make use of PDK, the code can go like this .
    <b><u>1) JAVA file</u></b>
    import com.sapportals.htmlb.DropdownListBox;
         import com.sapportals.htmlb.InputField;
         import com.sapportals.htmlb.event.Event;
         import com.sapportals.htmlb.page.DynPage;
         import com.sapportals.htmlb.page.PageException;
         import com.sapportals.portal.htmlb.page.JSPDynPage;
         import com.sapportals.portal.htmlb.page.PageProcessorComponent;
         import com.sapportals.portal.prt.component.IPortalComponentRequest;
         import com.sapportals.portal.prt.component.IPortalComponentSession;
         import com.sapportals.portal.prt.component.IPortalComponentContext;
         import java.sql.*;
         public class P_SAP_B_User extends PageProcessorComponent
         * Method          :           getPage()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          Object of Class DynPage     
              public DynPage getPage()
                  return new P_SAP_B_UserDynPage();
                }     // end of dynPage()
                public static class P_SAP_B_UserDynPage extends JSPDynPage
                  /* Variable Declaration     */
                   /* Object of bean class P_SAP_B_CreateUser initialised to null */
                       private P_SAP_B_CreateUser createUserBean = null;
                  /* Flags for checking the occurance of Event & Error. */
                  private int iFlag=0;
                  private int iErrFlag=0;
                  /* Variables for storing the information
                          entered by user in each text field */
                  private String sFname;
                  private String sSname;
                  private String sAge;
                  private String sExp;
                  private String sSkill;
                  private String sUnit;
         * Method          :           doInitialization()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          None
                  public void doInitialization()
                         IPortalComponentSession componentSession = ((IPortalComponentRequest)getRequest()).getComponentSession();
                         Object o = componentSession.getValue("createUserBean");
                         if(o==null || !(o instanceof P_SAP_B_CreateUser))
                           createUserBean = new P_SAP_B_CreateUser();
                           componentSession.putValue("createUserBean",createUserBean);
                        }     // end of if
                         else
                             createUserBean = (P_SAP_B_CreateUser) o;
                         }     // end of else
                   }//end of doInitialisation()
         * Method          :           onUpdate()
         * Description      :                         
         * Input Parameters     :     object of Event class
         * Returns          :          None
                   public void onUpdate(Event e)throws PageException
                        /*     sets flag to 1 when update button is clicked. */
                        iFlag=1;
         * Method          :           doProcessAfterInput()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          None
                  public void doProcessAfterInput() throws PageException
                             InputField ifFirstName = (InputField) getComponentByName("FirstName");
                             InputField ifSecondName = (InputField) getComponentByName("SecondName");
                             InputField ifAge = (InputField) getComponentByName("Age");
                             InputField ifExp = (InputField) getComponentByName("Exp");
                             InputField ifSkill = (InputField) getComponentByName("Skill");
                             DropdownListBox dlbUnit = (DropdownListBox) getComponentByName("Unit");
                             int iAge,iExp;
                             IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
                            IPortalComponentContext myContext = request.getComponentContext();
                             P_SAP_B_CreateUser myNameContainer = (P_SAP_B_CreateUser) myContext.getValue("createUserBean");
                             if(ifFirstName != null)
                                  this.sFname = ifFirstName.getValueAsDataType().toString() ;
                             }     // end of if
                             if(ifSecondName!= null)
                                  this.sSname = ifSecondName.getValueAsDataType().toString() ;
                             }      // end of if
                             if(ifAge!= null)
                                  this.sAge = ifAge.getValueAsDataType().toString() ;
                             }     // end of if
                             if(ifExp!= null)
                                  this.sExp = ifExp.getValueAsDataType().toString() ; 
                             }     // end of if                         
                             if(ifSkill != null)
                                  this.sSkill = ifSkill.getValueAsDataType().toString() ;          
                             }     // end of if
                             if(dlbUnit != null)
                                  this.sUnit = dlbUnit.getSelection().toString() ;     ;
                             }      // end of if
                          /* Data Validation */
                             /* try block for numeric Exception */
                             try
                                 /* checking for any field left blank by the user */
                                  if(sFname.equals("") || sSname.equals("") ||  sAge.equals("")|| sExp.equals("") || sSkill.equals(""))
                                        /* set error flag to 1 in case of any field left blank */
                                        iErrFlag=1;
                                  } // end of if
                                  else
                                        /* converting Age and Experience fields (String) to integer */
                                         iAge= Integer.parseInt(sAge);
                                         iExp= Integer.parseInt(sExp);
                                       /* setting the boundaries on the value in Age Field */
                                         if(iAge<0)
                                             /* set error flag to 2 in case of age below 0 */
                                             iErrFlag=2;
                                         }// end of if
                                       /* setting the boundaries on the value in Experience field */
                                          else if(iExp<0 ||(iExp/12)>=iAge)
                                              /* set error flag to 3 in case of experience below 0 or exceeding the age in years */
                                              iErrFlag=3;
                                          }// end of else if
                                          /* In case of no error */
                                          else
                                             /* setting the bean variables */
                                             try
                                                 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                                                 Connection con = DriverManager.getConnection("jdbc:odbc:Test");
                                                 String query="insert into UserData values(?,?,?,?,?,?)";
                                                 PreparedStatement prestat=con.prepareStatement(query);
                                                 /* setting the values to be inserted into the user table */
                                                 prestat.setString(1,sFname);
                                                 prestat.setString(2,sSname);
                                                 prestat.setString(3,sAge);
                                                 prestat.setString(4,sExp);
                                                 prestat.setString(5,sSkill );
                                                 prestat.setString(6,sUnit);
                                                 prestat.executeUpdate() ;
                                                 prestat.close();
                                                 con.close();
                                                 myNameContainer.setSFname(sFname);
                                                 myNameContainer.setSLname(sSname);
                                                 myNameContainer.setSAge(sAge);
                                                 myNameContainer.setSExp(sExp);
                                                myNameContainer.setSSkill(sSkill);
                                                myNameContainer.setSUnit(sUnit);
                                             } // end of inner try block
                                              catch(Exception sqle)
                                                 myNameContainer.setErrMessage("Update failed ! Please try again." );
                                              } // end of catch corresponding to inner try
                                                           } // end of inner else
                                                      } //end of outer else
                                   } //end of outer try block
                                   catch(Exception e)
                                     /* setting flag to 4 in case of non-numeric age/experience values */
                                     iErrFlag = 4;
                                     /* Displaying error message corresponding to the value of error flag */
                                  switch(iErrFlag)
                                    /* Empty Field */
                                    case 1:myNameContainer.setErrMessage( "Please Fill all the fields");
                                    break;
                                    /* Invalid Value in the age field */
                                    case 2:myNameContainer.setErrMessage( "Enter a valid value in Age field.(Hint : Have you entered Age<0 ?");
                                    break;
                                    /* Invalid Value in the experience field */
                                    case 3:myNameContainer.setErrMessage( "Enter a valid value in Experience field.(Hint : Experince should not be negative or greater than your age in months)");
                                    break;
                                    /* Non-numeric value in the Age/ experience fields */
                                    case 4:myNameContainer.setErrMessage( "Please Enter Numeric Value for Age and Experience");
                                    break;
                                 } // end of switch-case block
              } //end of doProcessAfterInput()
         * Method          :           doProcessBeforeOutput()
         * Description      :                         
         * Input Parameters     :     None
         * Returns          :          None
                  public void doProcessBeforeOutput() throws PageException
                       /* Displays Form for new user creation by default */
                       this.setJspName("P_SAP_B_UserCreationForm.jsp");
                         /* In case of an error display an error message page */
                         if(iErrFlag!=0)
                              setJspName("ErrorPage.jsp");
                         } //end of if
                         /* Displays the user's information as entered in the SQL
                            database after its been uploaded by the user */
                         else if(iFlag==1)
                             setJspName("hello.jsp");      
                          } // end of else if
                  } // end of doProcessBeforeOutput()
              } // end of P_SAP_B_UserDynPage Class
         } // end of P_SAP_B_User class
    * End of File P_SAP_B_User.java
    2) Bean
    package com.sap.usercreation;
    import java.io.Serializable;
    public class P_SAP_B_CreateUser implements Serializable
         private String sFname;
         private String sLname;
         private String sUnit;
         private String sSkill;
         private String sExp;
         private String sAge;
         private String errMessage;
         * @return
         public String getSFname() {
              return sFname;
    * @return
    public String getSLname() {
         return sLname;
    * @param i
    * @param string
    public void setSFname(String string) {
         sFname = string;
    * @param string
    public void setSLname(String string) {
         sLname = string;
    * @return
    public String getSUnit() {
         return sUnit;
    * @param string
    public void setSUnit(String string) {
         sUnit = string;
    * @return
    public String getSSkill() {
         return sSkill;
    public void setSSkill(String string) {
         sSkill = string;
    * @return
    public String getSAge() {
         return sAge;
    * @return
    public String getSExp() {
         return sExp;
    * @param string
    public void setSAge(String string) {
         sAge = string;
    * @param string
    public void setSExp(String string) {
         sExp = string;
    * @return
    public String getErrMessage() {
         return errMessage;
    * @param string
    public void setErrMessage(String string) {
         errMessage = string;
    3) The Jsp file i have already posted.
    See if you copy this code and paste it wont work as i have not given you full code ,But yes this gives you an overview of how things can be done .
    Thanx
    Pankaj

  • How to pass arraylist of object from action class to jsp and display in jsp

    I need to do the following using struts
    I have input jsp, action class and action form associated to that. In the action class I will generate the sql based on the input from jsp page/action form, create a result set. The result set is stored as java objects in a ArrayList object.
    Now I need to pass the arraylist object to another jsp to display. Can I put the ArrayList object in the request object and pass to the success page defined for the action? If this approach is not apprpriate, please let me know correct approach.
    if this method is okay, how can I access the objects from arraylist in jsp and display their property in jsp. This java object is a java bean ( getter and setter methods on it).
    ( need jsp code)
    Can I do like this:
    <% ArrayList objList = (ArrayList)request.getattribute("lookupdata"): %> in jsp
    (***I have done request.setattribute("lookupdata", arraylistobj); in action class. ***)
    Assuming the java object has two properties, can I do the following
    <% for (iint i=0. i<objList.size;I++){ %>
    <td> what should i do here to get the first property of the object </td>
    <td> what should i do here to get the first property of the object </td>
    <% }
    %>
    if this approach is not proper, how can I pass the list of objects and parse in jsp?
    I am not sure what will be the name of the object. I can find out how many are there but i am not sure I can find out the name
    thanks a lot

    Double post:
    http://forum.java.sun.com/thread.jspa?threadID=5233144&tstart=0

  • Store Hindi Text in SQLServer and Display in JSP

    I've list of users for which I'm preparing objects of User class in which the user name is stored in hindi text.
    In the servlet which is storing the values in the database, the code is
    User = new User();
    user.setName(java.net.URLEncoder.encode(request.getParameter("userName"), "UTF-8"));I've submitted *&#2325;&#2376;&#2360;&#2375; &#2361;&#2379;* It is stored in the database in the following format
    *%C3%A0%C2%A4%C2%95%C3%A0%C2%A5%C2%88%C3%A0%C2%A4%C2%B8%C3%A0%C2%A5%C2%87+%C3%A0%C2%A4%C2%B9%C3%A0%C2%A5%C2%8B*
    When I get the data from the database and create user object and then stored it in a vector and put it in session.
    In the JSP,
    user.getName()is displaying
    *%C3%A0%C2%A4%C2%95%C3%A0%C2%A5%C2%88%C3%A0%C2%A4%C2%B8%C3%A0%C2%A5%C2%87+%C3%A0%C2%A4%C2%B9%C3%A0%C2%A5%C2%8B*
    and
    java.net.URLDecoder.decode(user.getName(), "UTF-8")is displaying
    कैसे हो
    I tried using
    request.setCharacterEncoding("UTF-8");in the servlet and
    <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>in the JSP.
    Any suggessions?

    hi ravi...
    i had also did the same one but not in Hindi it is in Chinese language.before inserting the data into database we need convert hexadecimal code to your hindi string and you store that hex decimal value into database.
    when you retrive data from database again u convert this string to general integer format and display it.
    observe the below code..
    public String settingValue(String call) {
              System.out.println("String Value in setting::\n" + call);
              String chineseName = "";
              StringTokenizer unicodeArray = new StringTokenizer(call, "\\\\u");
              while (unicodeArray.hasMoreTokens()) {
                   String s = (String) unicodeArray.nextToken();
                   System.out.println("\nValue In setting Value::" + s);
                   chineseName += unicodeTochineseCharacter(s);
              return chineseName;
    public static String unicodeTochineseCharacter(String unicode) {
              String output = "";
              try {
                   System.out.println("\nValue In U2C::" + unicode);
                   char i = ' ';
                   i = (char) Integer.parseInt(unicode.trim(), 16);
                   output = String.valueOf(i);
                   System.out.println(" before returning..." + output);
              } catch (Exception e) {
                   System.out.println("Exception In Unicode to Chinese::\n" + e);
              return output;
         }let me know weather you need any other details...

  • Creating Bar Charts using Java and Display in jsp

    Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?

    I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
    1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
    2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
    So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
    by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component?

  • Barcode scanning and displaying other details on the screen

    Hi All,
    I have a requirement to replace the existing leagacy which has a POS functionality screen with SAP Screen.
    Currently the leagcy does the following function.
    When the user scan the Barcode of the product, other details of that are reflected and displayed.
    The same requriement has to be developed in ABAP.
    When the user scan the barcode, the details of the product should be displayed on the screen.
    This functionality is same as in POS.
    Kindly let me know how to proceed ...as I am unable to find any event where in after just scanning the barcode the detials of barcode are captured on screen field but how and which code/event triggers the other details to be displayed on the screen without any action from the user except scanning the barcode.
    Thanks in advance for any clarification and suggetion.
    Regards..
    Shakeel.

    Hi,
    the barcode scanner should be set up to trigger an Enter key after scanning a barcode.
    This will trigger your PAI right after scanning a barcode, so you can easily handle the input and process it as necessary.
    There is really no difference between entering the input through keyboard and pressing Enter, and entering it using a barcode scanner.
    You won't need anything else apart from the standard PAI/PBO processing.

  • I want to reduse size of BLOB and display in jsp

    Please help me ,and if is possible than send me code for resize and display BLOB image injsp page

    Resizing: check the Java2D API. Tutorial.
    Displaying: create a servlet which writes the InputStream from the ResultSet to the OutputStream of the HttpServletResponse. Then call that servlet along an unique parameter in the <img> tag. Example.
    Resizing is a fairly expensive task, have you considered resizing it before saving in database? Then you need to do it only once.

  • Store UTF-8 in Datatbase and Display in JSP

              Hi all,
              I am developing a software with unicode support, but I am in trouble with it.
              The System configuration is:
              OS: Windows2000 (English)
              Database: Oracle8i 8.1.7.0.1 (NLS_LANG = .UTF8)
              Application Server: Bea WebLogic Server 6.1
              My problem is:
              I have 3 JSP.
              The first one is a form for data input.
              The second one is validation. It displays the data user filled in first jsp.
              The third one is the result. It displays the data user filled in first jsp.
              The data will be packed into a value object and this value object will be set to
              session.
              The data of second jsp is got from the value object that is set in session.
              The data of third jsp is got from database. The data fetched from database will also
              be packed into
              a value object.
              When I input &#38651;&#35222;(Big5) in the first JSP, the second JSP will display
              &#40635;&#35219;(Big5),
              but the third JSP will be fine, it display &#38651;&#35222;(Big5) correctly.
              (If the data of second JSP is got from request, the result is same.
              You may need to use Big5 Encoding to view this page if the characters do not display
              correctly.)
              The main problem is that if the data is got from database, it will be fine.
              But if it is got request or session, the result is incorrect.
              I would be appreciate if anyone can help me to solve this problem !
              Kammau
              

              Thanks for your help.
              If I add
              <context-param>
              <param-name>weblogic.httpd.inputCharset./*</param-name>
              <param-value>UTF-8</param-value>
              </context-param>
              in web.xml
              I also need to add
              "<%@page contentType="text/html;charset=Big5" %>" in all jsps
              Then, it will be fine in the validate page(It is the second JSP).
              However, it will not display correctly in the third JSP that the data is got from
              database.
              Thanks in advance!
              Kammau
              "Piotr Czarnas" <[email protected]> wrote:
              >Maybe you need to tell weblogic to parse requiest parameters as UTF-8?
              >This WEB-INF/web.xml file should help:
              >
              ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
              >2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              ><web-app>
              > <context-param>
              > <param-name>weblogic.httpd.inputCharset./*</param-name>
              > <param-value>UTF-8</param-value>
              > </context-param>
              ></web-app>
              >
              >This parameter "weblogic.httpd.inputCharset./*" makes weblogic treat request
              >parameters as UTF-8.
              >
              >Piotr Czarnas
              >Finex@q
              >
              >
              >
              

  • Store UTF-8 in Database and Display in JSP(URGENT)

    Hi all,
    I am developing a software with unicode support, but I am in trouble with it.
    The System configuration is:
    OS: Windows2000 (English)
    Database: Oracle8i 8.1.7.0.1 (NLS_LANG = .UTF8)
    Application Server: Bea WebLogic Server 6.1
    My problem is:
    I have 3 JSP.
    The first one is a form for data input.
    The second one is validation. It displays the data user filled in first jsp.
    The third one is the result. It displays the data user filled in first jsp.
    The data will be packed into a value object and this value object will be set to session.
    The data of second jsp is got from the value object that is set in session.
    The data of third jsp is got from database. The data fetched from database will also be packed into
    a value object.
    When I input �q��(Big5) in the first JSP, the second JSP will display ���V(Big5),
    but the third JSP will be fine, it display �q��(Big5) correctly.
    (If the data of second JSP is got from request, the result is same.
    You may need to use Big5 Encoding to view this page if the characters do not display correctly.)
    The main problem is that if the data is got from database, it will be fine.
    But if it is got request or session, the result is incorrect.
    I would be appreciate if anyone can help me to solve this problem !
    Kammau

    If I add "<%@page contentType="text/html;charset=Big5" %>",
    I also need to add the following lines in web.xml
    <context-param>
    <param-name>weblogic.httpd.inputCharset./*</param-name>
    <param-value>UTF-8</param-value>
    </context-param>
    Then, it will be fine in the validate page(It is the second JSP).
    However, it will not display correctly in the third JSP that the data is got from database.
    Thank you in advance.
    Kammau

  • Fetching record from table and displaying in JSP while loading page -struts

    Hi all,
    I have a problem relating to struts .
    I am fetching records from database and I want to diaplay those records in corresponding fields in the jsp page.
    I am using Struts MVC Framework.
    I am giving the sample code below.
    In my action class i am giving the following code.
    String sql="Select empname from emp where empcode='1' ";
    ResultSet rs=S.executeQuery(sql);
    if(rs.next()){
    EditForm e=new EditForm();
    e.setEmpname(rs.getString(1));
    In my Action Form
    I gave setter and getter methods for Empname
    public String getEmpname() {
    return empname;
    public void setEmpname(String empname) {
    this.empname = empname;
    In my jsp gave
    <html:form method="POST" action="submitForm.do?action=1" >
    <html:text property="empname" />
    </html:form>
    The targets given are correct and it is being redirected.
    But the value is not displaying in the textbox while the jsp is loading.
    There is a record for the sql query.
    Anybody please help me out
    It is very urgent
    Thank You
    Parvathy

    Now in the following code, why are u creating a new form?
    Why dont you use the form which is input to the Action Class's execute methof?
    if(rs.next()){
    EditForm e=new EditForm();
    e.setEmpname(rs.getString(1));
    }Thanks and regards,
    Pazhanikanthan. P

  • Read a property file value and display in jsp page

    I need a solution for the below mentioned scenario,
    I want to read a value from the property file in JSP page.
    For Example, Let us have a property file called A.properties, in the file, we have a value, username = Sam.
    I want to bring this value in the jsp page.
    Please assist in this issue.
    thanks in advance.

    If you are using struts, then you have to first load the taglib like
    <%@ taglib uri="/WEB-INF/strutsresources/struts-bean.tld" prefix="bean" %>and then access the particular property like
    <bean:message key="welcome"/>Also, you have to define <message-resources> in struts-config. Though I am not into struts for year now, So, please confirm the code.

  • Retrieve data  from entity bean to struts and display in JSP

    I am integrating Struts+EJB3.0.
    Now i need to retrieve data stored in mysql database through entity bean to struts framework*(Action Form*).Then i need to display it in JSP page.(display using combo box).
    Please Any one give suggestions!!!!!
    Thanks in advance

    I got the solution.
    --Jagan.+                                                                                                                                                                                                                               

  • Open a pop up window and display new jsp in it

    i want to open a pop up window (from a jsp)when i click a link ,
    the opened pop up window is a different jsp where i have to pass an action event to the struts action doing some functionalities and then forward to that jsp.
    example:
    create.jsp has a link that uses java script to open the pop up.
    the pop up should open search.jsp after going to the action.
    what needs to be done:
    1-open pop up
    2-pass action event to the struts action
    3-open the new jsp in the pop up
    kindly assist me in this issue

    See for example Window Link taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm
    or
    http://www.servletsuite.com/servlets/winlinktag.htm

  • Database connection and display in JSP page

    hi,
    I am new to SAP netweaver. I have created a project using JSPDynPage, Beans and java file. I have configure the datasouce in Visual Composer. I deploy the project on the portal itself. I have try all kinds of codes bt cannot retrieve. Is there anyone can give a same codes for mi to connect to the datasource in Visual Composer and able to retrieve data, insert data and update data in SQL Server 2000. Thanks
    Regards,
    shixuan

    Hai Shixuan,
    Refer this link. I will helps
    Access data from SqlServer through Visual Composer.....?
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fe/68e343cc68414da4426258d3e896ae/content.htm
    Write this code wher you need in JSPDynPage
    And
    MSSQL DataBase Access -> Help me
    Thanks and Regards
    Venkatesh
    Message was edited by:
            Venkatesh Ranganathan
    Message was edited by:
            Venkatesh Ranganathan

  • Put  list on session snd display on jsp

    hi I have some like List<hallA> allFound = new ArrayList<hallA>();
    while(rs.next()){   
                           hallA myselect= new hallA();
                           myselect.setName(rs.getString("name"));
                           myselect.setGender(rs.getString("gender"));
                           myselect.setHall(rs.getString("hall"));   
                           myselect.setRnumber(rs.getString("rNumber"));               
                           myselect.setCurricumlum(rs.getString("curricumlum"));
                           myselect.setYear(rs.getString("year"));
                           myselect.setMobilNo(rs.getString("mobilNo"));
                           myselect.setEmail(rs.getString("email"));
                           myselect.setStatue(rs.getString("statue"));
                           myselect.setFinalYear(rs.getString("finalYear"));
                           myselect.setPeriodOne(rs.getString("periodOne"));
                           myselect.setPeriodTwo(rs.getString("periodTwo"));               
                          myselect.setUniversityN(rs.getString("universityN"));                                     
                           allFound.add(myselect);
                      }// end while right now, i want to put allFound into session and display in jsp , how to do that
    in servlt i can
    display them like
    for(int j=0; j<allFound.size(); j++){
                          mydata=(hallA)allFound.get(j); 
                      out.println("<tr>");                
                      out.println("<td>"+ mydata.getUniversityN()+"</td>");thank you

    In a servlet:
    session.setAttribute("myselect",myselect);
    On the JSP page:
    <% MySelect mySelect = (MySelect)session.getAttribute("mySelect");%>
    Note on the jsp page, you will have to import the package that mySelect class exist in via something like <@page import="packageName.MySelect">
    ( I dont remember the correct syntax).

Maybe you are looking for

  • How do I delete an iCloud email address that was created under my Apple ID?

    I have an Apple ID that is used mostly for iTunes.  My son has an iPod Touch and wanted to create an iCloud email address to use on his iPod.  We created an iCloud email address through my Apple ID, not realizing that now, every time he sends an emai

  • Why do borders appear randomly?

    Strange things happen when I select cells to place borders.  When the first cell is selected, works OK.  When the second cell is selected, some line tracing back to the first appear.  Sometimes the lines extend beyond the second cell but only half wa

  • Purchasing Info Records data upload

    Hi, I am uploading purchasing info records using LSMW and the batch input object 0060. But I do not find ESOKZ in the structures to map the Purchasing Info Records Category. Also, I have LIFNR in my source structure and also I see it in BEIN0. But th

  • [SOLVED] synaptics no tap click.

    I cannot get tapping to work on my touchpad, at least at each restart of X, tapping is lost until I launch gsynaptics and check the box again It become unchecked when I logout. I tried to use the stock synaptics hal fdi file, and looking at Xorg.0.lo

  • Adobe CS5 upgrade questions

    I am a freelance Mac Operator and I am looking to purchase a new Mac and upgrade my version of CS4 (Design Premium) to CS5. Could anyone help with the following: 1. assuming that I do install it on my new Mac, will I need to have version 4 installed