Fresher  working  on  struts  frame  work.

what should i exactly do to become good web developer ?
which part should i concentrate more (jsp,actions,model)?

Start by learning how to find the correct forum for your question. This isn't it.

Similar Messages

  • Style sheet with Struts frame work

    Hi,
    I am using MyEclipse editor. I am trying to use Style sheet in my JSP page using Struts frame work. I tried several ways but style sheet is not applying on my JSP page. Please look at my code and let me know where is the problem.
    1. I created a project called "AcmiReports". In the webroot I created folder called "CSS". In this folder I created "AcmiReports.css" file. In my JSP I am using like this
    <head>
    <link rel="stylesheet" type="text/css" href="/AcmiReports/WebRoot/css/AcmiReports.css">
    </head>
    Where am I doing wrong? I read somewhere that I need to set some thing in struts-config file. Is this true.
    Please help me.
    Thanks,
    Anamika

    No its not working fine, i m also facing the same problem with my code..
    when ever i come to jsp page through action css works fine, but if i directly forward to jsp page, css doesnt work
    can any body help me, its to urgent.. i need to submit my project till 1st of april... please do the need full asap
    i m copying the code used to apply the css in my jsp file
    <title><bean:message key="login.title" /></title>
    <link href="default.css" rel="stylesheet" type="text/css" />
    <script language=javascript src="clock.js" type="text/javascript"></script>
    same code works fine through action, but through normal forward it doesnt...

  • How to create web site using STRUTS frame work

    Hi,
    I know how to create web pages using JSP & Servlets.But now i have to create Matrimonial web site using STRUTS frame work.Plz any one guide for me...
    Thank U....

    Struts is not to be confused with JSF.
    Start at their own homepage over there at apache.org.
    Good luck.

  • What is the exact use of STRUTS frame work??

    Hi every one,
    I'm new to this STRUTS frame work. Can any one explain me in detail (if possible with an example) about,, why we need to use STRUTS framework as we have already JSP's.
    For example if we want to move from one JSP to another JSP, it is quite easy to move to the page with out any other extra logic. Where as comes to the point of STRUTS, we need to write, JSP form, Form-bean class, Action Class, configure our STRUTS XML file, if validation needed validation xml files. Is it not looking cumbersome to process?
    Please help me to recover from this...
    Expecting reply from many of you..
    Thanx in advance.
    Sriram

    meetshriram wrote:
    Hi every one,
    I'm new to this STRUTS frame work. Can any one explain me in detail (if possible with an example) about,, why we need to use STRUTS framework as we have already JSP's. Struts is a web MVC-2 framework.
    For example if we want to move from one JSP to another JSP, it is quite easy to move to the page with out any other extra logic. No, there's logic, and it's embedded into the page.
    It's fine for one page to another, but when you have a substantial application that has tens or hundreds of JSPs it's much harder to manage.
    Where as comes to the point of STRUTS, we need to write, JSP form, Form-bean class, Action Class, configure our STRUTS XML file, if validation needed validation xml files. Is it not looking cumbersome to process?
    Extra complexity does cost you something. Ask yourself what it's buying you: better layering, more configuration and less code, validation, etc.
    %

  • How to get MS Access DB connection in struts frame work?

    Hi All,
    I am trying to get MS Access db connection in struts frame work .
    I am using websphere.I don't know whether i have to set any configuration in the WSAD.
    In struts-Config.xml i am having this mapping
    <data-source
    type="org.apache.commons.dbcp.BasicDataSource"
    key="userDB" >
    <set-property property="driverClassName"
    value="sun.jdbc.odbc.JdbcOdbcDriver" />
    <set-property property="url"
    value="jdbc:odbc:localhost:9080/u:/EmpDetails.mdb" />
    <set-property property="username" value="" />
    <set-property property="password" value="" />
    <set-property property="maxCount"
    value="4" />
    <set-property property=" minCount="
    value="2" />
    </data-source>
    In the action class i am having this code
    dataSource = getDataSource(request, "userDB");
    conn = dataSource.getConnection();
    stat=conn.createStatement();
    result1=stat.executeQuery("select * from emp");
    While trying to execute this code i am getting this error
    java.sql.SQLException: DBCP could not obtain an idle db connection, pool exhausted
    any idea why this error is occuring?
    Thanks in advance
    Janaki.

    Yes i know that but i only wanted to know how i will connect MS Access database with Java desktop Application in NetBeans

  • Does Struts frame work supports Onclick function or not ...?

    HI,
    Does TLD support Onclick() onMouseOver Function or not ...?

    What? Haven't you read what this forum is about?
    By the way STRUTS just copies the attribute to underlying html (meaning the language, not the string) tag (if onclick is allowed, as you can easily check reading tld or pressing Ctrl+Space in any IDE). So support depends on the browser. Bye.

  • Hi i want to how to use DTO in struts frame work.

    hi all,
    i want to display content on jsp pages using DTO object.
    in my application one jsp page for user input. foruser input i am creating one action form for this. and also one DTO class for handing action form .
    my main aim is elimunate the actionclass coding thrugh DTOclass .
    this is my problem.
    can you tell me how to do this.if any solution please forward me .
    my email address is [email protected]

    Please ignore my previous answer. RowSetDynaClass can be implemented DTO but this will only solve half of your problem. RowSetDynaClass can be used to retrieve the data from the database. RowSetDynaClass cannot be used to encapsulate the data from a Form to take to the database. For this you can use a HashMap or BeanUtils classes.
    There are a few examples of implementing those. But I am still looking for a good one.
    Is there any point to use RowSetDynaClass to retrive info from DB if you are going to use a HashMap/BeanUtils to get the information from the Form? Should we only use HashMap/BeanUtils for transport the information back and forth between DB and View?
    Message was edited by:
    gabinux06

  • Can anyone guide me in Validation Frame Work of Struts

    Hi Guys , can anyone guide me on Validation Framework, Template Framework & tiles.I.e some of the best resources which can guide me there, As I am new to STRUTS Frame work.Better dont insist on google etc engines.Just let me know the best of the best which U feel.
    Thanx for the help in advance,
    Venu.

    Hi,
    See if the following are of use to you:
    http://struts.apache.org/userGuide/dev_validator.html
    http://www.reumann.net/do/struts/lesson1

  • Validation Frame work

    when i am using Struts frame work
    server genrate this error report
    i have also set commons-validator.jar in classpath
    javax.servlet.ServletException: ValidatorResources not found in application scope under key "org.apache.commons.validator.VALIDATOR_RESOURCES"
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:95)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

    Same as http://forum.java.sun.com/thread.jspa?threadID=5123146

  • Delete credit memo work item created in VA01 when the user change value

    Hi,
    In T.code VA01 Credit memo request is creating, this document will automatically create  work item.  Based on Net value in credit memo request, the work item should go for 5 levels of approval. After 1st person is approved, the workflow initiator realized that the net value in created Credit Memo request is wrong; he is going to VA02 and correcting the net value. Again we have to create new work item for this and delete the already created work item. Client has clearly mentioned when ever there is change in 5 critical fields in VA02 then only create fresh work item otherwise no need to create SECOND TIME work item. Net value is one of the critical field in the list.
    How to track already created credit memo request and how to delete the previously created work item. What is the feasibility of this requirement and how to handle this situation?
    Regards
    Vijay

    Hi,
    Just put a Fork and put 1 out of 2 outcomes and in the first alternative, you put your witem that goes to user B. In the 2nd alternative, put a Wait for event "CHANGED". And after this, put a process control step with "Set workitems to Obsolete" or "Cancel workflow" etc., depending on your requirement.
    Pl note that this will only take out old witems, but you need to send a new witem for which you need to trigger another instance of the workflow as well. pl put CHANGED event also as one of the triggering events and use condition editor to restrict the fields that triggers the workflow.
    Also, look into the IMG config of the following path. This might be a fitting solution.
    In SPRO, go to Financial Accounting (New)---> Financial Accounting Global settings(New) -
    >Tools --->Workflow ---> Workflow for Document Parking -->Reset Release Approvals(Customers).
    Here, you can list down the fields, the workflow should restart. But, then you need to give the workflow details etc., in the relevant config settings.
    We have used this in restarting workflows for General Ledger(GL) documents' workflow when some important fields are changed.
    For this config settings, look into the following help link.
    http://help.sap.com/erp2005_ehp_02/helpdata/en/01/a9cdd8455711d182b40000e829fbfe/frameset.htm
    Hope this helps.
    venu

  • CD with WRT300N doesn't work

    The CD which came with the WRT300N I collected from the retailer last week and tried today didn't work, which was unfortunate since I do not have an internet connection where I want to install the router and I am going to have to wait untill I can get a fresh working CD from the retailer, this is the first time I have ever had a CD fail to work..................
    Best and Warm Regards
    Mr Adrian Wainer

    please tell me who is your internet service provider so that i can tell you step by step configuration of router....

  • Regarding database access in Struts

    Hi All,
    My problem-
    I am inserting a value in database(MS ACCESS) using struts frame work.for the first time when i am executing the program the value is inserted but then again when i executed that program no insertion happens but it gives no error or exception. can u say what may be the problem for it?

    Are you using validation framework in struts. I think your application properties file is missing

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

  • Global Exceptions in Struts

    Hi All,
    When ever there is an error I need to handle the exceptions gracefully. Since I'm using struts frame work I'm using global-exceptions declarative.
    Here is the struts-config.xml where I have included <global-exceptions>
    <global-exceptions>
    <exception handler="com.hp.chrs.action.ActionExceptionHandler"
    type="java.lang.Exception"
    key="global.error.message "
    path="/jsp/chrs_error.jsp" />
    </global-exceptions>
    I have written ActionExceptionHandler.java class which is the subclass of ExceptionHandler. In execute function of this I'm logging the error then forwarding it to chrs_error.jsp.
    public ActionForward execute(Exception ex, ExceptionConfig ae,
    ActionMapping mapping,
    ActionForm formInstance,
    HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException {
    System.out.println ("Inside execute of ActionExceptionHandler");
    logError(ex);
    //forward to the jsp
    ActionForward forward =
    super.execute(ex, ae, mapping, formInstance, request, response);
    When ever an error occurs chrs_error.jsp is displayed. But it is not going to ActionExceptionHandler.java class.
    What my unerstanding is whenever error occurs it should go to ActionExceptionHandler and then display chrs_error.jsp.
    Any inputs are welcome
    Thanks in Advance

    Most probably its the wrond struts version...you cannot use message resources in struts i.0, might want to change the head of the struts-config.xml to
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

  • Global Exception in Struts

    Hi All,
    When ever there is an error I need to handle the exceptions gracefully. Since I'm using struts frame work I'm using global-exceptions declarative.
    Here is the struts-config.xml where I have included <global-exceptions>
    <global-exceptions>
    <exception handler="com.hp.chrs.action.ActionExceptionHandler"
    type="java.lang.Exception"
    key="global.error.message"
    path="/jsp/chrs_error.jsp" />
    </global-exceptions>
    I have written ActionExceptionHandler.java class which is the subclass of ExceptionHandler. In execute function of this I'm logging the error then forwarding it to chrs_error.jsp.
    public ActionForward execute(Exception ex, ExceptionConfig ae,
    ActionMapping mapping,
    ActionForm formInstance,
    HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException {
    System.out.println("Inside execute of ActionExceptionHandler");
    logError(ex);
    //forward to the jsp
    ActionForward forward =
    super.execute(ex, ae, mapping, formInstance, request, response);
    When ever an error occurs chrs_error.jsp is displayed. But it is not going to ActionExceptionHandler.java class.
    What my unerstanding is whenever error occurs it should go to ActionExceptionHandler and then display chrs_error.jsp.
    Any inputs are welcome
    Thanks in Advance

    No there isn't a global exception handler in JSF. At least none that I've ever heard of or run across. This is something I think JSF dropped the ball on. Maybe in a future release?
    I'm afraid you'll have to get creative with error processing. It's tricky with JSF.
    The way I did it in my application was to create error pages (as you mentioned). I configured the web.xml to redirect to these error pages if there was an uncaught exception. There are some serious limitations when you forward to a JSF page like this though. First, you need to make your error page have f:subview tags instead of f:view. Then, I couldn't get commandLink or commandButton to work right. The action method never got executed!
    You may have already seen some discussions about this. If not, dig around in the forums and you'll find a few good tips.
    CowKing

Maybe you are looking for

  • #MULTIVALUE error

    Hi, I searched the forum for #MULTIVALUE error but didn't get the proper answer. I'm getting the #MULTIVALUE error in a webI report on top of a BEX Query universe. Ex: Vendor has multiple Vendor Keys ans it's sales details Vendor Key Vendor Sales out

  • User settings lost

    Hi, I have a user who sets up the Vibe plug in but at several times during the week these settings disappear. Same applies to settings for Filr. The server info and password get removed. Now the user has a local profile which in theory should remembe

  • How do I take a picture and immediatley edit it

    I need to take pictures of a certain scenario at work.  I am looking to immediately draw and mark up a picture with dimensions and arrows and such.  Once Marked up, I need to save the photo and be able to print it for filing purposes.  New to the Ipa

  • Having problem reinstalling itunes

    Somehow something happened to my itunes software on my computer.  I uninstalled it and tried to reininstall.  It keeps saying that the apple mobile device failed to start. Verify that you have the significant privileges to start the system.  I have a

  • When i turn my location service my network is lost and joins again and it is lost again ? in iphone 3gs any idea ?

    when i turn my location service my network is lost and joins again and it is lost again it happens again and again in iphone 3gs any idea how to resolve it ?