Force clean / reload a webapp

2007-04-16 Thread piloupy GOTTAPIL
Hi, I'm developing a site using struts (bean, tiles, logic taglibs) and after cleaning my webapp by deleting the directories /work and /WEB-INF/classes, when I access to my site, there's only the header which is displayed. The only way to repair this problem is to remove all my librairies from e

Re: Force clean / reload a webapp

2007-04-16 Thread piloupy GOTTAPIL
> make sure you have auto build enabled in eclipse and also if you delete > the files inside /WEB-INF/classes folder in production sever you will > loose all your .class files. which means your webapp will not work as you > have no complie code. > > Thanks, > > Nuwan. >

Re: [OT] Re: Force clean / reload a webapp

2007-04-16 Thread piloupy GOTTAPIL
If you set the build output directory to WEB-INF/classes you shouldn't need to build a WAR file during development. That's how I configured eclipse in the Build Path. WEB-INF/src --(compile_to)--> WEB-INF/classes. But eclipse doesn't seem to rebuild the classes. I think it's because the element

Re: [OT] Re: Force clean / reload a webapp

2007-04-17 Thread piloupy GOTTAPIL
website, and this file is in my struts-tiles library. I indeed use WTP and Subclipse. piloupy On 4/16/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- piloupy GOTTAPIL wrote: > That's how I configured eclipse in the Build Path. > WEB-INF/src --(compile_to)--> WEB-INF/classes.

Re: [OT] Re: Force clean / reload a webapp

2007-04-17 Thread piloupy GOTTAPIL
hi, Are you sure you have the validator-rules.xml in your WEB-INF directory? Thanks, Nuwan. ----- Original Message - From: "piloupy GOTTAPIL" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, April 17, 2007 8:20 AM Subject: Re: [OT] Re: Force clean / relo

Re: How to get original query string after more than two forwards

2007-04-19 Thread piloupy GOTTAPIL
One trick that can help you, is to create a variable (a bean) in an action Struts, so that it can be used in the jsp file. In step 4/5 (in the action struts), you can set : request.setAttribute("myQuery", request.getQueryString()); And in your jsp file, you can use it, for example, like this :

Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread piloupy GOTTAPIL
Hi, I'd like to do something like this in a JSP file : Email Link where contact.mail is a key from my MessageResources.properties. I think the solution is quite simple, but I can't find how to do. Thanks in advance, piloupy ---

Re: Use EL to access to a key from the MessageResources.properties

2007-04-23 Thread piloupy GOTTAPIL
I precisely want to use the to benefit from the relative context path. Thanks, piloupy On 4/23/07, Lance <[EMAIL PROTECTED]> wrote: ">Email Link - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Use EL to access to a key from the MessageResources.properties

2007-04-24 Thread piloupy GOTTAPIL
Thank you all. The solution of Niall works. I was trying to get the fmt taglib work for nearly 2 days... without success. But I really prefer the solution of Niall, since it doesn't oblige me to declare another taglib. I really thank you guys for your help. piloupy On 4/24/07, Niall Pemberton

how to test the 1st and last iteration ?

2007-04-27 Thread piloupy GOTTAPIL
Hi, What I want to do is quite simple. I'd like to know how to test in a when I'm at the first or last iteration. My present problem is to parse a collection of String and display the results like this : ### CODE : begin ### value1, value2, value3 ### CODE : end ### And as you can see, for th

Re: how to test the 1st and last iteration ?

2007-04-27 Thread piloupy GOTTAPIL
a JSP scope variable that will contain the index in the loop. Then you can test the value of this variable with the logic:equal. Olivier 2007/4/27, piloupy GOTTAPIL <[EMAIL PROTECTED]>: > > Hi, > > What I want to do is quite simple. I'd like to know how to test in a > wh

Re: how to test the 1st and last iteration ?

2007-04-27 Thread piloupy GOTTAPIL
To Olivier : Here's what I've done : ### CODE : begin ### , , ### CODE : end ### But it doesn't work. I don't know how to use correctly the tag :-( I thought I may try the , but the tag doesn't exist... If it is possible, I'd like to only use Struts tags, but if there's

Re: Fw: how to test the 1st and last iteration ?

2007-05-02 Thread piloupy GOTTAPIL
Sorry guys, I don't know why the mailer tells me that my mail is spam... I've answered 3 times to give the solution using the JSTL Core, but the mailer blocked them. I think it's because of the code that I put. --- This is an automatically generated Delivery Status Notification Delivery to the

UTF-8 charset issue

2007-05-03 Thread piloupy GOTTAPIL
Hello, I have a website using : - Struts 1.3 - Hibernate 3.2 - Tomcat 5.5 - Java 1.5.0 - MySQL 4.1.22 All my site and my database are encoded in UTF-8. When I enter in a form the character e-accute, it becomes an 'A' with a tild, following by a (c) (copyright character). I've made several test

Re: UTF-8 charset issue

2007-05-03 Thread piloupy GOTTAPIL
Hi, I've accidentally found a solution. I must put the directive on the top of my pages : <%@ page contentType="text/html; charset=ISO-8859-15" %> because I've put previously : <%@ page contentType="text/html; charset=UTF-8" %> The result of my little trace gives me : Default Charset : windo

Re: UTF-8 charset issue

2007-05-04 Thread piloupy GOTTAPIL
What I've done is stupid. I don't use the possibilities of the UTF-8 encoding by setting the charSet to "ISO-8859-15". It's been nearly 2 days that I'm on a detail according to my manager. I'm obliged to put the UTF-8 aside... To answer you : - The JSP directive <%@ page contentType="text/html;