> -----Original Message----- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 08, 2004 12:45 PM > To: Struts Users Mailing List > Subject: RE: Action Mapping From a JSP to Another JSP (In Trouble > Again!!!) > > > I have tried both > > action="/ContentMgmt" and > action="/ContentMgmt.do"> > > They do not make any difference. Error message is the > same. And it is HTTP Status 400. > > Nothing gets displayed in the browser but the error > message. I tried right-click "View Source". None of > my code appears in the "View Source".
No, but the <html:link will get translated to <a href, that's what I was asking about. What gets generated? I'm thinking that something is wrong with the link. The error message, and the 400 error code would indicate that the browser is doing something wrong. Which leaves to possibilies 1) the link is a bit wonky 2) Your using IE and it's decided to no longer funciton correctly. Leaving my opinions of MS aside... it's probalby the link. If I could see it I might be able to figure out what's going on with it. I don't really thinkg it's a config error, because your conifg looks good. > --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > > > > > -----Original Message----- > > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, September 08, 2004 11:54 AM > > > To: Struts Users Mailing List > > > Subject: RE: Action Mapping From a JSP to Another > > JSP (In Trouble > > > Again!!!) > > > > > > > > > Hi, I am in trouble again. > > > > > > I am using tiles. I have three piece of tiles: > > > upperbar, sidelinks, and lowerbar. All three > > tiles > > > are displayed with contents shown in the center > > > (toward right hand side) of the web page. > > > > > > Now, I click on one of the links provided in the > > > 'sidelinks' tile and I got this error message in > > the > > > browser: > > > > > > =============================================== > > > Http Status 400 > > > Invalid path /ContentMgmt was requested > > > > > > description The request sent by the client was > > > syntactically incorrect (Invalid path /ContentMgmt > > was > > > > The path concerns me a little, if you copy and > > pasted it. It should be /ContentMgmt.do, however > > that would generate a 404, not a 400. > > > > > requested). > > > =============================================== > > > > > > The link that I clicked on in the 'sidelinks' tile > > is > > > coded this way: > > > > > > <html:link action="/ContentMgmt">Manage the > > > Content</html:link> > > > > Okay, what does the html look like? > > > > > > > > > > and the action mapping in my struts-config.xml > > looks > > > like: > > > > > > <action > > > path="/ContentMgmt" > > > parameter=".frame.Content" > > > > > type="org.apache.struts.actions.ForwardAction"/> > > > > > > > > > In my tiles-def.xml, I have: > > > > > > <tiles-definitions> > > > > > > <definition name=".frame.Base" > > > path="/frame/common/layouts/Frame.jsp"> > > > <put name="upperbar" > > > value="/frame/common/upperbar.jsp" /> > > > <put name="links" > > value="/frame/common/links.jsp" > > > /> > > > <put name="content" value="${content}" /> > > > <put name="lowerbar" > > > value="/frame/common/lowerbar.jsp" /> > > > </definition> > > > > > > <definition extends=".frame.Base" > > > name=".frame.Content"> > > > <put name="content" > > > value="/frame/content/content.jsp" /> > > > </definition> > > > > > > </tiles-definitions> > > > > > > And I double checked the spelling and the type of > > > extension of the content.jsp file. The file is in > > the > > > > > > C:\jakarta-tomcat-5.0.27\webapps\DHSInfo\frame\content > > > directory. > > > > > > Why the path is wrong? > > > --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Caroline Jen > > [mailto:[EMAIL PROTECTED] > > > > > Sent: Wednesday, September 08, 2004 10:56 AM > > > > > To: Struts Users Mailing List > > > > > Subject: RE: Action Mapping From a JSP to > > Another > > > > JSP (How to > > > > > Do Global > > > > > Forward) > > > > > > > > > > > > > > > Thanks a lot for being around and helping us. > > > > > > > > You're welcome.. and thank you for helping me, > > not > > > > only directly but by asking questions and making > > me > > > > dig through code and documentation to find the > > > > answers. I learn a lot by answering questions. > > > > > > > > > > > > > > -CJen > > > > > --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Caroline Jen > > > > [mailto:[EMAIL PROTECTED] > > > > > > > Sent: Wednesday, September 08, 2004 10:34 > > AM > > > > > > > To: Struts Users Mailing List > > > > > > > Subject: RE: Action Mapping From a JSP to > > > > Another > > > > > > JSP (How to > > > > > > > Do Global > > > > > > > Forward) > > > > > > > > > > > > > > > > > > > > > Thanks for your reply and help. > > > > > > > > > > > > > > if I have > > > > > > > <html:link > > > > action="/Register">Register</html:link> > > > > > > > > > > > > > > In my struts.config.xml file, I should > > have > > > > action > > > > > > > mapping like this: > > > > > > > > > > > > > > <action > > > > > > > path="/Register" > > > > > > > parameter=".frame.Enrollment" > > > > > > > > > > > > > > > type="org.apache.struts.actions.ForwardAction"/> > > > > > > > > > > > > > > What if I do a global forward: > > > > > > > > > > > > > > <html:link > > > > > > forward="/Register">Register</html:link> > > > > > > > > > > > > > > what kind of mapping should I specify in > > the > > > > > > > struts-config.xml file? > > > > > > > > > > > > <global-forwards> > > > > > > <!-- Default forward to "Welcome" action > > --> > > > > > > <!-- Demonstrates using index.jsp to > > forward > > > > --> > > > > > > <forward name="Register" > > > > > > > > > > > > > > > > > > > > > > > > > > > path="/whatever/link/you/want/the/forward/to/be/replaced/with"/> > > > > > > blah > > > > > > </global-forwards > > > > > > > > > > > > > > > > > > > > --- Caroline Jen <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > > > > > Thanks for your reply and help. > > > > > > > > > > > > > > > > if I have > > > > > > > > <html:link > > > > > > action="/Register">Register</html:link> > > > > > > > > > > > > > > > > In my struts.config.xml file, I should > > have > > > > > > action > > > > > > > > mapping like this: > > > > > > > > > > > > > > > > <action > > > > > > > > path="/Register" > > > > > > > > parameter=".frame.Enrollment" > > > > > > > > > > > > > > > > > > > > type="org.apache.struts.actions.ForwardAction"/> > > > === message truncated === > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]