file download issue

2009-10-19 Thread Tarun Chowdhry
Hi, Getting the following exception when trying to call the FileUpload code: Action class: import java.io.*; import com.opensymphony.xwork2.ActionSupport; import com.opensymphony.xwork2.Action; import org.apache.struts2.ServletActionContext; public class extends ActionSupport{

Re: file download issue

2009-10-19 Thread Paweł Wielgus
Hi Tarun, double check that this InputStream is valid, i have such exception when i'm downloading not existing files. Best greetings, Paweł Wielgus. 2009/10/19 Tarun Chowdhry tchowd...@ipolicynetworks.com: Hi, Getting the following exception when trying to call the FileUpload code: Action

RE: Struts 2.1.8 and Tiles

2009-10-19 Thread Sommers, Elizabeth
I found the solution to the problem. I am still having problems with tiles though, struts2.1.x/tiles seems to be very poorly documented on line. Thanks Liz -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: Friday, October 16, 2009 3:07 PM To: Struts

RE: file download issue

2009-10-19 Thread Tarun Chowdhry
Hi Paweł, You are absolutely right. I was getting the return stream as null. This was so because my file name that I was passing to the getResourceAsStream(..) was not starting with a forward slash. The path must begin with a / and is interpreted as relative to the current context root. This

Re: Struts 2.1.8 and Tiles

2009-10-19 Thread Antonio Petrelli
2009/10/19 Sommers, Elizabeth somme...@pragmatics.com: I found the solution to the problem. What was the solution?  I am still having problems with tiles though If you have problems with Tiles you might want to ask the Tiles Users mailing list: http://tiles.apache.org/mail.html Ciao Antonio

Wrap struts2 tag in a custom tag

2009-10-19 Thread mlivro79
Hi all, I'm trying to wrap struts2 tags in my custom tags. First, I extend BodyTagSupport. If I return EVAL_BODY_INCLUDE in doStartTag method and I put a struts tag in the body of my custom tag all is ok. The struts tag is evaluated correctly. If I return EVAL_BODY_TAG in doStartTag method

Re: No getter method for property: productName of bean: product

2009-10-19 Thread mlivro79
Hi, i think that if you call property productname the getter should be getProductname() and not getProductName(). Is it correct? Bye, Marco Hanen Ben Rhouma wrote: Hello, Please I have a problem to which I'm stuck since this morning: I am trying to render the product list in a jsp

Warning: The default value expression 'Blabla' was evaluated and did not match a property

2009-10-19 Thread Juergen.Leeb
Hallo, I use the s:property tag. Every call leads to a The default value expression 'Blabla' was evaluated and did not match a property warning. I find out this has something to do with internationalization. Which I don' t use! But how can I prevent struts to throw such warning? Thanks!

Re: No getter method for property: productName of bean: product

2009-10-19 Thread Alessio Mereu
Product.getProducts(Env ) returns an ArrayListString not an ArrayListProduct as U're supposing according your jsp. So that the iteration is made over a list of Strings and Strings has no property nor getters for ProductName Is it correct? Alessio 2009/10/19 mlivro79 ma...@livrieri.it Hi,

Visitor validator problem

2009-10-19 Thread Jose Fco . Irles Durá
Hi, i'm developing a cms application with struts2 (2.1.8), spring as object factory and jpa for persistence. I have this struts.xml http://pastebin.com/f33635250 this BaseCrudAction http://pastebin.com/f7abb39b6 and its BaseCrudAction-validation.xml http://pastebin.com/f3eade052 this example

Re: Using date to format a date

2009-10-19 Thread Greg Lindholm
What I do is add a method for formatting dates (formatDateTime()) to the action base class. The method can then use the users Locale and TimeZone to construct a DateFormat object. public String formatDateTime(Date timestamp) { return getDateFormat().format(timestamp); } In

FW: More fields to take off for EWS Account

2009-10-19 Thread Baka,David
Ok I will see if I get any replies From: Baka,David Sent: Monday, October 19, 2009 10:36 AM To: RMS Development Subject: More fields to take off for EWS Account Shuja just told me this morning that there were still too many fields because the IC under account are also added into the

Re: No getter method for property: productName of bean: product

2009-10-19 Thread Hanen Ben Rhouma
Hello, @Alessio: I don't think so. Actually, I'm using ArrayList in my form so it's assumed that it would contain any Object (no restriction there) so when I fill it with Product It can cast it (well, that's what I think at least). @Marco: I'll try that maybe it's one reason Thanks a lot for

Re: Wrap struts2 tag in a custom tag

2009-10-19 Thread mlivro79
In other words... Is there a method of BodyContent class that can overwrite the body of the tag in jsp so I can evaluate all things like they are in jsp? mlivro79 wrote: Hi all, I'm trying to wrap struts2 tags in my custom tags. First, I extend BodyTagSupport. If I return

Re: No getter method for property: productName of bean: product

2009-10-19 Thread Alessio Mereu
According the code You've posted in your first email (and trimming off not relevant parts): public final class Product extends SourceControlObject { public static synchronized ArrayList getProducts(Env env) throws Exception { *ArrayListString* nodes = new ArrayListString();

Re: Warning: The default value expression 'Blabla' was evaluated and did not match a property

2009-10-19 Thread Musachy Barroso
you would have to increase the log level for that class. this has been turned off by default in 2.1.8+ musachy On Mon, Oct 19, 2009 at 6:18 AM, juergen.l...@bmw.de wrote: Hallo, I use the s:property tag. Every call leads to a The default value expression 'Blabla' was evaluated and did not

Re: Rest-plugin with Spring

2009-10-19 Thread Antonius Ng
Hi Sayantan, Sure I can share it. I am not sure I am doing it the right way or not, but here it is. I created a new class that extends StrutsSpringObjectFactory: public class RestSpringObjectFactory extends StrutsSpringObjectFactory { ... Then I override the following method public Object

New to struts2

2009-10-19 Thread emil thushanga
Hi all I have a project to be re-implemented using java which has done by using Perl CGI. I have to reuse inner content pages across all the sites to be dynamically loaded. To be feasible to one shot changes. Perl system using includes from different file paths and generates the view