Struts-layout + datagrid+tutorial

Hi ,
I'm new in struts and try to do the tutorial of datagrid in struts layout , i have the same error and can't initialize the list .I see the struts layout demo but it uses tiles and is quite complex.Can you please send me a simple complete exemple (a .war) using struts layout datagrid. thanks in advance

You may try below one:
http://struts.application-servers.com/downloads/

Similar Messages

  • Pblm in working with struts layout

    Hi
    I m newbie to struts can anyone help me out to work with struts layout for displaying data in datagrid (sample code)
    Thanks in Advance

    Check out Struts Recipes by George Franciscus and Danilo Gurovich for sample code.
    ISBN: 1932394249
    http://www.manning.com/franciscus/

  • Creating a purchase order form that has a flowable layout" Help Tutorial

    Regarding the "Creating a purchase order form that has a flowable layout" Help Tutorial,  I can't seem to get the data to pull in for just the PO in question, is there a secret?
    Ideally, it should create one form for each PO with the detail lines for each PO on the individual forms.  Can we do this?
    Many thanks!

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • Struts-Layout layout:tabs Problem; dynamically render tabs

    hi,
    i have been trying to combine the <layout:collection> and <layout:tabs> tags to dynamically render tabs. (if the collection contains 5 objects, i wanna have 5 tabs, and if the collection contains 2 objects, i wanna have 2 tabs...)
    like this:
    <layout:form action="/someAction.do" styleClass="FORM">
    <layout:tabs styleClass="FORM" width="400">
    <layout:collection property="aProperty" indexId="index" >
    <layout:tab key='${index}' width="50">
    <layout:collectionItem title="rooms.token">
    <layout:text property="aProperty[${index}].BID" layout="false" size="5"/>
    </layout:collectionItem>
    </layout:tab>
    </layout:collection>
    </layout:tabs>
    </layout:form>
    It renders, but it is not displayed correctly. for example, if there are 2 objects in the collection, i get 3 tabs. and the rendered html-table contains mistakes and destroys my page.
    has anyone an idea what i could do?
    I appreciate any help, thank you, martin

    Do anyone kno more about Struts-Layout-tabs...........In a Struts forum? Probably.

  • Struts layout:treeview taglibs...

    Hi Friends,
    I'm developing small search engine with struts framework
    from the database I'm getting the words(terms.search results), now i want display those terms in Tree structure like
    + Rain (root word)
    +Broader terms
    Precipitation
    +Narrower Terms
    Artificial precipitation
    +Related Terms
    Runoff water
    Lodging
    right now I'm using <logic:iterate> tags for display
    how to implement these with <layout:treeview> tags, i added jar file & tld file to the project folder
    can anyone tell me how to build sample treeview ( dynamic from database depending on search) so that i can implement that on my application.....
    Thank u... :)

    hi,
    Can you please send me the example on how to use tree view from struts-layout
    Thanks
    crr

  • Struts-layout: treeview

    Hello everyone,
    I have a webapp that uses treeview from struts-layout. It is working perfectly and I'm happy with it.
    The thing is that now I was required to put small swf files on the treenodes. Each treenode would be a swf file, which is simply a box with the name of the system module, with some flash effects.
    I'm trying to do it like this:
                   <layout:menuItem key="Pessoas">
                          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="468" height="60">
                              <param name=movie value="/AugeProducao/flash/Pessoas_up.swf">
                              <param name=quality value=high>
                              <embed src="/AugeProducao/flash/Pessoas_up.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="213" height="23"></embed>
                          </object>       
                      <layout:menuItem key="Fornecedores" link="/AugeProducao/VerFornecedor.do" target="topFrame"></layout:menuItem>   
                </layout:menuItem>    Not working, though. The swf appears up in the page, above the tree. And the tree appears normally below, with the texts.
    Is there any way of making a swf file a node of the tree? That would be really good.
    If that is not possible, is it possible to show images (like gifs) as treenodes, instead of the text? I tried to do it like this:
                   <layout:menuItem key="Pessoas" image="/AugeProducao/imagens/botao_ok.jpg">Also didn't work. Maybe there's any other tag required?
    If you have done this before or know how to do is, please answer.
    Thanks in advance.

    hi,
    Can you please send me the example on how to use tree view from struts-layout
    Thanks
    crr

  • Struts Layout-Tag Library

    Can anyone suggest a book or site for Struts Layout-Tag Library.......
    i got only www.struts.application-servers.com/
    Thanks.

    I know for Struts, there is Struts Layout tag library
    that provides treeview, calendar, table, etc. Is
    there any such tag library for JSF? Thanks.Sure. The most popular is MyFaces Tomahawk (http://myfaces.apache.org/tomahawk/index.html). JSF Central has a comprehensive list as well: http://www.jsfcentral.com/products/components.
    Kito D. Mann - Author, JavaServer Faces in Action
    http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
    * Sign up for the JSF Central newsletter! http://oi.vresp.com/?fid=ac048d0e17 *

  • Help required in Struts Layout Tags

    Is it possible to pass more the one parameter in paramProperty & paramId attribute of<layout:link /> tag.
    I am using an collecetion item.
    pls let me know if it is possible.
    <layout:collectionItem  title="Edit" property="editImage" styleClass="FORM">
                        <layout:link href="/epat-app/editUserInfo.do?method=loadEdit"  paramId="racfId" paramName="UserInfoParamEntryForm" paramProperty="racfId">
                              <img src = "<%=strContextPath%>/config/edit.gif" border="0"/>
                            </layout:link>
                    </layout:collectionItem>

    i bet this would be an excellent question for a struts forum

  • [b]Data Grid in jsp using Struts [/b]

    I need to develop a data grid in JSP using struts .
    I am using Tomcat web server , Intellij IDEA IDE.
    If any one has code, please sent it.
    Thanks in Advance.

    hi,
    Use Struts-Layout datagrid framework to full fill your needs
    Related Topic link
    here is the clear documentation for your topic
    http://struts.application-servers.com/datagrid/index.html
    here is the download link
    (Struts-Layout datagrid framework)
    http://deltha.uh.cu/java/docs/struts-layout-1.0-docs/download.html
    related discuss
    http://forum.java.sun.com/thread.jspa?threadID=5202989&messageID=9811082

  • Help required on Struts-Datagrid

    Hello All,
    I am seeking for suggestions on how can one fix the header/column-names in Struts-Datagrid.
    In my jsp , I have implemented struts-datagrid and showing many rows at a time.
    While scrolling the page , the column-names/header of the datagrid also scroll up and down and do not remain visible to the user.
    Is there any way to fix the column-name/header on the top of datagrid?
    Kindly suggest any solution.
    Thanks
    -Mukul

    Hi
    I have neither used display tag or logica iterator.its an normal inplementaion.
    I have the peace of code to show you how i have implemented it with pagination.
    <layout:pager maxPageItems="8" sessionPagerId="" linksLocation="top">
    <layout:datagrid property="" indexId="i" styleClass="DATAGRID" model="datagrid" multipleSelectionAllowed="false">
    <layout:datagridColumn title="" property="" width="150" maxlength="15" styleClass="NORMAL" mode="E,I,P"/>
    <layout:datagridColumn title="" property="" width="620" maxlength="15" styleClass="NORMAL" mode="E,I,P"/>
    <layout:datagridCheckbox title="" property="" onchange=""/>
    </layout:datagrid>
    </layout:pager>     
    thanks & regards
    Praveen

  • How to use the validation.xml in struts validation?

    Can any one please help me, how to use the validation.xml in struts validation? possible please give me simple example.
    Edited by: SathishkumarAyyavoo on Jan 31, 2009 12:03 PM

    These 2 are the good articles for the beginners to do validation things in Struts. you can follow any one of them.
    1. [http://viralpatel.net/blogs/2009/01/struts-validation-framework-tutorial-example-validator-struts-validation-form-validation.html]
    2. [http://www.vaannila.com/struts/struts-example/struts-custom-validation-example-1.html]
    All the best.

  • Scrolling of data with UNSCROLLED header.using struts.Tried a lot my friend

    Got the class file fr.improve.struts.taglib.layout.util.FixedHeaderCollection which will be used to solve the problem.But how to use this in struts-layout.tld & in my application,where I am using layout:collection.

    I am also attaching the portion of that particular JSP page:
    [sample is just a style class]
    <table class="sample">
                        <th width="80">
                             Sl No.
                        </th>
                        <th width="233">
                             Code
                        </th>
                        <th width="150">
                             Name
                        </th>
         </table>     
         <div style="position: relative; left: 0px; overflow: auto; top: 0px; height: 170px; width: 100%; padding: 0em; ">
                        <table class="sample">
                             <logic:present name="searchMst" scope="session">
                                  <logic:iterate name="searchMst" id="searchMst" scope="session">
                                       <tr style="background-color:red;">
                                            <td width="80" height="10">
                                                 <bean:write name="searchMst" property="srlNo" />
                                            </td>
                                            <td width="233" height="10">
                                                 <bean:write name="searchMst" property="accCd" />
                                            </td>
                                            <td width="150" height="10">
                                                 <bean:write name="searchMst" property="accDesc" />
                                            </td>
                                       </tr>
                                  </logic:iterate>
                             </logic:present>
                        </table>
         </div>

  • WML help for  Struts-wml tag lib

    I tried using the tag lib of struts but I didn't find wml:card tag..........

    thank you Shay Shmeltzer
    i added the tld to my jdev.
    but now the property inspector of any component of this tag lib is empty.
    i can see all components in the component palette.
    another thing can you help me to use struts-layout libraries?
    i see in the code
    <layout:form action="/login" styleClass="FORM" key="form1.title" reqCode="login" focus="login">
    i can't find were are styleClass (css)?
    i looked for in all the project and in libraries?
    thank you very much..
    Talel...;

  • Struts where are values stored between jsp pages?

    Hi.I realize that this is forum is not specifically for struts but I thought someone might know the answer to my question.
    I have run the following code. The code contains two JSP’s that both get there values from the same ArrayList generated by the same actionform so contain the same data. Example.jsp is diplayed when the application is first run when submit is clicked newjsp.jsp is displayed.
    If a value in the fields of example.jsp is changed and submit is clicked the altered value is also displayed in newjsp.jsp. I am confused by this as after submit is clicked ExampleForm.java method reset is called which returns the variable values to their original value but the newly entered value is still displayed. Please tell me how this works
    Example.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
    <%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested"%>
    <html>
        <head>
            <title>JSP for exampleForm form</title>
        </head>
        <body>
            <html:form action="/example">
                <h3>Use of nested:iteration tag</h3>
                <nested:nest property="department">
         DEP. ID: <nested:text property="id"/> <br />
         NAME: <nested:text property="name"/> <br /><br />
                    <nested:iterate property="customers">
                        <b>Customer info</b><br />
              CUST. ID: <nested:text property="id"/> <br />
              NAME: <nested:text property="name"/> <br />
                    </nested:iterate>
                </nested:nest>
                <br />
                <br />
                <html:submit/><html:cancel/>
            </html:form>
        </body>
    </html>
    Newjsp.jsp
    <%@ page language="java"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
    <%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested"%>
    <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
    <html>
        <head>
            <title>JSP for exampleForm form</title>
        </head>
        <body>
            <html:form action="/example">
                <h3>Use of nested:iteration tag</h3>
                <nested:nest property="department">
                    <table>
                        <nested:iterate property="customers">
                            <tr><td>Customer info</td>
                                <td>CUST. ID: <nested:text property="id"/> </td>
                                <td>NAME: <nested:text property="name"/> </td>
                            </nested:iterate>
                        </tr>
                    </table>
                </nested:nest>
                <br />
                <br />
                <html:submit/><html:cancel/>
            </html:form>
        </body>
    </html>
    ExampleAction.jsp
    package de.laliluna.tutorial.nested.action;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import de.laliluna.tutorial.nested.form.ExampleForm;
    import de.laliluna.tutorial.nested.object.*;
    import java.util.*;
    public class ExampleAction extends org.apache.struts.action.Action {
        /* forward name="success" path="" */
        private static final String SUCCESS = "success";
        @Override
        public ActionForward execute(ActionMapping mapping, ActionForm form,
                HttpServletRequest request, HttpServletResponse response)
                throws Exception {
            ExampleForm formBean = (ExampleForm) form;
            Department depart = formBean.getDepartment();
            ArrayList dep = (ArrayList) depart.getCustomers();
            Customer cust0 = (Customer) dep.get(0);
            System.out.println(">>>>>>>>>>>>>> customer.getName() = " + cust0.getName());
            System.out.println(">>>>>>>>>>>>>> customer.getId() = " + cust0.getId());
            Customer cust1 = (Customer) dep.get(1);
            System.out.println(">>>>>>>>>>>>>> customer.getName() = " + cust1.getName());
            System.out.println(">>>>>>>>>>>>>> customer.getId() = " + cust1.getId());
            Customer cust2 = (Customer) dep.get(2);
            System.out.println(">>>>>>>>>>>>>> customer.getName() = " + cust2.getName());
            System.out.println(">>>>>>>>>>>>>> customer.getId() = " + cust2.getId());
            return mapping.findForward("example");
    ExampleForm.jsp
    package de.laliluna.tutorial.nested.form;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessage;
    import de.laliluna.tutorial.nested.object.*;
    import java.util.ArrayList;
    import java.util.Collection;
    public class ExampleForm extends org.apache.struts.action.ActionForm {
        Department department;
        public Department getDepartment() {
            return department;
        public void setDepartment(Department department) {
            this.department = department;
        public void reset(ActionMapping mapping,
                HttpServletRequest request) {
            System.out.println("Entered action bean reset");
            Collection customers = new ArrayList();
            customers.add(new Customer(1, "Maria"));
            customers.add(new Customer(2, "Klaus"));
            customers.add(new Customer(3, "Peter"));
            department = new Department(1, "Department A", customers);
    Customer.java
    package de.laliluna.tutorial.nested.object;
    public class Customer {
        private int id;
        private String name;
        public Customer() {
        public Customer(int id, String name) {
            this.id = id;
            this.name = name;
        public int getId() {
            return id;
        public void setId(int id) {
            this.id = id;
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
    Department.java
    package de.laliluna.tutorial.nested.object;
    import java.util.Collection;
    public class Department {
        private int id;
        private String name;
        private Collection customers;
        public Department() {
        public Department(int id, String name, Collection customers) {
            this.id = id;
            this.name = name;
            this.customers = customers;
        public Collection getCustomers() {
            return customers;
        public void setCustomers(Collection customers) {
            this.customers = customers;
        public int getId() {
            return id;
        public void setId(int id) {
            this.id = id;
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
    }

    Thanks for responding.
    I set the debugger as you suggested and found that method reset is being called.
    I did not write the whole of this program I was just playing around with and expanding a struts example I found on line.
    http://www.laliluna.de/articles/struts-nested-iteration-tutorial.html
    It contains the reset method.
    I am interested to know how to reset the values. So am clearing the data after it has been submitted, just to reset. I assumed that once the new page was arrived at the values would be taken from the array.
    I am quite new to struts and am not familiar with example_input.action and example.action I will look into these.

  • Editing with a DataGrid and validating user input

    Editing
    with a DataGrid Tutorial
    How to edit the information in a Flex 2 DataGrid directly,
    without data binding TextInputs to it.
    Uses a Remote Object, a CFC, and a Microsoft Access database
    to demonstrate how.
    Uses Actionscript to validate the data the user types into
    the DataGrid.

    We created an itemEditor for our dataColumn that was a
    mx:TextInput. Then we used the textInput event to capture keys as
    they are typed. You get a TextEvent from that which you can cancel
    if it something you don't want the user entering. We used regexs
    for are validation here. I'm not sure if this is the best way to
    handle this sort of thing, but it worked.

Maybe you are looking for

  • High pitched and prone to breaking up phone calls via Continuity through iPhone 5s on computer end

    On my Mid 2011 Mac mini running OS X 10.10, when I attempt to call someone through my iPhone 5s, the sound is extremely high pitched and prone to breaking up on my end. It sounds fine on the other end, when I use my iPad 2, and when I just call on my

  • Can't open raw images in CS2 after install, can't see thumbnails in Bridge

    I hope you guys can help. We just purchased an Acer laptop computer, picked it up yesterday. Hubby is going to use this strictly for working on his pictures when out of town. He didn't even plan to hook it up to the internet. It has Windows Vista Hom

  • Document listener can catch line return?

    I have the following DocumentListener (implemented in MyInputListener) in a JPanel where I process each character as it's typed in by the user from the insertUpdate() method. But the one character I can't seem to get is the enter key. It's like the J

  • XI Config transportable?

    Hi, We have done some config in our XI for CCM catalogue upload etc. I have exported the configuration objects into a /sapmnt/<XI>/.../export/abc.tpz file in our Dev system which we have moved into the /sapmnt/<XI>/.../import/abc.tpz folder in our QA

  • Serial No in Crsytal Report

    Dear Experts,                  I have created one crystal report for delivery document. But my customer wants ITEM SERIAL NO should come next to the Item-code . the Serial No Format is : SerialNo1 , Serial-No 2 ... etc.  In PLD is possible through sy