Caroline, I learned Struts a little over the web before buying a Struts book (Struts in Action). That book had a section on Artimus but I found it very confusing. I was better served using lighter frameworks. I only got complicated once I started using Hibernate for my data access (DAO).
I wonder if anyone else had the kind of trouble with Artimus that I did... Regards, David -----Original Message----- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 1:17 AM To: Struts Users Mailing List Subject: RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character I see what you mean now. Let me do all the checkings accordingly. Thank you. BTW, would you tell me what you think of the Artimus? I am new to Struts and I follow the Artimus example to learn Struts. Any comments on the Artimus will help me a whole lot. Regards, Caroline --- David Friedman <[EMAIL PROTECTED]> wrote: > I wasn't actually asking for the JSP. > I was saying that Struts can complain > about slashes being missing if Tiles > isn't configured or is invoked properly. > I've seen something like your message > once before and I had an improper tiles > configuration setup (back in ver 1.0.X). > > I was curious how you tried switching to > your success (tile path ".thread.Form") > in your action AND how you define your > Struts plug-in (or Tiles controller in > older versions of Struts). > > Also, I'm not a fan of Artimus, so I > have to ask, does your tiles.xml configuration > file define the ".article.Base" definition? > Do all of it's paths start with slashes > and are there any accidental spaces in the > definitions or paths? > > > Regards, > David > > -----Original Message----- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 10, 2004 12:30 AM > To: Struts Users Mailing List > Subject: RE: Error Message: Tile path=".thread.Form" > Does Not Start with > a "/" Character > > > In my menu.jsp, I have: > > <html:form action="/message/ListThreads"> > <TR> > <TD> > sorted by > <html:select size="1" property="sort" > value="thread_last_post_date" > onchange="document.forms[4].elements[2].focus()"> > <html:options collection="SORT" > property="value" > labelProperty="label"/> > </html:select> > </TD> > <TD> > in > <html:select size="1" property="order" > value="DESC" > onchange="document.forms[5].elements[2].focus()"> > <html:options collection="ORDER" > property="value" labelProperty="label"/> > </html:select> > order > </TD> > <TD class="option"> > <BUTTON TYPE="submit" NAME="submit" > VALUE="submit">View Messages</BUTTON> > </TD> > </TR> > </html:form> > > Then, in my struts-config.xml, I have: > > <action > roles="administrator,editor,contributor" > path="/message/ListThreads" > type="org.apache.artimus.message.ListThread" > name="threadForm" > scope="request" > validate="false"> > <forward > name="success" > path=".thread.Form"/> > </action> > > and > > <form-bean > name="threadForm" > > type="org.apache.struts.validator.DynaValidatorForm"> > <form-property > name="sort" > type="java.lang.String"/> > <form-property > name="order" > type="java.lang.String"/> > </form-bean> > > .thread.Form is a tile. > > Regards, > Caroline > --- David Friedman <[EMAIL PROTECTED]> wrote: > > How are you trying to execute the forward > > in your action? > > > > -David > > > > -----Original Message----- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 09, 2004 11:50 PM > > To: Struts Users Mailing List > > Subject: RE: Error Message: Tile > path=".thread.Form" > > Does Not Start with > > a "/" Character > > > > > > I have successfully displayed many JSPs using > tiles > > in > > my application. This path=".thread.Form" is the > > only > > one gives me this problem. Therefore, I think the > > tiles plugin is set up properly in my > > struts-config.xml. > > > > Regards, > > Caroline > > --- David Friedman <[EMAIL PROTECTED]> wrote: > > > Do you have the tiles plugin setup properly in > > your > > > struts-config.xml file? Or, if you are using a > > > version > > > earlier than V1.1, did you change the controller > > to > > > a > > > Tiles controller? > > > > > > Regards, > > > David > > > > > > -----Original Message----- > > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 09, 2004 11:30 PM > > > To: [EMAIL PROTECTED] > > > Subject: Error Message: Tile path=".thread.Form" > > > Does Not Start with a > > > "/" Character > > > > > > > > > I am using "tile". When I try to display a JSP > > > page, > > > I got an error message: > > > > > > java.lang.IllegalArgumentException: Path > > > .thread.Form > > > does not start with a "/" character > > > > > > I have no idea where to find this "/" character. > > > I > > > would appreciate if anybody could provide me > with > > > some > > > leads. > > > > > > In my tiles-defs.xml, I have: > > > > > > <definition name=".thread.Form" > > > > > > extends=".article.Base"> > > > <put name="title" > value="thread.Form.title"/> > > > <put name="content" > > > > > > value="/article/content/listthreads.jsp"/> > > > </definition> > > > > > > and in my struts-config.xml, I have: > > > > > > <action > > > roles="administrator,editor,contributor" > > > path="/message/ListThreads" > > > > > type="org.apache.artimus.message.ListThread" > > > name="threadForm" > > > scope="request" > > > validate="false"> > > > <forward > > > name="success" > > > path=".thread.Form"/> > > > </action> > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------------------------------------------- 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]