Re: Problem with Tiles decoration and struts2
-- Raghuveer Rawat wrote -- >Amit, >looks like problem is with your struts.xml. You have set Tiles Result but >your result is jsp page. I think you need to change it to tile definition. Hi, Thanks for the response. Thats not my problem. I do not need TilesDecorationFilter for that. Tiles result type is already working. I want to avoid creating definitions for every screen like you created for "home". I want result of the action to be automatically rendered without having to create the screen definition. Regards, Amit. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles decoration and struts2
Amit, looks like problem is with your struts.xml. You have set Tiles Result but your result is jsp page. I think you need to change it to tile definition. Try below... struts.xml *home* tiles.xml http://tiles.apache.org/dtds/tiles-config_2_0.dtd "> On Nov 6, 2007 6:35 AM, Amit Rana <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to get TilesDecorationFilter > ( http://tiles.apache.org/tutorial/advanced/utils.html) to work with > struts2.0.9 without any success. Can anyone please help me figure out > where am I going wrong? I am not sure if this is a tiles list question > or struts? > > Tiles is decorating jsps but not the out put from an action. > > If I access jsp/home.jsp it comes with the layout but home.action > only prints layout and result of action is not seen anywhere. There > are no errors. Kindly advice. > > web.xml > http://www.w3.org/2001/XMLSchema-instance"; >xmlns=" http://java.sun.com/xml/ns/javaee"; >xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd " >xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; >id="WebApp_ID" version="2.5"> >MyApp > > > >org.apache.struts2.tiles.StrutsTilesListener > > > >struts2 > >org.apache.struts2.dispatcher.FilterDispatcher > > > >tilesdecoration > > org.apache.tiles.web.util.TilesDecorationFilter > >definition >blank > > >attribute-name >body > > > >struts2 >/* > > >tilesdecoration >/* > > >home.action > > > > struts.xml > > > > name="tiles"> > > > >jsp/home.jsp > > > > > tiles.xml > >"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" > " http://tiles.apache.org/dtds/tiles-config_2_0.dtd";> > > > > > > > > blankLayout.jsp > <%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %> > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Problem with Tiles decoration and struts2
>I suppose that it is a Tiles issue. >I must admit that the code inside the TilesDecorationFilter does not >convince me... Amit, can you repost this question to the Tiles Users Mailing >list? I think that it is a Tiles bug. >http://tiles.apache.org/mail.html >Thanks >Antonio Hi, Thanks, I have posted on Tiles list. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles decoration and struts2
Oups, and I forgot the fact that the result has to be defined in the tiles.xml file, it will not work by just adding the result type. -- Ghislain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles decoration and struts2
Hi, by quickly looking at your struts.xml, it seems that the result type misses: jsp/home.jsp ^ I think it should now work Cheers Ghislain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles decoration and struts2
2007/11/6, Amit Rana <[EMAIL PROTECTED]>: > > I am trying to get TilesDecorationFilter > (http://tiles.apache.org/tutorial/advanced/utils.html) to work with > struts2.0.9 without any success. Can anyone please help me figure out > where am I going wrong? I am not sure if this is a tiles list question > or struts? > > Tiles is decorating jsps but not the out put from an action. > > If I access jsp/home.jsp it comes with the layout but home.action > only prints layout and result of action is not seen anywhere. There > are no errors. Kindly advice. I suppose that it is a Tiles issue. I must admit that the code inside the TilesDecorationFilter does not convince me... Amit, can you repost this question to the Tiles Users Mailing list? I think that it is a Tiles bug. http://tiles.apache.org/mail.html Thanks Antonio
Re: Problem with Tiles an ActionForms
I don't know why setting validate=true would change how Tiles constructs the page, but a couple of observations which might help: - your action mapping doesn't have an 'input' attribute defined to tell Struts what to display if validation fails - your form bean extends ActionForm, not ValidatorActionForm. For validate=true to work correctly I think you need to extend the latter (I may be wrong there; it may not matter if you're not using XML-based validation). Sorry I can't be more helpful; other than that, what you have looks reasonable to me. Have you tried enabling debug logging in Struts and comparing the log output for the two scenarios? L. Sebastian Marten wrote: Thanks for your answer. If i set validate="true" the layout is not applied. I see only the page "createuser.jsp" If i set validate="false" it works fine... Why? Ok here my config files: If you nee more informations, just say it. struts-config.xml # tiles-defs.xml ## createuser.jsp: [..More inputs..] # createUserActionForm.java public class CreateUserActionForm extends org.apache.struts.action.ActionForm { private int id; private String nick; private String name; [..] public int getId() { return id; } public void setId(int id) { this.id = id; } public String getNick() { return nick; } public void setNick(String nick) { this.nick = nick; } [...] public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (getNick() == null || getNick().length() < 4 ) { errors.add("nick", new ActionMessage("error.nick.required")); } if (getName() == null || getName().length() < 4) { errors.add("name", new ActionMessage("error.name.required")); } if (getVname() == null || getVname().length() < 4) { errors.add("name", new ActionMessage("error.vname.required")); } [...] return errors; ## CreateUser.java public class CreateUser extends Action { /* forward name="success" path="" */ private final static String SUCCESS = "success"; private final static String FAILED = "failed"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CreateUserActionForm createuser = (CreateUserActionForm) form; user newuser = new user(); newuser.setNick(createuser.getNick()); newuser.setName(createuser.getName()); newuser.setVname(createuser.getVname()); [...] if (!userliste.reg_user(newuser)){ return mapping.findForward(FAILED); } return mapping.findForward(SUCCESS); ## Laurie Harper schrieb: You can certainly use automatic validation together with Tiles, so that's not the problem. You'll need to post your relevant struts-config.xml excerpts and tiles-defs, and possibly relevant bits of JSP so we can see what you're doing wrong. L. Sebastian Marten wrote: After several hours of searching i found the problem. All pages work, if I set >validate="false"< in the struts config. So I can't use the validate method of the bean? Is there an alternative for this method? Best regards, Sebastian Marten Sebastian Marten schrieb: Hello List, I have a problem with Struts Tiles. First I wrote all sub-page's for a very little Web shop. Then i started with tiles and created a simple test layout. Nothing special, but it works. I have several normal pages, like the page "katliste.jsp" I click the link to the related action: Unser Angebot And then the page is displayed in the Layout. So far, so good. Then I have 2 pages with a Struts Action Form and Action Form bean. I Created the definition for this page in the tiles-xml and configured the action forwards in the struts-config. But then i create a link the /createuser.do: Hier können sie sich Anmelden I see only the corresponding .jsp page an not the hole layout. There is the Problem? I hope you can help me! Best regards, Sebastian Marten [.] - 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]
Re: Problem with Tiles an ActionForms
Thanks for your answer. If i set validate="true" the layout is not applied. I see only the page "createuser.jsp" If i set validate="false" it works fine... Why? Ok here my config files: If you nee more informations, just say it. struts-config.xml # tiles-defs.xml ## createuser.jsp: [..More inputs..] # createUserActionForm.java public class CreateUserActionForm extends org.apache.struts.action.ActionForm { private int id; private String nick; private String name; [..] public int getId() { return id; } public void setId(int id) { this.id = id; } public String getNick() { return nick; } public void setNick(String nick) { this.nick = nick; } [...] public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (getNick() == null || getNick().length() < 4 ) { errors.add("nick", new ActionMessage("error.nick.required")); } if (getName() == null || getName().length() < 4) { errors.add("name", new ActionMessage("error.name.required")); } if (getVname() == null || getVname().length() < 4) { errors.add("name", new ActionMessage("error.vname.required")); } [...] return errors; ## CreateUser.java public class CreateUser extends Action { /* forward name="success" path="" */ private final static String SUCCESS = "success"; private final static String FAILED = "failed"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CreateUserActionForm createuser = (CreateUserActionForm) form; user newuser = new user(); newuser.setNick(createuser.getNick()); newuser.setName(createuser.getName()); newuser.setVname(createuser.getVname()); [...] if (!userliste.reg_user(newuser)){ return mapping.findForward(FAILED); } return mapping.findForward(SUCCESS); ## Laurie Harper schrieb: > You can certainly use automatic validation together with Tiles, so > that's not the problem. You'll need to post your relevant > struts-config.xml excerpts and tiles-defs, and possibly relevant bits of > JSP so we can see what you're doing wrong. > > L. > > Sebastian Marten wrote: >> After several hours of searching i found the problem. >> All pages work, if I set >validate="false"< in the struts config. >> So I can't use the validate method of the bean? >> Is there an alternative for this method? >> >> Best regards, >> Sebastian Marten >> >> >> Sebastian Marten schrieb: >>> Hello List, >>> >>> I have a problem with Struts Tiles. >>> >>> First I wrote all sub-page's for a very little Web shop. >>> >>> Then i started with tiles and created a simple test layout. >>> Nothing special, but it works. >>> I have several normal pages, like the page "katliste.jsp" >>> I click the link to the related action: >>> >>> Unser Angebot >>> And then the page is displayed in the Layout. >>> >>> So far, so good. >>> Then I have 2 pages with a Struts Action Form and Action Form bean. >>> I Created the definition for this page in the tiles-xml and configured >>> the action forwards in the struts-config. >>> But then i create a link the /createuser.do: >>> Hier können sie sich Anmelden >>> >>> I see only the corresponding .jsp page an not the hole layout. >>> >>> There is the Problem? >>> >>> I hope you can help me! >>> >>> Best regards, >>> Sebastian Marten >>> >> [.] >> >> >> > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > signature.asc Description: OpenPGP digital signature
Re: Problem with Tiles an ActionForms
You can certainly use automatic validation together with Tiles, so that's not the problem. You'll need to post your relevant struts-config.xml excerpts and tiles-defs, and possibly relevant bits of JSP so we can see what you're doing wrong. L. Sebastian Marten wrote: After several hours of searching i found the problem. All pages work, if I set >validate="false"< in the struts config. So I can't use the validate method of the bean? Is there an alternative for this method? Best regards, Sebastian Marten Sebastian Marten schrieb: Hello List, I have a problem with Struts Tiles. First I wrote all sub-page's for a very little Web shop. Then i started with tiles and created a simple test layout. Nothing special, but it works. I have several normal pages, like the page "katliste.jsp" I click the link to the related action: Unser Angebot And then the page is displayed in the Layout. So far, so good. Then I have 2 pages with a Struts Action Form and Action Form bean. I Created the definition for this page in the tiles-xml and configured the action forwards in the struts-config. But then i create a link the /createuser.do: Hier können sie sich Anmelden I see only the corresponding .jsp page an not the hole layout. There is the Problem? I hope you can help me! Best regards, Sebastian Marten [.] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles an ActionForms
After several hours of searching i found the problem. All pages work, if I set >validate="false"< in the struts config. So I can't use the validate method of the bean? Is there an alternative for this method? Best regards, Sebastian Marten Sebastian Marten schrieb: > Hello List, > > I have a problem with Struts Tiles. > > First I wrote all sub-page's for a very little Web shop. > > Then i started with tiles and created a simple test layout. > Nothing special, but it works. > I have several normal pages, like the page "katliste.jsp" > I click the link to the related action: > > Unser Angebot > And then the page is displayed in the Layout. > > So far, so good. > Then I have 2 pages with a Struts Action Form and Action Form bean. > I Created the definition for this page in the tiles-xml and configured > the action forwards in the struts-config. > But then i create a link the /createuser.do: > Hier können sie sich Anmelden > > I see only the corresponding .jsp page an not the hole layout. > > There is the Problem? > > I hope you can help me! > > Best regards, > Sebastian Marten > [.] signature.asc Description: OpenPGP digital signature
Re: Problem with Tiles and URLRewrite Filter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I should clarify one thing. The target JSP when made a tile, is included in the body of the tile definition tag that extends a template., If I make the target JSP the path, and do not have the definition inherit from a template, then the outbound rule works. bah! Thanks again, Randy On Dec 15, 2005, at 3:14 PM, Randy Shepherd wrote: Hey all, So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts target is a tile. As a result none of my links that match the rule are being rewritten. So, if put a vanilla JSP as the Struts target in which there is a href which should be rewritten, it works. But if I define that same JSP as a tile, then have the Struts target as that tile., the url is not rewritten. Anyone else run into this problem? Thanks, Randy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) iD8DBQFDof6OvmgyD0mfSYQRAjTVAJ9a97XJ8DXtfDJejGi651mYO4ME+gCdE3aK OotnZyCwHgQ/Wc3pjhn15DI= =I+Ub -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles and URLRewrite Filter
On Dec 15, 2005, at 5:14 PM, Randy Shepherd wrote: So I am trying to get outbound url rewriting working using the Tuckey URLRewrite Filter (http://tuckey.org/urlrewrite/) with Struts 1.2.7 with Tiles 1.1. It appears that my outbound rules are not even being evaluated when the Struts target is a tile. As a result none of my links that match the rule are being rewritten. So, if put a vanilla JSP as the Struts target in which there is a href which should be rewritten, it works. But if I define that same JSP as a tile, then have the Struts target as that tile., the url is not rewritten. I'm not familiar with the Tuckey tool, but at first glance my hunch would be that it's related to Tiles' use of RequestDispatcher.include () as opposed to forward(), which is typically used by Struts. Are you running under Servlet 2.3 or 2.4? If under 2.3 and the Tuckey tool is implemented as a filter then it won't be executed when the RequestDispatcher is used if my understanding is correct. Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tiles
There are 2 ways of doing it. 1) Get the "pageheading" in the layout.jsp and pass it on to the header.jsp 2) If you need the "pageheading" inside the heading.jsp, it's better to make the "header" a separate definition and use the "pageheading" directly in the header.jsp On 9/14/05, Deepesh Nandal <[EMAIL PROTECTED]> wrote: > > Hi There, > I am stuck at one place while working with tiles, please help. > I have my tiles-defs.xml as this: > > > > > > > > > > > > > value="/WEB-INF/tiles/user-login.jsp" type="page"/> > > > > AND /WEB-INF/tiles/layout.jsp as this: > <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > > > > > > > > > > > > Now, I need to print the variable 'pageheading'( defined in definition > '.mainLayout') in "/WEB-INF/tiles/header.jsp" . > I cannot use inside > "/WEB-INF/tiles/header.jsp" as "pageheading" is valid in > "/WEB-INF/tiles/layout.jsp" only . So how do I pass "pageheading" from " > index.page" to header.jsp through .mainLayout ... > > Please help . > > Many Thanks, > Deepesh Nandal. > >
RE: problem with Tiles & Struts 1.3 / Found exception stack Trace /apologies
Hello all, HUUGE apologies to Struts 1.3 & Tiles 1.3 team.. Tiles worked just fine..it was me that in migrating app >From 1.2 to 1.3 I removed one plugin that was storing Some data in applicationContext The null pointer exception in tiles made me think that Tiles was the problem.. Again, apologies, everything is working just fine.. Regards marco -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 27 April 2005 15:34 To: Marco Mistroni; 'Struts Users Mailing List' Subject: RE: problem with Tiles & Struts 1.3 / Found exception stack Trace At 2:58 PM +0100 4/27/05, Marco Mistroni wrote: > I am not blaming Struts 1.3 :-) >I am actually more concerned with Tiles by itself, since I was not >Able to use the same .tld file that I was able to use with Struts 1.1 Yes, we should make sure to note that on the "migrating to Struts 1.3" page -- which I just got started... Oh, wait -- the TLD hasn't changed since 1.2, and I think we should continue to have each migration notes page be focused on "since the last version" -- so I left this out -- but still, Marco and any others who are checking out Struts 1.3 are encouraged to help build this page: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 By the way, I'm currently in active development on a Struts 1.3 application, and people should not be too nervous about checking it out -- things are humming along smoothly, and while I'm not claiming that 1.3 is tested enough to be deemed GA, it's not showing any really weird behavior. You don't need to do anything differently to use Struts 1.3 (besides understanding the new multi-jar packaging); you should be able to totally ignore most of the new stuff until you're ready for it. In fact, we need some users like that to help verify our goal of backwards compatibility! http://svn.apache.org/builds/struts/nightly/ Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - 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]
RE: problem with Tiles & Struts 1.3 / Found exception stack Trace
At 2:58 PM +0100 4/27/05, Marco Mistroni wrote: I am not blaming Struts 1.3 :-) I am actually more concerned with Tiles by itself, since I was not Able to use the same .tld file that I was able to use with Struts 1.1 Yes, we should make sure to note that on the "migrating to Struts 1.3" page -- which I just got started... Oh, wait -- the TLD hasn't changed since 1.2, and I think we should continue to have each migration notes page be focused on "since the last version" -- so I left this out -- but still, Marco and any others who are checking out Struts 1.3 are encouraged to help build this page: http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 By the way, I'm currently in active development on a Struts 1.3 application, and people should not be too nervous about checking it out -- things are humming along smoothly, and while I'm not claiming that 1.3 is tested enough to be deemed GA, it's not showing any really weird behavior. You don't need to do anything differently to use Struts 1.3 (besides understanding the new multi-jar packaging); you should be able to totally ignore most of the new stuff until you're ready for it. In fact, we need some users like that to help verify our goal of backwards compatibility! http://svn.apache.org/builds/struts/nightly/ Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with Tiles & Struts 1.3 / Found exception stack Trace
Its in the tiles 1.3 jar (i.e. struts-tiles-1.3.0-dev.jar) Niall - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> Sent: Wednesday, April 27, 2005 2:58 PM > Hello Joe, > I am not blaming Struts 1.3 :-) > I am actually more concerned with Tiles by itself, since I was not > Able to use the same .tld file that I was able to use with Struts 1.1 > > Can anyone send me (or tell me where I can find) the latest > struts-tiles.tld? > > Because the one with Struts 1.1. does not work with Tiles 1.3 > > Thanx and regards > marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with Tiles & Struts 1.3 / Found exception stack Trace
Hello Joe, I am not blaming Struts 1.3 :-) I am actually more concerned with Tiles by itself, since I was not Able to use the same .tld file that I was able to use with Struts 1.1 Can anyone send me (or tell me where I can find) the latest struts-tiles.tld? Because the one with Struts 1.1. does not work with Tiles 1.3 Thanx and regards marco -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: 27 April 2005 14:10 To: Marco Mistroni; user@struts.apache.org Subject: RE: problem with Tiles & Struts 1.3 / Found exception stack Trace Just to make sure, if you put the contents of this tile directly in line in the page, you don't get this exception? I'm using tiles generally with Struts 1.3 with no problems, including inlining elements of a form where the form is in one page and the fields are in other tiles. I did run into some problems in the last week when I tried to use inside a , but that's not something I've done a lot in the past, so I wrote it off to an incomplete understanding of the Tiles JSP tags. I was trying to basically pass a "parameter" object into the page scope of the referenced JSP, but it wasn't being found. My work around was to put things in request scope instead of expecting tiles:put to get them into the page scope of the included tile -- is that the nature of your problem? From the description it could be. I don't quite see how Struts 1.3 could be to blame, but maybe I'm just not thinking about it correctly. Joe At 9:10 AM +0100 4/27/05, Marco Mistroni wrote: >Hello all, > I found exception stack trace for problem mentioned.. >Will it 'enlighten' my problem? > I have moved my application from Struts 1.1 to Struts 1.3, and I >am currently experiencing problems >With Tiles. >Attached are all the files that I was using with Struts 1.1. and the >application worked just fine. > >Full stack trace provided at end of message.. >Now, for use with Struts 1.3 I have changed the struts-tiles.tld since I >noticed that some classes >Were moved to a different package (from org.apache.struts.taglib.tiles >to org.apache.struts.tiles.taglib) > >So I have replaced all org.apache.struts.taglib.tiles to >org.apache.struts.tiles.taglib, but still when running >My application I got exception. > >Can anyone spot what's the problem with tiles? Am I using the correct >struts-tiles.tld? >Do I need additional files? >I tried to put the two logging files mentioned in the Tiles >documentation in my \classes directory, but still >I am experiencing same problem. > >Has anyone succeeded to use tiles with Struts 1.3? > >Thanks in advance and regars > Marco > > > > STACK TRACE *** > >22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - >-loadLocale() 2005-04-26 22:46:47,234 INFO [STDOUT] [TRACE] >PropertyMessageResources - - Loading resource >'org/apache/struts/taglib/html/LocalStrings.properties' >2005-04-26 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources >- - Loading resource completed 2005-04-26 22:46:47,234 ERROR >[org.jboss.web.localhost.Engine] ApplicationDispatcher[/strutschain-web] >Servlet.service() for servlet jsp threw exception >javax.servlet.jsp.JspException > at >org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:36 6 >) > at >org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:186) > at >org.apache.jsp.insertBody_jsp._jspService(insertBody_jsp.java:172) -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - 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]
RE: problem with Tiles & Struts 1.3 / Found exception stack Trace
Just to make sure, if you put the contents of this tile directly in line in the page, you don't get this exception? I'm using tiles generally with Struts 1.3 with no problems, including inlining elements of a form where the form is in one page and the fields are in other tiles. I did run into some problems in the last week when I tried to use inside a , but that's not something I've done a lot in the past, so I wrote it off to an incomplete understanding of the Tiles JSP tags. I was trying to basically pass a "parameter" object into the page scope of the referenced JSP, but it wasn't being found. My work around was to put things in request scope instead of expecting tiles:put to get them into the page scope of the included tile -- is that the nature of your problem? From the description it could be. I don't quite see how Struts 1.3 could be to blame, but maybe I'm just not thinking about it correctly. Joe At 9:10 AM +0100 4/27/05, Marco Mistroni wrote: Hello all, I found exception stack trace for problem mentioned.. Will it 'enlighten' my problem? I have moved my application from Struts 1.1 to Struts 1.3, and I am currently experiencing problems With Tiles. Attached are all the files that I was using with Struts 1.1. and the application worked just fine. Full stack trace provided at end of message.. Now, for use with Struts 1.3 I have changed the struts-tiles.tld since I noticed that some classes Were moved to a different package (from org.apache.struts.taglib.tiles to org.apache.struts.tiles.taglib) So I have replaced all org.apache.struts.taglib.tiles to org.apache.struts.tiles.taglib, but still when running My application I got exception. Can anyone spot what's the problem with tiles? Am I using the correct struts-tiles.tld? Do I need additional files? I tried to put the two logging files mentioned in the Tiles documentation in my \classes directory, but still I am experiencing same problem. Has anyone succeeded to use tiles with Struts 1.3? Thanks in advance and regars Marco STACK TRACE *** 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - -loadLocale() 2005-04-26 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - - Loading resource 'org/apache/struts/taglib/html/LocalStrings.properties' 2005-04-26 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - - Loading resource completed 2005-04-26 22:46:47,234 ERROR [org.jboss.web.localhost.Engine] ApplicationDispatcher[/strutschain-web] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:366 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:186) at org.apache.jsp.insertBody_jsp._jspService(insertBody_jsp.java:172) -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with Tiles & Struts 1.3
http://svn.apache.org/builds/struts/maven/nightly/ -Original Message- From: ziggler [mailto:[EMAIL PROTECTED] Sent: 27 April 2005 09:09 To: Struts Users Mailing List Subject: Re: problem with Tiles & Struts 1.3 where is struts1.3? On 4/27/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:> > > Hello all,> > I have moved my application from Struts 1.1 to Struts 1.3, and I> am currently experiencing problems> > With Tiles.> > Attached are all the files that I was using with Struts 1.1. and the> application worked just fine.> > I am afraid I don't have exception stack trace (I had problem with my mail> account L ), however> > I was getting NullPointerException in pages where there was the> tile:insert tag (such as> > classicLayout.jsp)> > > > Now, for use with Struts 1.3 I have changed the struts-tiles.tld since I> noticed that some classes> > Were moved to a different package (from org.apache.struts.taglib.tiles to> org.apache.struts.tiles.taglib)> > > > So I have replaced all org.apache.struts.taglib.tiles to> org.apache.struts.tiles.taglib, but still when running> > My application I got exception.> > > > Can anyone spot what's the problem with tiles? Am I using the correct > struts-tiles.tld? > > Do I need additional files?> > I tried to put the two logging files mentioned in the Tiles documentation in> my \classes directory, but still> > I am experiencing same problem.> > > > Has anyone succeeded to use tiles with Struts 1.3?> > > > Thanks in advance and regars> > marco> > > > > > > > > -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> > > -- Fasten your seat belt. Here we go... 笑口常开,笑天下可笑之人! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with Tiles & Struts 1.3 / Found exception stack Trace
Hello all, I found exception stack trace for problem mentioned.. Will it 'enlighten' my problem? I have moved my application from Struts 1.1 to Struts 1.3, and I am currently experiencing problems With Tiles. Attached are all the files that I was using with Struts 1.1. and the application worked just fine. Full stack trace provided at end of message.. Now, for use with Struts 1.3 I have changed the struts-tiles.tld since I noticed that some classes Were moved to a different package (from org.apache.struts.taglib.tiles to org.apache.struts.tiles.taglib) So I have replaced all org.apache.struts.taglib.tiles to org.apache.struts.tiles.taglib, but still when running My application I got exception. Can anyone spot what's the problem with tiles? Am I using the correct struts-tiles.tld? Do I need additional files? I tried to put the two logging files mentioned in the Tiles documentation in my \classes directory, but still I am experiencing same problem. Has anyone succeeded to use tiles with Struts 1.3? Thanks in advance and regars Marco STACK TRACE *** 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - -loadLocale() 2005-04-26 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - - Loading resource 'org/apache/struts/taglib/html/LocalStrings.properties' 2005-04-26 22:46:47,234 INFO [STDOUT] [TRACE] PropertyMessageResources - - Loading resource completed 2005-04-26 22:46:47,234 ERROR [org.jboss.web.localhost.Engine] ApplicationDispatcher[/strutschain-web] Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:366 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:186) at org.apache.jsp.insertBody_jsp._jspService(insertBody_jsp.java:172) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:703) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java:589) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja va:966) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:5 81) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135) at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:756) at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTa g.java:888) at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:458) at org.apache.jsp.layout.classicLayout_jsp._jspx_meth_tiles_insert_1(classi cLayout_jsp.java:298) at org.apache.jsp.layout.classicLayout_jsp._jspService(classicLayout_jsp.ja va:116) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:703) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java:589) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja va:966) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:5 81) at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99) at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
Re: problem with Tiles & Struts 1.3
where is struts1.3? On 4/27/05, Marco Mistroni <[EMAIL PROTECTED]> wrote: > > > Hello all, > > I have moved my application from Struts 1.1 to Struts 1.3, and I > am currently experiencing problems > > With Tiles. > > Attached are all the files that I was using with Struts 1.1. and the > application worked just fine. > > I am afraid I don't have exception stack trace (I had problem with my mail > account L ), however > > I was getting NullPointerException in pages where there was the > tile:insert tag (such as > > classicLayout.jsp) > > > > Now, for use with Struts 1.3 I have changed the struts-tiles.tld since I > noticed that some classes > > Were moved to a different package (from org.apache.struts.taglib.tiles to > org.apache.struts.tiles.taglib) > > > > So I have replaced all org.apache.struts.taglib.tiles to > org.apache.struts.tiles.taglib, but still when running > > My application I got exception. > > > > Can anyone spot what's the problem with tiles? Am I using the correct > struts-tiles.tld? > > Do I need additional files? > > I tried to put the two logging files mentioned in the Tiles documentation in > my \classes directory, but still > > I am experiencing same problem. > > > > Has anyone succeeded to use tiles with Struts 1.3? > > > > Thanks in advance and regars > > marco > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- Fasten your seat belt. Here we go... 笑口常开,笑天下可笑之人!
RE: problem with tiles
Amit, What do you mean by main page? Your web.xml's welcome-file-list such as index.jsp? If so, I posted about it within the last 24 hours. Try something like this in your index.jsp file: <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> Regards, David -Original Message- From: Amit Gupta [mailto:[EMAIL PROTECTED] Sent: Saturday, November 06, 2004 12:55 AM To: Struts Users Mailing List Subject: problem with tiles Hi Every body, I developed a page using tiles and used struts-html tags in template page. As a result when main page is excuted struts-html tags in template page are not rendered. How to get Struts-html tags rendred when calling template page in main page? Amit Gupta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Tiles DTD
> From: Ashwin D [mailto:[EMAIL PROTECTED] > Our application resides on a machine which does not > have a direct connection to the internet. So, I have > changed all the references to dtds to be on the local > machine. If you leave the dtds alone, and leave them inside the .jar files, and refer to them with the URI, (which may look like a URL, but isn't,) then they will be located automatically with no connection to the internet. [I think. See below.] So, this: http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";> will actually retrieve the dtd from inside the struts.jar file, where the tiles-config_1_1.dtd file lives. Unless I still don't understand how this works, there is no need to do anything special. (Granted I've never had to work 'offline' and am still using Tomcat 4.1. But since nobody answered your prior message I figured I'd give it a shot.) Craig posted a detailed explanation of how this all works not too long ago, in response to a inquiry I made here. Unfortunately, none of the archives is cooperating with me right now, perhaps someone else can turn it up. Were you having problems that prompted you to make these changes? -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]