Re: SSL and actionforms
Le Tuesday, March 09, 2004 11:49 AM, Håkan Fransson <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > We are on development right now so we are just assuming all material > being dynamic > and deploy the web application direct on the application server(WAS > 5.0.2.2) and it's web container > using port 9443. I'm running it through WSAD. > maybe http://www.modwest.com/help/kb.phtml?cat=2&qid=260 -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception in ActionForm.reset()
Hello, How can I handle exception in reset(mapping, request) method (I would like in this case to forward to a particular mapping) Thanks -- Franck Lefebure
Re: REPOST: GZipping response with Servlet 2.2 / Struts 1.0
Le Thursday, February 05, 2004 9:59 AM, BILODEAU Guillaume SOFRECOM <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > Hi everyone, > > Would there be any other mechanism to compress the response sent to the client? Hi, My application server (Jrun) is interfaced with Apache, And I use mod_gzip in Apache. configuration is a litthe tricky but it works very well Bye -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]CVS client
Le Tuesday, February 03, 2004 4:17 PM, Ramadoss Chinnakuzhandai <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > Hi, > can anybody suggest me any better CVS client other than > WinCVS and JCVS? > I use Sun One Studio built in cvs client for "little" cvs actions (add, commit) and cvs unix command line on the server for "mass" cvs actions (checkout, imports) works fine bye -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts & PDF
Le Monday, January 26, 2004 11:45 AM, Claus Weng Madsen - TELMORE <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > Hi > > Does anyone know how to forward to pdf > reponse.reset(); reponse.setContentType("application/pdf"); reponse.setHeader("Content-Disposition", "attachment; filename="+ fileName ); //reponse.setHeader("pragma","no cache"); out = reponse.getOutputStream(); FileReader fileRead = new FileReader(fileFacture); in = new BufferedInputStream( new FileInputStream( fileFacture ) ); BufferedReader buffFileln = new BufferedReader(fileRead); byte[] buff = new byte[2048]; for(int count = 0; (count = in.read(buff)) != -1;) { out.write(buff, 0, count); } Don't forget to close streams Bye -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom request processor
Le Friday, January 23, 2004 7:18 AM, Mohan Radhakrishnan <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > HI > A follow-up question. > > How does this impact my Tile request processor ? > > SEVERE: TilesPlugin : Specified RequestProcessor not compatible with > TilesRequestProcessor Do your Specified RequestProcessor extends TilesRequestProcessor ? -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web spider
Le Thursday, January 22, 2004 11:15 AM, McCormack, Chris <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > Hello all > Has anyone tried to successfully spider their struts website using > any open-source/free spider app ? > No problem with htdig -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file upload and IllegalArgumentException: FOUND !
Well, I've found the problem, It wasn't my code .. It wasn't commons libraries ... I recently upgraded my Opera Browser version : 7.20.3087. This version of Opera doesn't seem to support use of Formfile (if you leave a file input blank) can anyone confirm that ? I would like to do a bug report but I've never done something like that and I don't know if it's a Struts or an Opera bug . any council ? Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] - Original Message - From: "Franck Lefebure" <[EMAIL PROTECTED]> To: "k_emilov" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 9:15 AM Subject: Re: file upload and IllegalArgumentException: > Hi, > the enc-type is described in the jsp. > in Struts-config I just have : > > > type="com.orange.struts.beans.servers.ServerForm"/> > > > scope="request" type="com.orange.struts.actions.servers.ServerAction" > parameter="action"> > > > > But since yesterday I've tested the other actions where I use formfile In my > Struts applications > I ve this exception everywhere > > I think I've upgraded a jar somewhere causing this error (I'm actually > looking the commons lib versions) > > Regards > > -- > > Franck Lefebure > equipe web http://www.orangecaraibe.com > mailto:[EMAIL PROTECTED] > - Original Message - > From: "k_emilov" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 02, 2003 3:59 AM > Subject: multipart-form/data enc type > > > > Hi , > > > > I think , the problem is that you describe enc type in struts- > > config.xml ... If you describe it in the .jsp > > , it > > will not attempt to set FormFile property with an empty string , > > causing illegal argument exception > > > > There is another workaround, certainly - not to define form property > > of type FormFile in xml, but to take it from requesyt object. > > > > Please , reply what happened > > > > Regards > > > > Konstantin > > > > > - > 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: file upload and IllegalArgumentException:
Hi, the enc-type is described in the jsp. in Struts-config I just have : But since yesterday I've tested the other actions where I use formfile In my Struts applications I ve this exception everywhere I think I've upgraded a jar somewhere causing this error (I'm actually looking the commons lib versions) Regards -- Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] - Original Message - From: "k_emilov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 3:59 AM Subject: multipart-form/data enc type > Hi , > > I think , the problem is that you describe enc type in struts- > config.xml ... If you describe it in the .jsp > , it > will not attempt to set FormFile property with an empty string , > causing illegal argument exception > > There is another workaround, certainly - not to define form property > of type FormFile in xml, but to take it from requesyt object. > > Please , reply what happened > > Regards > > Konstantin > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
file upload and IllegalArgumentException:
Hi, I have an action form with an the file of this form is optional. but if the user doesn't choose file before submit then there is an IllegalArgumentException (stacktrace below): I put some tracelogs in beanutils.PropertyUtils, I see that when struts is populating the ActionForm from the Html form, he tries to set a FormFile property with a (blank) String value, causing the exception Is there a workaround ? Thanks -- Franck Lefebure /servers/doServer.do: BeanUtils.populate java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j ava:1790) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j ava:1685) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:17 14) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
action chaining and request.getRequestURI()
Hi, My struts-config looks like : When I catch an Exception in NewsAction, I "mapping.findForward("error");" In the doError.do, I want to record data about the Exception in a table. The Url I used to launch this process is http://myserver/doNews.do I want to store this url in the table but if I do something like request.getRequestUrl() in the ErrorAction then the result is " doError.do ". I would like the real Url ( " doNews.do ") Is there any solution to that ? Thanks -- Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi config files and global forward
Thanks for the *contextRelative="true"* tip Regards -- Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] 0590323872 0690569880 - Original Message - From: "Manish Singla" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 24, 2003 6:18 PM Subject: Re: Multi config files and global forward > Try this > in > /WEB-INF/conf/struts-config-news.xml > > > > Franck Lefebure wrote: > > Well, > > I learned this way of using muti-config modules in the article > > > > http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html?page=2 > > > > I don't have any problem with it but I'm looking for > > the smartest way to define a all-modules global-forward > > > > ... Or the smartest way to handle exception in a multi-module struts > > configuration ! > > > > Thanks > > -- > > Franck Lefebure > > equipe web http://www.orangecaraibe.com > > mailto:[EMAIL PROTECTED] > > 0590323872 > > 0690569880 > > - Original Message - > > From: "Navneet Karnani" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, September 24, 2003 3:49 PM > > Subject: Re: Multi config files and global forward > > > > > > > >>Do you intend to make these different modules ? If not, then this is the > >>wrong way to split files. You must use the xml way of splitting the > >>files, or give the config files in the same param-value tag seperated by > >>comma. > >> > >>- Navneet > >>Umber Business Solutions Pvt Ltd > >>http://www.umber.biz > >> > >>Franck Lefebure said the following on 25/09/2003 1:09 AM: > >> > >>>Hello, > >>> > >>>My web.xml looks like : > >>> > >>> > >>>action > >>> > > org.apache.struts.action.ActionServlet > > > >>> > >>>config > >>>/WEB-INF/struts-config.xml > >>> > >>> > >>>config/news > >>>/WEB-INF/conf/struts-config-news.xml > >>> > >>>... > >>> > >>>In /WEB-INF/struts-config.xml , I have the following action : > >>> > >>> > >>> > >>> > >>> > >>> > >>> >>>type="com.orange.struts.actions.ErrorAction"> > >>> > >>> > >>> > >>> > >>>I want in /WEB-INF/conf/struts-config-news.xml to define global-forward > >>>towards the /doError.do in the main file : > >>> > >>>Something like : > >>> > >>> > >>> > >>> > >>> > >>>But, It doesn't work. If I add redirect="true" : >>>path="/../doError.do" redirect="true"/> > >>>Then it's ok But I would like to keep my request scope > >>> > >>>An idea ? > >>>Thanks > >>>Franck > >>> > >>> > >>>-- > >>>Franck Lefebure > >>>equipe web http://www.orangecaraibe.com > >>>mailto:[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] > > > > > -- > Thanks > Manish Singla > x73166 > > > - > 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: Multi config files and global forward
Well, I learned this way of using muti-config modules in the article http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html?page=2 I don't have any problem with it but I'm looking for the smartest way to define a all-modules global-forward ... Or the smartest way to handle exception in a multi-module struts configuration ! Thanks -- Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] 0590323872 0690569880 - Original Message - From: "Navneet Karnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 24, 2003 3:49 PM Subject: Re: Multi config files and global forward > Do you intend to make these different modules ? If not, then this is the > wrong way to split files. You must use the xml way of splitting the > files, or give the config files in the same param-value tag seperated by > comma. > > - Navneet > Umber Business Solutions Pvt Ltd > http://www.umber.biz > > Franck Lefebure said the following on 25/09/2003 1:09 AM: > > Hello, > > > > My web.xml looks like : > > > > > > action > > org.apache.struts.action.ActionServlet > > > > config > > /WEB-INF/struts-config.xml > > > > > > config/news > > /WEB-INF/conf/struts-config-news.xml > > > > ... > > > > In /WEB-INF/struts-config.xml , I have the following action : > > > > > > > > > > > > > > > type="com.orange.struts.actions.ErrorAction"> > > > > > > > > > > I want in /WEB-INF/conf/struts-config-news.xml to define global-forward > > towards the /doError.do in the main file : > > > > Something like : > > > > > > > > > > > > But, It doesn't work. If I add redirect="true" : > path="/../doError.do" redirect="true"/> > > Then it's ok But I would like to keep my request scope > > > > An idea ? > > Thanks > > Franck > > > > > > -- > > Franck Lefebure > > equipe web http://www.orangecaraibe.com > > mailto:[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]
Multi config files and global forward
Hello, My web.xml looks like : action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml config/news /WEB-INF/conf/struts-config-news.xml ... In /WEB-INF/struts-config.xml , I have the following action : I want in /WEB-INF/conf/struts-config-news.xml to define global-forward towards the /doError.do in the main file : Something like : But, It doesn't work. If I add redirect="true" : Then it's ok But I would like to keep my request scope An idea ? Thanks Franck -- Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Automatic redirect in jsp page?
Hi, Something like But you should do also this check in actions -- Franck Lefebure > -Message d'origine- > De : Bjørn T Johansen [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 26 juin 2003 15:59 > À : Struts Users Mailing List > Objet : Automatic redirect in jsp page? > > > Is it possible to check for an session object in a jsp page > and if it doesn't exist, automatic redirect to an action? > > > Regards, > > BTJ > > -- > -- > - > Bjørn T Johansen (BSc,MNIF) > Executive Manager > [EMAIL PROTECTED] Havleik Consulting > Phone : +47 67 54 15 17 Conradisvei 4 > Fax : +47 67 54 13 91 N-1338 Sandvika > Cellular : +47 926 93 298 http://www.havleik.no > -- > - > "The stickers on the side of the box said "Supported > Platforms: Windows 98, Windows NT 4.0, Windows 2000 or > better", so clearly Linux was a supported platform." > -- > - > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
\n 2
Hi, Is there a way to perform nl2br conversion with struts taglibs ? Thanks -- Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
List sorting with struts tags
Hi, I've a sorted ArrayList of beans eg : Foo {key, country, town} 1 - USA - NewYork 2 - USA - Washington 3 - France - Paris 4 - England - London 5 - England - Manchester Is there a smart way with html/beans tags to output something like that : USA - NewYork - Washington France - Paris England - London - Manchester Any Idea ? -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestProcessor in Struts1.1RC1
Hi, I've written this Requestprocessor subclass : --- public class LogRequestProcessor extends RequestProcessor{ /** Creates a new instance of LogRequestProcessor */ public LogRequestProcessor() { System.out.println("Instantiation du processor"); } public boolean processPreprocess(HttpServletRequest request, HttpServletResponse response) { System.out.println("Dans processPreprocess"); try { Session sqlSession = SqlSession.connect(); WapLog wapLog = new WapLog(); wapLog.setRemoteAddr(request.getRemoteAddr()); wapLog.setRemoteHost(request.getRemoteHost()); wapLog.setQueryString(request.getQueryString()); wapLog.setRequestUrl(request.getRequestURI()); wapLog.setUserName(request.getHeader("X-Nokia-MSISDN")); wapLog.setSessionId(request.getSession().getId()); sqlSession.save(wapLog); sqlSession.flush(); sqlSession.close(); } catch (Exception e) { e.printStackTrace(System.out); } return true; } } - Seems ok ? In struts-config.xml I've put after : Always ok ? But nothing happens ? Where am'I wrong ? Thanks a lot -- Franck Lefebure - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Many Actions In a View
Hi, I'm just starting to use Struts , seems a great tool. I have a view with several forms. In this view, There are many beans that I need for example to construct tables. I don't want to repeat the code written to populate these beans. So I've defined an Action (doPopulateView) which put these Beans in the request scope. When I define an other Action, in relation with one of the form in the view, I chain the related action with the doPopulateView action This seems to work well. The problem is I don't know how to chain the "addServerForm" action to the doPopulateView action when there are input-errors Returned by the "validate" action of the AddServerForm class I'm not sure I'm in the good way. Should DispatchActions be a better way to manage many actions from one view ? Thanks for any advice And sorry for my english Franck -- Franck Lefebure 0590 32 38 72 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]