Table Generator JSp

Hi ALL
I have a question about Table Generator JSP.
How to work with with Table Generator JSP. I have to create one table generator JSP. With the help of this jsp i have to show data on other JSPs.
Every Help Will Be Appreciated !

Not an easy for sure.
Hints:
1. Write a custom tag to generate table. Include this tag in any JSP page of your application.
2. A table is two dimensional view having multiple rows and columns.
3. You can use a list of value objects to render data in your table.
4. You can take list (probably a java.util.List) name column names and data source for each column (perhaps method name of your value object) as input to the tag.
5. In your tag get the list object from session/pageContext. Then iterate through this list and using java reflection obtain column values & render rows.
You can replace step 3, 4 and 5 by:
Take two dimensional array of objects (like javax.swing.JTable) as input to the tag to render table data. Also, take a String array to render table header.
Whatever approach you follow, pass object names as tag attribute and make original object available as attribute in session or page scope.
Thanks,
Mrityunjoy

Similar Messages

  • Generating Jsp Page On Runtime

    I have a problem regarding generating jsp page on the run time.according to the prefrence the user selects i have to generate a jsp page.suppose 25 feilds are there to be displayed for User A then these 25 feild will be equally divide in two column one column will contain 13 row and one colunm will have 12 rows.these values come from the database and according to that value i have to make the rows and column in the jsp page.the value can be different for different users.can anyone please let me know how this is done.if there is an code example please let me know.
    Regards
    Ved

    you don't need to generate the JSP, but simply generate the HTML according to the user settings (I don't know if this was clear or not, so I have made it explicit)
    Obviusly how to achieve this could be quite complex, but you can try to generate html table according to user preferences (#columns, #rows or try to find out these infos from #total elements)
    Sorry, I've no examples for yuo
    --=> Ivan

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

  • How to look at sid tables generated for an ods?

    Hi all,
    There  is atrns code : listschema which enables to have a look of the sid tables generated for infocubes.
    Is there any trsn code where we can see the list of sid tables generated for ods. if not let me know the procedure how to look at the sid tables generated for ods.
    regds
    hari

    hi,
    i think u will try like this:
    go to transaction code SE11
    TYEP UR NAME LIKE THIS:
    EX: /BIC/AODS_CUS00XXXX
    BI: MEANS business defined
    C: customer
    0 : SAP defined
    A: Active data table of ods
    TYPE LIKE THIS : /BIC/ODS NAME * (STAR)
    YOU MAY GET VALUES:
    THANKS, KR

  • Insert data into table from JSP page using Entity Beans(EJB 3.0)

    I want to insert data into a database table from JSP page using Entity Beans(EJB 3.0).
    1. I have a table 'FRIENDS', (in Oracle 10g database).
    2. It has two columns, 'NAME' and 'CITY'. Both have datatype strings(varchar2).
    3. Now from a JSP page, having two textfields, 'NAME' and 'CITY', I want to insert data into table 'FRIENDS'.
    4. In between JSP and database is a Entity Bean(EJB 3.0) and a stateless session bean.
    5. I am using JDev as editor.
    Please provide me code ASAP or link with similar example.
    Thank you.
    Anurag

    Hi,
    I am also trying that scenario. So u can
    Post the jsp form data to a Servlet which will act as a Controller.
    In the servlet invoke the business method.
    Similar kind of app is in www.roseindia.net
    Hope this would help u.
    Meanwhile if u get any optimal solution, pls post it.
    Thanks,
    Happy Java Coding.

  • Deleting a row from a table using jsp

    Given a table in a jsp, can an user click on a row of that table and retrieve the information so that the program can delete a record from a database table?
    most of the tables that I have seen are static, the user cannot interact with them(specially when the user wants to delete several records from a database table).
    Can anyone suggests a good book or way of deleting a row from table using jsp.

    eg use a column in the table that has a radio button or check box,
    on submit, get all the rows that are checked, using the row as an index into your db store, get the key and use the key to issue the sql delete command.

  • How to construct table in jsp for the resultset from helper class

    Hi Dudes!!!
    Want to construct table in jsp for the resultset, but the resultset are retrieved at the helper class.I constructed Table in Helper class Using StringBuffer and return it as string from the helper class.Is their any other feasible and efficient way to construct table in Jsp for the resultset from Helper class.Solution will be highly appreciated.Thanx in Advance.

    no, we can't.
    Certainly noone can with such vague specifications even if they had the intent to do so.
    "the computer", which computer?
    "attach to our current page", what is meant by that?
    And noone should ever help you if you're planning to breach security anywhere.

  • How to display JCO.Table in jsp, CRM ISA

    Hi,
    I have got a JCO.Table with results from teh CRM system and now want to display this in ISA.
    Is there any templates, or code, that could guide me as to how to transfer the table to jsp.
    thanks,
    sunil

    Hi Sunil,
    The code from bean class is here,
    public void listDetails(String releaseGroup,String releaseCode)                                 
    throws Exception
                    try
                         if (mRepository == null )
                              System.out.println("NuLL");
                         try
    IFunctionTemplate                                         ft=mRepository.getFunctionTemplate("BAPI_REQUISITION_GETITEMSREL");
    myFunction=ft.getFunction();
                   catch (Exception ex)
                   throw new Exception(ex + "Problem retrieving JCO.Function object.");
          if (myFunction == null)
         System.exit(1);
    mConnection.execute(myFunction);
                   JCO.ParameterList input = myFunction.getImportParameterList();
                           input.setValue(releaseGroup,"REL_GROUP");
                           input.setValue(releaseCode,"REL_CODE");
                           input.setValue(releaseFlag,"ITEMS_FOR_RELEASE");
                             System.out.println("Imported");
                         catch (Exception ex)
                              ex.printStackTrace();
                              System.exit(1);
                          mConnection.execute(myFunction);
                JCO.Table codes = null;
               codes =myFunction.getTableParameterList().getTable("REQUISITION_ITEMS");
               size =codes.getNumRows();
               if (size == 0)
                  System.out.println("No value matches the selection cretaria");
               purchaseRequisitionNo = new String[size];
               item   = new String[size];
               requestorName = new String[size];
               description = new String[size];
               creatorName = new String[size];
               purchaseRequisitionDate = new String[size];
               plant = new String[size];
              // getter methods
         public int  getSize() { return size; }
         public String getPurchaseRequisitionNo(int i){return                                                        purchaseRequisitionNo<i>; }
          public String getItem(int i) { return item<i>; }
         public String getDescription(int i) { return description<i>; }
         public String getCreatorName(int i) { return creatorName<i>; }
         public String getPurchaseRequisitionDate(int i)
                                             {return purchaseRequisitionDate<i>; }
         public String  getplant(int i) { return plant<i>; }
    Now in the JSP page get the number of entries in the table and try to get row by row from the bean class using the row number.
    <%
    int count = PR.getSize() ; // This method will return the number of
    rows in the table.
    for ( int i = 0; i < count ; i++ ) {
    %>
    <TR><TD ALIGN = "center"><%= PR.getPurchaseRequisitionNo(i) %> </TD>
    <TD ALIGN = "center"><%= PR.getItem(i) %> </TD>
    <TD ALIGN = "center"><%= PR.getDescription(i) %></TD>
    <TD ALIGN = "center"><%= PR.getCreatorName(i)%> </TD>
    <TD ALIGN = "center"><%= PR.getPurchaseRequisitionDate(i)%> </TD>
    <TD ALIGN = "center"><%= PR.getplant(i)%> </TD>
    <% } %>
    Hope this is a simple way to get your requirement.
    Let me know if this does not help you.
    Thanks
    Kathirvel.

  • Creating and updating table in JSP Through ADD and SAVE button

    how do I create a table in JSP which has certain number of columns and rows. I have a button called "ADD", which when clicked should add the data I entered. How do I update and save the same?, if there are buttons called "SAVE" and "DELETE".

    Do u want to add it to the database or just in the JSP Cache???
    I think if you want to add to DB, take the subject offline.
    My Mail id is [email protected]

  • Hi Sir! I have some questions regarding word report generation please.1.How can i add border to a word page?.2.How can i add grid lines to a table generated in word report?.3.How can i add border to a table of word report?.Thanks Imran Pakistan

    Hi !
    Sir I have some questions regarding word report generation using(C language in labwindows) Please.
    1.How can i add border to a word page?.
    2.How can i add border and grid lines to a table generated in word report(Not the " cvi table control" inserted from gui,i am asking about the table generated in word report)?
    3.How can i fill a cell of word report table withe the data type other than "character"?.
    And sir one question about use of timer in cvi labwindows please.
    Sir i'm trying to set minimum delay interval of timer control to 1millisecond(0.001s),as i set ,timer don't cares of the interval that is set by me it responds only to the default minimum time interval which is i think 10milliseconds(i'am using windows xp service pack3 version 2002).
    Regards
    Imran
    Pakistan
    Solved!
    Go to Solution.

    Hello sir!
    Sir i'm using daq6251.But Sir before implimenting it to my final application now i'm just trying to achieve 1millisecond time interval for timer in a vary simple programe i mean at this time no hardware (daq device) is  involved i,m just trying to achieve minimum time interval of 1millisecond.
    Sir i read form "help" of labwindows how this time interval can be set,i'm trying for,as described in help notes but i could'nt.I'm attaching a screen shot sir for you it may helpful for you to explain me.
    And sir also waiting for your kind reply regarding word report generation.
    Thanks.
    Imran.
    Attachments:
    screen_shot_rigistry.docx ‏65 KB

  • How to display Column Names of a Database Table in JSP

    Dear All,
    I want to display all the attribute names(column names) of a database table on JSP.
    [ ex:  mytable contains : ( EmpId,EmpName,Dept ). This should be display as  EmpId--text box                    
    EmpName--text box
    Dept----textbox
    please note , i don't want to display values,but only column names

    Yeah make use of methods like
    ResultSet DatabaseMetaData.getColumns(String catalog, String schemaPattern, String tableName, String columnNamePattern)
    else use
    String ResultMetaData.getColumnName(int column_index)
    search google i'm sure u wud get thousands of example on it... :)

  • Urgently Need Code for Copy & Paste from Html Table in JSP to Excel file

    I am creating a html table in JSP file .
    I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
    Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
    Thanks
    Message was edited by:
    javatechguru2007

    package com.chinmayananda
    public class Tetris{
    // complete here
    code]
    public abstract class AbstractTetris {
       public abstract void start();
       public abstract void stop();
    }nearly done

  • How to display  table in jsp pages

    hi all ,
    i want to diaplay the table in jsp page...ie,if i click on some option then i need to get the table in jsp page
    wiil u plz help me
    thanks in advance
    chintu

    hi all..
    i didnt ask how to design table in jsp...i am asking how to diaplay the table with data already stored in database...i just want to retrive the values in table and display in jsp.....
    thanks in advance...
    chintu

  • How to edit generated JSPs

    Hi:
    I have created the BC4J components and have generated the JSPs.
    Questions:
    1. How can I edit the generated JSP to change the look and feel of UI. Where is it stored. Is it HTML or it is dynamically generated?. For example I want to hide
    Primary Key form fields from user view.
    2. How do I add List of Values (LOV) functionality to a field in the JSP screen.
    Thanks.
    Ravi

    Hi.
    The wizard generates a JSP with a very basic layout. You can customize the fields that appear on screen by calling methods on the bean that is used (i.e. RowSetBrowser, ViewCurrentRecord).
    For the first question, there usually is a method called setDisplayAttributes().
    regarding the second question, the EditCurrentRecord bean has some method to define the kind of control that is used to display the field (they start with use..., ie useLovField or something like that).
    You should take a look at the documentation for the webbean classes.
    null

  • Auto generated jsps

    Hi,
    when we develop a human task in jdeveloper, we get to automatically generate a jsp.The jsp that gets generated is a oracle made jsp.
    Is there a api or something using which we can make jdev to generate jsp the way we want,
    Please help
    Regards

    Hi,
    Have you tried section 16.5 (Customizing the Worklist Application) in the BPEL Developers Guide (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/worklist.htm#sthref2926)?
    Regards,
    Mathias

Maybe you are looking for

  • Invoice Reduction-Vendor error: only a higher amount invoiced is allowed

    Hi, I am trying to replicate the "Invoice Reduction" Scenario (for both Price and Quantity Variance scenario). 1) Created a PO for 25 PCE and made GR for 10 PCE (10 USD/PCE). 2) Entering Invoice for 25 PCE and Amount 2500 USD and I have selected corr

  • Is it possible to just simply sync videos to Fifth generation ipod?

    First of all I am new with the ipod, and I am not familiar with this certain issues regarding videos on the ipod" My question is that do you have to watch videos or TV shows that you download on itunes? Or can you just simply automatically sync the v

  • Photoshop CS6 Doesn't work

    I have 512MB ram, windows 7, 300gb+ free space, CS3 Worked but i updated to CS6 now it just gives this http://prntscr.com/c0j52 error same with Bridge, i paid money for this now help.... :@

  • Can't print documents double sided

    I am trying to print documents double sided but I cannot figure out how to do it. I have been searching online and have found I need to set the document properties to duplex. I have tried doing this; I right click on my document, select "document pro

  • Material master uploading_MAP_ is it compulsory ?

    Dear All, While uploading the material master template thro' LSMW, is it compulsory to enter the MAP ? Because in my client, they have purchased few of the materials one year back and after that they havent purchased & dont know abt the price. Here M