Displaying a cachedRowSetImpl in a jsp! :-(

I am new to servlets and jsps.
I have a problem with cachedRowSetImpl and jsps.
I have a sevrlet (userDisplay) that populates a cachedRowSetImpl object (called crs) and then stores this in a bean called userDisplayBean.
I then want to access this bean from within a jsp page to diplay its results.
How can this be acheived.
Please Please Please help. my uni project deadline is looming :(

Thank you very much for your help.
I am now on my way to solving this mystery.
I have another problem now. In my jsp i have the following lines of code :
<jsp:useBean scope ="request" class="users.userDisplayBean" id="userInfo" />
<jsp:getProperty name="userInfo" property="results" />
I persume that this extracts the cachedRowImpl object from the bean because the browser displays the following:
com.sun.rowset.CachedRowSetImpl@189b939
Th problem that I have now is I cant make the jsp display the results of the CachedRowImpl object in a table.
If anybody knows how to do this please please please let me know.
Thank you very much.

Similar Messages

  • Display pop ups in the jsp by using Java script

    Hi
    can any body say ,how to display pop ups in the jsp by using Java script ?

    that's correct. You can use the below code for AJAX request.
    <script type="text/javascript">
    var httpObject = getHTTPObject();
    //create XMLHttpRequest object
    function getHTTPObject() {     
         var xmlhttp;
         if (window.XMLHttpRequest) // if Mozilla, Safari etc
              xmlhttp = new XMLHttpRequest();
         else if (window.ActiveXObject){ // if IE
              try {
                   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
              catch ( e ){
                   try{
                        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
                   catch ( e ){}
         return xmlhttp;
    //define the function to send the request
    function sendRequest(){
        var currDesc = document.getElementById("description").value;
        var URL =  "manageMaintAction.do"; //action mapping in your struts-config
        var queryString = "currDesc="+escape(currDesc); //get the currDesc value in your action class like request.getParameter("currDesc")
        httpObject.open( "Post", URL, true );
        httpObject.onreadystatechange = cbFn;
        httpObject.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded");
        httpObject.send(queryString);
    //callback fn
    function cbFn() {
        if (httpObject.readyState == 4)
             if (httpObject.status == 200)
              var result = httpObject.responseText;
              alert(result);
    </script>

  • Displaying data in xml using jsp

    how do we display data in database from jsp using xlst format in xml browser view

    how do we display data in database from jsp using xlst
    format in xml browser viewRefer this Post
    http://forum.java.sun.com/thread.jsp?forum=45&thread=482077&tstart=0&trange=15
    -Regards
    Manikantan

  • Display 'no photo' in a JSP when photo is not present in DB

    Hi All
    I have stored an image in database uploded from the JSP. The DB has a BLOB column for the image. I have to display a single record at a time. I am able to display the image at the JSP also using <img> tag and specifying the JSP name fetching the image as the src attribute of the <img> tag.
    My doubt is, if the image is not uploded for that record how to display some error message(like 'No Photo Uploaded') on the JSP page? and how can we also suppy a link to upload the photo, if already not uploaded. Since I am displaying the image as a part of another JSP having an <img> tag to display the image.
    Could someone please help me??
    Thanks & Regards
    Inder Jeet Singh

    Use an attribute to determine whether the record has a photo uploaded or not. Check the attribute value in the JSP and write the scriplet accordingly.
    Example:
    <% if (request.getAttribute("Photo") == null){
    %> <TR>
         <TD align="center" colspan="2">
              <CENTER><IMG src="Photo Source here" height="250" width="375" align="middle">
              </CENTER>
         </TD>
    </TR>
    <% }else{
    %>          
    <TR>
         <TD align="right"><FONT size="1">Building Photo:</FONT></TD>
         <TD><INPUT type="submit" name="" value="Associate Photo" onclick="return buildingPhoto()"></TD>
    </TR>
    <% } %>     
    In the above example I set the Photo attribute to null if there exists a photo.
    Message was edited by:
    srpunreddy

  • Displaying Crystal reports in a JSP Page

    hello,
    Can anybody help me out in displaying Crystal reports on a JSP page.
    which needs to be deployed on weblogic server and oracle database.
    i am new to crystal report and dont have much idea how to proceed.
    if you can give me a pointer how to start then i can proceed.
    waiting for the reply eagerly

    Start with the Crystal reports site.
    [url http://www.businessobjects.com/products/dev_zone/java/default.asp?ref=devzone_main] Java zone has some documentation and basic examples on how to do it

  • Displaying pdf file in a jsp page...

    hi,
    I want to display a pdf document in a jsp page. i got that pdf file from a servlet class(MVC Architecture) through session. now my problem is to display that pdf file in my jsp page. can anyone give me a idea to solve this problem..

    hi,
    i used that code in scriplets. Actually my problem is I got one pdf file from session and i stored that file in a File object. the code is ..
    File pdfDocument = (File) session.getAttribute(CommonConstants.EBILL_PDF_DOCUMENT);
    now i have to display this pdf file in jsp..

  • How to display a pdf file in jsp

    hi,
    How to display a pdf file in jsp iam having a class which will return fileinputstream of the file object. the pdf file is in server.
    regards
    Arul

    A JSP is a combo of HTML and Java, so you can't really "display" a PDF file in a JSP.
    You can provider a href link to the PDF file in your JSP.
    You can use some utility package to read the contents of the PDF, pull certain things out of it, and display that in your JSP as html
    In a servlet you can set the content type to application/pdf and write the binary data of the PDF back to the browser. Once the browser finishes reading in the data it should open the PDF.

  • Displaying Korean Characters on my jsp

    I would like to display korean characters in my jsp....the characters that i want to display are read from an xml file using the sax parser... how will i do this?

    Case 1 - In a JSP only.
    In a JSP you need to set the following and it will display your respective charset. Substitute xxx for your required character set.
    <%response.setContentType="charset=xxx"%>.
    Case 2 - In an XML file and JSP
    If you have an XML file, be sure to define the encoding. Be sure to change the encoding to your Korean charset.
    <?xml version="1.0" encoding="ISO-8859-2"?>
    You will the need to write an XSL which you can apply to your XML file using Xalan and output the resulting HTML in a JSP. I assume your user-agent will be a web browser, although you can use WML, cHTML and VoXML or even another XML file.
    Rajesh Thiharie
    New Delhi, India
    91 124 6455511 x 109 Work

  • Issue with displaying images from bestseller.inc.jsp

    Hello all,
    I'm new in developing with NWDI and I'm having this small problem:
    in bestseller.inc.jsp (which includes productlist.jsp) there are two links with a product's code and a products description, which when clicked, navigate to productDetailsISA.jsp with the details of the product. While the images of all the products from other jsp's (for example from ProductsISA.jsp) display correctly in the ProductDetailsISA.jsp, there is a problem with the images of the products from bestseller and recommendations jsp's (they both include productlist jsp).
    The code for creating the links *in productlist.jsp is the following:
    <li> <a href="<isa:webappsURL name="b2b/productdetail.do"/><%=ShowProductDetailAction.createDetailRequest(product,displayScenario) %>">
                          <%=JspUtil.encodeHtml(product.getDescription()) %>
                        </a> </li>
    and the code for displaying products's images in ProductDetailsISA.jsp is this:
    <td width="7%" rowspan="2" headers="Product image">
                   <img src="<isa:imageAttribute guids="DOC_PC_CRM_IMAGE,DOC_P_CRM_IMAGE" name="webCatItem" defaultImg="mimes/shared/no_pic.gif"/>"   width="250"  height="250"/>
              </td>
    I have no idea how isa:imageAttribute tag works, so I was wandering if this problem is somehow connection with the inner workings of this tag.
    Could someone help please?
    Thank you very much in advance

    I think this is not the right forum to post your Question

  • How to display XML content in a JSP

    Hi,
    can anyone help me in displaying xml content in a JSP?

    I think you want to display value from XML page to the
    JSP.If thats the case you can try out this
    xml...
    <component-profile>
            <property name="parm" value="Hi"/>
    </component-profile>
    jsp...
    <% var=profile.getProperty("parm");%>
    Hope this helps
    gEorgE

  • Displaying a generated pdf in jsp

    I've generated a pdf using jasper report, which is present in the dir(d:/reports), i need to display this file in the jsp(reports.jsp),i cannot create the report in the jsp.....

    You can write a Servlet which would read the file contents using the standard input/output stream of java and render the response...
    For reference find the code snippet:
    String fileName=file.getName();
    response.setHeader("Content-Disposition","attachment; filename=\""+fileName+"\"");
    response.setContentLength((int)file.length());
    response.setContentType("application/zip");
    java.io.InputStream in = null;
    java.io.OutputStream out = null;
    try {
    in = new java.io.BufferedInputStream(new FileInputStream(file) );
    out = new java.io.BufferedOutputStream(response.getOutputStream() );
    pipe(in,out,2048);
    } finally {
    if( in != null ) try {
    in.close();
    } catch( IOException ioException ) { ioException.printStackTrace(); }
    in.close();
    out.flush();
    out.close();
    public  long pipe(java.io.InputStream in, java.io.OutputStream out,
                   int chunkSize) throws IOException {
              if( chunkSize < 1 ) {
                   throw new IOException("Invalid chunk size.");
              byte[] buf = new byte[chunkSize];
              long tot = 0;
              int n;
              while( (n=in.read(buf)) != -1 ) {
                   out.write(buf,0,n);
                   tot += n;
              return tot;
         }

  • How to display List of objects in jsp?

    Hi,
    I have a list containing Collection of bean objects.
    Now I want to display the values in the list of objects in a jsp using JSTL.
    Any body help me how to retrieve the bean objects from the List and how can i display that values in the jsp.
    Advanced Thanks,
    Mahendra

    Have you tried to use <:forEach></c:forEach> tag available in jstl?

  • To display spanish characters on a JSP when the JSP is inside one portal

    Hi All,
    Previously, I had posted my query here that how to display spanish characters on a JSP screen.
    I got a solution that to add
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    to the JSP and to save the JSP in 'UTF-8'encoding format.
    This works well in case an individual JSP. But when I am adding the JSP to a web project consisting of many other JSP pages, its not working.
    Do I have to change anything else.
    Please help me if you have any suggestions. I am eagerly waiting for any response.
    Thanks in advance.

    I used to have a similar problem. I have jsp pages in braz. portugese and for these I have    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">When I tried setting the contentType to UTF-8, the way you wrote foreign characters didn't get submitted properly from input fields so I took it away, then everything worked correctly. Don't know why though.

  • Date can not display correctly in excel from .jsp

    Hi,
    I create a .jsp report to export the data to excel. the report run OK, except the date field can not display correctly.
    for example in database :start date ='01-oct-2003'
    in the except it displays to 02/06/02.
    It seem all the date field can not be control in the report, and control by somthing else
    Doese anyone come accross this problem?
    Thanks

    Hi Rong,
    Are you using the following demonstration to build your JSP?
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    (Output to Excel with Oracle9i Report)
    I tried to do the same, and inserted a database date field in the JSP using Reports. I found the following:
    While making the template inside Excel, if I make sure that the format of the date cells is "Date" - some particular date format, the date field values from Reports does not get exported correctly.
    However, if you make sure that inside the template, the format of the date cells is not date, but "General", then the date field values are correctly exported to Excel.
    Pl try it and let us know.
    Navneet.

  • Can Not Display Normal Chinese Chars in JSP

    Hi,
    I am displaying some chinese chars in a normal JSP file but it show me some
    funny things. If I get the data from the oracle and the information is chinese,
    then it display correctly. And I try another thing that I save the noraml JSP
    (without any java code) to a html and it is working fine. Same content, if saved
    as HTML, then ok. If saved as JSP, then got problem. I am using weblogic 6.1.
    There are somewhere need to be configure or... Any idea for this? Thank you
    very much!
    yang lin

    Hi Howard,
    if i use Font.createFont() to general font object that
    can solve chinese display problem in RH 7.3. but i
    thought, it's no reasonable way to use font object.
    that is really bad for cross-platform benefit or you
    need to carry font file with your application.
    have a way to set default font use createFont()
    object?In the past, I've carried the font file around with me. Given the number of graphics files, properties files and
    other assorted garbage that apps are already carrying around, it's not too unreasonable to have to add a
    TrueType font to the list of hangers-on (unless it's the size of Arial Unicode MS - 23Mb is a big ask sometimes)!
    Given that TrueType fonts themselves are essentially platform-independent, I don't see it as too much of an issue. But that's just me and my experiences! ;-)
    To set the font as default...
    try {
        FileInputStream fis = new FileInputStream("myFont.ttf");
        Font defaultFont = Font.createFont(Font.TRUETYPE_FONT, fis);
        setFont(defaultFont);
    } catch (FontFormatException ffe) {
        System.err.println("My TrueType font is corrupted.");
    } catch (IOException ioe) {
        System.err.println("My I/O stuffed up.");
    }There are various ways to set the font in even better ways, particularly if you're in a standalone app, but the above is at least a good basic one.
    Hope that helps,
    Martin Hughes

Maybe you are looking for

  • SEM-BCS Short Dump while executing Manual Posting Task

    Hi SEM-BCS Colleagues, I am having a peculiar problem with relation to the settings for Manual Postings. I have three scenarios for which I have defined manual document types and tasks 1) Standardizing Entry (Data Collection) 2) Manual Document in IU

  • Release Stratergey of PO

    Dear Experts, I make the Release Stratergy for PO but how can I give the authorization for seperate user means two seperte user Id should be release the Po. RCR

  • Installing/Uninstalling Adobe 11.0.03

    1) Whenever I try to open a pdf file, I receive an error message 2) One of the suggestions on the error message was to download the latest version of Adobe Reader 3) Went to the Adobe site...downloaded the latest version...and was told the latest ver

  • My sound doesn't work, how do i reset my mac?

    my sound doesn't work, how do i reset my mac?

  • FCP export problem w/ graphics

    Hi everyone, I have had a reoccurring problem with my latest FCP projects when I export them through Compressor to DVDSP. My opening title is centered on the screen; my closing title is left justified. Everything is rendered and looks fine in FCP but