uix:table using JSP tags

I cannot figure out how to bind a dataobject list using the <uix:table> tag. Could someone please help me with this.
Jeff Driskell

Do you mean that you already have a DataObjectList which you want to set as the <uix:table>'s tableData attribute? If so, I believe you have two choices:
1. You can use a scriptable variable for the table and call setTableData() explicitly on the TableBean.
2. You can use a scriptable variable for a dataScope and register a DataProvider which provides access to your DataObjectList. Then, you can use the tableDataBinding attribute of the <uix:table> tag to bind to your DataProvider.
Examples of both of these techniques are provided in the "Scriptable variables" section of the "UIX JSP Tag Libraries" section of the UIX Developer's Guide.

Similar Messages

  • How to get the values of an Array using JSP Tags

    Hey guys,
    I need some help. I've splited a String using
    fn:split(String, delim) where String = "1,2,3,4" and delim is ,
    This method returns an Array of splited Strings. how do i get the values from this array using jsp tags. I don't wanna put java code to achive that.
    Any help would be highly appreciated
    Thanks

    The JSTL forEach tag.
    In fact if all you want to do is iterate over the comma separated list, the forEach tag supports that without having to use the split function.
    <c:set var="list" value="1,2,3,4"/>
    <c:forEach var="num" items="${list}">
      <c:out value="${num}"/>
    </c:forEach>The c:forTokens method will let you do this with delimiters other than a comma, but the forEach tag works well just with the comma-delimited string.

  • Error when run a simple sample using jsp tag

    When i run a jsp using jsp tag, the tomcat gave me the following information:
    Resolve entity failed-//Sun Microsystems,Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
    My tld file is:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>sample</short-name>
    <uri>WEB-INF/sampleTag</uri>
    <display-name>SampleTag</display-name>
    <description>Sample TLD</description>
    <tag>
    <name>time</name>
    <tag-class>com.sample.taglib.TimeTag</tag-class>
    <body-content>empty</body-content>
    </tag>
    </taglib>
    Anybody can tell me why?
    Thanks!!!

    It's strange bacause DTD is available under given address.
    Which JSP version are you using?
    Do you have any other tld file, which uses the same DTD version? Do tags define in it work properly?
    Maby try to use 1.1 version of DTD?
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">But remember than version 1.1 has another node names (see http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd).

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

  • Why does people use JSP Tag for their JSP page? (Urgent)

    I don't know what benifit if I am using JSP Tag.
    If anyone knows, pls give me an idea and the advantage of using JSP Tag in JSP Page!
    Thanks in advance!

    You have to read a little about JSP, JSP stands for JavaServer Pages, you can use jsp tags and you can use java code. If you dont want to use jsp tags then you should just write html file, if you just want to use java, then write java class or a servlet.
    The need for jsp arised because people were inserting html code inside a servlet class..a big no no..and a headache. JSP separate model from the view...read a little about MVC-2 model view controller pattern.
    Also read some tutorial on this website...good luck
    K

  • I can't use JSP tags lib in IWS6

    I was trying to use JSP tags lib but the web server doesn't find the *.tld file. Some messages are shown:
    25/Jun/2002:19:40:28] info ( 5604): JSP: JSP1x compiler threw exception
    org.apache.jasper.compiler.CompileException: /local/iplanet/docs/menu_principal.jsp(1,0) Unable to open taglibrary http://apache.org/taglibs/dbtags : Could not locate TLD http://apache.org/taglibs/dbtags
    at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:707)
    at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [25/Jun/2002:19:40:28] warning ( 5604): Internal error: Failed to get GenericServlet. (uri=/menu_principal.jsp,SCRIPT_NAME=/menu_principal.jsp)
    I have some doubts about how to work with JSP Tags in iws6. What should I do to get this work?
    The tag lib is gotten from jakarta project and I'd like to know which steps i have to follow.
    Thank you very much

    Hi,
    What you have to do is this:
    - Include the jar file in the WEB-INF/lib
    - Include the tld file in a directory under WEB-INF, for example tlds
    - Create a mapping in the deployment descriptor (web.xml), to make the taglib available, something like this:
    <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/io</taglib-uri>
    <taglib-location>/WEB-INF/tlds/io.tld</taglib-location>
    </taglib>
    Then in the jsp, you have to invoke it like this:
    <%@ taglib uri="http://jakarta.apache.org/taglibs/io" prefix="io" %>
    <io:http url="http://mustang:4004/NASApp/fortune/fortune" action="GET"/>
    Hope this helps
    Juan

  • USE jsp TAG

    How do I use JSP tag with Weblogic?
              Where should I put my tld file, and where should I put the Java class file?
              I put the Java files under
              C:\bea\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WE
              B-INF\lib and it was not successful.
              Thank you
              

    something like this...
              OuterTag qParent = null;
              try {
                        Tag myParent = getParent();
                        while (myParent != null ) {
                          // loop up through tags until you find the one you want
                             if (myParent instanceof OuterTag) {
                                  qParent = (OuterTag) myParent;
                                  data = qParent.getSomeData();
                             } else {
                                  myParent = myParent.getParent();
                   }

  • Create frames using JSP tags

    I am trying to create two frames in my JSP page . However it just displays a blank page on execution.
    I am using following code to create frames:
    <hbj:content id="myContext" >
          <hbj:document>
         <hbj:documentHead>    
         <frameset cols="100,*" border=1 frameborder="1">
                     <frame name="frame1"
                            src ="http://www.yahoo.com">
                     <frame name="frame2"
                            src= "http://www.google.com">
                </frameset>
         <hbj:documentHead>            
        </hbj:document>   
    </hbj:content>
    Thanks

    Neeti,
       Just get rid of JSP tags and put the frameset html on jsp page. It should work without JSP tags.
    <html>
    <frameset cols="100,*" border=1 frameborder="1">
    <frame name="frame1"
    src ="http://www.yahoo.com">
    <frame name="frame2"
    src= "http://www.google.com">
    </frameset>
    </html>
    Message was edited by: Prakash  Singh

  • In javascript  how to use jsp tag value

    i want to change td value while clicking the options.In the td contains jsp page.while clicking the options i want to load particular jsp within in the td.i change the td value using innerHTML by assigning value this format <jsp:include page="..."/>.It's gives some error .
    JspTranslate:Attribute has no value
    code:
    function rightPageload(strPage) {
    pageval='<jsp:include page="/jsp/library/"'+strPage+'"/>'
    document.getElementById("d1").innerHTML=pageval;
    }

    Do you want to use taglibs or develop custom tags? Either way take a look at these:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
    http://www.stardeveloper.com/articles/display.html?article=2001081301&page=1
    http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
    http://jakarta.apache.org/taglibs/tutorial.html
    http://www.ibm.com/developerworks/edu/j-dw-java-custom-i.html
    http://www.herongyang.com/jsp/tag.html

  • How do I install and use JSP tags?

    could some one show me how to use the tags that is available in http://www.servletsuite.com/jsp.htm? It comes with .jar and tld but I have no idea what to do with them. I am new to JSP so please forgive me if it is a dumb quesion, Thanks.

    See my code below, I can use the sql and core but I cannot use the dbtag, it complains unable to connect. I am not sure if I enter the driver and URL correctly. Hopefully that is the right format.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://www.servletsuite.com/servlets/dbtag" prefix="dbtag" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <sql:query var="rs" dataSource="jdbc/SangwebDB">
    select name,username,email from sangweb_users
    </sql:query>
    <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
    name ${row.name}
    email ${row.email}
    </c:forEach>
    <dbtag:openConnection driver="com.mysql.jdbc.Driver'" url="jdbc:mysql://localhost:3306/sangweb?autoReconnect=true" user="testuser" password="testuser" id="A"/>
    <dbtag:ifError id="A">
    <br>Could not connect to database
    <br>Error is: <dbtag:getError id="A"/>
    </dbtag:ifError>
    <dbtag:setQuery id="A" query="select name,username,email from sangweb_users" res="B" />
    Found <dbtag:getCount res="B"/> records
    <dbtag:closeConnection id="A" />
    </body>
    </html>

  • Use jsp tag output as another tag's attribute value

    I don't know anyone has ever tried this, one tag's attribute value needs to be dynamically set using another tag's output. Something like
    <layout:grid cols="<layout:write name="element" property="value"/>'' space='false'>
    </layout:grid>
    I want the cols attribute of grid tag to be the output of <layout:write name="element" property="value"/>
    The way I wrote is of course not working.
    But I know PHP can do things similar to this, JSP should be able to achieve something like this too.
    If anyone knows how to do this or using any alternative way to do this, please let me know.
    Shane

    something like this...
              OuterTag qParent = null;
              try {
                        Tag myParent = getParent();
                        while (myParent != null ) {
                          // loop up through tags until you find the one you want
                             if (myParent instanceof OuterTag) {
                                  qParent = (OuterTag) myParent;
                                  data = qParent.getSomeData();
                             } else {
                                  myParent = myParent.getParent();
                   }

  • Help! writing japanese using jsp tag extension

    Hello Group !
    I'm having problems implementing a simple jsp tag extension.
    I've written a written a short code that is invoked in my tag (see below).
    The code goal is to write two japanese letters. However, all I get are two
    single-byte letters which my browser displays as '?'.
    What should I do to make Weblogic write japanese and not Latin ?
    Should I dynamically mess with the Locale ??
    Any help would be highly appriciated.
    Here's my piece of code:
    public class myBlock extends javax.servlet.jsp.tagext.BodyTagSupport {
    private void parseTagBody() throws IOException, JspException
    ServletResponse response = (ServletResponse) pageContext.getResponse();
    response.setContentType("text/html;charset=EUC_JP");
    pageContext.getOut().write(38498);
    pageContext.getOut().write(39745);
    pageContext.getOut().flush();
    Best,
    Tal Moshaiov

    dataTable might help.
    [example 1|http://www.javabeat.net/tips/46-hdatatable-java-server-faces-jsf.html]
    [example 2|http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_dataTable.html]

  • To show data( List of valueObjects   ,each vo contains List)using jsp tags

    I have set List in request attribute.
    List has value Object Class Objects.
    each value object contains get/set methods which get and set List of Strings and other get/set return and set Strings like:
    List getvaluesList()
    setValuesList(List list)
    String getLabel()
    setLabel(String st)
    My problem is how to show them in jsp using tags.
    ofcourse there will be drop down boxes in jsp with select options .

    Hi,
    According to your post, my understanding is that you wanted to display all the items that the logged-in users had created under each of the list in the site.
    I don’t think it’s a good idea to display all the items that the logged-in users had created under each of the list in the site in a visual web part.
    As we all known, different list has different fields, it will be different to display different list fields in a visual web part.
    If you still want to use the visual web part, I recommend you use the common fields that all the lists contained, suach as the Title, Createdy by, etc.
    Then query all the lists in the site by the created by field to compare with the current user.
    As a workaround, I recommend you use a page to display all the items that the logged-in users had created in the site.
    You can create a custom view based on current user for the lists, then add the lists web part in a page with the custom view.
    Now the page would only show the current users items.
    http://go.limeleap.com/community/bid/297846/Custom-List-View-Based-on-Current-User-Using-SharePoint-Designer
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5e347dea-475e-4b95-8905-0f6e11bab7bf/sharepoint-list-filtering-by-current-user-or-group?forum=sharepointgeneralprevious
    What’s more, you can also use the target audience to achieve it.
    http://lixuan0125.wordpress.com/2012/06/18/audience-targeting-sharepoint-2010/
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How to insert row in usercreat table(useing HTML tags)in jtextPane

    hi all
    i creat userdefined table in JTextPane like this
    tableBody.toString() -- iam passeing table tags
    htmlKit.insertHTML(htmlDoc, caretPos, tableBody.toString(), 0, 0, HTML.Tag.TABLE);
    i want to insert a row in table.. i did like this
    htmlKit.insertHTML(htmlDoc, caretPos, sRow.toString(), 0, 0, HTML.Tag.TR); it working..
    but it inserting in current location.. i want to insert ending of table...
    pls help me

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • Creating tables using jsp

    hi
    I have a mysql database and table which contains subjects(1-10). so I want to create a table, rows are fixed to 10 and columns based on number of subjects. the field on the database can have null value meaning if record1 has 3 subjects it must creat 3 columns, if record2 has 10 subjects it must create 10 columns. the first column is fixed from column two it must display the subject name from the database if the field is null the subject must not be displayed
    help please. I would appreciate it
    thanks

    create always 10 columns, set table with insisible border, border=0,
    and on every line fill in ony what you have.
    if the subject is null print space char entity:  

Maybe you are looking for

  • Ipod Nano Locked Up PLEASE HELP!!!

    Ok, I purchased a second generation 4gig green Ipod nano on Monday. For some strange reason today it locked up. Now it refuses to work at all. It is stuck with the backlight on and the music paused. I do not know what I did worng or if it is my Ipod.

  • Installation error message when installing Elements 12

    When I double-click on the Install Adobe Download Assistant icon I get a message that says, "Sorry, an error has occurred. This application cannot be installed because this installer has been misconfigured. Please contact the application author for a

  • Why does RH 9 project get hung up in trial version?

    Hi all, I've been using RoboHelp 9 HTML and Internet Explorer 7 with no problems. However, our department is upgrading to IE 8 soon and asked that I test its compatibility with a trial version of RH 9 (on a different machine). When I opened up my exi

  • How to save CS3 print presets?

    Greetings, Here is my issue: When I go to the print dialog and choose save preset, I make the changes ( I want a tabloid preset that selects tray 4 from our Splash server/Docucolor 12 setup) but when I select the "Printer" button and choose "Paper Fe

  • Says I'm missing files for ps  Should I uninstall then reinstall?

    Some of the application components are missing from the application directory, Please reinstall the application.  I tried to but it says I already have it installed so do I need to uninstall it?