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{
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
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
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
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
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
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
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!
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,
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
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
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
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
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
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();
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
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
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
18 matches
Mail list logo