Many sessions in struts 1.1 with tiles
Hi all, I have a webapplication with struts 1.1 - tiles-validator-OJB and tomcat 4.1.18 connect to apache JK.1.2. when start tomcat-apache and navigate in the application the number sessions increase to 130 (1XX) i can view this in the tomcat-manager aplication. why increase the number sessions to 1XX ?? any idea?? tranks in advanced! a10 --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where can i find documentation/examples of Multi-channels in tiles??
Hi Cedric I need load diferent tile in a jsp, depending a one parameter in a bean in the request how do this if I use definitions in separate configuration xml files?? thanks. - Original Message - From: Cedric Dumoulin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, May 30, 2003 10:16 AM Subject: Re: Where can i find documentation/examples of Multi-channels in tiles?? Hi, There is an old example in the tile distribution from http://www.lifl.fr/~dumoulin/tiles/. This example was based on an old version of the tiles-doc.war, and some links aren't working. But, the example show how you can write a definition factory to serve a multi -channel application. You can also check http://www.lifl.fr/~dumoulin/howto/referenceADefinition.doc to know more about writing a definition factory. Another approach for multi-channel is to use the i18n feature of Tiles, with the variant part of the locale indicating a channel (ex: tiles-config_FR_fr_variant.xml). The advantage is that you don't need to write a new definition factory. Cedric Ferran Parra wrote: Where can i find documentation/examples of Multi-channels in tiles?? I could not find anything in http://www.lifl.fr/~dumoulin/tiles/, or the official struts home page. thanks! --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where can i find documentation/examples of Multi-channels in tiles??
Where can i find documentation/examples of Multi-channels in tiles?? I could not find anything in http://www.lifl.fr/~dumoulin/tiles/, or the official struts home page. thanks! --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation.xml and Timestamp
I'm using struts validator for all dates and it works fine for simple dates. The entry in validation.xml file is like this. fieldproperty=eventDate depends=required,date arg0 key=eventForm.eventDate.displayname/ var var-namedatePatternStrict/var-name var-valuedd/MM/ /var-value /var /field How can i validate datetime field using the same procedure using format string dd/MM/ HH:SS (timeStamp)? --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts include tag broken?
Yup. That did it. I am going to do more tests, at the server and session level, to see if I can get Tomcat to grab the character set from the user that launches Tomcat. But for the time being, changing: InputStreamReader in = new InputStreamReader(is); ... to: InputStreamReader in = new InputStreamReader(is,ISO-8859-1); ... does the trick. I feel like I have tempted the Gods of Struts! -Bob - Original Message - From: Robert Bowen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 13, 2003 4:11 PM Subject: struts include tag broken? This is exactly what's tripping me up, I think! I am trying to include a page, using the struts include tag, of a struts forward, but the included page is displayed incorrectly; all the accented and strange characters show up as question marks. After struggling with the setLocale(), setContentType(), and setCharacterEndoing() methods of the request and response objects, trying to use the page directive and meta-tag for content at the jsp level, installing filters at the web.xml level, defining character set environment variables for the user that launches Tomcat, and trying every other scrap of code I found on the net (including String(request.getParameter().getBytes(8859_1), UTF-8)) I have given up! Nothing I do changes anything! The included page will NOT display accented characters. This same page, however, when not included, is displayed correctly. So I was looking at the struts source code wondering how the include tag works (at least in 1.1), when I saw the following line: InputStreamReader in = new InputStreamReader(is); // FIXME - encoding It turns out that there 4 constructors for InputStreamReader, one of which accepts as a parameter a character set! But struts uses the default constructor which (I imagine) creates an InputStreamReader using the default character set of either the machine or the session.(BTW, everything works fine in Windows, it's when I port the app to Linux, which has the american character set as its default, that I start to have problems ...) Could this be the answer I am looking for? What especially interests me is the // FIXME - encoding comment. Does this mean what I think it does, that someone is aware that this should be changed, that you should be able to pass the character set parameter? I hope so! In the mean time I have decided to make the change myself, compile and create a new struts jar file to see if it works. I don't like the idea of tinkering with struts source code but I am past desperation! If anyone knows anything about this issue I would cede you my first born to know how else it can be resolved. Incidentally, this is NOT a db issue! As I said, the page generated by the struts forward is displayed correctly, both dynamic content from the db as well as static content. I'll keep the list informed of my progress. Thanks to all, Bob - 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]
Character set lost when doing an include with Struts!
Hello all. Has anyone ever had a problem maintaining character set in an included page? I do! I've tried everything: 1. using jsp format -- jsp:include/ instead of Struts format, and nothing works. 2. jsp include of struts action -- jsp:include page=/do/LoadNoticias... 3. RequestDispatcher: bean:struts id=forwardHomeNoticias forward=Home_Noticias / RequestDispatcher dispatcher = request.getRequestDispatcher(forwardHomeNoticias.getPath()); dispatcher.include(request, response); ... nothing works! In my mother page I have the meta tag: meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 In the included page I have the page directive: %@ page language=java contentType=text/html; charset=iso-8859-1 % But ALL content in the included page -- data from the database, static html, everything -- appears with question marks instead of accented characters. If I include a static jsp with accented characters it appears correctly. My struts calls are: bean:include forward=Home_Noticias id=homeNoticias / //struts action, /do/LoadNoticias/... bean:write name=homeNoticias scope=page filter=false / //print content ... and no matter what I do it won't print correctly. Anyone know what the heck else I can try? Thanks in advance, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
the ActionMapping input property can optionally be the name of an ActionForward instead. but ERROR
Hi all, I configure this in the struts-config.xml : controller inputForward=true but this error is returned when application redirect to ActionMapping input property with the name of Global ActionForward: The requested resource (/ibercamera/adminPreCreateUser) is not available. any idea?? thanks in advanced. Ferran Parra [EMAIL PROTECTED] Departament de Noves Tecnologies MUBIMEDIA S.L. Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error in the attribute input of actionmapping when accesing a globalforward
Hi all, I have the globalforward in the property input of the one action in action-mapping, i configure this in the controller in the struts-config.xml file in the struts1.1b3 in the struts-config.xml i have: controller inputForward=true nocache=true locale=true/ and in one actionmapping in the input attribute i refer a global forward: global-forwards ... forward name=adminCreateUser path=/do/admin/AdminPreCreateUserentity=rolamp;action=findamp;reference=rol / ... /global-forwards action-mappings ... !-- AdminCreateUser -- action path=/admin/AdminCreateUser type=com.mubimedia.project.struts.action.AdminAction input=adminCreateUser name=userForm scope=request validate=true forward name=success path=.admin.index.page / /action ... /action-mappings then the error ocurr when i have redirect to input attribute of AdminCreateUser actionmapping. the tomcat says: type Status report message /adminCreateUser description The requested resource (/adminCreateUser) is not available. any idea??? thanks Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21
Re: error in the attribute input of actionmapping when accesing a globalforward
- Original Message - From: James Mitchell [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, February 21, 2003 4:55 PM Subject: RE: error in the attribute input of actionmapping when accesing a globalforward Is this part correct? path=/do/admin/AdminPreCreateUserentity=rolamp;... ^^^ Perhaps you forgot the '?' No, is in my struts-config.xml, is a error while write a message: ..path=/do/admin/AdminPreCreateUser?entity=rolamp;... -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ The man who does not read good books has no advantage over the man who cannot read them. - Mark Twain (1835-1910) -Original Message- From: Ferran Parra [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 10:49 AM To: Struts Users Mailing List Subject: error in the attribute input of actionmapping when accesing a globalforward Hi all, I have the globalforward in the property input of the one action in action-mapping, i configure this in the controller in the struts-config.xml file in the struts1.1b3 in the struts-config.xml i have: controller inputForward=true nocache=true locale=true/ and in one actionmapping in the input attribute i refer a global forward: global-forwards ... forward name=adminCreateUser path=/do/admin/AdminPreCreateUserentity=rolamp;action=finda mp;reference=rol / ... /global-forwards action-mappings ... !-- AdminCreateUser -- action path=/admin/AdminCreateUser type=com.mubimedia.project.struts.action.AdminAction input=adminCreateUser name=userForm scope=request validate=true forward name=success path=.admin.index.page / /action ... /action-mappings then the error ocurr when i have redirect to input attribute of AdminCreateUser actionmapping. the tomcat says: type Status report message /adminCreateUser description The requested resource (/adminCreateUser) is not available. any idea??? thanks Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21 - 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: about tiles context
Hello David. You are absolutely correct, I have as the application base Artimus from the Struts in Action book by Ted Husted which was made with Struts 1.1b2. I grabbed the application struts-blank from struts 1.1b3 and substituted the directory WEB-INF/lib, and now it works! But I had another question -- I have an Action associated with a Tile. The Action executes correctly and extends the TilesAction but the parameters don't appear in the context of the Tile ... Any suggestions? The code for the execute method is as follows: public ActionForward execute( ComponentContext context, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DateFormat df = DateFormat.getDateInstance (DateFormat.SHORT, getLocale(request)); context.putAttribute(date, df.format(new Date())); //request.setAttribute(date, df.format(new Date())); context.putAttribute(try, tryContext); if (log.isInfoEnabled()) { log.info(ferran date: + df.format(new Date())); log.info(ferran prova: + (String)context.getAttribute(prova)); } return null; } Thanks again for your help, Ferran David Graham [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What version are you using? Tiles used to store it under CompContext but now stores it under org.apache.struts.taglib.CompContext. You're most likely using an earlier version and looking at the recent source. David From: Ferran Parra [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: about tiles context Date: Tue, 18 Feb 2003 18:17:00 +0100 I have a question -- why is the context, which is different for every Tile, in the Request under the key CompContext instead of the key org.apache.struts.taglib.CompContext, as it is in the source files, according to the constants file ComponentConstants.java? Thanks in advance for any help, Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21 _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TilesAction
Hello David Graham. You are absolutely correct, I have as the application base Artimus from the Struts in Action book by Ted Husted which was made with Struts 1.1b2. I grabbed the application struts-blank from struts 1.1b3 and substituted the directory WEB-INF/lib, and now it works! But I had another question -- I have an Action associated with a Tile. The Action executes correctly and extends the TilesAction but the parameters don't appear in the context of the Tile ... Any suggestions? The code for the execute method is as follows: public ActionForward execute( ComponentContext context, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DateFormat df = DateFormat.getDateInstance (DateFormat.SHORT, getLocale(request)); context.putAttribute(date, df.format(new Date())); //request.setAttribute(date, df.format(new Date())); context.putAttribute(try, tryContext); if (log.isInfoEnabled()) { log.info(ferran date: + df.format(new Date())); log.info(ferran prova: + (String)context.getAttribute(prova)); } return null; } Thanks again for your help, Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21
about tiles context
I have a question -- why is the context, which is different for every Tile, in the Request under the key CompContext instead of the key org.apache.struts.taglib.CompContext, as it is in the source files, according to the constants file ComponentConstants.java? Thanks in advance for any help, Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21
AssociatedtilesAction failed!
Greetings, I have the following TilesAction configuration: tiles-defs.xml !-- Main page layout used as a root for other pages defintion.-- definition name=.admin.mainLayout path=/web/admin/layouts/adminBase.jsp controllerUrl=/do/AdminAssociatedAction put name=title value =Administracion/ put name=headervalue=/web/admin/header.jsp/ put name=menuvalue=/web/admin/menu.jsp/ put name=message value=/web/admin/message.jsp/ put name=bodyvalue=/web/admin/body.jsp/ put name=footervalue=/web/admin/footer.jsp/ /definition struts-config.xml !-- AdminWelcome -- action path=/AdminWelcome type=org.apache.struts.scaffold.SuccessAction forward name=success path=.admin.index.page / /action !-- AdminAssociatedAction -- action path=/AdminAssociatedAction type=com.mubimedia.project.associatedAction.AdminAssociatedAction /action AdminAssociatedAction.java public ActionForward execute( ComponentContext arg0, ActionMapping arg1, ActionForm arg2, HttpServletRequest arg3, HttpServletResponse arg4) throws Exception { DateFormat df = DateFormat.getDateInstance (DateFormat.SHORT, getLocale(arg3)); arg0.putAttribute(date, df.format(new Date())); //arg3.setAttribute(date, df.format(new Date())); getServlet().log(ferran date: + df.format(new Date())); return null; } My question: If I iterate over all the request attributes, the context attribute exists but it has the key CompContext, whereas I have read in the documentation that it should be under the org.apache.struts.taglib.tiles.CompContext key ... What's going on? When I get the key, CompContext is empty without the attributes I have inserted, like the date String ... Am I missing something? What am I doing wrong?? versions: jdk 1.40_02 struts: 1.1b3 tomcat: 1.4.18 Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21
Poolman 2.0.4 Struts tomcat4.x
Hi I was wondering if someone out there has configured tomcat 4.x with Poolman 2.0.4. As far as I know Poolman needs to have in the classpath the location of the poolman.xml file. But Tomcat doesn't use the classpath. So that it would work we had to change the catalina.bat file so that it grabs the classpath. Otherwise Poolman doesn't work. Has anyone figured out HOW to get Poolman to work with Tomcat WITHOUT making this change? Much obliged, Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21
Problem viewing web from outside company -- UnknownHostException
Hello all. I have a struts-driven web working under Tomcat 4.0.4, Struts 1.0. All is well from within my company on any given machine but when I access the web from outside the company I get an java.net.UnknownHostException error. The problem seems to be in a struts forward command. This forward command resolves, in the struts config file, to a call to my servlet, which consults the database, and sends me on to a jsp page. If I use a jsp include tag to a simple jsp page, it works. But when I make a struts include, like the following: bean:include forward=Home_News id=homeNews / ... that's when it fails. Home_News resolves to a servlet call, like the following: forward name=Home_News path=/NavigateGetNews?action=searchamp;entity=news redirect=false/ ... I get a java.net.UnknownHostException error: javax.servlet.ServletException: Exception opening resource http://adsl.mubimedia.com:8080/do/NavigateGetNews?action=searchentity=news: java.net.UnknownHostException: adsl.mubimedia.com Does this ring a bell for anyone? This address, http://adsl.mubimedia.com is unreachable from within the company which seems to be the problem . It seems to be trying to make the call to the servlet with the WHOLE address, when it should be making it relative to the application, right? Anyway, I am baffled. Why is it when you include a normal .jsp page it doesn't ALSO try to load it from adsl.mubimedia.com? It's got me swinging ... Much help appreciated, Bob [EMAIL PROTECTED] all. I have a struts-driven web working under Tomcat 4.0.4, Struts 1.0. All is well from within my company on any given machine but when I access the web from outside the company I get an java.net.UnknownHostException error. The problem seems to be in a struts forward command. This forward command resolves, in the struts config file, to a call to my servlet, which consults the database, and sends me on to a jsp page. If I use a jsp include tag to a simple jsp page, it works. But when I make a struts include, like the following: bean:include forward=Home_News id=homeNews / ... that's when it fails. Home_News resolves to a servlet call, like the following: forward name=Home_News path=/NavigateGetNews?action=searchamp;entity=news redirect=false/ ... I get a java.net.UnknownHostException error: javax.servlet.ServletException: Exception opening resource http://adsl.mubimedia.com:8080/do/NavigateGetNews?action=searchentity=news: java.net.UnknownHostException: adsl.mubimedia.com Does this ring a bell for anyone? This address, http://adsl.mubimedia.com is unreachable from within the company which seems to be the problem . It seems to be trying to make the call to the servlet with the WHOLE address, when it should be making it relative to the application, right? Anyway, I am baffled. Why is it when you include a normal .jsp page it doesn't ALSO try to load it from adsl.mubimedia.com? It's got me swinging ... Much help appreciated, Bob [EMAIL PROTECTED] Ferran Parra Departament de Noves Tecnologies MUBIMEDIA S.L. -- [EMAIL PROTECTED] Mallorca, 20 275, 1r 2a 08008 BARCELONA T. (+34) 93 215 21 91 F. (+34) 93 215 41 21
SAP DB
Hi is the SAP DB open source database a good DBMS?? why not is popular than mysql?? thanks --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 ---
I am using Linux w/ JRun 3.1 and PoolMan 2.0.4 with Xerces...
Hello. I am using Linux w/ JRun 3.1 and PoolMan 2.0.4 with Xerces. (The version that comes with PoolMan) I have made the necessary changes in the classpath and restart JRun, and when PoolMan tries to read its configuration from poolman.xml a 'segment fault' is created in the JVM and my JRun server dies. (All servers, all applications.) This same setup in Windows works fine. I have tried killing it in windows by installing the same version of the JVM that I have on the Linux box (1.31_04. Before that I was working with 1.31_03 in Windows ...) and everything works fine in windows. What the heck could be the problem? Should I try changing the parser? Xerces is the standard, no? Any help for a very frustrated geek much appreciated. Thanks, Ferran --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 ---
ORM
which is the better Object Relational Mapping for relational databases (jdbc) and why?? jakata OJB, castor, toplink, ... other thanks --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 ---
How i can execute the tag bean:write ../ inside the tag html:hidden
Hi I'm using strtus 1.0.2 and Jrun 3.1, and my jsp page look like this: html:hidden property=id value='bean:write name=usuario property=id/'/ and produces this output in the web browser: input type=hidden name=id value=lt;bean:write name=quot;usuarioquot; property=quot;idquot;/gt; the tag bean:write../ is not executed, is interpreted as a literal. How i can execute the tag bean:write ../ inside the tag html:hidden ../?? --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN Tel: 93 215 21 91 / Fax: 93 215 41 21 ---
jsp pagis in /WEB-INF directory
Hi, Why is better put jsp's in the /WEB-INF directory?? and I'm use html:link forward=/WEB-INF/pages/jsp/A.jsp tag in a jsp but, no works, what i doing wrong?? thanks --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN SPAIN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jsp pagis in /WEB-INF directory
thanks all, but the solution proposed by Soledad Villa: try: html:link forward=/pages/jsp/A.jsp throws: Error interno del servlet: javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrive ActionForward named /pages/jsp/A.jsp and the solution proposed by Ivan Siviero: the WEB-INF directory is protected.You cannot access the jsp directly from the url.You have to execute an action or a forward.this should works: html:link forward=myForwardin the struts-config.xml:global-forwards forward name=myForward path==/WEB-INF/pages/jsp/A.jsp//global-forwards throws page not found. what can i do?? thanks - Original Message - From: Ivan Siviero [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 08, 2002 2:52 PM Subject: Re: jsp pagis in /WEB-INF directory in the struts-config.xml: global-forwards forward name=myforward path==/WEB-INF/pages/jsp/A.jsp/ /global-forwards Ivan. sorry i did some typo :) :) global-forwards forward name=myForward path=/WEB-INF/pages/jsp/A.jsp/ /global-forwards - Original Message - From: Soledad Villa [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, March 08, 2002 2:33 PM Subject: RE: jsp pagis in /WEB-INF directory you don't have to include the web-inf directory try: html:link forward=/pages/jsp/A.jsp -Mensaje original- De: Ferran Parra [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 08 de marzo de 2002 10:10 Para: Struts Users Mailing List Asunto: jsp pagis in /WEB-INF directory Hi, Why is better put jsp's in the /WEB-INF directory?? and I'm use html:link forward=/WEB-INF/pages/jsp/A.jsp tag in a jsp but, no works, what i doing wrong?? thanks --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN SPAIN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jsp pagis in /WEB-INF directory
Yes is in WEB-INF directory /ProjectA/WEB-INF/pages/jsp/A.jsp thanks - Original Message - From: Soledad Villa [EMAIL PROTECTED] Newsgroups: Struts To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, March 08, 2002 3:37 PM Subject: RE: jsp pagis in /WEB-INF directory i have a question: te page in which you have the code with the link, in which directory is? in web-inf? -Mensaje original- De: Ferran Parra [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 08 de marzo de 2002 11:28 Para: Struts Users Mailing List Asunto: Re: jsp pagis in /WEB-INF directory thanks all, but the solution proposed by Soledad Villa: try: html:link forward=/pages/jsp/A.jsp throws: Error interno del servlet: javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrive ActionForward named /pages/jsp/A.jsp and the solution proposed by Ivan Siviero: the WEB-INF directory is protected.You cannot access the jsp directly from the url.You have to execute an action or a forward.this should works: html:link forward=myForwardin the struts-config.xml:global-forwards forward name=myForward path==/WEB-INF/pages/jsp/A.jsp//global-forwards throws page not found. what can i do?? thanks - Original Message - From: Ivan Siviero [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, March 08, 2002 2:52 PM Subject: Re: jsp pagis in /WEB-INF directory in the struts-config.xml: global-forwards forward name=myforward path==/WEB-INF/pages/jsp/A.jsp/ /global-forwards Ivan. sorry i did some typo :) :) global-forwards forward name=myForward path=/WEB-INF/pages/jsp/A.jsp/ /global-forwards - Original Message - From: Soledad Villa [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, March 08, 2002 2:33 PM Subject: RE: jsp pagis in /WEB-INF directory you don't have to include the web-inf directory try: html:link forward=/pages/jsp/A.jsp -Mensaje original- De: Ferran Parra [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 08 de marzo de 2002 10:10 Para: Struts Users Mailing List Asunto: jsp pagis in /WEB-INF directory Hi, Why is better put jsp's in the /WEB-INF directory?? and I'm use html:link forward=/WEB-INF/pages/jsp/A.jsp tag in a jsp but, no works, what i doing wrong?? thanks --- Ferran Parra [EMAIL PROTECTED] http://www.mubimedia.com MUBIMEDIA S.L. C/ Mallorca, 275, 1r 2a 08008 BCN SPAIN Tel: 93 215 21 91 / Fax: 93 215 41 21 --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]