Struts tutorials

I already searched all post in this forum regarding struts tutorial.currently im looking for other alternative method to practice myself in struts using oracle jdeveloper
Somebody here can help me?
Pls post your link here abouts struts tutorial preferably using oracle jdeveloper

Go to http://otn.oracle.com and search for "struts". There are lots of links including tutorials.
There are also tutorials within JDeveloper.

Similar Messages

  • Strut

    hi,
    i'm trying to learn strut. can any person tell me the best place to get tutorials on it?
    I'm finding it difficult to configure it. I only copied the lib of the to the lib in the WEB-INF of my directory and it didn't work
    thanks

    There are so many sites for struts tutorials.
    www.coreservlets.com/Apache-Struts-Tutorial/
    www.roseindia.net/struts/
    these are best ones
    If you have any doubt you can contact me directly to my mail id
    [email protected]
    I hope I will suggest you.

  • Upgradion of jsp application into struts application

    how can i upgrade my jsp application into a struts application?

    Read some struts tutorials.
    Example is this.

  • Any tutorials/demos available for using BPEL alongwith Struts or JSF

    Hi All
    Are there any sample tutorials/demos available for using BPEL alongwith Struts or JSF ?
    Thanks
    Badri

    Not sure if this is of any help, it uses ADF which is basically a JSF page.
    http://www.oracle.com/technology/products/jdev/viewlets/1013/bpelfromadf_viewlet_swf.html
    there is also some tutorials you may be able to use in the following directory
    SOA_HOME/bpel/sampels/Tutorials/102.InvokingProcesses
    cheers
    James

  • Nuevos tutoriales sobre Struts en Castellano

    Hola a todos.
    Por si os interesa en estas direcciones:
    Manual B�sico de Struts
    http://java.programacion.net/joa_struts/
    El Api de Struts
    http://java.programacion.net/struts/
    Pod�is encontrar dos tutoriales sobre Struts en Castellano. Struts es un framework que implementa el patr�n modelo vista controlador para el desarrollo de aplicaciones en Java utilizando JSP y Servlets.
    Espero que sean de vuestro agrado.

    Sorry, this forum is assumed to people using English.

  • New to Struts - logic:if error - am I not properly defining a bean?

    I am going through what are for the most part simple Struts examples and tutorials on my company's Intranet. The example below should be testing against the pre-defined <logic:if> and <logic:or> statement values and spitting out either the 'one or more conditions are true' or 'none of the conditions are true' depending.
    That said, I am getting an error with the following block of code (at line 11) just before the first logic:if statement and I am hoping for help in determining where I have gone astray.
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ taglib uri="/tlds/marketmaker.tld" prefix="abc" %>
    <%@ taglib uri="/tlds/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/tlds/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/tlds/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/tlds/jdo.tld" prefix="jdo" %>
    <%@ taglib uri="/tlds/string.tld" prefix="str" %>
    <abc:page>
         <h3>logic:if</h3>
           <logic:if name="calendarBean" property="month" op="equal" value="March">
           <logic:or name="calendarBean" property="year" op="lessEqual" value="2012"/> <!-- Note self-closing -->
           <logic:or name="calendarBean" property="day" op="equal" value="Friday"/>
             <logic:then>
                <p>At least one condition above is true.</p>
              </logic:then>
              <logic:else>
                <p>None of the conditions are true.</p>
              </logic:else>
           </logic:if>
    </abc:page>Again, the error is at line 11, occurring at or just before the <logic:if> statement. I presume it is because a bean must be properly defined.
    I tried the following variations of <bean:define> and keep coming up with the same error.
    <bean:define id="calendarBean" name="myCalendarBean" value="March" />
    <bean:define id="calendarBean" name="calendarBean" value="March" />
    <bean:define id="calendarBean" name="calendarBean"/>
    <bean:define id="calendarBean" name="myCalendarBean"/>
    <bean:define id="myCalendarBean" name="calendarBean"/>
    <bean:define id="calendarBean" value=""/>
    <bean:define id="calendarBean" value="false"/>
    <bean:define id="calendarBean"/>Am I right about defining a bean first? If yes, what am I doing incorrectly in the aforementioned <bean:define> declarations listed above?
    If you see something entirely different (and wrong) please do let me know.
    Edited by: 924359 on Mar 29, 2012 1:03 PM

    Try a Struts forum. This isn't one. Locking.

  • Multiple struts app in one provider

    I have two Struts Application, which have been converted into two PDK Portlets, as per the tutorials provider in the OTN site.
    The problem is that, I want the two portlets to talk to each other.. preferably by session. But, as i noticed that, the two portlets belong to two different providers, so it is not possible to share any data between them.
    Can I have two or more pdk struts portlets in one Provider.
    If there is any other way to share information between two Pdk struts portlets, please tell me...
    it would be of great help.
    Thanks
    Sam

    I have been trying to do something similar, but I keep receiving the following exception:
    java.lang.NoSuchFieldError: appConfig
    at oracle.jbo.html.struts11.BC4JRequestProcessor.processContent(BC4JRequestProcessor.java:148)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:233)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    My web.xml looks like:
    <servlet>
    <servlet-name>bc4jaction</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
    </init-param>
    <init-param>
    <param-name>BC4JDefinition</param-name>
    <param-value>Struts</param-value>
    </init-param>
    <!--<init-param>-->
    <!-- <param-name>config</param-name>-->
    <!-- <param-value>/WEB-INF/struts-config-documentservices.xml</param-value>-->
    <!--</init-param>-->
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/documentservices</param-name>
    <param-value>/WEB-INF/struts-config-documentservices.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>

  • Dynamically deleting row in struts

    Hi All,
    Can any one suggest me how to delete a row by highlighting it. I am using struts frame work and my home page consists of a table with the data populated from the database, my requirement here is to give an option to the user to delete a row by highlight it. I do not have any idea of doing this. Do we have any specific functionality in struts to do this??
    Please help me out.
    Thanks.

    Hi ,
    Sorry if the previous link was of no use to you. May be this will help you to add/ remove table rows from html using js.
    http://www.mredkj.com/tutorials/tableaddrow.html
    and add/remove html elements using js
    http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/
    Not sure , how to highlight a row and delete it , but you can have onClick,onKeyDown,ondblclick ..... events on TR which may be used to trigger the deletion.

  • Struts - Hibernate

    Hi,
    I am currently working on a small (for me quite large) project with Struts.
    Some basic Information
    I am quite new to J2ee applications but decided to work with Struts, because there are more references of tutorials and I have little experience in it.
    For O/R mapping I use Hibernate.
    Now my Question:
    I represent my tables (stored in a MySQL database) as POJO and call them Business Objects (I am following the pattern, supposed in the book "Programmin Jakarta Struts").
    Anyway, I do not intend to send this BOs to the action since they often contain a lot of data I won't use.
    Therefore I planned to create single ValueObjects which is created by a ServiceInterface and which would contain, for example a person's name and sirname.
    If I need a more detail description I' will create another ValueObject wich extends the person's "BasicView" to a detail view.
    But the detail view is actually (in my app) nothing but the BO itself rewritten in another class.
    So I don't know if its a good approach.
    But therefore I am asking some experts, namely you!
    Any help would be appreciated
    Peter
    Message was edited by:
    Peterson

    I am quite new to J2ee applications but decided to
    work with Struts, because there are more references
    of tutorials and I have little experience in it.If you are new to J2EE, then avoid Struts and Hibernate AT ALL COSTS! They are horrible to work with and only cause pain, ESPECIALLY if you're doing a small project. Struts/Hibernate are buzzwords and everyone rushes in to use them, but mark my words, if you go down that path it will take you twice as long to code your app.

  • Problem with FileUpload with Struts

    Hello,
    Here is my form I've created :
    <html:form action="/UploadFile.do" method="post" enctype="multipart/form-data">
    <html:file property="file" />
    </html:form>
    The form I submit conatins a "file" attribute of FileForm type.
    I did exatcly as mentionned in different tutorials to upload files with Struts.
    But I get the following exception and I can't figure out what's happening:
    javax.servlet.ServletException: BeanUtils.populate
    at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
    java.lang.IllegalArgumentException: argument type mismatch
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Please Help !
    I'm using Struts 1.1 by the way
    Thank your for your help
    Hugo

    What is in the form bean you're using? You need a field that holds a FormFile object:
    import org.apache.struts.upload.*;
         private FormFile file;
         public FormFile getFile() {
              return this.file;
         public void setFile(FormFile file) {
              this.file = file;
    ...

  • How to get start with struts?

    i want to learn struts and i have knowledge of java,jsp,servlet.

    Hi,
    Learning struts is quite easy,
    visit the site www.coreservlets.com
    Download the examples from the site and run them as specified in tutorials.

  • STRUTS: client-side validation in jsp using  DynaValidatorForm

    I am supposed to work on struts on as project and it is like learning a crash course and work the next day.
    In Struts 1.1 enviroment, I am using DynaValidatorForm to create a bean form and then perform validation.
    1. I write a DynaValidatorForm definition in struts-config.xml
    2. I write xml for action so that when /getQuotes.do in invoked by a jsp form, the form data is put into the QuoteDetailsBean.
    3. add the plugin script for ValidatorPlugIn
    xml fragment from struts-config:
    //form bean
    <form-beans>
    <form-bean name="QuoteDetailsBean" type="org.apache.struts.validator.DynaValidatorForm">
        <form-property name="forename" type="java.lang.String"/>
       <form-property name="surname" type="java.lang.String"/>
    <form-bean>
    </form-beans>
    <action
            path="/getQuotes"
            type="com.kainos.quickquotes.struts.QQGetQuotesAction"
            validate="true"
            name="QuoteDetailsBean"
            input="/userform1.do"
            parameter="save"
            scope="session">
            <forward name="success" path="/pages/jsp/result.jsp"/>
            <forward name="back" path="/userform1.do"/>
    </action>
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
         <set-property
             property="pathnames"
             value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
      </plug-in>Now I write a validation code for getQuotes.do. note that I can write the validation code with
    <form name="QuoteDetailsBean"> but this form bean is shared by many jsp, so i am using the name of the action
    (getQuotes) as the name of the form in the validation.xml.
    So far this looks okay, as I am going by some example.
    xml fragment from validation.xml:
    <formset>
              <form name="/getQuotes">
                 <field property="forename" depends="required,minlength">
                    <arg0 key="QuoteDetailsBean.forename" />
                    <arg1 name="minlength" key="${var:minlength}" resource="false"/>
                    <var>
                       <var-name>minlength</var-name>
                       <var-value>2</var-value>
                    </var>
                 </field>
                 <field property="surname" depends="required,minlength">
                <arg0 key="QuoteDetailsBean.surname" />
                <arg1 name="minlength" key="${var:minlength}" resource="false"/>
                <var>
                   <var-name>minlength</var-name>
                   <var-value>2</var-value>
                </var>
                 </field>
    </formset>Now I write the JSP. I use the <html:javascript> tag to allow front-end validation based on the xml in validation.xml.
    The jsp code:
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <html:html locale="true">
    <head>
    <title><bean:message key="welcome.title"/></title>
    <html:base/>
    <html:javascript formName="/getQuotes"
                method="validateForm"
                dynamicJavascript="true"
                staticJavascript="false"
                cdata="false" />
    </head>
    <body bgcolor="#FFCC9F">
    <html:errors />
    <html:form action="getQuotes.do" onsubmit="return validateForm(this);" >
    Forename:</td> <td>���<html:text property="forename"/></td></tr>
    <tr> <td>Surname:</td> <td>���<html:text property="surname"/></td></tr>
    <html:submit value="Quotes" /></td></tr>
    </html:form>
    </body>
    </html:html>Does this looks okay. I wrote so far based on some tutorials n help online.
    Now when I open the JSP and then do a submit, there is no validation (I tried by submitting with empty forename and surname. I mean i could invoke the action class and the invoke class
    redirects(forwards) to the appropriate path. so the code works fine except validation is not done
    Q1. So what should i do more to get client-side validation?
    What actually happens in client-side validation? does a pop up alert appears?
    nothing happens so far in my case.
    Q2. What should I do more for server side validation. Since the form is incomplete, what happens?
    I thought the same form returns and the error messages are printed in the jsp page since i have the <html:errors />
    tag just below the <body> tag.
    The action class is pretty simple so far:
    public class QQGetQuotesAction extends Action {
        public QQGetQuotesAction(){
    public ActionForward execute(ActionMapping mapping,
                 ActionForm form,
                 HttpServletRequest request,
                 HttpServletResponse response)
        throws Exception {
            DynaValidatorForm dynaform = (DynaValidatorForm)form;
            System.out.println("forename:"+dynaform.get("forename");
            System.out.println("surname:"+dynaform.get("surname");
            return forward=mapping.findForward("back");
    }Please help me out. I think I am missing something which i need to do
    thanks
    Tanveer

    I think the validations are to be declared on the form
    name and not the action path.
    Your formName is QuoteDetailsBean but your are using
    the action path(/getQuotes) both in the validation
    rules and the jsp tags. Use the formName on both the
    places.
    Also your html:javascript tag will not generate the
    static javascript to validate the fields. For this you
    will have to add code like below.
    <html:javascript dynamicJavascript="false"
    staticJavascript="true"/>
    Other options is to set the attribute
    staticJavascript="true" in your html:javascript tag.
    Hope it helps.hi
    staticJavascript="true" did the trick. :)
    I think the validations are to be declared on the form name and not the action path.It is not necessary. You can declare the validation on the action class. This is essential if a form bean is shared by several JSPs having its own action class. This is as per as I read in a tutorial and it works.

  • Is there any tutorial for integrating struts with hibernate using JDevelope

    Hi Everybody
    I am using Jdeveloper...and I want to know is there any tutorial available for usinfg struts and hibernate.
    If anybody knows abt them...plz tell me the links.
    Thanks and Regards
    K Sreenivas

    A tutorial about using hibernate in JDeveloper is here:
    http://www.oracle.com/technology/pub/articles/vohra_hibernate.html
    There are many papers and tutorials about Struts in JDeveloper - just go to the tutorials page and technical papers pages linked from the JDeveloper home-page.

  • Struts version of JSP include?

    JSP has a really straightforward way of including files:
    <%@ include file = "../footers.html" %>
    The downside is that if your directory structure changes, you need to go back and change all the links.
    I believe with Struts, you can use some kind of variable like
    <tiles:insert page="myfooter">
    But I've been looking at tutorials, and I don't know how exactly to define this. It doesn't seem straightforward at all. All the tiles:insert that I've seen contain actual file references which is precisely what I do **NOT** want--I want a variable that I can reuse in all my pages, like
    footer, then define this in a single location. To add to the confusion, the tiles insert seems to contain several put tags within it--but all I want is to just have that "myfooter" for example defined as pointing to say "../footer.html" in some config file, so that the same variable name can be reused.
    Is this possible with Struts?
    Thanks.

    hmm..actually i think i was thinking of it the wrong way.
    With tiles, you apparently can't insert pages. Instead there's a default frame, where you can specify a body, and other pages can decide what exactly goes in that body tag.
    It seems like that has a disadvantage over jsp's ability to pull in outside pages. Say for example there are 5 pages that all include the same file. The layout may be slightly different, but each one can use the same jsp:include tag, that maybe looks up the filename from a props file. With tiles, it may be a bit more complicated than a simple include.

  • Add Image to Jasper Report with Struts 2 and Hibernate

    Hi I want to add image to jasper report[pdf] in the environment of Struts 2 framework and hibernate. I am trying
    this for last couple of days, but i am unable to get the work done. if any body know the steps to add image to
    jasper reports, please help me or if u have any tutorials please let me know. I am using iReport-nb-3.5.0 to generate jasper files.
    Thanks in advance

    Finally i found a way to add image to jasper report. It is pretty simple, just give the exact image location to the image expression. In your web application, the image location may vary so, dynamically set the image location from your model class. Also, make sure that your lib folder contains itext-1.3.1.jar. If your lib folder contains itext-1.3.1.jar and iText-2.1.3.jar u will get like: java.lang.NoSuchMethodError: com.lowagie.text.Image.plainWidth()F
    So remove the iText-2.1.3.jar and keep only itext-1.3.1.jar, try this will work

Maybe you are looking for

  • Splitting Document

    Hi all! We are trying to customize splitting document for a customer invoice in productive system. In the posting there are some lines with different PC, there are also 2 automatic lines for G/L Acc. (wich have Cost elements in CO) to be splitted by

  • Opening Illustrator in Fireworks?

    I tried to open a Illustrator file in Fireworks but it says alert cant open the illustrator. How can i open a illustrator file in Fireworks? Also i have Adobe FIreworks CS6 and Adobe Illustrator CC if that helps.

  • Sample helloworld with Http

    Hi, Im new to this OSB.please provide any sample helloword with HTTPS. Can you please provide me the step by step solution. Regards, Noushad

  • Importing video and Flash player 10 and above

    I am trying to add a video to a presentation, but I can only get it to play in Flash player 9, anything higher I get connection errors, or it refuses to play. I encoded the .mp4 with Adobe Encoder to a .f4v file, but it still won't play unless I'm us

  • Construire tableau avec "num_ctrl" de la palette fonction

    Bonjour, Débutant en Labview, je souhaite construire un tableau 1 dimension dont les paramètres seront gérés seulement par des "num_ctrl " de la palette fonction de la face avant . ( voir photo ci - jointe ) ça parait ultra simple mais la je bloque.