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
Hi,
I'm trying to make one of my pages downloadable as a CSV file.
Currently my XML is configured like this:
action name=downloadCSV class=test.struts.ListItems method=downloadCSV
interceptor-ref name=standardStack/
result name=success/pages/download.jsp/result
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
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
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 name
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
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
OrdersInputRequest
Order
OrderId222/OderId
OrderDate04/04/2004/OrderDate
/Order
Order
OrderId223/OderId
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
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
--- 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 created for
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
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
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
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
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
JSTL has the fmt:formatDate 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,
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
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,
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 into
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
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 everybody,
doese anybody see why the following (quite simple)
interceptor isnt called:
BTW: list.jsp seems to be called correctly.
struts.xml
package name=registration extends=struts-default
interceptors
interceptor name=simpleInterceptor
--- 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
package name=registration extends=struts-default
interceptors
interceptor
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
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
This doc seems to suggest that even request scoped data needs to explicitly
set using
s:set 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
You are correct. In that case,
s:set name=someName value=someName scope=request/
is equivalent to calling
request.put(someName,action.getSomeName());
in an Action that implements RequestAware. So when Display Tag processes
display:table name=someName ...
The someName attribute is available
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 hand
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
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
--- 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
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
32 matches
Mail list logo