Strut project

hi
i need simple strut project using mysqlserver. pls any one tell me website for this. pls its very urgent

To understand how struts project works
http://www.ibm.com/developerworks/websphere/techjournal/0302_fung/fung.html

Similar Messages

  • Html:link not working in struts project driving me mad, please help...

    Afternoon all,
    Can anyone help me with an issue I'm having with my first struts project, I'm learning as I go.
    Anyway, I'm trying to create a bog standard hypertext link which passes a value back to a specified struts action. The flow of the application
    is as follows:
    1) search.jsp
    User enters a name and postcode to search on, then click submit
    2) searchAction
    Struts action 'search' is called and does the search in a back-end db.
    Each result found from search is created as a javabean (named resultsBean), and added to a list object. The list object is set as a request
    attribute named 'SearchResults'.
    The action is then forwarded on to another jsp page named results.jsp
    3) results.jsp
    The results.jsp page retrieves the list object from the 'SearchResults' attribute and loops through each entry
    in the list and converts each entry to the 'resultsBean' javabean object.
    Each resultsBean object has a getVirtualID method which stores a string value. This value is retrieved and a hypertext link is created which
    passes this value on to another struts action named 'select'.
    When this link is clicked on, the select struts action is called and the value passed as a parameter is retrieved.
    This is the part I can't get to work, I can't get the link to render properly. When I click the link the select action retrieves
    & lt;%= resultsBean.getVirtualID() & gt; as the value of the parameter 'vid' instead of the value stored in the getVirtualID method of the resultsBean.
    Listed below is the code from my results.jsp page. If anyone can help me get this to work I would be very grateful.
    Thanks in advance,
    Alex
    results.jsp code
    <%
       List searchResults = (List)portletRequest.getPortletSession().getAttribute("SearchResults");
    %>
    <div id="table_layout" style="width: 713px; margin: 0px 0px 0px 3px;">
      <div id="row">
        <div id="column"><img src='<%= response.encodeURL("/images/results.gif") %>' alt="" width="223" height="159" border="0" /></div>
         <div id="column" style="width: 30px;"></div>
         <div id="column">
          <div id="table_layout" style="width: 460px;">
            <div id="row" style="width: 430px; border-bottom: 1px solid #4e137d;">
              <div id="column" style="width: 155px;">Name</div>
              <div id="column" style="width: 10px;"> </div>
              <div id="column" style="width: 130px;">Address</div>
              <div id="column" style="width: 10px;"> </div>
              <div id="column" align="right" style="width: 120px;">References</div>
            </div>
    <% if (searchResults.size() > 0) {
           Iterator it = searchResults.subList(0, searchResults.size()).iterator();
           ResultsBean resultsBean = new ResultsBean();
           while (it.hasNext()) {
                resultsBean = (ResultsBean)it.next(); %>
            <div id="row" style="padding: 5px 0px 10px 0px;">
              <div id="column" style="width: 155px;"><html:link styleClass="results"  page="/select.do?vid='<%= resultsBean.getVirtualId() %>'" title="<%= resultsBean.getFullName() %>"><%= resultsBean.getFullName() %></html:link></div>
              <div id="column" style="width: 10px;"></div>
              <div id="column" style="width: 130px;"><%= resultsBean.getFullAddress() %></div>
              <div id="column" style="width: 10px;"></div>
              <div id="column" align="right" style="width: 120px;"><%= resultsBean.getReferenceIcons(portletResponse) %></div>
              <div id="column" style="width: 13px;"></div>
              <div id="column" style="width: 22px;"><input id="<%= resultsBean.getVirtualId() %>" name="ckbox" type="checkbox" value="" title="tick to select for merging" style="border: 0px solid #ffffff;"></div>
            </div>
    <%     }
       } %>
           </div>
         </div>
      </div>
    </div>
    <br />
    <br />
    <html:link forward="/searchpage">Return to search page</html:link>

    If you have part of an attribute dynamic, you need to make the entire attribute an expression.
    ie instead of
    page="/select.do?vid='<%= resultsBean.getVirtualId() %>'"
    it has to be
    page="<%= "/select.do?vid=" + resultsBean.getVirtualID() %>"
    However for my approach, I would aim for zero scriptlets, and use the struts tags even more. For instance instead of an iterator, use the struts logic:iterate tag (or the JSTL c:forEach>
    Also instead of div tags, I would use html table tags - <table> <tr><td> etc etc. Thats what its for right?
    Here is at least some of it rewritten with struts tags.
    I left out the div tags so I could focus on the "important" stuff.
    <logic:iterate id="resultsBean" name="SearchResults">
      <html:link styleClass="results"  page="/select.do" paramId="vid" paramName = "resultsBean" paramProperty="virtualId">
        <bean:write name="resultsBean" property="fullName"/>
      </html:link>
      <bean:write name="resultsBean" property="fullAddress"/>
    <%= resultsBean.getReferenceIcons(portletResponse) %>
    <input id="<%= resultsBean.getVirtualId() %>" name="ckbox" type="checkbox" value="" title="tick to select for merging" style="border: 0px solid #ffffff;">
    </logic:iterate>I'm not entirely certain what you are doing with that checkbox at the end. They all have the same name, but no value. You couldn't identify at the server end which one was clicked.
    Hope this helps some,
    evnafets

  • Import Struts Project

    Hi,
    I'd like to switch working from Eclipse to Jdveloper 10g, so I was wondering if there was any way I could import my existing code into Jdeveloper. I'm using Struts 1.1 and iReports.

    Hi
    The Struts project will be recognized and will work but not the ejb's because the EJB-Xdoclet facet will not be available on the Struts project. The ejb's should be part of a separate EJB Project which is referred by the web project.
    Using Eclipse EJB Project:
    You can create a Eclipse WTP EJB project that uses EJBDoclet and drop the EJB's there.
    The struts web project can add a module dependency on the ejb project and get access to the EJB's.
    If you want to use BEA's Weblogic Ejb Project, you have to recode your EJB.
    Using BEA Weblogic EJB Project:
    BEA does not support XDoclet tags so the ejb's with XDoclet tags won't be processed by studio or workshop, and will be ignored.
    Please search for Xdoclet in the page http://edocs.bea.com/wlw/docs100/relnotes/relnotes.html
    BEA's wlw.ejb facet is mutually exclusive with the WTP ejb xdoclet facet. Weblogic EJB's use EJBGen annotations in the EJB source file. More info at http://e-docs.bea.com/wlw/docs100/guide/ejb/conEJBsInWorkshop.html#EJBProjectAndEJBGen
    You can create a Weblogic EJb project and create a ejb using ejbgen tags. The web project can add a module dependency on the ejb project.
    Vimala-

  • Calling struts project from ADF Project

    Just wondering if deploying Struts Project as ADF Lib Jar can allow to use as part of ADF Project, just like you can do with ADF View Controller project ,
    Is it possible?
    Thanks,

    I bet it's not working. Different controller fro struts and adf.
    An adf library is a jar with some special info about the context the lib is running on.
    You can try to deploy a struts part as adf lib and see what happens ;-)
    Timo

  • Sample struts project

    Greetings,
    hi I need simple struts project. will u please tell me the struts project site or anybody have struts related project. please give me.so urgent.

    try to download the chapter code from wrox.com with the title:
    beginning java server pages, chapter 21.
    u have an Personalized portal project in that chapter which clearly explains the usage of struts

  • Unable to run struts project from jdeveloper 10.1.3

    Hi,
    I have created a struts-based application project using jdeveloper 10.1.3(build JDEVADF_10.1.3.1.0_NT..) by importing an ear file .The project seems to be built fine as i get no errors in compiling the entire project.I have included the Struts runtime library as well in the project.
    But when i try to run the login.jsp from the struts-config.xml,i get the :
    The page cannot be displayed message in the browser.
    I dont see any errors in the Embedded OC4J log except few warnings lik dis:
    [Another instance of the server is still running.  JDeveloper will shut it down and then restart the server.]
    Process exited.
    [Starting OC4J using the following ports: HTTP=8898, RMI=23899, JMS=9235.]
    D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config>
    D:\jdevr12\jdevbin\jdk\bin\javaw.exe -client -classpath D:\jdevr12\jdevbin\j2ee\home\oc4j.jar;D:\jdevr12\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\xml.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /D:/jdevr12/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib\uix2.jar (from WEB-INF/lib/ directory in D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib) has the same filename but is not identical to /D:/jdevr12/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 26766 ms.
    pls help me out on what could be the problem.This application wsa running fine in Eclipse but i am unable to run it using Jdeveloper.

    Is this new develop page ?
    you check these points for this issue.
    1. Check JDEV_USER_HOME
    2. Design a Test PG and test it first.
    3. Your OAF patch level: is 12.0.4 ? Are you running with r12?
    Thanks

  • XMl parser version problem for running struts project in jdeveloper 10.1.3

    Dear All.
    I am trying to run a struts (v 1.2.9) based project in Jdeveloper 10.1.3.1.0.The struts version in Jdeveloper is 1.1.
    when i am trying to run the index.jsp i get an error:
    org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/dynamic
    I think the XML parser version is a problem.Jdeveloper has OracleXMLParser v2 and i think the XML Parser apis used in building the project is different.I have placedcustiom xml parser apis and the xerces.jar in the jdevbin/jdev/lib folder and included these jar in the bootclasspath as follows:
    AddVMOption -Xbootclasspath/p:../lib/xml-apis.jar
    AddVMOption -Xbootclasspath/p:../lib/xerces-2.6.2.jar
    But even then the Exception persists.Is the syntax for Xbootclasspath wrong or i need to place these custom api's in some other location of jdev.
    I am not being able to figure out the XMl parser problem.
    Any help wud be great.
    Is it that i cant run the project in jdeveloper.Just to mention the application is deployed in OC4J on the server and runs fine..But its only that i kant run it locally through jdeveloper

    I am also facing the same issue on my laptop. I searched for forum but no luck.
    appreciate if anybody can throw some light on this.

  • Document Management System for Struts Project

    I am doing a J2EE project in struts, in which i need to implement document management system containing the following features :
    1. File Upload/Download
    2. File Sharing
    3. Giving Permissions to Files, etc
    Instead of building a DMS from the scratch I am looking for a open source DMS solution which I can customize as per my needs and implement in my project. Since my project is based on struts, I am looking for a struts based solution.
    Please tell me if there are any good open souce DMS like these.

    hi jitesh,
    now i am doing the same project which you have done with struts framework. please let me know the solutions for the project.
    please reply to my mail id = [email protected]
    thanks.
    nandha.

  • How to use ActionForm validate() method in ADF/Struts project

    Hi
    We are developing a project using ADF/Struts. We are not planning to use entity level validation. Rather we prefer to have it at Struts Form Bean level. So we need to have validate() method in Form Bean.
    That mean we need to have seperate bean for all the actions /jsp. The ADF's DataForm form bean is not gonna work for us. Is that correct.
    Please let me know...am I in the right direction.
    That could be a different discussion why we don't prefer entity level validation

    You can use the Struts validator plug-in (there's a howto on doing that on OTN) and it will handle the basics for you through XML definitions.
    If you want to specifically have a Form bean with a Validate() then the issue is that the current "DataForm" is a generic bean driven of the databinding files, so yes you'd have to write a bean per screen to use instead and loose that benefit of having a universal Bean. (Internally the DataPage and DataActions will respect the ActionForm APIs so you can pluf your own ActionForm subclass in with no problem.
    Plan B might be to leave the DataForm Bean in place and instead override the lifecycle of the datapage, probably in prepareModelUpdates()

  • How to use log4j in struts project

    Hi, all
    I want to use log4j and pooling in my running project based on struts-tomcat.
    Can any one tell me all the process in details step by step,to apply in my project
    i m wait for any rply

    Another day, another jargon-dump

  • URGENT:Convert a Single Struts Project to Multiple Struts - 10g

    Hello,
    Currently, I have a single Struts config file. Can i Add more projects and convert it to a multiple struts config project.
    I followed the multiple struts config file in http://www.oracle.com/technology/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html
    and when i tryied to add struts in a new project, only the already existing struts file is added in the new project (Since the public_html dir is same). I cannot manually add a struts config file. Is there any way to do this ?
    Please advise and help.

    Repost! please advise!!

  • Doubts about: tag nesting error in Struts project

    Hello, people...
    I'd like to know why this error is happenning... Does someone can help me, please? The code is below:
    *** JSP Page ***
    <%@ taglib uri="struts-html" prefix="html"%>
    <%@ taglib uri="struts-bean" prefix="bean"%>
    <%@ taglib uri="struts-logic" prefix="logic" %>
    <%@ taglib uri="project-tag" prefix="tag"%>
    <html:html>
    <head>
         <title><bean:message key="label.project"/></title>
    </head>
    <body onLoad="window_load();">
    <table border="0" width="100%">
    <tr>
    <td>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
         <tr>
         <td align="right"><!-- Bot?o Voltar --></td>
         </tr>
         <tr class="FonteTituloTela">
         <td><bean:message key="titulo.pesquisarEmpreendimento"/></td>
         </tr>
         </table>
    </td>
    </tr>
    <tr>
    <td>
         <html:form action="/pesquisarEmpreendimentoPopup.do" method="get" onsubmit="return validatePesquisarEmpreendimentoPopupForm(this);">
         <html:hidden property="action" />
         <table width="550">
         <tr>
         <td colspan="3"><bean:message key="titulo.dadosDaPesquisa"/></td>
         </tr>
         <tr>
         <td><bean:message key="label.codigo"/></td>
         <td colspan="2">
         <html:text property="nu_codigo" size="7"/>     
    </tr>
         <tr>
         <td><bean:message key="label.nome"/></td>
         <td colspan="2">
         <html:select property="criterio">
         <html:option value="1"><bean:message key="label.cboIniciando"/></html:option>
         <html:option value="2"><bean:message key="label.cboContendo"/></html:option>
         </html:select>     
         <html:text property="no_municipio" size="40"/>     
         </tr>
    <tr>
         <td>
              <tag:rollover imagemUp="<%=SiwarContext.getContextPath().concat(\"imagem/btn_confirmar_on.gif\")%>" imagemDown="<%=SiwarContext.getContextPath().concat(\"imagem/btn_confirmar_off.gif\")%>" onClick="javascript:document.pesquisarEmpreendimentoPopupForm.submit();"/>
         </td>
         </tr>
    </table>
         </td>
    </tr>
    <tr>
         <td align="center">
              <tag:subir width="500">
         </td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    *** ActionForm ***
    package jm.action;
    import java.io.IOException;
    import org.apache.struts.action.*;
    import jm.form.PesquisarEmpreendimentoPopupForm;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class PesquisarEmpreendimentoPopupAction extends Action {
    public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    PesquisarEmpreendimentoPopupForm pesquisarEmpreendimentoPopupForm = (PesquisarEmpreendimentoPopupForm) form;
    // Acessar l?gica de neg?cio
    return mapping.findForward("pesquisarEmpreendimentoPopupFwd");
    *** Form class***
    package br.gov.caixa.siwar.tratarproponentes.form;
    import org.apache.struts.action.*;
    import org.apache.struts.validator.*;
    public class PesquisarEmpreendimentoPopupForm extends ValidatorForm {
         private String nu_codigo;
         private String no_municipio;
         public String getNo_municipio() {
              return no_municipio;
         public String getNu_codigo() {
              return nu_codigo;
         public void setNo_municipio(String no_municipio) {
              this.no_municipio = no_municipio;
         public void setNu_codigo(String nu_codigo) {
              this.nu_codigo = nu_codigo;
    *** Struts-config ***
    <form-beans>
    <form-bean name="pesquisarEmpreendimentoPopupForm" type="jm.form.PesquisarEmpreendimentoPopupForm" />
    </form-beans>
    <action-mappings>
    <action name="pesquisarEmpreendimentoPopupForm" type="jm.action.PesquisarEmpreendimentoPopupAction" path="/pesquisarEmpreendimentoPopup" scope="request" validate="false">
    <forward name="pesquisarEmpreendimentoPopupFwd" path="/jsp/tratarproponentes/PesquisarEmpreendimentoPopup.jsp" />
    </action>
    </action-mappings>
    *** validation ***
    <formset>
    <form name="pesquisarEmpreendimentoPopupForm">
    <field property="nu_codigo" depends="required,maxlength">
         <arg0 key="pesquisarEmpreendimentoPopupForm.nu_codigo"/>
         <var>
         <var-name>maxlength</var-name>
    <var-value>3</var-value>
         </var>
         </field>
         <field property="no_municipio" depends="required,maxlength">
         <arg0 key="pesquisarEmpreendimentoPopupForm.no_municipio"/>
         <var>
         <var-name>maxlength</var-name>
              <var-value>40</var-value>
         </var>
         </field>
    </form>
    </formset>
    Thanks,
    Vanisi Leal

    It's not about whether we can read the code and figure it out. It's about the fact that most of us have better things to do then to take your long bit of code and config files, (which you don't have the decency to put in code tags), read it or set things up to run it just to see what the problem is.
    You say there is a problem, so you must have run it and gotten some error or some unexpected other output, yet you can't be bothered to post that as well? You're title is not an error message that points to anything. If you posted the actual problem then you would get better responses.
    You can stuff your sorry's in a sack!

  • How to Solve: tag nesting error? in Struts project.

    Hello, EveryBody:
    I am working for a Struts system in testing a program of look-up user password via user-inputs with birthdate, postal code, userid. I have writen three program, lookup.jsp, LookupForm.java, LookupAction.java. When I get the lookup.jsp run, the web browser displays "HTTP 500". Please find the attached message for error message, lookup.jsp and Lookupform.java. Thanks a lot.
    HTTP Status 500 -
    type: Exception report
    message: description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
         at org.apache.jasper.compiler.JspReader.popFile(JspReader.java:293)
         at org.apache.jasper.compiler.JspReader.hasMoreInput
    ..........(Omit)
    lookup.jsp:
    <%@ page language="java" import="com.tfu.struts.common.Constants" %>
    <%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html:html locale="true">
    <head>
    <title><bean:message key="lookup.title"/></title>
    <html:base/>
    </head>
    <body bgcolor="#FFFFFF" background="images/FREE-bg.gif">
    <%@ include file="header1.html" %>
    <html:errors/>
    <%
    String selectedMonthValue = (String)request.getAttribute(Constants.SELECTED_MONTH_KEY);
    log("selectedMonthValue = " + selectedMonthValue);
    String selectedCountryValue = (String)request.getAttribute(Constants.SELECTED_COUNTRY_KEY);
    log("selectedCountryValue = " + selectedCountryValue);
    %>
    <html:form action="/lookup">
    <html:hidden property="action">
    <table>
    <tr><td><bean:message key="prompt.lookup.signin"/></td></tr>
    <tr><td><bean:message key="prompt.lookup.notes1"/>
    <bean:message key="prompt.lookup.notes2"/></td>
    </tr>
    <tr><td><bean:message key="prompt.lookup.step1"/>
    <bean:message key="prompt.lookup.step11"/></td>
    </tr>
    <tr>
    <td><bean:message key="prompt.birthdate"/></td>
    <td>
    <html:select property="birthmonth" size="1">
    <html:options collection="<%= Constants.MONTH_ARRAY_KEY %>"
    property="value"
    labelProperty="label"/>
    </html:select>
    <html:text property="birthday" size="2"/>
    <bean:message key="prompt.birthdate.comma"/>
    <html:text property="birthyear" size="4"/>
    <bean:message key="prompt.birthdate.tail"/>
    </td></tr>
    <tr>
    <td><bean:message key="prompt.postcode"/></td>
    <td><html:text property="postcode" size="10" maxlength="16"/></td>
    <td><bean:message key="prompt.country"/></td>
    <td>
    <html:select property="country" size="1">
    <html:options collection="<%= Constants.COUNTRY_ARRAY_KEY %>"
    property="value" labelProperty="label"/>
    </html:select>
    </td>
    </tr>
    <tr>
    <td>
    <bean:message key="prompt.lookup.step2"/>
    <bean:message key="prompt.lookup.step21"/>
    </td>
    </tr>
    <tr><td><html:text property="userid" size="16" maxlength="16"/></td></tr>
    <tr><td><html:submit property="submit" value="Get Password"/></td></tr>
    </table>
    </html:form>
    <bean:write name="LookupForm" property="password"/>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <%@ include file="footer0.html" %>
    </body>
    </html:html>
    </html>
    LookupForm.java
    * $Header: /com/tfu/struts/lookup/LookupForm.java
    * $Revision: 1.0 $
    * $Date: 2002/12/31 $
    * writen by Jianming Ke 2002.12.31
    package com.tfu.struts.lookup;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import com.tfu.struts.common.Constants;
    * Form bean for the user password retrieve.
    public final class LookupForm extends ActionForm {
    // --------------------------------------------------- Instance Variables
    private String birthmonth = null;
    private String birthday = null;
    private String birthyear = null;
    private String postcode = null;
    private String country = null;
    private String userid = null;
    private String password = null;
    // ----------------------------------------------------------- Properties
    public String getBirthmonth() {
         return (this.birthmonth);
    public void setBirthmonth(String birthmonth) {
    this.birthmonth = birthmonth;
    public String getBirthday() {
         return (this.birthday);
    public void setBirthday(String birthday) {
    this.birthday = birthday;
    public String getBirthyear() {
         return (this.birthyear);
    public void setBirthyear(String birthyear) {
    this.birthyear = birthyear;
    public String getPostcode() {
         return (this.postcode);
    public void setPostcode(String postcode) {
    this.postcode = postcode;
    public String getCountry() {
         return (this.country);
    public void setCountry(String country) {
    this.country = country;
    public String getUserid() {
         return (this.userid);
    public void setUserid(String userid) {
    this.userid = userid;
    public String getPassword() {
         return (this.password);
    public void setPassword(String password) {
    this.password = password;
    // --------------------------------------------------------- Public Methods
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found. If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    public ActionErrors validate(ActionMapping mapping,
    HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    if ((postcode == null) || (postcode.length() < 1))
    errors.add("postcode", new ActionError("error.postcode.required"));
    if ((userid == null) || (userid.length() < 1))
    errors.add("userid", new ActionError("error.userId.required"));
    return errors;
    I edited the struts-config.xml with two segments:
    <!-- ========== Form Bean Definitions ================== -->
    <form-beans>
    <!-- Logon form bean -->
    <form-bean name="logonForm"
    type="com.tfu.struts.logon.LogonForm">
    </form-bean>
    <!-- Lookup form bean -->
    <form-bean name="lookupForm"
    type="com.tfu.struts.lookup.LookupForm">
    </form-bean>
    <!-- ========== Action Mapping Definitions ================= -->
    <action-mappings>
    <!-- Lookup a user password -->
    <action path="/lookup"
    type="com.tfu.struts.lookup.LookupAction"
    name="lookupForm"
    scope="request"
    input="/lookup.jsp">
    <forward name="lookpass" path="/logon.jsp"/>
    </action>

    Hi,
    After I added the line you mentioned, new error messages displays...
    javax.servlet.ServletException: No getter method for property action of bean org.apache.struts.taglib.html.BEAN
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
         at org.apache.jsp.lookup$jsp._jspService(lookup$jsp.java:719)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    Thanks a lot.

  • Can we deploy struts project in Oracle Apps server

    Hi Alle,
    We have set of jsps using in OAF custom application. But they are very complex and not readable,reusable,maintainable . We wanted to move to a framework for only those jsps. That means we want struts interoperate with OAF.
    Can we achieve this?
    Thanks
    Soujanya

    just give me light .. whether we can do or not .. or any suggestions ?

  • Deployment problem in j2ee / struts project

    I have a problem when a try deploy my app.ear, who assembly an app.jar file and app.war file.
    The app consists of jsp/servlets based on struts and ejb.
    When I deploy directly from the ear file, I receive the error "No action instance for path /BookEdit could be created"
    But when I deploy only the app.war file, the struts action "BookEdit" is executed correctly. But the ejb can't be accessed by the web.app.
    I use OC4J 9.0.2.0.0, Jdev 9i 9.0.2.8.2 and jakarta-struts 1.0.2.
    Fede

    If this happens on the external OC4J container, it may be an OC4J 9.0.2 specific issue (perhaps related to classloading). Have you tried posting in the J2EE forum here to see if our OC4J experts might have seen something in this regard?

Maybe you are looking for

  • Flash Media Server Temp Files

    Hi all, Maybe this topic has been asked and answered before. But I have not found relevant information on this issue. So there it is: I found out that when the FMS service is running, it creates a lot of temporily files in the c:\windows\tempdirector

  • After watching 25 mn, it stops "Could not load movie"

    I rented a movie on my iPad from iTunes Store. After 25 mn of watching it stops and it says "could not load movie" then it has been fully downloaded. The Apple assistance says "if your download was interrupted 1/ From the Home screen, tap the iTunes

  • How customize  messages in jsp pages in jhs 10.1.2.0

    Hi, How I can customize the messages in jhs application (10.1.2.0) - error message - successful transaction message 'JHS-00100: Transaction completed successfully! ' By example I call stored procedures from my jsp pages , but I dont display can messa

  • No Video when using the "Send To Soundtrack Pro Audio File" Command

    Hello FCP Users, After reading and rereading the FCP and STP manuals and scouring the boards; I still can not figure out how to view my video clip while I'm editing/sweetening audio in STP. I have even used the DVD tutorial in an attempt to figure it

  • HTC One Custom sense rom logcat for broken Photoshop Touch

    The following will include a log so your developers can make it compatible with custom roms. Have no idea why it doesnt work unless this is intentional but...I did pay $5 for an app I can't even use. Compatibility would be lovely. 07-02 02:56:44.780: