Re: check if file exists...

2007-09-22 Thread Leonidas Papadakis
That's excellent ! Thank you very much Leonidas Engelking, Nicholas wrote: You could create a java File object for and then use an if tag to decide what to display. In you action class ... public File getFile(){ // returns the file list } In your template ... s:url var=imgUrl

Re: Spring tutorial

2007-09-22 Thread Oleg Mikheev
Martin Gainty wrote: Im sorry.. what is the question? I think he is asking whether he needs to use Spring fw to connect to DB several times. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Bug in scenario

2007-09-22 Thread stanlick
If your action class implements ModelDriven and Preparable and your prepare method returns a null object, ParameterInterceptor tries to set the parms which are names appropriate to properties in model object that is expected to be on the top of stack. However, since model was null, it was NOT SET

[s2] How do I output unicode characters please help

2007-09-22 Thread David Harland
Hi, If I put the following \u00fc in a properties file and use it in a jsp i get the german character ΓΌ output. If I have an action with the variable test and I set it with \u00fc and I output it in a jsp I get the encoding #xFC;. How do I get the character instead of this encoding please?

Re: [s2] How do I output unicode characters please help

2007-09-22 Thread Leonidas Papadakis
Hi there, in my Greek scenario i have set the below in struts.properties file : struts.i18n.encoding=UTF-8 struts.locale = el_GR in my freemarker.properties : default_encoding=UTF-8 locale=el_GR in my jsp file : %@ page contentType=text/html; charset=utf-8 % Also check the doctype of your

Do Tiles have access to bean defined in JSP page

2007-09-22 Thread Arunkumar Balasubramanian
Is it possible to use a bean:define id which is in JSP page in a Tile (which uses that id). I was getting a error like part of page after tiles insert is not being displayed. I was wondering whther Tile has an access to bean which is defined in JSP page. Since the bean is taking property

Re: [s2] How do I output unicode characters please help

2007-09-22 Thread David Harland
Hi, Thanks I have added those properties but it is still outputting #xFC;. Can someone please tell me what I might be doing wrong. Dave. - Original Message From: Leonidas Papadakis [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, September 22,

question on autocompleter UI tag ...

2007-09-22 Thread Giovanni Azua
Hi all, I would like to use autocompleter but have it not to send the display string as request parameter but an underlying key e.g. suppose you have a list of type Customer (id, name) have autocompleter display name but send the id as parameter of the submit request. Is it possible to do this

Re: question on autocompleter UI tag ...

2007-09-22 Thread Martin Gainty
Good Evening Giovanni did you try this combo ? http://www.sauter-online.de/dojo/demos/widget/comboBox.html Martin-- - Original Message - From: Giovanni Azua [EMAIL PROTECTED] To: user@struts.apache.org Sent: Saturday, September 22, 2007 4:40 PM Subject: question on autocompleter UI tag

[S2] Hooking up custom interceptors

2007-09-22 Thread Eric D Nielsen
I've written a pair of interceptors to implement my application's authentication and authorization requirements. I'm now trying to add them into my application's default stack, but it doesn't seem to be working. Looking around with config-browser I can see that the interceptors are not being

Re: question on autocompleter UI tag ...

2007-09-22 Thread Musachy Barroso
Both will get submitted when the form is posted. musachy On 9/22/07, Giovanni Azua [EMAIL PROTECTED] wrote: Hi all, I would like to use autocompleter but have it not to send the display string as request parameter but an underlying key e.g. suppose you have a list of type Customer (id,

Re: [S2] Hooking up custom interceptors

2007-09-22 Thread Adam Ruggles
It looks like your action isn't defined to be in the cib-default package. Try configuring the action in the xml file instead of using the annotations. Eric D Nielsen wrote: I've written a pair of interceptors to implement my application's authentication and authorization requirements. I'm

Re: [S2] Hooking up custom interceptors

2007-09-22 Thread Dave Newton
I haven't tried this, but does the ParentPackage annotation work? The JavaDocs (for now :) just say: Allows an action class to specify an xwork package to inherit d. --- Eric D Nielsen [EMAIL PROTECTED] wrote: I've written a pair of interceptors to implement my application's