JSP : Dynamic display

Hi,
I need to display 4 html tables which are constructed and populated with data from java. So i make 4 method calls and pass the out object to the methods, These methods populate the table with data and then display them using the out parameter. But even am makin the method calls sequentially all the tables are displayed on the screen only once the last method gets and displays its data. Is it possible to somehow tell the JSP to display my first table once it has the data, and then the next and so on.
Some sort of dynamic display {Once u r ready display it rather than wait for all the data to come up}
Thanks
deepak

Will any of these methods help setContentLength(int len)
setBufferSize(int size) ,flushBuffer()
Also watz the type argument in setContentLength - Is it here length of the string
and setBufferSize - and here the number of bytes.
Thanks
deepak

Similar Messages

  • Dynamic display in a jsp

    Hi all,
    My requirement is I need to display a calender on the jsp and when the user clicks on a date I need to display a set of radio buttons underneath the calender on the same page.
    The date field on the calendar is an anchor tag. So what I need to do is take the value of which date is clicked and get the corresponding set of radio buttons( the set of radio buttons depends on the date)and display them on the same page.
    I was not able to read the value of the anchor tag when the user clicks on it.
    My code which displays the date to the customer is
    <td bgcolor ="<%=todayColor%>" width="<%=boxSize%>" align="left" height="<%=boxSize%>" valign="top">
    <a id ="sch" href=" " onclick="showDate(request.getParameter(dispDay))"><%=dispDay%></a><br>.
    Can anyone please help me with how I can read the anchor tag and display the set of radio buttons on the same page.
    Thanks in advance.
    pavan

    Thanks a lot that worked out.But still as I have my complete requirement is I need to display set of radio buttons when I click on this link.
    Can this be possible by javascript.Can anyone give me an idea of how to do this. The actual scenario is like I get the a list of 30 dates and their corresponding radio buttons from a webservice. What I do is I read all the values from that webservice and convert them into text( actually I get the codes) and need to display that as a calendar to the user and when they click on a particular date { I copied a calender from the net and placed that code in my jsp to display the calender)
    the set of radio buttons should be displayed underneath the calender.That is both the calender and the list of radio buttons should be on the same page.
    Thanks in advance.
    Pavan.

  • How to dynamically display .flv files in website

    I'm using a JSP for my interface.?? In the webpage, I want to pass a java variable, which holds the url to the video that was retrieved from the database, to the flash player script to dynamically determine which video to play.?? For example, this code in the page will play a movie successfully:
    <td><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','706','height','633','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_Co mponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPlay=true&autoRewind= false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage',' http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="706" height="633" id="FLVPlayer">
    ?????????????????????????????? <param name="movie" value="FLVPlayer_Progressive.swf" />
    ?????????????????????????????? <param name="salign" value="lt" />
    ?????????????????????????????? <param name="quality" value="high" />
    ?????????????????????????????? <param name="scale" value="noscale" />
    ?????????????????????????????? <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPlay=tr ue&autoRewind=false" />
    ?????????????????????????????? <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video1_1&autoPla y=true&autoRewind=false" quality="high" scale="noscale" width="706" height="633" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />??????????????????????????
    </object></noscript></td>
    But this code will not play the movie successfully:
    <td><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','widt h','706','height','633','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','<%= flashVars %>','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','FLVPlayer_Progressive' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="706" height="633" id="FLVPlayer">
    ?????????????????????????????? <param name="movie" value="FLVPlayer_Progressive.swf" />
    ?????????????????????????????? <param name="salign" value="lt" />
    ?????????????????????????????? <param name="quality" value="high" />
    ?????????????????????????????? <param name="scale" value="noscale" />
    ?????????????????????????????? <param name="FlashVars" value="<%= flashVars %>" />
    ?????????????????????????????? <embed src="FLVPlayer_Progressive.swf" flashvars="<%= flashVars %>" quality="high" scale="noscale" width="706" height="633" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />??????????????????????????
    </object></noscript></td>
    The only difference in the two is that in the second, I use a java variable to set the flash Variables. The variable I use is <%= flashVars %>?? which is equal to: &MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=movies/Video2&autoPlay=false&autoRe wind=false
    When I view the resulting page source code after building and running the site, The source code is exactly the same for both of them yet one works and one doesn't.?? Any help would be greatly appreciated!

    I've been searching google all day to figure this one out.  I'm not simply trying to play a video, I can already do that... I'm retrieving the location of the video from the database and trying to pass it as an argument to the player, no different than if I was dynamically displaying an image or some text. For some reason I'm not able to do this.

  • How to genrate pdf repoer from jsp dynamic report

    hi
    i make jsp dynamic web report with parameter and i want to generate pdf report
    how to make that???
    regards

    can u tell me in detail...in that link there are some projects.
    what i have to do please tell me

  • Dynamically displaying a new region (row?) based on immediate user input

    Whew, figuring out a title was almost as hard as trying to explain what I want to do!
    Okay, a little background first.
    My app has 178 main data fields, spread across about 35 tables. The users want to be able to search any and all data fields. So, I wrote a PL/SQL package that for each master record, loops through all of the child tables and creates (more or less) an XML file for each master record (which I store in a CLOB field). When any data in any table is changed, a trigger fires to re-update that CLOB field as well. I then used Oracle Text to create an index on the CLOB field, and now the users can search across all of the available information for each master record and get a list of which records contained what they were looking for.
    So here's the first part of the problem. The app is a Mineral Occurence database for all mineral information world-wide. Say they enter "Brazil" as what they want to search for, they not only retreive all of the mineral sites in Brazil, but also all of the sites where one of the mining companies may be based in Brazil, or Brazil is one of the comments, etc. While this is the expected behaviour, it's still not quite what they expected (but they also don't want to get rid of this behaviour either).
    So, since the CLOB field is already formatted with XML-type tags, what I want to do is to have an Advanced Search page, where the user can specify the table name to search, or the field name, or both. What I'd like to do is at the end of each line, have a select list with an "AND" or "OR' box, and if that gets a value, then dynamically create another 'row' underneath the first row, with the same three 'boxes' (actually select lists), and continue on until the user has specified exactly what they want to search for.
    I would rather not have to create a whole bunch of regions or rows, and then determine at runtime whether or not to display them.
    So i would have (using underscores as the boxes/fields):
    Table to Search        Field to Search          And/Or
    ______________          _____________          _______Each of the above would be a select list.
    Anybody have ideas on how I can accomplish this? Any Javascript or AJAX-type solutions that a dummy like me can easily implement? I've seen something almost similar on Carl's example pages to Hide/Show a region(?), but understanding the underlying code and then modifying it for what I want to do is extremely complicated (for me) at best.
    Thanks.
    Bill Ferguson

    Well, after searching through the QBE results (even some of mine), the only thing that comes close is Earl's (http://htmldb.oracle.com/pls/otn/f?p=36337:14). Actually his layout is almost perfect and pretty identical to what I want/need. Vikas' example seems like what I've toyed with on some other pages in my app, using a simple UNION ALL with nulled fields in the select statement, which won't work for what I need, at least I can't seem to visualize how I could incorporate that same code logic.
    However, unlike Earl's, when/if the last column (which I'd have as the 'AND/OR' select list) is populated, I'd like to dynamically display another new row.
    Now I know I could do it by making the last column a 'Select List With Submit', but that would neccessitate my creating about 25 regions (to hopefully cover the max any of the users would ever need), and then conditionally display the region based on whether or not the previous 'AND/OR' condition field was populated. It would also require a whole slew of page refreshes, which is clunky.
    It seems like there should probably be a way with AJAX to accomplish something similar. I think I remember seeing something along these lines in the last year or so on here, but I can't find it.
    Something like a cross-breed of Earl's example page above mixed with Carl's example at http://htmldb.oracle.com/pls/otn/f?p=11933:39:4740898821262791902::NO:RP:: which would automatically fire on the poplulation of the last select list is probably the best I can accomplish, unless somebody has some better ideas on how to do this. Using Carl's htmldb_remix code, I can avoid all the submits and the resulting page refreshes, but the code itself will take an old dummy like me a while to figure out.
    Thanks for the ideas though.
    Bill Ferguson

  • Dynamic display name of the sender

    I have requirement like below:
    After creating and executing any Agent/iBOt in OBIEE 11g, the Display Name of the Sender in the From address of email delivered to recipients is showing as "Administrator".
    The user who is authenticated and authorized into the OBIEE also created an agent, he is asking that email should show his name in the From Address when it is delivered to the recipients.
    I know why this is happening, I have provided the Display Name of Sender as "Administrator" while configuring the Agents at the Enterprise Manager Level.
    What I am currently looking is, if there is any alternate solution to Dynamically display the name of the user who creates the Agent in the From address of the email when it is delivered to the recipients.
    Thanks in advance
    -Bharath

    Any body there with the answers !!

  • Use an applet in a Jsp to display data from Oracle DB

    Hi everyone, I'm very new to java my question is:
    Is there a way to display an applet like a table within a Jsp to display data from a Oracle DB? The thing is that I would be able to show this applet only at the click of the submit button in my html form.
    Please help me any sample code are welcome
    Thank you in advance
    Fabry

    Hi,
    Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
    Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
    <html><head><title> Demo Applet</title></head>
    <body bgcolor="rd">
    <% if (request.getParameter("SUBMIT") != null) {%>
    <jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
    <jsp:fallback> Plug in not supported by your browser</jsp:fallback>
    </jsp:plugin>
    </body></html>
    Hope this will help you.
    Rgds,
    Ravi Shankar

  • 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

  • Jsp data display as a result of a button click

    i have a textfield in a jsp along with a SEARCH button. the search button searches the database for the existence of the value entered in the textfield.
    how should i code so that at the click of search button the dbase is searched (for the entered value in textfield).
    the dbase should be searchedonly after the click of search button.
    i wud also like to display the searched value as a table data next to the button. how shud i code it. i coded search logic using a function which is in a javascript. but the function is executing before the press of the search button.
    i'm new to JSPs. please help.. thanks.

    It's covered by every decent JSP/Servlet book/tutorial. With other words, this is too trivial and it proves that you really know nothing about it at all. I then highly recommend to take time first to go through a decent book/tutorial. This forum is to help others with technical coding problems, not to spoonfeed others who cannot write code.
    To start with HTML: [http://www.w3schools.com/html/].
    A nice HTML book: [http://www.amazon.com/HTML-Dummies-Ed-Tittel/dp/076450214X].
    To start with JSP/Servlet: [http://java.sun.com/javaee/5/docs/tutorial/doc/ (part II chapters 1-8)].
    A nice JSP/Servlet book: [http://www.amazon.com/Head-First-Servlets-JSP-Certified/dp/0596516681].
    It boils down to having a HTML <form>, <input type="text"> and <input type="submit"> in the JSP page and havinig a Servlet with necessary code in the doPost() method which obtains the request parameter, queries the database, stores the result in the request scope and forwards the request to a JSP for display -which on its turn uses JSTL c:forEach to iterate over the list of results.
    Good luck. If you ever have a technical JSP/JSTL question/problem, you're welcome to ask here.

  • Get the name of the jsp currently displayed

    Hi,
    how can i get the name of the jsp currently displayed?
    Thanks.

    Yep
    I thought about
    UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
    String name = viewRoot.getViewId(); Message was edited by:
    nereidahoxhaj

  • Dynamic display of the Company Name based on Org

    Hello All,
    I need to dynamically display the Company name based on the Org_id and the ORG is not being populated in the XML data file. How do i achieve this,please let me know.
    Thanks
    Rakesh

    Rakesh,
    It's like getting something from nothing (data template)... If you do not want to modify your report, then Vetri's option will be fine(your going to add not modify)...
    Or,. define a new Oracle report based on the seeded one then do modify...
    regards,
    Rownald

  • Dynamically displaying multi parameters values

    Hi,
    I'm newbie to this framework and I have successfully
    implemented some of the demos posted in this site. BTW, kudos to
    all who contributed all those demos.
    Well, I after trying most of the demos, I am trying to
    implemented .... dynamically displaying content from the xml file
    when users click on multiple choices. Let say, I have the check
    boxes for the following option:
    Subjects: [ ] Math [ ] Biology [ ] Computer Science and so
    on.
    So when the users click on these checkboxes, it will display
    books related to the selected subject/s.
    If anybody have implemented similar functionality, can you
    please give me an idea/suggestion? Any help will be appericated.
    Cheers,
    nj

    Hi all,
    I have been trying to implement "Multiple filter" (
    http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersModeSample.html )
    using more dymanic approach however, it is not working correctly.
    Here is my code .... can you plz give any suggestion handling this
    issue?
    <?xml version="1.0" encoding="utf-8"?>
    <books xmlns="
    http://www.books.com/books">
    <subjects>
    <list>Math</list>
    <list>Biology</list>
    <list>Economices</list>
    <list>English</list>
    <list>Physices</list>
    <list>History</list>
    </subjects>
    <book>
    <title>Intro to Biology</title>
    <subject>Biology</subject>
    <desc>Introduction to Human Biology</desc>
    </book>
    <book>
    <title>Intro to Geometry</title>
    <subject>Math</subject>
    <desc>Introduction to Elementry Geometry</desc>
    </book>
    <book>
    <title>Calculus I</title>
    <subject>Math</subject>
    <desc>Introduction to Elementry Calculus</desc>
    </book>
    <book>
    <title>Physices III</title>
    <subject>Physices</subject>
    <desc>Advanced physices, Newton's laws</desc>
    </book>
    <book>
    <title>19th Century Americam History</title>
    <subject>History</subject>
    <desc>Introduction to 19th century American
    History</desc>
    </book>
    <book>
    <title>Intro to Biology II</title>
    <subject>Biology</subject>
    <desc>Introduction to Human Biology</desc>
    </book>
    <book>
    <title>Intro to Biology III</title>
    <subject>Biology</subject>
    <desc>Introduction to Human Biology</desc>
    </book>
    <book>
    <title>Intro to Biology IV</title>
    <subject>Biology</subject>
    <desc>Introduction to Human Biology</desc>
    </book>
    </books>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <title>Testing</title>
    <!--
    Spry Framework
    ***************************************************** -->
    <script type="text/javascript"
    src="js/spry/xpath.js"></script>
    <script type="text/javascript"
    src="js/spry/SpryData.js"></script>
    <script type="text/javascript"
    src="js/spry/SpryDataExtensions.js"></script>
    <script type="text/javascript">
    <!--
    var subjectname;
    var dsSubjectFilter = new
    Spry.Data.XMLDataSet("xml/books.xml", "/books/book", { subPaths:
    "subject" });
    var dsSubjectList = new
    Spry.Data.XMLDataSet("xml/books.xml", "books/subjects, {subPaths:
    "list", sortOnLoad: "list"});
    function filterParameter(ds, row, index){return (row.subject
    == subjectname)? row : null;};
    function ToggleFilter(enable, filterParameter, name) {
    //alert("name : " + name);
    subjectname=name;
    if(enable)
    dsSubjectFilter.addFilter(filterParameter, true);
    else
    dsSubjectFilter.removeFilter(filterParameter, true);
    dsSubjectFilter.setFilterMode("or", true);
    //-->
    </script>
    <!-- ***************** END of Spry
    *********************** -->
    </head>
    <body>
    <div spry:state="ready">
    <div spry:region="dsSubjectList">
    <form action="">
    <ul>
    <h4>Subject</h4>
    <li spry:repeat="dsSubjectList"> <input
    type="checkbox" value="" onclick="ToggleFilter(this.checked,
    filterParameter,
    '{dsSubjectList::list}');"/>{dsSubjectList::list}</li>
    </ul>
    </form>
    </div>
    <div spry:region="dsSubjectFilter">
    <p> Count = {dsMissionFilter::ds_RowCount}</p>
    <div spry:repeat="dsSubjectFilter">
    <h4>{dsSubjectFilter::ds_RowNumberPlus1}. {dsSubjectFilter::title}</h4>
    <p> {dsSubjectFilter::subject}</p>
    <p> {dsSubjectFilter::desc}</p>
    </div>
    </div>
    </div> <!-- *** END of spry:state="ready"
    *****-->
    </body>
    </html>
    Basically, firstly it creates the checkboxes with the diff
    subjects to select. Once we start selecting those subjects, it shld
    start displaying the related books with titles, subject and
    description. However, the "or" doesn't seems to work .... any
    suggestion will be appericated.
    Cheers,
    nj

  • Jsp Source Displayed

              I am using Weblogic 5.1 with Service Pack 8
              on a Sun Machine with Sun Solaris 2.6.
              When a request to a Jsp from a browser
              is made with the suffix %00 then the
              JSP source is displayed.
              ex: http://101.201.301.401:5555/index.jsp%00
              Can something be done to avoid this ???
              Thanks in advance.
              

    Not too sure, but I think this is fixed in SP9.
              Daniel
              > -----Ursprüngliche Nachricht-----
              > Von: Ramkumar [mailto:[email protected]]
              > Bereitgestellt: Samstag, 23. Juni 2001 15:58
              > Bereitgestellt in: jsp
              > Unterhaltung: Jsp Source Displayed
              > Betreff: Jsp Source Displayed
              >
              >
              >
              > I am using Weblogic 5.1 with Service Pack 8
              > on a Sun Machine with Sun Solaris 2.6.
              >
              > When a request to a Jsp from a browser
              > is made with the suffix %00 then the
              > JSP source is displayed.
              >
              > ex: http://101.201.301.401:5555/index.jsp%00
              >
              > Can something be done to avoid this ???
              >
              > Thanks in advance.
              >
              

  • Pass ArrayList to jsp and display first index of resultset?

    Is it possible for me to pass an ArrayList to a jsp, and display the each resultset stored in the ArrayList by the ArrayList index?
    The code below gets passed two paramaters. An invorg, and item. It then creates resultset based upon the Object and puts the results into an ArrayList.
    The resultset returned varies, but the largest resultset that I have received back has not been bigger thatn 10 resultset rows, and the largest number of columns has been 27 columns.
    I would then like to pass the whole ArrayList to the jsp and display the contents for each row based on the index it is on.
    Is this possible?
    public class RunReportAction extends MTDAction
        ArrayList results;   
        public RunReportAction()
        public boolean execute(HttpServletRequest _req, HttpServletResponse _res) throws ServletException, IOException
            String item = _req.getParameter("itemsToAdd");
            String invorg = _req.getParameter("invorg");
            try
                if (rep_type.equals("Vendor"))
                    runVendorReport(item, invorg);
                else if (rep_type.equals("Purchase Order"))
                    runPOReport(item, invorg);
                else if (rep_type.equals("Inventory"))
                    runInventoryReport(item, invorg);
                else if (rep_type.equals("Item Usage"))
                    runWhereUsedReport(item, invorg);
                else if (rep_type.equals("Cost/Purchasing"))
                    runCostReport(item, invorg);
                else if (rep_type.equals("Planning"))
                    runPlanningReport(item, invorg);
            catch (Exception e)
                setView("SSMErrorPage.jsp");
                model = e;
            model = results;
            view = "SSM_Reports";
            return true;
        boolean runInventoryReport(String item, String invorg) throws MTDException
            try
                CallableStatement cs = conn.prepareCall("{call CTI_SSM_PKG.get_inventory_report(?,?,?)}");
                cs.registerOutParameter(3, OracleTypes.CURSOR);
                cs.setObject(2, item, Types.VARCHAR);
                cs.setObject(1, invorg, Types.VARCHAR);
                cs.execute();
                ResultSet rs = (ResultSet)cs.getObject(3);
                while (rs.next())
                    InventoryObj inventory = new InventoryObj();
                    inventory.setInvOrg(rs.getString(1));
                    inventory.setItem(rs.getString(2));
                    inventory.setItemDescription(rs.getString(3));
                    inventory.setInvFlag(rs.getString(4));
                    inventory.setStockEnabled(rs.getString(5));
                    inventory.setTransactable(rs.getString(6));
                    inventory.setRevQtyControl(rs.getString(7));
                    inventory.setReservable(rs.getString(8));
                    inventory.setCheckShortage(rs.getString(9));
                    inventory.setLotControl(rs.getString(10));
                    inventory.setShelfLife(rs.getString(11));
                    inventory.setLotStartPrefix(rs.getString(12));
                    inventory.setLotStartNumber(rs.getString(13));
                    inventory.setLotCycleCount(rs.getString(14));
                    inventory.setPosMeasureError(rs.getString(15));
                    inventory.setNegMeasureError(rs.getString(16));
                    inventory.setSerialGeneration(rs.getString(17));
                    inventory.setSerialNumbStart(rs.getString(18));
                    inventory.setSerialPrefixStart(rs.getString(19));
                    inventory.setLotStatus(rs.getString(20));
                    inventory.setSerialStatus(rs.getString(21));
                    inventory.setLotSplit(rs.getString(22));
                    inventory.setLotMerge(rs.getString(23));
                    inventory.setLocatorControl(rs.getString(24));
                    inventory.setToday(rs.getString(25));               
                    results.add(inventory); 
                    System.out.println(results);
            catch (SQLException e)
                throw (new MTDException("Failed to run report in database.", e));
            //model = results;
            //setView("SSM_Reports.jsp");
            return true;
    }jsp code:<%@ page import="java.util.*"%>
    <%@ page import="ssmmtd2.InventoryObj"%>
    <html>
    <head>
    <title> SSM 2 Inventory Report </title>
    <style>
              A {text-decoration:none;color:black;}
              A:Hover {color:Blue}
    </style>
    </head>
    <%
      ArrayList inventory;
      if (request.getAttribute("model") != null)
        if ((request.getAttribute("model").getClass().getName()).equals("java.util.ArrayList"))
          inventory = (ArrayList)request.getAttribute("model");     
          if (inventory != null && inventory.size() > 0)
          %>
        <body  bgcolor="#FFFFFF">
          <table border = "1" width="755" cellpadding="0" cellspacing = "0">
          <tr>
            <td colspan="3" width="755" align="center">
              <p align="center"><big><b><font color="#000080">Inventory Report</font></b></big>
            </td>
          </tr>
          </table>
          <table border="1" width="755">
            <tr>
              <td width="100%">
                <form>
                  <table>
                <%
                  Iterator i = inventory.iterator();
                  while (i.hasNext())
                    InventoryObj invObj = (InventoryObj)i.next();
                %>
                  <TR>
                    <TD><B>ITEM:</B>
                      <align="left" valign="center"><%=invObj.getItem()%>
                    <td><B>DESCRIPTION:</B>
                      <align="left" valign="center"><%=invObj.getItemDescription()%>
                  <TR>
                  </TR>
                  <TR>
                  </TR>
                  <TR>
                  </TR>
                    <td><B>ORGANIZATION:</B>
                      <align="left" valign="center"><%=invObj.getInvOrg()%>
                    </TD>
                    <TD>
                      <B>CURRENT DATE:</B>
                        <align="left" valign="center"><%=invObj.getToday()%></TD>
                    </TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                    <TR>
                      <TD><B>INVENTORY ITEM</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getInvFlag()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>STOCK ENABLED</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getStockEnabled()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>TRANSACTABLE</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getTransactable()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>REVISION QTY CONTROL</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getRevQtyControl()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>RESERVABLE TYPE</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getReservable()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>CHECK SHORTAGES</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getCheckShortage()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>LOT CONTROL</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotControl()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>SHELF LIFE DAYS</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getShelfLife()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>STARTING LOT PREFIX</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotStartPrefix()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>STARTING LOT NUMBER</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotStartNumber()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>CYCLE COUNT</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotCycleCount()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>POSITIVE MEASUREMENT ERROR</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getPosMeasureError()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>NEGATIVE MEASUREMENT ERROR</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getNegMeasureError()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>SERIAL GENERATION</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getSerialGeneration()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>STARTING SERIAL NUMBER</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getSerialNumbStart()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>STARTING SERIAL PREFIX</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getSerialPrefixStart()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>LOT STATUS</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotStatus()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>SERIAL STATUS</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getSerialStatus()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>LOT SPLIT</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotSplit()%>
                      </TD></TR>
                    <TR>
                      <TD><B>LOT MERGE</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLotMerge()%>
                      </TD>
                    </TR>
                    <TR>
                      <TD><B>LOCATOR CONTROL</B>
                      <TD align="left" valign="center"><b>:</B>  <%=invObj.getLocatorControl()%>
                      </TD>
                    </TR>
                <%} %>
                  </table>
                <input type="hidden" name="SearchValue">
                <BR>
                <img src="images/close11.bmp" style="cuinvObjor:hand" onmouseover='this.src="images/close12.bmp"' onmouseout='this.src="images/close11.bmp"' onClick="window.close()">     
                <img src="images/print1.bmp" style="cuinvObjor:hand" onmouseover='this.src="images/print2.bmp"' onmouseout='this.src="images/print1.bmp"' onClick='this.src="images/print3.bmp"; window.print()' >
                </form>
              </td>
            </tr>
          </table>
        </body>
    <%
    %>
    </html>

    Your arraylist object should be a list of inventory bean objects and then, If you are using struts, you could use logic:iterate tags.. or something equivalent.. you could use forEach in jstl..

  • Can I dynamically display a product showing the user's options

    I'm a total Flash newbie so please use small words
    My customer manufactures small aluminum products that can be
    anodized in several colors. The products can have simple line
    graphic artwork or user-specified text engraved into them with an
    NC milling machine. If the user wants to add text he also selects
    one of several possible fonts. The engraving can also be colored to
    contrast with the body of the part.
    My customer wants a application (Windows or Web) that can
    dynamically display the product as the user makes his choices: i.e,
    display an image of the product in the chosen color, then show it
    engraved with the artwork and/or text. The text should be shown in
    the correct font.
    The products, colors, artwork and fonts are all known but the
    user's text is obviously unpredictable, so it's impossible to
    simply prepare photos of every possible combination. Can Flash (or
    something else) programmatically generate and overlay text and
    artwork on an image? Can it alter the colors or should I simply
    have a photo of every product in every color?
    Is this possible? Is Flash the appropriate technology?
    Thanks

    Steve,
    I am not sure if you have any software to start with, so I
    dunno exactly what you need. You need an image editor, some sort of
    html editor, and of course Flash. The easy answer is the Web
    Premium version of CS3. It should have all you need. If you already
    have some of those tools, then the main thing you need is Flash.
    There are also some free alternatives out there from web creation
    and image editing, but they don't integrate quite as well as having
    all Adobe products.
    Some good learning resources can be found at Lynda.com. It
    has a ton of tutorials on programs that you would need to do this
    including Photoshop and Flash. A subscription is a bit pricey, but
    when you think that one book can be $50, being able to access so
    many tutorials really seems like a good value. Also, there are some
    good print book available there that you could use as a buying
    guide. You'll need to get into ActionScripting with with this, so
    look for a basic intro to Flash CS3, and then something regarding
    getting started with ActionScript 3.
    These forums are a good resource as well, but mainly when
    you have specific questions. People can answer "Why does my text
    disappear when I use a mask over it?" but it is harder to answer,
    "I want to build a picture library, how do I do that?"
    - B
    - B

Maybe you are looking for

  • Unable to upload Pages & Number files

    I'm trying to upload a pages and numbers document to yahoo, but every time I click select file and the file chooser dialog box is displayed Pages and Numbers documents are grayed out while other file types are selectable. So far I've tried deleting S

  • JTabbedPane Issues

    JTabbedPane Issues: After finding little info on the subject (that worked for me anyway), I thought I'd post this in case anyone else searched for it. Removing JTabbedPane's Border the easy way: UIManager.put("TabbedPane.contentBorderInsets", new Ins

  • Personal domain and regular .Mac site

    I would like to create my own personal website (like usual on .Mac in my personal area) and then also post another domain I own to my .Mac area. How does it know which site to "publish" to? Or can you only have one website in iWeb '08? Thanks.

  • Get sales office from sales area

    Hi gurus I'm looking for a FM or METHOD for get all the sales office linked at one sales area.... somebody can help me?? regards Marco

  • Add a field in the Search Criteria in POWL for Invoice

    Hi, I am trying to add a field  or change Selection Parameters in Search criteria POWL for Invoice. But for SC, PO and Confirmation I can do it from DB Criteria. But for Invoice  I implemented these BADI's  and its not triggering. /SAPSRM/BD_POWL_CHN