Hi All,
I am using file upload interceptor to upload a file. I am returning XML
response (using result type as "stream") to the caller in case of
success or failure. Its all fine, if everything works as expected.
When I try to upload a file which is bigger then the max allowed size,
the file uplo
We had the same issue and went with writing a new converter (shown below).
And then created a xwork-conversion.properties file pointing to it.
Z.
private final static SimpleDateFormat DATE_FORMAT = new
SimpleDateFormat("dd/MM/"); @Overridepublic Object
convertFromString(Map contex
Ian Meikle wrote:
HI,
I have been following this post with interest since I used the PRG pattern
in previous projects.
We are using struts 2 in are current project and I like the errorMessages
behaviour that is part of the Action.
Is it possible to persist these over the PRG cycle ?
By defau
--- Raghuveer Kumarakrishnan <[EMAIL PROTECTED]> wrote:
> My point is just having getters for an Action property should suffice for
> it to be accessed in the view by any tag library.
I don't know as this is correct for *any* tag library.
It works for S2 tags that use OGNL, because S2 tags evalue
My point is just having getters for an Action property should suffice for it to
be accessed in the view by any tag library.
Chris Pratt <[EMAIL PROTECTED]> wrote:
You are correct. In that case,
is equivalent to calling
request.put("someName",action.getSomeName());
in an Action that imple
I agree with Nils; I'd be double-checking the deployment etc.
There's nothing obviously wrong (except that you say it doesn't work ;)
What happens if you throw an exception in the interceptor? In a *different*
action? That could help diagnose a deployment issue, anyway.
Dave
--- Peter Theissen
This is caused by missing dependencies.
Copy
commons-fileupload-1.1.1.jar
commons-io-1.1.jar
from the showcase war.
Recommended changes to the distribution
These two files should be included in the /lib directory update wiki
pages to explicitly mention dependencies.
Regards,
Peter McKeown
ww
Can you patch a whole class?
What would be useful is parameterizable type converters, to specify the date
format in this case. (they're not parameterizable, are they?)
Dave Newton on 08/04/08 22:13, wrote:
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
One area where S1 actually had the upper han
You are correct. In that case,
is equivalent to calling
request.put("someName",action.getSomeName());
in an Action that implements RequestAware. So when Display Tag processes
The "someName" attribute is available when the JSP Tag Library
(DisplayTag in this instance) calls
pageContext.fin
This doc seems to suggest that even request scoped data needs to explicitly
set using
to be used by tag libraries like jsp taglib or displaytag
http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html
But for request scoped
Which server are you running the application in? Are you sure you have
checked all the log files for the server? And are you sure you're
editing the struts.xml that is actually picked up at run time? I've
had some problems earlier with Eclipse not synchronizing resources
properly to the correct out
Hi,
Are you sure it isn't?
yes ;-)
What happens if you return something other than SUCCESS from your action?
Unfortunately, exactly the same happens.
That will test whether or not it's getting the result from the intercept call
or the action itself.
Now I returned Action.NONE and the
--- Peter Theissen <[EMAIL PROTECTED]> wrote:
> doese anybody see why the following (quite simple)
> interceptor isnt called:
> BTW: list.jsp seems to be called correctly.
>
> struts.xml
> >>>
>
>
>
> class="quickstart.interceptor.simpleInterceptor"/>
>
Hi everybody,
doese anybody see why the following (quite simple)
interceptor isnt called:
BTW: list.jsp seems to be called correctly.
struts.xml
>>>
class="quickstart.interceptor.simpleInterceptor"/>
class="registrationWaitingAction" method="ex
--- Adam Hardy <[EMAIL PROTECTED]> wrote:
> One area where S1 actually had the upper hand :(
Submit a patch :)
Dave
> Dave Newton on 08/04/08 18:36, wrote:
> > The built-in type converter uses "uses the SHORT format for the Locale
> > associated with the current request" according to the type co
OK thanks guys.
One area where S1 actually had the upper hand :(
Dave Newton on 08/04/08 18:36, wrote:
The built-in type converter uses "uses the SHORT format for the Locale
associated with the current request" according to the type conversion docs,
so yes, you'll need to do your own if you're
HI,
I have been following this post with interest since I used the PRG pattern
in previous projects.
We are using struts 2 in are current project and I like the errorMessages
behaviour that is part of the Action.
Is it possible to persist these over the PRG cycle ?
By default I assume they woul
2008/4/8, Berger, Michael <[EMAIL PROTECTED]>:
> Hi Antonio,
> Thanks for the response. I'm less confused now... I have been
> google'ing how to use Struts, etc. Most of the answers I have found have
> mentioned doing the following
> Coping
> Struts.jar, commons-beanutils.jar, commons-xxx.jar
Hi Antonio,
Thanks for the response. I'm less confused now... I have been
google'ing how to use Struts, etc. Most of the answers I have found have
mentioned doing the following
Coping
Struts.jar, commons-beanutils.jar, commons-xxx.jar into the WEB-INF/lib
folder
Struts-html.tld, struts-bean.tld,
The built-in type converter uses "uses the SHORT format for the Locale
associated with the current request" according to the type conversion docs,
so yes, you'll need to do your own if you're using a different input format.
Looking through the XWork conversion code it's hard for me to tell what it
JSTL has the tag. If you want to do it in Java, rather than
your JSP, you can use SimpleDateFormat.
Be aware that SimpleDataFormat is not thread safe, so don't assign it to a
static field or use it in a singleton. If you use it as an instance field on an
Action you'll be safe, since Actions ar
Hi
quick question, I can't find any specific mention of what I want so I assume I
have to code my own Converter.
I need a date in the ISO format -MM-DD
There is no converter that I can configure in the struts package, is there?
Thanks
Adam
---
whoops! I should have been more clear about it using the
HttpServletResponse
Brad Cupit
Louisiana State University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: David Loup [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 10:57 AM
To: Struts Users
Thanks for that.
I actually just needed to implement the ServletResponseAware interface to
access the servlet response properly.
Trying to set those in the JSP (through a scriplet) didn't work, but indeed
doing it in the action is fine.
-Original Message-
From: Brad A Cupit [mailto:[EM
Oh thank you so much for the response. I've been reading about the
POST-redirect-GET pattern and I'm starting to see the light. I found the
original article here, in case anyone else is interested:
http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost
Brad Cupit
Louisiana State
Hello,
I am trying to use the Preparable but having some problems while the page is
being rendered. I will try my best to explain the problem, please ask if you
need more information as i might not be able to accurately explain the
problem as i am pretty new to struts2.
Scenario:
User should be
--- me <[EMAIL PROTECTED]> wrote:
> Yes of course that's what I thougt. But when I change the scope of the
> spring bean to default I could provide the id using a get request but
> nothing happens.
>
> Now I keep it on prototype which is okay for this page.
S2 assumes a new action will be creat
Hello I have a very strange problem.
I have an application that we developed in JAVA and the application works ok in
Windows.
We recentl deployed the same application in Linux REDHAT and the application
seemed to worked fine, until the user reported to us a problem.
After doing research it hap
It's a question regarding commons validator api, wherein i am trying to
validate an input request form (xml-request) which contains a collection
of
items...like
222
04/04/2004
223
04/04/2004
What would be the valid format for the commons-validator form to
valid
2008/4/8, Berger, Michael <[EMAIL PROTECTED]>:
>
> All the .jar files I expected are there,
> but I can't find any of the .tld files.
> What am I mis-understanding / doing wrong ?
The TLD files are under:
META-INF/tld
directory of struts2-core.jar
Antonio
To set the download file name, in addition to the "text/csv" mime type
(which you already have set), write the following java code in your
Action or (if necessary) as Java in your JSP:
response.setHeader("Content-disposition", "attachment; filename=" +
CSV_FILE_NAME);
where CSV_FILE_NAME is the n
me wrote:
Hi,
I'm working on configuration issues and I'm searching for the best way to
have a consitent configuration over the whole webapp (or more webapps).
The webapp has got a sitemesh-freemarker-template and the views are
done with jsps.
What I wanted to do is to have configuratio values
I've been studying struts and trying to get up to speed on it. My
question is downloading the struts package itself.
I downloaded both the struts-1.3.8-all.zip and the
struts-2.0.11.1-all.zip from the struts.apache.org website.
When I extract these .zip files, I expected to see the relevant .tld
fi
Yes of course that's what I thougt. But when I change the scope of the
spring bean to default
I could provide the id using a get request but nothing happens.
Now I keep it on prototype which is okay for this page.
Marc
Eric Nelson schrieb:
You CAN set the property to a different value every t
Hi,
I'm trying to make one of my pages downloadable as a CSV file.
Currently my XML is configured like this:
/pages/download.jsp
And /pages/download.jsp renders the list as a CSV.
I have changed the content type in the CSV:
<%@ page contentType="text/csv" %>
Hi,
I'm working on configuration issues and I'm searching for the best way to
have a consitent configuration over the whole webapp (or more webapps).
The webapp has got a sitemesh-freemarker-template and the views are done
with jsps.
What I wanted to do is to have configuratio values (such as h
36 matches
Mail list logo