Hello Barry, i tried different webengines and the same example runs with no problems on tomcat323 ... I tried also differend types of struts-config.xml ..... styles .....
also that version ...: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <struts-config> <action-mappings> <action path="/testAction" type="de.test.actions.TestAction"/> </action-mappings> </struts-config> but nothing worked on AgStream .... :-( And there shouldn't be changes in mappings depending on the server ? Someone from the silverstream support told me right know that he also couldn't get the struts-examples of silverstream (devcenter.silverstream.com, e.g. dataview.zip) to work with an other version than 371 .... he getīs the same strange errors ... .... AgStream not J2EE compliant??? ;-) peace Wolfgang Barry Glasco wrote: > This would lead me to believe that your struts-config.xml is not configured > properly. > Deploy the example application and see how it works. Also 373 fixed allot of > bugs > related to j2ee in ss3 so that is not the problem. > > -----Original Message----- > From: Wolfgang Frank [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 02, 2001 11:00 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Thanks ....... AgStream & Struts > > Hello joey, > > thanks for your fast reply in the struts-user group. > > I made a very minimal example .... maybe you can figure out with > you knowledge where I went wrong ..... > I just have to jsps and one Action .... the link on the first jsp > fires the action, which simply forwards to the second jsp. > > I deploy with the command: > > silvercmd deploywar localhost eTest TestWar.war -f deployWAR.xml > -o > > Deployment looks good and there are no exceptions. :-) > Afterwards i go to: > > http://localhost/eTest/testapp/index.jsp > > So far so good .. i can see the Link and if i move my mouse over > the link i see in the statusbar that: > http://localhost/eTest/testapp/testAction.do > is to be fired ........ ok ........ i do it and then ...... > 1. IExplorer : Error 400 Bad Request > 2. Netscape: Invalid path /testAction was requested > > Maybe itīs a bug in the Ag373 version? > > ok . Thanks in advance if you find the time to look at my problem > or if you can help me further ... > > Greets from germany > Wolfgang > > The Deploymentplan deployWAR.xml ....... > ---------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE warJarOptions PUBLIC "-//SilverStream Software, > Inc.//DTD J2EE WAR Deployment Plan//EN" "deploy_war.dtd"> > <?AgMetaXML 1.0?> > <warJarOptions isObject="true"> > <warJar isObject="true"> > <isEnabled type="Boolean">True</isEnabled> > <warJarName>examples.war</warJarName> > <deployToFilesystem > type="Boolean">false</deployToFilesystem> > <sessionTimeout type="String">25</sessionTimeout> > <urls type="StringArray"> > <el>testapp</el> > </urls> > <deployedObject > type="String">TestAppDeployed</deployedObject> > </warJar> > </warJarOptions> > ------------------------------------ > > index.jsp > ------------------- > <HTML> > <a href="testAction.do">Do Test!</a> > </HTML> > > perform.jsp > ------------------- > <HTML> > Action was performed ... > </HTML> > > web.xml ..... looks about > ----------------- > ... > <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> > <load-on-startup>1</load-on-startup> > </servlet> > > <!-- Struts Action Servlet Mapping --> > <servlet-mapping> > <servlet-name>action</servlet-name> > <url-pattern>*.do</url-pattern> > </servlet-mapping> > ... etc ....... > > struts-config ... > --------------------------------------------- > <action-mappings> > <action path="testAction" > actionClass="de.test.actions.TestAction" > <forward name="success" path="/performed.jsp"/> > </action> > </action-mappings> > > classes: de.test.actions.TestAction.java > ------------------------------------------------ > package de.test.actions; > > import java.io.IOException; > import org.apache.struts.action.*; > import javax.servlet.ServletException; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > import java.util.*; > > import org.apache.struts.util.PropertyUtils; > > public class TestAction extends Action { > > public ActionForward perform(ActionMapping mapping, > ActionForm form, > HttpServletRequest request, > HttpServletResponse response) throws IOException, > ServletException > { > System.out.println("TestAction ..."); > > return mapping.findForward("success"); > } > }