Download struts framework??

Hi,
can some body help me on how to i install struts framework on my systems and start working on it..with few examples...

http://jakarta.apache.org/struts/userGuide/index.html

Similar Messages

  • How to run a jsp file written in a struts framework using tomcat5.0 server

    hi,
    plz somebody help me.
    how do i run a jsp file which i've written in struts framework .
    and anybody plz tell me the process from installing a tomcat server to setting its path such that my jsp page runs....

    hi,
    this is zoya,I gathered from the name that appears in the post header already. :^)
    an engineering student,and i require
    help.
    plz somebody specify the whole process from
    installing tomcat and how to set its path so that i
    can run a jsp page written in struts using tomcatThere are dozens of tutorials on this. First, you need to get Tomcat running without Struts. There are HOW-TO's, sample apps, the whole shebang over at Jakarta's site. Start there. If you get stuck, there are also tutorials on Servlets (and probably Tomcat in specific) on the Net. Do a Google search.
    Next, download Struts. There is, again, extensive HOW-TO and tutorials on their site as well.
    No one will do your work for you. Make an attempt, then post when you are stuck.
    - Saish

  • Using Multiple Properties Files in Struts Framework

    Hi Everybody!
    I just to know how to use a multiple message-resources files in a Struts Framework.
    I've 2 properties file :
    1. ApplicationResources_A.properties
    2. ApplicationResources_B.propertiesI put the files under WEB-INF/classes dir.
    My configuration in struts-config file something like below:
    <!--  Begin Testing -->
         <message-resources key="A" parameter="ApplicationResources_A" />
         <message-resources key="B" parameter="ApplicationResources_B" />
    <!--  End Testing -->
    </struts-config>
    if my JSP code is like below , this error is thrown:
    org.apache.jasper.JasperException: Cannot find message resources under key A
      <tr>
        <td width="17%">Language A</td>
        <td width="83%"><bean:message bundle="A" key="user.lang.desc"/></td>
      </tr>
      <tr>
        <td width="17%">Language B</td>
        <td width="83%"><bean:message bundle="B"  key="user.lang.desc"/></td>
      </tr>
    but  if I change the  JSP code like below it  work fine:
      <tr>
        <td width="17%">Language A</td>
        <td width="83%"><bean:message key="user.lang.desc"/></td>
      </tr>
      <tr>
        <td width="17%">Language B</td>
        <td width="83%"><bean:message  key="user.lang.desc"/></td>
      </tr>
    In this code , I dont know  which resources file is used.
    So how do I solve this problem. Thanks you.

    I have defined the following:
    struts-config.xml
    <message-resources key="ldap" parameter="com/project/struts/ldap"/>
    Action.java
    In execute method:
    MessageResources messageResources= MessageResources.getMessageResources("com/project/struts/ldap");
    System.out.println("INITIAL_CONTEXT_FACTORY"+messageResources.getMessage("INITIAL_CONTEXT_FACTORY"));
    and it is working, however I have to change "com/project/struts/ldap" value in Action.java file whenever there is any change in name or location of ldap.properties.
    Can I access this properties in such way that I don't have to change parameter path manually in Action.java (modifying in struts-config.xml is okay)? like access through key="ldap" or something.
    Thanks and regards,

  • Dynamic Tree Creation using JSP, Struts framework

    I urgently require tips/information/code snippet for creating a Dynamic Tree structure.
    Tree is the hierarchical folder structure that we see in windows operating system.
    Dynamic tree in the sense that all nodes shall be populated from database & a radio button shall be present at each node that can be selected & submitted to form.
    Tree should be done using JSP (& if required Javascript).
    I am using Struts framework .
    [email protected]

    u need to know quite a few java technologies to make archieve your dream.
    JDBC, dynamic array and JSP.
    after reading tutorial regarding to these 3 materials, you should be able to get your job done.

  • Oracle portal using JSF, JSP, Struts framework

    Hi ,
    Can anyone tell me how to build an oracle portal using JSF,Jsp and Struts Framework.
    Also please provide any manual or documentation for developing oracle portal.
    Thanks in Advance,
    Raghav

    At present, i think the best thing to do is to look at the example provided with the struts-faces integration taglib. I don't know any documentation about it.
    http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/

  • Need to understand Struts Framework

    Greetings everyone,
    I am trying to understand how the entire Struts Framework works.
    If I am running tomcat, is copying and pasting the WAR file into webapps directory the only way to install struts?
    Since I am new to struts and was trying to understand how it works from ground up, I tried creating the neccessary files needed and copied the struts.jar into my web app's WEB-INF\lib folder.
    Unfortunately, I kept on hitting errors.
    Here is my app directory structure
    1) MyApp/
    - index.jsp
    - displayname.jsp
    2) WEB-INF/
    - struts-config.xml
    - struts-html.tld
    - web.xml
    3) WEB-INF/classes/example/
    - NameAction.class
    - NameForm.class
    4) WEB-INF/lib/
    - servlet-api.jar
    - struts.jar
    I am getting this error:
    HTTP Status 404 - /StrutsActionForm/index.jsp
    type Status report
    message /StrutsActionForm/index.jsp
    description The requested resource (/StrutsActionForm/index.jsp) is not available.
    Apache Tomcat/5.5.20
    I know it sounds silly but that's the only way I can truly understand the entire struts framework.
    Your reply will be much appreciated.

    If you specify the appBase of your application in Tomcat's server.xml ,
    or define a <Context>.xml and point the docBase to where ever your code's main directory is, you won't hae to create a WAR file and place it under WEB-INF each time you make any change.
    This saves a lot of time and effort in the development envionment, especially when you make a change to JSP pages - you can just refresh the browser to see the changes instead of creating a WAR file just to see changes in JSPs.
    Create a WAR file only when you are deploying your application to production / live website - a WAR file is not necessary in dev environment.
    With the above set-up your project can be located outside and independent of Tomcat, as long as the appBase or docBase are pointing to the location of your project.
    For tomcat related questions join the Tomcat User Mailing List
    and for struts question Struts User Mailing List

  • Can we use ejb in struts framework?

    can we use ejb in struts framework?I need the reasons for both yes or no answers.

    This question is not appropriate for this forum, which deals with the J2EE SDK. Have you looked at the Struts documentation? Have you performed a Google search? If you had, you would have found the answer....
    -Ian Evans

  • Populating Database values into a combo box in STRUTS Framework

    Hi Guys,
    I am currently working on a STRUTS Framework project and I can't get much resources related to the problems that I'm facing.
    Currently I need to populate a JSP file's Combo box with database values. What I don't know here is the syntax used to in STRUTS framework to populate the Combo box with database values. Anyone with experience related to this topic, please kindly help me out.

    Struts doesn't define anything about the datab layer. You're free to implement how you will.
    Struts instead guides you into following an MVC pattern.
    You populate a combo box with values from a bean.
    So you need to set up a bean for this page to talk to.
    That bean can be populated from the database - but at that point you're in java/jdbc code - and away from the struts layer.
    My suggestions
    1 - Define a bean to represent the information from the database.
    2 - write a method that queries the database, and copies the data into a List of those beans. This will be your Data access layer.
    3 - in your action, call that method, and then set the list of beans as a request attribute. Or maybe as a property on a form.
    4 - use that list of beans to populate your dropdown box.

  • I want to Know More About Struts Framework

    Hai i am kiran patil from tybca m.s.uni baroda
    we have elective of struts framework i want to know in deep and as i am begineer i want to know more about it
    thank you if u can help me
    Regards,
    kiran

    http://struts.apache.org/

  • Struts framework & J2EE deploytool problem

    When creating a new application in the J2EE deploytool with the example WAR file "struts-example.war" from the struts framework i can view this at "http://localhost:8000/example/" with no problem. However, when creating my own WAR file of the build struts framework example i get after deployment and calling "http://localhost:8000/example/" the following:
    "javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE"
    The WAR and EAR configs look exactly alike in the J2EE deploytool.
    What bugging me is i can not find the problem.
    Please inform
    Thanbks

    Thank you very much for the response.
    As you mentioned I put the "ApplicationResources.properties" file in the classes directory, this gives me the same error.
    However, i am using struts 1.1 if it matters and in web.xml the following is defined:
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    and in struts-config.xml :
    <message-resources
    parameter="org.apache.struts.webapp.example.ApplicationResources"/>
    This is the directory where the "ApplicationResources.properties" also excists.
    As mentioned the example war coming with the framework works fine, so i assume it is not related to any envioronment vars.
    It is probably clear that i am new to all this. My objective is to determine whether my exising framework with a servlet session controlling usecase can be integrated with the strutsframework.
    I thank you for your time
    regards, Erwin

  • How Ajax works with Struts framework

    How Ajax works with Struts framework .
    Thanks
    Ramki

    So we must write file name(like abc.do), If am using struts <html:link > tag like <html:like action="abc" >Click</html:link>, so with ajax we must call like <a href ="abc.do">Click</a> .
    But there is a problem, if am using ,
    <servlet-mapping>
    <servlet-name>MainServlet</servlet-name>
    <url-pattern>/r/*</url-pattern>
    </servlet-mapping>
    or
    <servlet-mapping>
    <servlet-name>MainServlet</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    here i am changing web.xml file based on client interest. At those situation we must change all jsp pages for <a href ="/r/abc">Click</a> .like,.
    It's very difficult.
    Is any other way to use ajax with Struts (Only struts tags)
    Thanks
    Ramki

  • Developing WebApplication basing on Struts Framework

    Hi,
    We are developing an Web application. In our previous application we had used MVC1 architecture where we have one renderer for one .jsp page. Now we want to move to MVC2 architecture with struts framework at Controller level. I request a detailed documentation regarding this if any one has....
    We are concerned about how to make the portal understand about our architecture. Do we need to follow any standard steps to for making the portal to understand that this application is been developed Struts framework.
    We are using Oracle Portal 10.1.4 and Jdeveloper 10.1.3.2
    Regards,
    tulacenath.

    actionForm acForm =
    (actionForm)request.getAttribute("ActionForm");
    // i have added the form to session in my parent
    pageNote the above Statements.....
    >
    >
    When the page is loaded for the first time with
    default search option chosen
    its working fine. However, when the search option is
    changed and the
    search function is executed it leads to the error
    page.
    I tried step by step debugging and found that the
    actionForm was null when
    the search was performed second time.
    How could i solve this problem? any ideas?for this remove ur reset method from bean class and manually do this.
    ( create another method to nullify values and call it when required )
    AE

  • Can i have multiple ActionServlet in a struts framework?

    Can i have multiple ActionServlet in a struts framework?
    if YES then please give me the sample configuration file..
    thanks & Regards
    raghavan

    You can heve multiple actionServlet mappings in struts framework. but it not a good practice to use multiple ActionServlets. It will cause mapping problems later on.

  • Seeking solution in WLP for using MVC struts framework

    Hi,
    We would like to implement Struts like similar solution with Weblogic Portal Server.
    I would like to know the possibilities of bringing the Struts framework in WLP
    and I also would like to know the contraints in implementing the similar framework
    in existing WLP.
    Thanks in advance.
    Regds,
    Ratnakar

    Hi Rathnakar,
    In this very same newsgroup this subject has risen in september last year.
    I include the posting, but admit that I have not tried it so far.
    Regards,
    Ad van Ommen
    [email protected]
    ===================================================
    "Raphaël Faudou" <[email protected]> wrote in message
    news:<[email protected]>...
    I have not seen any official document on this integration but I personnaly
    developped
    a struts-portal adapter that allows a struts-based webapp to run as a
    portlet
    in the BEA portal.
    The idea is to redirect the displaying
    nstruction -requestDispatcher.forward(request,
    response) - toward the portal webflow servlet with the appropriate
    parameters
    (portletName, pageName, event).
    Remark : If you use struts 1.1, this adapter is very simple because you only
    have
    to inherit the RequestProcessor class and redefine the "doForward" method.
    Then, you have two design solutions :
    1) you model a simplified webflow with only presentation nodes and
    transitions
    that match what your navigation as specified in your struts-config.xml.
    In this case, logic is handled by Struts framework and presentation is
    handled
    by the portal webflow servlet.
    2) you dont' want to use portal webflow and you have to bypass it by
    developing
    another adapter at the portal side.
    In this case, logic and presentation are handled by th Struts framework and
    the
    portal adapter only displays the next page in the appropriate portlet.
    Conclusion : you can deploy a struts-based application in the BEA portal
    after
    developing one or two adapters that can be generic.
    Good luck
    =====================================================
    "Ratnakar Sonti" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi,
    We would like to implement Struts like similar solution with WeblogicPortal Server.
    I would like to know the possibilities of bringing the Struts framework inWLP
    and I also would like to know the contraints in implementing the similarframework
    in existing WLP.
    Thanks in advance.
    Regds,
    Ratnakar

  • Porting unix shell script to WEBUI having Struts framework

    Hi,
    I am working on an assignment where I have to migrate various unix shell scripts to web based application using struts framework(J2EE).
    Is there any way to call the existing unix shell script thru the web based application?? so that the rewritting complexity can be reduced.
    Any expert suggestion will be appreciated.
    Thanks
    Raj

    Thank you for reply ,
    And sorry by mistake question repeated twice,
    but when iam executing those batch files it is throwing some exceptions,
    in that file you did not mention to set the JRE path whether it is not necessary and also there msoc05 is the machine name of unix system that need to kept or need to be changed with window IP address .please reply.
    thanks in advance.

Maybe you are looking for

  • My conky and rox layout:

    hello, this thread answers some questions from this thread http://bbs.archlinux.org/viewtopic.php?id=36457 yes, the statistics line at the top is conky. it's a pretty simple setup. just everything written in line w/ "|" as separators. the .conkyrc: #

  • Calendar Sync Question

    Nice forum, I have a question re calendard. in my 9000 I have a work account using BES and one more e-mail work acount using BIS (since they are pop3). When I shcedule an appointment from outlook and choose to send the invitation the pop3 account the

  • Roaming problem with WLC 5508 with Phone 7921

    Hi to all, i have one WLC with several AP1231 2.4 GHz. Everything works fine with PC and 7921 in normal condition (last firmware release 1.4.3.4). But with 7921 there is a little problem: if i walk quicky along the warehouse and along lanes while i'm

  • DocumentBuilder parse closes file

    Hi, I'm basically doing Doc = builder.parse( FileInputStream ) Everything works. I do some locking on the FIS using a channel and lock After the read, I try to call lock.release() and it throws the exception IOException Message: The handle is invalid

  • Please help me to implement merge

    Hi Experts,