Question with Struts ActionServlet

Hi,everybody.
I have written a simple application using Struts.The program is used to validate a user who login to the system.I have added all *.jar library file of Struts 1.2.6 to the Tomcat project,But after I accessed to Login page,enter username and password,and then click "Login" button,It popup the following exception:
Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@fe315d
org.apache.struts.action.ActionServlet
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
     at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Unknown Source)
and the web.xml file is list as following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>actionServlet</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>actionServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
struts-config.xml is listed as following:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
     "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
     <form-beans>
          <form-bean name="formBean1" type="classmate.UserForm"/>
     </form-beans>
     <global-forwards>
          <forward name="failed" path="/error.jsp"/>
          <forward name="successed" path="/right.jsp"/>
     </global-forwards>
     <action-mappings>
          <action path="/login" type="classmate.LoginAction" name="formBean1" scope="request" input="/login.jsp" />
          <action path="/regist" forward="/regist.jsp"/>
     </action-mappings>
</struts-config>
if anybody can help me to resovle this question? Please Reply .
Besides this,I also have another question I want to ask,it is that how to install Struts plugin to Eclipse,I have tried to unziped the download EasyStruts plugin to the Eclipse plugins directory,but after click Window->Preference ,I have not found the EasyStruts item in the left of the pop-up panel,the Eclipse version is 3.1.2 and have installed lomboz in it.if anybody have practice in such installation? Please response to help me.
Thank you and Regards.

Hi,
Thank you for response.I have modified the program as what you told me.it can startup now,But it suspended at LoginAction,the running message is printed as following:
LoginAction.execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) line: 18
RequestProcessor.processActionPerform(HttpServletRequest, HttpServletResponse, Action, ActionForm, ActionMapping) line: 419
RequestProcessor.process(HttpServletRequest, HttpServletResponse) line: 224
ActionServlet.process(HttpServletRequest, HttpServletResponse) line: 1192
ActionServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 709
when I click on the information "RequestProcessor.processActionPerform",it popup a message that show "Source not found ,The jar file Struts.jar has no source attachment",Does it need to attach the source of struts.jar?
I list the LoginAction.java as following:
package classmate;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class LoginAction extends Action{ 
public ActionForward execute(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response) throws Exception {
     UserForm userform = (UserForm) form;
     String name = userform.getName();
     String psw = userform.getPsw();
     if("jenny".equals(name) && "hi".equals(psw)){
          UserLoginLog ul = new UserLoginLog();
          ul.save(name,psw);
          return mapping.findForward("successed");     
     }else{
          return mapping.findForward("failed");
as I debuged the program,the breakpoint line "UserForm userform = (UserForm) form; "
and the UseForm.java is listed as following:
package classmate;
import org.apache.struts.action.ActionForm;
public class UserForm extends ActionForm{ 
     private static final long serialVersionUID = 1L;
     private String name = null;     
     private String psw = null;     
     public UserForm(){}
     public void setName(String name) {
          this.name = name;
     public String getName() {
          return name;
     public void setPsw(String psw) {
          this.psw = psw;
     public String getPsw() {
          return psw;
and I have written the web.xml and struts-config.xml in above message.
how can I run through the breakpoint line so that I can access the ActionForm's Data? if anybody can tell me how to resovle it ,Please reply to help me. Thanks you.
Message was edited by:
Devemor

Similar Messages

  • Question in Struts internaitonalization application

    Hi ,everybody.
    I created a Tomcat project with Struts 1.2.6 architecture,I applied the characteristic of Struts,the web.xml is listed as following:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- Action Servlet Configuration -->
    <servlet>
    <servlet-name>actionServlet</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <load-on-startup>2</load-on-startup>
    <init-param param-name="config" param-value="/WEB-INF/struts-config.xml"></init-param>
    </servlet>
    <!-- Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>actionServlet</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Welcome File List -->
    <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    <taglib taglib-uri="/WEB-INF/struts-bean.tld" taglib-location="/WEB-INF/struts-bean.tld"></taglib>
    <taglib taglib-uri="/WEB-INF/struts-html.tld" taglib-location="/WEB-INF/struts-html.tld"></taglib>
    <taglib taglib-uri="/WEB-INF/struts-logic.tld" taglib-location="/WEB-INF/struts-logic.tld"></taglib>
    </web-app>
    but when I start the Tomcat server,it showed the following exception:
    java.lang.IllegalArgumentException: Can't convert argument: null
         at org.apache.tomcat.util.IntrospectionUtils.convert(IntrospectionUtils.java:975)
         at org.apache.tomcat.util.digester.CallMethodRule.end(CallMethodRule.java:522)
         at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
         at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
    Parse error in application web.xml file at jndi:/localhost/EWeb_5_1_Login/WEB-INF/web.xml
    java.lang.IllegalArgumentException: Can't convert argument: null
         at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2725)
         at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2751)
         at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    I have checked it serveral times,but I don't know what error in the program.Can anybody reply your solution for it?
    Thanks you.
    Message was edited by:
    Devemor

    Hi,
    What version of struts do you use?
    Prior to version 1.1, uri must include library versions, for example:
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic-1.0" prefix="logic" %> Maybe it was a problem, but it seems like you haven't placed TLD files to WEB-INF directory:
    struts-bean-el.tld
    struts-html-el.tld
    struts-logic-el.tld
    Then, declare TLDs in web.xml config file:
    <!-- tag libs -->
      <taglib>
        <taglib-uri>struts/bean-el</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean-el.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>struts/html-el</taglib-uri>
        <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>struts/logic-el</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic-el.tld</taglib-location>
      </taglib>Please, pay attention to taglib-uri declaration, so:
    <%@ taglib uri="struts/logic-el" prefix="logic" %> Regards
    Edited by: comanche_ on Jun 15, 2008 4:32 AM

  • How to deploy servlets with struts in weblogic61sp2 ?

              I success to config a web app with struts framework via welogic61 admin console,but
              I only saw the first page but I cannot sumit to next page. (Of course,it's right
              if I set struts.jar's classpath and web app jar in my system classpath.But it's
              a bad solution.)
              Here is my startWebLogic.cmd:
              @rem set CLASSPATH=%CLASSPATH%;%PLATFORM%\src\lib\struts.jar
              set STARTMODE=false
              My Folder Structure:
              WEB-INF
                   ->classes->...
                   ->lib->struts.jar,servlet23.jar,...
                   web.xml
                   weblogic.xml
                   index.jsp
              My errors info on the weblogic console:
              validate loginName
              admin
              8
              123456
              6
              java.lang.NoClassDefFoundError: org/apache/struts/action/ActionErrors
              at kava.web.FormUtility.getErrorFields(FormUtility.java:382)
              at kava.module.authentication.web.LoginForm.validate(LoginForm.jav
              a:118)
              at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.
              java:2106)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
              4)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:265)
              at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
              va:27)
              at kava.web.JspFilter.doFilter(JspFilter.java:82)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
              va:27)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:2501)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              client connection:1 closed.server connection id:0
              LocalTransXAWrapper:end
              LocalTransXAWrapper:rollback
              rollback transaction(server connection id:0)
              Cleaning up the connection
              clean up server connection:0
              What's wrong I made ? Any suggestions are very welcome !
              

    Christian,
              When you put the struts.jar in the classpath, everything works correctly? And then
              when you remove the struts.jar from the classpath and put it in the web-inf/lib it
              fails? According to the stack trace, the server appears to be able to find some of the
              struts files. Can you explain what the "kava" classes are doing? Are they part of the
              struts package?
              Thanks,
              Simon Nunn
              Developer Relations Engineer
              BEA Support
              Christian Lee wrote:
              > I success to config a web app with struts framework via welogic61 admin console,but
              > I only saw the first page but I cannot sumit to next page. (Of course,it's right
              > if I set struts.jar's classpath and web app jar in my system classpath.But it's
              > a bad solution.)
              >
              > Here is my startWebLogic.cmd:
              > ---------------------------
              > ..
              > @rem set CLASSPATH=%CLASSPATH%;%PLATFORM%\src\lib\struts.jar
              > ..
              > set STARTMODE=false
              > ..
              > ----------------------------
              >
              > My Folder Structure:
              > ----------------------------
              > WEB-INF
              > ->classes->...
              > ->lib->struts.jar,servlet23.jar,...
              > web.xml
              > weblogic.xml
              > index.jsp
              > ...
              > --------------------------------------------
              >
              > My errors info on the weblogic console:
              > ----------------------------------------------
              > validate loginName
              > admin
              > 8
              > 123456
              > 6
              > java.lang.NoClassDefFoundError: org/apache/struts/action/ActionErrors
              > at kava.web.FormUtility.getErrorFields(FormUtility.java:382)
              > at kava.module.authentication.web.LoginForm.validate(LoginForm.jav
              > a:118)
              > at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.
              > java:2106)
              > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
              > 4)
              > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
              >
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > pl.java:265)
              > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
              > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
              > va:27)
              > at kava.web.JspFilter.doFilter(JspFilter.java:82)
              > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
              > va:27)
              > at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              > rvletContext.java:2501)
              > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              > pl.java:2204)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > client connection:1 closed.server connection id:0
              > LocalTransXAWrapper:end
              > LocalTransXAWrapper:rollback
              > rollback transaction(server connection id:0)
              > Cleaning up the connection
              > clean up server connection:0
              >
              > -----------------------------------------------------
              > What's wrong I made ? Any suggestions are very welcome !
              

  • Yui with struts

    How to use YUI with struts 1.2.9 anyone pl help

    I can see you have great patience. Waiting all of half an hour before reposting almost exactly the same question.
    http://forum.java.sun.com/thread.jspa?threadID=5278188&tstart=0
    YUI is a javascript thing. Nothing stops you from writing javascript onto your jsp pages at all. Go ahead and do it.

  • Problem in connecting MaxDB with Struts 1.2.

    hi,
    how to connect MaxDB in Struts 1.2. when i am trying to connect, i got an error "Unable to initilize struts ActionServlet due to unexpected exception". what are the modifications must be done in struts-config.xml.

    Hi guys,,
    The CCA no longer shows unsupported error message. I can connect the router with CCA right now, but it shows "Unreachable : Unknown Status". I can't see the front panel of the device and I can't configure anything.
    Is there anyone know how to fix it?
    I am really confused right now.
    Thanks in advance.

  • [help!!!] el doesn't work with Struts

    When i tried to use jstl tag such as <c:out value="${1+2+3}"> with Struts, it doesn't work, plain text "${1+2+3}" was added to the response.
    When i copied my jsp with <c:out value="${1+2+3}"> to some other webapp, it worked perfectly, but when i dropped it into the simplest Struts-Blank, ${1+2+3} showed up instead of 6, what is the problem? thx in advance!

    Use this web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
    <display-name>Struts Blank Application</display-name>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- Session and access -->
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!-- Struts Tag Library Descriptors -->
    <jsp-config>
    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    </jsp-config>
    </web-app>

  • UiXML with Struts: Illegal Access Error

    I created a project in JDeveloper for the example found in the JDeveloper help documentation, "Using uiXML with Struts". It says I need uix-config.xml in my WEB-INF directory. I created one and copied the xml from the example to it. When I run login.uix from JDeveloper I get:
    500 Internal Server Error
    java.lang.IllegalAccessError: oracle/cabo/servlet/struts/ui/MessageDataProvider
    java.lang.Object oracle.cabo.servlet.struts.ui.DataProviderParserFactory$Parser.getNodeValue(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes)
    void oracle.cabo.share.xml.LeafNodeParser.startElement(oracle.cabo.share.xml.ParseContext, java.lang.String, java.lang.String, org.xml.sax.Attributes)
    void oracle.cabo.share.xml.TreeBuilder$Handler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
    void oracle.cabo.share.xml.ParserAdapter.startElement(java.lang.String, org.xml.sax.AttributeList)
    void oracle.xml.parser.v2.XMLContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
    XMLContentHandler.java:166
    I notice if I remove that file, I don't get this error, but the struts components do nothing, which seems logical if we do indeed need this configuration information.
    I also notice the following error in JDeveloper when I compile login.uix:
    Warning(11,44): logon.uix: Parsing error, line 11, column 44: <form> is not an understood element.
    This sometimes means the element's namespace (http://xmlns.oracle.com/uix/struts) is set incorrectly. This may also be an issue with the syntax of its parent element.
    I'm not sure what that is.
    Thanks for your help,
    -James

    That solved the problem! I am relatatively new to
    all this as are many of us "seasoned developers"...and learning
    fast...well...sort of.
    Another observation: I placed the following entry,
    oracle.cabo.servlet.struts.StrutsUIExtension, in my web.xml file
    (borrowed from a plain ol' jsp struts test I've been working
    with). Here's the whole section for the uix servlet:
    <servlet>
    <servlet-name>uix</servlet-name>
    <servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>
    <init-param>
    <param-name>oracle.cabo.servlet.pageBroker</param-name>
    <param-value>oracle.cabo.servlet.xml.UIXPageBroker</param-value>
    </init-param>
    <init-param>
    <param-name>oracle.cabo.ui.UIExtensions</param-name>
    <param-value>oracle.cabo.servlet.struts.StrutsUIExtension,oracle.cabo.data.jbo.ui.JboUIExtension</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    That solved the parsing errors I was receiving from JDeveloper
    saying that certain elements were not understood. But
    then...when I run logon.uix, the browser displayed this lovely
    error:
    java.lang.IllegalStateException: ParserFactory already registered at http://xmlns.oracle.com/uix/struts
    AAAAAAARGHH! Sooooooo...I removed the uix-config.xml from
    the WEB-INF directory, and hooray! I got my form. Whew!
    I can also get it to run by leaving my uix-config.xml alone and
    removing that entry in web.xml. Weird? Anyway, I'm leaving out
    the entry in uix-config.xml or just not including it for now.
    I'm sure I'll run in to some other problem with that later :)
    The little application doesn't work quite right yet. When I
    click the "Log On" button I get a "Page not found". Must be a
    typo or something.
    Anyway, thanks for your help Adam. I'm sure I'll have more
    questions later. I'll try to make them good ones.
    -James

  • Need a help with Struts Tiles dynamic menu

    Hello,
    I am started few days ago with Tiles, try to develop web application.
    Can anybody sugest very simple example with Tiles and menu.
    So my definition looks like this:
    tiles-def.xml
    <tiles-definitions>
    <definition name="MainDefinition" path="/layouts/myLayout.jsp">
    <put name="title" value="This is the title." />
    <put name="header" value="/tiles/header.jsp" />
    <put name="menu" value="/tiles/menu.jsp" />
    <put name="body" value="/tiles/body.jsp" />
    <put name="footer" value="This is the footer." />
    </definition>
    I am simple layout.
    I need to on menu click change body content, now i am doing it like this:
    index.jsp
    <%@ page language="java" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%String body = request.getParameter("body");%>
    <tiles:insert definition="MainDefinition" flush="true">
    <tiles:put name="body" type="string"> <%= body %> </tiles:put>
    </tiles:insert>
    But now body is a string how to make it open url?
    Maybe somebody have link to menu Tiles good examples.
    Thanks

    But here's some useful advice :P
    I'm going to assume that the other two people involved in this have a bit more experience, have them do most of the designing. Have them leave most of the easy stuff for you. You can then spend your time learning the minimum of what you need to know. And if you have problems, or don't understand things, ask your partners for help.
    And you'll want to set some spare time for you to all get together and do something fun so that you don't kill each other because of the stress :P
    I've had a lot of bad project experiences, fortunatly they where all just at school :P I blame myself, mainly because I didn't do the whole thing myself (mostly because I listened to people when they said that I shouldn't or couldn't do everything myself.) I'd like to say that it's mostly because of poor communication, and disorganization, but an awful lot of it had to do with the fact that I tend to be the only person with any work ethic what so ever.
    But whinning and repressed memories aside, good communication and organization help a lot. Come up with a good system with your team mates. And don't be afraid to ask questions. And don't worry about dividing up the work load equally. Just make sure you put in a good amount of effort, if not frightening amounts.
    If all of you are clueless, divide up the learning stuff between yourselves too.
    I have no experience with Struts. I've done a bit of stuff with XML, but nothing too complicated. The XML by itself tends to be extremely easy. What you plan on doing with it can vary (I don't like XML incidentally :P)
    Other then that, good luck.

  • Trying to submit back to jsp with struts

    Ok, so I have a jsp page that displays tons of stuff.
    I get there from the struts flow of:
    InputFormJsp -> strutsFormBean ->strutsActionBean->JSP View Page
    So I'm at my view page and I was to resubmit back to the view page again using a bunch of hidden input fields to redo the page with different vars (historic data, based on the 1st time through).
    So it will go:
    JSP View Page->strutsFormBean->strutsActionBean->JSP View Page
    I want to use the same form and action beans and the same view page, just want to pass the hidden vars instead of prompting the user all over again.
    I have my form and hidden fields set up, but my problem is how do I get struts to see the resubmit. I made a new actionmapping that labeled the "input" as the same jsp page as the forward but I keep getting:
    javax.servlet.ServletException
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)followed by a good old NullPointerException from my actionbean's execute method (I think):
    root cause
    java.lang.NullPointerException
         com.air2web.SysReportAction.execute(SysReportAction.java:85)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)struts-config.xml looks like:
    <action   path="/getSysReport"
                  type="com.air2web.SysReportAction"
                  name="SysReportForm"
                  input="/pages/SysReport.jsp"
                  scope="request">
        <forward name="success" path="/pages/genSysReport.jsp"/>         
        </action>
    <action   path="/getSysReportHistoric"
                  type="com.air2web.SysReportAction"
                  name="SysReportForm"
                  input="/pages/genSysReport.jsp"
                  scope="request">
        <forward name="success" path="/pages/genSysReport.jsp"/>         
        </action>Is there a way to specify many input pages or some other trick to do this??
    Thanks
    Chris Liles

    I had exactly the same problem with Struts, and Finally I solve this.
    first of all put into <form-beans> the form path
        <form-bean name="updUserForm" type="com.yourcompany.struts.form.UpdUserForm" />and in <action-mappings >
        <action
          attribute="updUserForm"
          input="/UpdateUser.jsp"
          name="updUserForm"
          path="/updUser"
          scope="request"
          type="com.yourcompany.struts.action.UpdUserAction" >
          <forward name="success" path="/MyJsp.jsp" />
        </action>Be carefull with the first letter of attribute and name they must be in minus! (Instead of mayus in form).
    For more ..
    [email protected]

  • How do I reset my apple id security question with out a rescue email

    How do I reset my apple id security question with out a rescue email?

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (101013)

  • Basic questions with respect to ABAP WebDynpro Application

    Hi All,
    I have two basic questions with respect to an ABAP WebDynpro application :
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Thanks & Regards,
    Sushanth Hulkod

    Sushanth Hulkod wrote:
    > a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    >
    > b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    a) If an ABAP WebDynpro application has been developed, how could it be made available to the end user?
    Answer - By providing direct link of the WD application created in SE80, creating iView for webdynpro abap application in the portal environment and  NWBC environment
    b) Can an ABAP WebDynpro application be developed in ECC or is it only applicable for version 4.6c?
    Answer - Yes it can be developed in ECC. Webdynpro ABAP is introduced in NW 2004s (SAP NetWeaver 7.0 or ECC 6.0)
    Thanks,
    Chandra

  • Error 500, deployment with struts

    An application developed in JDeveloper 9.02 with struts 1.1b works fine when running using the local OC4J instance running from JDeveloper. I created a deployment profile with a .war and .ear, deployed to the OC4J standalone instance using the EM website, and all seemed well. Now it sporadically gives the "Internal Server Error" when navigating between pages. I can't find anything in the logs, and ideas?

    It's OC4J core install for 9iAS Release 9.02. I've deployed to Solaris since there is a bug that can give this error that is patched for Solaris, but not Windows. The error occurs when navigating pages in a struts app. Sometimes it works fine, then you click on one of the image buttons to go to the next .jsp and this error comes up.
    Ruth
    What version of OC4J you are testing on ?
    Is it OC4J standalone or Oracle9iAS that you are using.
    more details would be helpful in diagnosing the problem.
    -Prasad

  • WLS 8.1 sp1 with Struts 1.1 JSP with bean tag won't compile

              Hello,
              We are currently porting our application which uses struts 1.1 to WLS 8.1 sp1
              from another app server. Everything seems to deploy correctly and pages which
              use struts tags appear to compile and run fine. However, the pages with struts
              <bean:define> tags are not compiling.
              Example JSP Code:
              <bean:define id="userForm" name="userForm" scope="session" toScope="page" type="UserFormBean"/>
              <% if (userForm.hasUserData()) {hasUser=true;} %>
              WLS Console Output:
              ..jsp_servlet\_jsp\_sailor\__home.java:493: cannot resolve symbol
              symbol : variable userForm
              location: class jsp_servlet._jsp._sailor.__home
              if (userForm.hasUserData()) { //[ /jsp/sailor/home.jsp; Line: 38]
              When I look at the JSP's parsed java code (__home.java:493) I find that nowhere
              in the class is the variable userForm declared.
              Is this a bug in WLS? Does anyone know of a workaround?
              Thanks,
              Scott
              

    Please contact customer support [email protected] and request a patch for
              CR112789. AT_END tags do not work correctly in 81sp1
              --Nagesh
              "Scott Fleming" <[email protected]> wrote in message
              news:3f734c0d$[email protected]..
              >
              > Hello,
              >
              > We are currently porting our application which uses struts 1.1 to WLS 8.1
              sp1
              > from another app server. Everything seems to deploy correctly and pages
              which
              > use struts tags appear to compile and run fine. However, the pages with
              struts
              > <bean:define> tags are not compiling.
              >
              > Example JSP Code:
              >
              > <bean:define id="userForm" name="userForm" scope="session" toScope="page"
              type="UserFormBean"/>
              >
              > <% if (userForm.hasUserData()) {hasUser=true;} %>
              >
              > WLS Console Output:
              >
              > ..jsp_servlet\_jsp\_sailor\__home.java:493: cannot resolve symbol
              > symbol : variable userForm
              > location: class jsp_servlet._jsp._sailor.__home
              > if (userForm.hasUserData()) { //[ /jsp/sailor/home.jsp; Line:
              38]
              >
              > When I look at the JSP's parsed java code (__home.java:493) I find that
              nowhere
              > in the class is the variable userForm declared.
              >
              > Is this a bug in WLS? Does anyone know of a workaround?
              >
              > Thanks,
              > Scott
              

  • Custom tag with struts

    Hi
    I would like to create a custom tag that will print this section of html with struts:<tr>
         <td class="f_name"><bean:message bundle="fields" key="firstName" /></td>
         <td class="f_value"><html:text property="firstName" /></td>
    </tr>This means that i sould pass to the custom tag the folowing attributes:
    1. bundle - the bundle name to use ("fields").
    2. property - the name of the submitted filed and the key in the bundle resource ("firstName").
    This is how i want to use it:<html:form action="/register.do" enctype="UTF-8">
    <table cellspacing="0" cellpadding="0" border="0" class="t_details">
    <mytld:text bundle="fields" key="firstName"/>
    <mytld:text bundle="fields" key="lastName"/>
    </html:form>For me, this way looks much easier to develop my application/s, don't you agree?
    The problem is that i can't (or i don't know how) to use custom tags in other a custom tag, and if i include a jsp file (with pageContext.indlude("url");), how do i pass the attributes to the jsp page?
    Thanks a lot
    mamtz

    Interesting answer, i'll put it in my mind, but this is not what i ment :) (nice thinking...)
    what i ment was, html:text tag has many attributes like: property, name, alt, size, maxLength and so on...
    i would like sometimes to use size or maxLength and sometimes not.
    take a look at what i wrote:<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%
         String property=""+request.getAttribute("property");
         String bundle=""+request.getAttribute("bundle");
         Object max=request.getAttribute("maxLength");
         String maxLength= max==null ? "" : ""+max;
         Object s=request.getAttribute("size");
         String size= s==null ? "" : ""+s;
    %>
         <tr>
              <td class="f_name"><bean:message bundle="<%=bundle%>" key="<%=property%>" /></td>
    <%     if(max!=null && s!=null){
    %>          <td class="f_value"><html:text property="<%=property%>" maxlength="<%=maxLength%>" size="<%=size%>" /></td>
    <%     }else if(max!=null){
    %>          <td class="f_value"><html:text property="<%=property%>" maxlength="<%=maxLength%>" /></td>
    <%     }else if(s!=null){
    %>          <td class="f_value"><html:text property="<%=property%>" size="<%=size%>" /></td>
    <%     }else{
    %>          <td class="f_value"><html:text property="<%=property%>" /></td>
    <%     }
    %>     </tr>pretty complicated, is'nt it?
    think what would happen if i would like to add just one more attribute...

  • Easiest way to validate with Struts?..

    Hello,
    I have a problem with validating a simple form with javascript via Struts validator. It inserts the whole javascript instead <html:javascript formName="whatever"/> and as a result half of the html code that follows gets cut off. I don't know why this happens, maybe because the javascript is so big (although that sounds like nonsense).
    Is there a better, simpler way to validate with Struts? I just want something to start working..
    Thanks.

    Make sure you have validator-rules.xml file in WEB-INF/ folder
    Make sure you have validation.xml file in WEB-INF/ folder
    Modifty validation.xml file to match your form name (as defined in struts-config.xml)
    i think this should be enough

Maybe you are looking for

  • How to run swing applets in a browser??

    I understand it is a typical question and there lot of articles on it. I tried but am confused. I installed JRE1.3 which has java plug-in along with it which supports swing applets in a browser.Once i got that plug in i also downloaded html converter

  • I need to configure public IP in a few devices

    Hi, I have a few devices that the manufacturer told us we have to set with a public IP (No Natting) We have Internet ->ASA5510-> Switch 3550 with 3 vlans.  Up to now we have always use Natting to configure internet access to specific devices. Now we

  • How to read re-installed documents following a Clean Install( Mac Xv10.4.3)

    Per Apple Store advice, I performed a Clean Install on my IMAC 600, OS Xv104.3. I backed-up (first time user) using LaCie d2 Hard Drive 160GB, then re-installed the saved documents on the IMAC hard drive. Attempting to open the re-installed documents

  • Inconsistent Files in XML Dynamic News Sample Application

    The files are on these following sites: http://otn.oracle.com/sample_code/tech/xml/xmlnews/Readme.html http://otn.oracle.com/sample_code/tech/xml/xmlnews/install.html The directory structure described in these 2 sites are not the same. Customer is st

  • Error when querying custom object 5 using contact Id

    Hi, I have related custom object 5 to contacts in CRM On demand. I am trying to find out the custom object 5 records related to contact based on the contact Id. I'm using the query page function in the wsdl for custom object 5 (web services 2.0) and