Re: s:include not working
Hi Chase, Is there any relation with the depth because when i put index.jsp page and HElloWorld.jsp page in the same folder, it starts to include the other jsp page which i unable to include when the pages were in different folders. any suggestion in this regards will be much helpful. yes all the pages have same tag lib directive -Aum On 7/19/08, Chase [EMAIL PROTECTED] wrote: Why does your tag have a body? s:include value=IncludedMenu/menu.jsp/ Do the other pages contain the same taglib directives? If you view the source in your web browser and see the tag code that means you are missing a taglib directive. Your include is using a relative page, are all the pages at the same depth? -Chase On Sat, Jul 19, 2008 at 4:22 AM, aum strut [EMAIL PROTECTED] wrote: Hi all, i am trying to include a jsp page using struts2 s:include tag but itdosen't seems to be working in my way. i have a menu.jsp page where i have written a code for the menu for my application. i have included this menu.jsp page in my index.jsp page were it is working fine.When i click on any menu option it redirect me to another page using the action.i tried to use the same s:include tage in other pages but it is not working where as it is working fine in the index.jsp page. where as if i include the code in the other pages instead of including the jap page the menuy starts appearing fine. s:include value=IncludedMenu/menu.jsp/s:include i have included the menu.jsp page in index page using this tag and working fine here but when tried to use the same tage in others pageses i failed.Can any one suggest me where i am doing wrong.?? Thanks in advance -aum - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error global-Forwards
Hi, Could you paste your struts-config here? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error global-Forwards
Lukasz Lenart escribió: Hi, Could you paste your struts-config here? Regards Hi, This is the whole struts-config file. As fas as i can see, the problem has nothing to do with the actionClass itself, because I only put a simple forward in the action, and the result is the same as with the code i must program. The browser gets stucked in the action *.do, as if it would enter in a loop.No errors are shown in the Tomcat console nor the logs. In the navigator bar and the window title (where the name of the actual jsp page is displayed) appears the same name as in the nav bar: http://localhost:8080/gentaiw/mostrarusuario.do , (mostrarusuario means showuser) instead of mostrarUsuario.jsp More info , the global forward forward name=irMostrarTest path=/mostrarConfigurarTest.do / works fine. Best regards, ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://struts.apache.org/dtds/struts-config_1_2.dtd; struts-config data-sources data-source type=org.apache.commons.dbcp.BasicDataSource key=usuario set-property property=driverClassName value=com.mysql.jdbc.Driver / set-property property=url value=jdbc:mysql://localhost:3306/gentaidb?autoReconnect=true / set-property property=username value=root / set-property property=password value=admin / set-property property=maxActive value=10 / set-property property=maxWait value=5000 / set-property property=defaultAutoCommit value=false / set-property property=defaultReadOnly value=false / set-property property=validationQuery value=SELECT COUNT(*) FROM usuario / /data-source /data-sources form-beans form-bean name=UserLogin2Form type=com.gentaiw.struts.form.UserLogin2Form/ form-bean name=CrearUsuarioForm type=com.gentaiw.struts.form.CrearUsuarioForm/ form-bean name=EliminarUsuarioForm type=com.gentaiw.struts.form.UserLogin2Form/ form-bean name=ConfigurarTestForm type=com.gentaiw.struts.form.ConfigurarTestForm / form-bean name=MostrarUsuarioForm type=com.gentaiw.struts.form.MostrarUsuarioForm / /form-beans global-exceptions / global-forwards forward name=irLogin path=/userLogin.jsp / forward name=irInicio path=/inicio.jsp / forward name=irCrearUsuario path=/crearUsuario.jsp / forward name=irEliminarUsuario path=/eliminarUsuario.do / forward name=irActualizarUsuario path=/actualizarUsuario.jsp / forward name=irMostrarTest path=/mostrarConfigurarTest.do / forward name=irConfigurarTest path=/configurarTest.jsp / forward name=irAdminMenu path=/adminLoginSuccess.jsp / forward name=irUsuario path=/mostrarUsuario.do / /global-forwards action-mappings action path=/userLogin input=/userLogin.jsp name=UserLogin2Form scope=session attribute=listausuario type=com.gentaiw.struts.action.UserLoginAction validate=false forward name=userlogin path=/userLogin.jsp / forward name=usuario path=/userLoginSuccess.jsp / forward name=admin path=/adminLoginSuccess.jsp / /action action path=/crearUsuario input=/crearUsuario.jsp name=CrearUsuarioForm scope=session type=com.gentaiw.struts.action.CrearUsuarioAction validate=false forward name=success path=/usuarioCreado.jsp / /action action attribute=MostrarUsuarioForm name=MostrarUsuarioForm path=/mostrarUsuario scope=request type=com.gentaiw.struts.action.MostrarUsuarioAction validate=false forward name=success path=/mostrarUsuario.jsp / /action action input=/adminLoginSuccess.jsp path=/eliminarUsuario scope=request type=com.gentaiw.struts.action.EliminarUsuarioAction validate=false forward name=success path=/eliminarUsuario.jsp / /action action attribute=ConfigurarTestForm name=ConfigurarTestForm path=/mostrarConfigurarTest scope=request validate=false type=com.gentaiw.struts.action.MostrarConfigurarTestAction forward name=success path=/mostrarConfiguracionTest.jsp / /action action attribute=ConfigurarTestForm input=/configurarTest.jsp name=ConfigurarTestForm path=/configurarTest scope=request type=com.gentaiw.struts.action.ConfigurarTestAction validate=true forward name=success path=/configuracionGuardada.jsp / forward name=error path=/errorConfigurar.jsp / forward name=input path=/configurarTest.jsp / /action /action-mappings message-resources null=false parameter=ApplicationResources / plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathname2 value=/WEB-INF/validation.xml / set-property property=pathname1 value=/WEB-INF/validator-rules.xml / /plug-in /struts-config
Fwd: struts2 bis prospectus
hi there we haave a struts2 project, name cimande (http://www.sf.net/projects/cimande), and under umbrealla blueoxygen.org now we launch the blueoxygen.net for marketplace for anyone that develop apps on cimande. we have 14 project that run on cimande, so we see that S2 will be our core action framework but. i am feeling that JSF marketing guy is very agresif, even we know the JSF is slow and have performance issue, but Struts team is not publicate well in the market can help? NB: the project on cimande will be develop nationaly by our students in our country, because cimande, struts2, spring, is our core java curicullum (http://jeni.diknas.go.id) do i do a bad direction put stuts2 as education curricullum? my opinion, Struts2 is easier for us to devleop apps, JSF is more memory and more complex, and of course in ego level, i have a product on struts2, need a publication .. -- -- Frans Thamura Meruvian Foundation Mobile: +62 855 7888 699 YM: [EMAIL PROTECTED] GTalk: [EMAIL PROTECTED] Skype: fthamura Linkedin: http://www.linkedin.com/in/fthamura Discuss BlueOxygen Projects at [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error global-Forwards
navigator bar and the window title (where the name of the actual jsp page is displayed) appears the same name as in the nav bar: http://localhost:8080/gentaiw/mostrarusuario.do , (mostrarusuario means showuser) instead of mostrarUsuario.jsp This is correct behavior, you should never see any *.jsp in url, you should also consider to request your global forwards jsp through action and not directly. Ok, back to you problem, the config looks ok, could you try access you action with CamelHumps, as you configured in struts-config.xml? http://localhost:8080/gentaiw/mostrarUsuario.do Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error global-Forwards
Lukasz Lenart escribió: navigator bar and the window title (where the name of the actual jsp page is displayed) appears the same name as in the nav bar: http://localhost:8080/gentaiw/mostrarusuario.do , (mostrarusuario means showuser) instead of mostrarUsuario.jsp This is correct behavior, you should never see any *.jsp in url, you should also consider to request your global forwards jsp through action and not directly. http://localhost:8080/gentaiw/mostrarUsuario.do Regards This is correct behavior, you should never see any *.jsp in url, you should also consider to request your global forwards jsp through action and not directly. Ok, i see what you mean but i need to display some info from one jsp page to another directly: page1 - click link - get the info from action class - display the info in page 2 I suppose there isn´t another approach... Ok, back to you problem, the config looks ok, could you try access you action with CamelHumps, as you configured in struts-config.xml? Er..what is CamelHumps? No idea about it, sorry... :) PD:( plus info: using myeclipse IDE if needed) Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error global-Forwards
Er..what is CamelHumps? No idea about it, sorry... :) You defined your path in config as /mostrarUsuario (CamelHumps - JavaClassNamingConvention) but you accessing it like below http://localhost:8080/gentaiw/mostrarusuario.do try this http://localhost:8080/gentaiw/mostrarUsuario.do As I remember, Tomcat distinct letter case ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 Fileupload user defined messages
Hi Dirk, I had the same problem and after spending the whole day trying things out, I found something that works. In WEB-INF/classes I created a class struts-messages.properties with following content: struts.messages.error.uploading=Fehler beim hochladen der Datei struts.messages.error.file.too.large=Die Datei ist zu groß! struts.messages.error.content.type.not.allowed = Der Dateityp wird leider nicht unterstützt. In my strus.properties I added: struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest struts.multipart.maxSize=1 struts.custom.i18n.resources=struts-messages My action-definition looks like: action name=SaveSettings class=saveSettings interceptor-ref name=fileUpload param name=allowedTypes image/x-png,image/png,image/gif,image/jpeg,image/pjpeg /param param name=maximumSize12 /param /interceptor-ref [...] /action It seems like that the value in struts.multipart.maxSize is passed to commons-fileupload. If the uploaded file exceeds this value, the message you mentioned is displayed. BUT: if we set this value quite high (so that commons-fileupload is not complaining about it), the Struts FileUploadInterceptor checks again for the parameter maximumSize, which is passed in the action-definition. (In my case I don't want to have files bigger than 12 bytes.) If the file-size exceeds this value, the message declared in struts.messages.error.file.too.large is loaded. This behaviour is really annoying and it took an eternity to find it out. So let me know if this is working for you. Greetings from Flensburg, Joachim Dirk Schumacher schrieb: Hello, I am troubleling with the Fileupload in S2. I want to have printed my own messages on failure of the file upload which takes place in the interceptor. I am uploading files exceeding the set maximum size The documentation talks about the struts-message-properties, where is declared: struts.messages.error.uploading=Error uploading: {0} struts.messages.error.file.too.large=File too large: {0} {1} {2} struts.messages.error.content.type.not.allowed=Content-Type not allowed: {0} {1} {2} The message printed via the ActionError is complete different text I cannot find in any file: the request was rejected because its size (2352563) exceeds the configured maximum (2097152) Where is this Text declared? A colleague talked about the commons-fileupload which is declaring the printed text The Jakarta File... seems to me the right instance of takiong care of the ActionError When looking at the sources I figured that not the FileUploadInterceptor instantiates the ActionError. It is done by the parse()-Method of the MultipartRequestWrapper, or somewhere deeper. So figure that the struts-message.properties is never applied and the ActionError is setup in-code instead of the usage of an external property file. Is there any documentation out there on this issue? - I just want to set my own (localed) messages for the different errors that may occure, just like intended by the S2 FileUploadInterceptor, which seems somewhat not fully useful to me right now. I appreciate your help in advance, best greetings from cologne, Dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1506 - Release Date: 17.06.2008 16:30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] current URL in ValueStack?
Earlier in this conversation, Jeromy proposed two ways of accessing the current URL (or URI), one through EL and the other through OGNL ${pageContext.request.requestURI} s:property value=%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}/ That works great until (it seems) Tiles2 gets in the picture. By that point, the address returned is that of the Tiles layout (with extension .jsp) and not the logical address of the request. (I haven't made a systematic study of the exact conditions for this phenomenon to occur.) It seems to me that, having access to the current (logical) URL (the one that generated this request) is a fairly common need. Has anyone come up with another way of getting hold of it? There is a failsafe option: make an interceptor that places the URL in question in the Request scope, but that seems a little heavy-handed to me... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error global-Forwards
Lukasz Lenart escribió: Er..what is CamelHumps? No idea about it, sorry... :) You defined your path in config as /mostrarUsuario (CamelHumps - JavaClassNamingConvention) but you accessing it like below http://localhost:8080/gentaiw/mostrarusuario.do try this http://localhost:8080/gentaiw/mostrarUsuario.do As I remember, Tomcat distinct letter case ;-) Regards Well, in fact that´s the way i am accesing as defined in the struts-config.xml: http://localhost:8080/gentaiw/mostrarUsuario.do (the url i sent you was wrong - http://localhost:8080/gentaiw/mostrarusuario.do I wrote the url instead of copypaste). Changed the name of the action to mostrarusuario.do and of course, gives me error 404 path not found. Anyway, ill check again my action and jsp in case there is something wrong. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:include not working
Are you adjusting the relative URL value in your include statement based on the folder depth of the containing page or are you just copying pasting the same include statement in every single page? -Chase On Sun, Jul 20, 2008 at 1:20 AM, aum strut [EMAIL PROTECTED] wrote: Hi Chase, Is there any relation with the depth because when i put index.jsp page and HElloWorld.jsp page in the same folder, it starts to include the other jsp page which i unable to include when the pages were in different folders. any suggestion in this regards will be much helpful. yes all the pages have same tag lib directive -Aum On 7/19/08, Chase [EMAIL PROTECTED] wrote: Why does your tag have a body? s:include value=IncludedMenu/menu.jsp/ Do the other pages contain the same taglib directives? If you view the source in your web browser and see the tag code that means you are missing a taglib directive. Your include is using a relative page, are all the pages at the same depth? -Chase On Sat, Jul 19, 2008 at 4:22 AM, aum strut [EMAIL PROTECTED] wrote: Hi all, i am trying to include a jsp page using struts2 s:include tag but itdosen't seems to be working in my way. i have a menu.jsp page where i have written a code for the menu for my application. i have included this menu.jsp page in my index.jsp page were it is working fine.When i click on any menu option it redirect me to another page using the action.i tried to use the same s:include tage in other pages but it is not working where as it is working fine in the index.jsp page. where as if i include the code in the other pages instead of including the jap page the menuy starts appearing fine. s:include value=IncludedMenu/menu.jsp/s:include i have included the menu.jsp page in index page using this tag and working fine here but when tried to use the same tage in others pageses i failed.Can any one suggest me where i am doing wrong.?? Thanks in advance -aum - 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: Error global-Forwards
Copy-paste your jsp and/or action and we will see.. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[S2] Possible issue w/ S2.1.3
I have a non-Maven S2.1 project I just started updating to 2.1.3 and I can't get *anything* to work at the moment. I'm using the REST (so CodeBehind as well), Dojo, Spring (2.5.4), and config browser plugins, all compiled from trunk. XWork is also compiled from trunk. Also: - XWork and S2 logging at DEBUG - A single actionPackages defined in web.xml - devMode defined in struts.xml - Misc actions defined in struts.xml Right now I'm not able to get to the config browser index page, my non-REST actions, etc. I'm using the ...ng.filter.StrutsPrepareAndExecuteFilter. The only thing I see in the logs is this on any URL access: WARN com.opensymphony.xwork2.ognl.OgnlValueStack.warn:45 - Could not find property [struts.actionMapping] There's nothing on startup that looks troublesome, but I can't get to any S2 actions. Is there anything obvious I should look at before starting to dig seriously? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Possible issue w/ S2.1.3
There is a good chance that it is related to ng.filter I would say. musachy On Sun, Jul 20, 2008 at 6:15 PM, Dave Newton [EMAIL PROTECTED] wrote: I have a non-Maven S2.1 project I just started updating to 2.1.3 and I can't get *anything* to work at the moment. I'm using the REST (so CodeBehind as well), Dojo, Spring (2.5.4), and config browser plugins, all compiled from trunk. XWork is also compiled from trunk. Also: - XWork and S2 logging at DEBUG - A single actionPackages defined in web.xml - devMode defined in struts.xml - Misc actions defined in struts.xml Right now I'm not able to get to the config browser index page, my non-REST actions, etc. I'm using the ...ng.filter.StrutsPrepareAndExecuteFilter. The only thing I see in the logs is this on any URL access: WARN com.opensymphony.xwork2.ognl.OgnlValueStack.warn:45 - Could not find property [struts.actionMapping] There's nothing on startup that looks troublesome, but I can't get to any S2 actions. Is there anything obvious I should look at before starting to dig seriously? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Possible issue w/ S2.1.3
--- On Sun, 7/20/08, Musachy Barroso [EMAIL PROTECTED] wrote: There is a good chance that it is related to ng.filter I would say. Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Possible issue w/ S2.1.3
I think only Don knows what is its status. musachy On Sun, Jul 20, 2008 at 8:56 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sun, 7/20/08, Musachy Barroso [EMAIL PROTECTED] wrote: There is a good chance that it is related to ng.filter I would say. Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] current URL in ValueStack?
Pierre Thibaudeau wrote: Earlier in this conversation, Jeromy proposed two ways of accessing the current URL (or URI), one through EL and the other through OGNL ${pageContext.request.requestURI} s:property value=%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}/ That works great until (it seems) Tiles2 gets in the picture. By that point, the address returned is that of the Tiles layout (with extension .jsp) and not the logical address of the request. (I haven't made a systematic study of the exact conditions for this phenomenon to occur.) It seems to me that, having access to the current (logical) URL (the one that generated this request) is a fairly common need. Has anyone come up with another way of getting hold of it? I was hoping you wouldn't encounter that little problem. When your container forwards to a JSP, the requestURI is now the JSP rather than the original URI. After a forward, the requestURI is now available in the request map: #request['javax.servlet.forward.request_uri'] But of course, that won't be set if there wasn't a forward, so you can't always use that. As logic's involved, my solution was to create a custom tag with the following code extract. I never understood why the requestURI was never readily available in the action's context though. However I rarely need it and most pages don't require it. Snippet: StringBuilder uri = new StringBuilder(); RequestMap requestMap = (RequestMap) stack.getContext().get(request); String forwardURI = (String) requestMap.get(javax.servlet.forward.request_uri); if ((forwardURI != null) (forwardURI.length() 0)) { uri.append(forwardURI); } else { uri.append(request.getRequestURI()); } regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] current URL in ValueStack?
After a forward, the requestURI is now available in the request map: #request['javax.servlet.forward.request_uri'] Great, I'm learning! Snippet: StringBuilder uri = new StringBuilder(); RequestMap requestMap = (RequestMap) stack.getContext().get(request); String forwardURI = (String) requestMap.get(javax.servlet.forward.request_uri); if ((forwardURI != null) (forwardURI.length() 0)) { uri.append(forwardURI); } else { uri.append(request.getRequestURI()); } Thank you! I did go ahead and implement my interceptor solution, but this tag idea is definitely leaner for the structure, which is very good! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Possible issue w/ S2.1.3
Dave Newton wrote: --- On Sun, 7/20/08, Musachy Barroso [EMAIL PROTECTED] wrote: There is a good chance that it is related to ng.filter I would say. Isn't that the filter we're supposed to use now though? Is it less of a drop-in replacement than I assumed? Thanks, Dave I'm certain the separate StrutsPrepare and StrutsExecute filters work, but the StrutsPrepareAndExecute filter doesn't (last I checked). The deprecated filters still work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: issue with ajax submit
matthieu martin wrote: Hello all. I can't figure out what this message means, or even where does it come from. I have no way to know which request returns this to me ... I'm lost. Is anyone able to help me ? Dojo uses a technique called IFrame I/O when uploading a file asynchronously. Looks to me like you're seeing the response that belongs in the hidden iframe. IIRC you'll need to write some javascript to setup Dojo for file async uploads. You'll find several old posts here about that. (I don't use it myself). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Possible issue w/ S2.1.3
--- On Sun, 7/20/08, Jeromy Evans wrote: Dave Newton wrote: --- On Sun, 7/20/08, Musachy Barroso wrote: There is a good chance that it is related to ng.filter Isn't that the filter we're supposed to use now though? I'm certain the separate StrutsPrepare and StrutsExecute filters work, but the StrutsPrepareAndExecute filter doesn't (last I checked). The deprecated filters still work. Okay; thanks guys. I'll try again in the morning. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:include not working
Thanks Chase for the Help There was the problem with the URL value in the include statement. :) On Mon, Jul 21, 2008 at 2:46 AM, Chase [EMAIL PROTECTED] wrote: Are you adjusting the relative URL value in your include statement based on the folder depth of the containing page or are you just copying pasting the same include statement in every single page? -Chase On Sun, Jul 20, 2008 at 1:20 AM, aum strut [EMAIL PROTECTED] wrote: Hi Chase, Is there any relation with the depth because when i put index.jsp page and HElloWorld.jsp page in the same folder, it starts to include the other jsp page which i unable to include when the pages were in different folders. any suggestion in this regards will be much helpful. yes all the pages have same tag lib directive -Aum On 7/19/08, Chase [EMAIL PROTECTED] wrote: Why does your tag have a body? s:include value=IncludedMenu/menu.jsp/ Do the other pages contain the same taglib directives? If you view the source in your web browser and see the tag code that means you are missing a taglib directive. Your include is using a relative page, are all the pages at the same depth? -Chase On Sat, Jul 19, 2008 at 4:22 AM, aum strut [EMAIL PROTECTED] wrote: Hi all, i am trying to include a jsp page using struts2 s:include tag but itdosen't seems to be working in my way. i have a menu.jsp page where i have written a code for the menu for my application. i have included this menu.jsp page in my index.jsp page were it is working fine.When i click on any menu option it redirect me to another page using the action.i tried to use the same s:include tage in other pages but it is not working where as it is working fine in the index.jsp page. where as if i include the code in the other pages instead of including the jap page the menuy starts appearing fine. s:include value=IncludedMenu/menu.jsp/s:include i have included the menu.jsp page in index page using this tag and working fine here but when tried to use the same tage in others pageses i failed.Can any one suggest me where i am doing wrong.?? Thanks in advance -aum - 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]