James Carr wrote:
Hi All,
I want to be able to submit a form that can add array elements to one
of my action properties. I have something like this:
public class SomeAction{
private FooBar foo;
// getters and setters, execute, etc. here
}
with
public class FooBar{
private
egetchell wrote:
Hello,
Does anyone have an idea how to invoke validation annotations on nested
objects?
We’re using hierarchal objects in Struts 2.1 and the validation annotations
do not seem to be firing on the child objects.
For example I have a Customer object which has an Address object
Well, it sounds like something that shouldn't be possible to me... It
kind of violates the whole concept of a redirect. If you really want
the data to be a part of the URL, you could do some encoding to make
them less readable and shorter.
Nils-H
On Thu, Apr 24, 2008 at 10:12 PM, Allen, Daniel
Hi,
I want to redirect a user to his previous visited URL, after a successful
login.
For example, a user clicked on:
/mySite/products/purchase.action?id=45try=234
and this takes him to the login page. I do that by using a login interceptor
on purchase.action. I store this URL in the session in
Redirect (by design) uses an HTTP GET request method. This means the only way
to pass values is in the URL. If your data is small enough, you could
encode/encrypt it into the URL and decode it back after the redirect - an
approach that isn't clean and I wouldn't recommend. (Also, the URL is
--- ancatdubher [EMAIL PROTECTED] wrote:
(Also, the URL is limited to 256 characters length).
I've never noticed that limitation; I haven't seen a mainstream browser that
wouldn't accept or send anything much less than about 2K, and some will do
twice that.
Dave
After successful login credentials are passed into your login action you
could get the URL out of the session and redirect them back to that page.
This might work for you on the redirect.
http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html
Regards,
Randy Burgess
Sr. Web
The use case you're describing would be best implemented using flash scope.
Your options include:
. use the Scope plugin (http://cwiki.apache.org/S2PLUGINS/scope-plugin.html)
. implement the scope yourself using a result / interceptor pair as
discussed in this forum
Thanks for the info, guys!
I will probably end up going with the session after all, but I'll take a
look at Flash scope in that interceptor, too.
~DVA
-Original Message-
From: Guillaume Bilodeau [mailto:[EMAIL PROTECTED]
Sent: Friday, April 25, 2008 10:09 AM
To: user@struts.apache.org
Could this be related to the meta refresh tag on the wait page? I saw 2
examples on how to structure this tag:
from: http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html
meta http-equiv=refresh content=5;url=s:url includeParams=all //
And from the manning book:
meta
If you do insist on sending those parameters via POST, you could use a
ServletDispatcherResult (the default one) to a JSP with a form populated
with values from the action and have the form submit when the page is
loaded, either through a body
onLoad=javascript:document.formName.submit(); or a JS
Jeromy Evans wrote:
by nature of the way proxies are created, the don't carry
the method annotations of the proxied implementation.
This is true, the methods on the proxy will not be annotated, but Struts 2 does
search super classes for those annotations. Since proxies generated by CGLIB
Hi,
First time poster and relative struts newbie,
I'm trying to create an ftl template that positions two
s:datetimepicker(s) side by side to capture date and time.
I use the s:component tag and define my template shown below. It is
working relatively well however I'm unable to retrieve any
I have been doing some profiling on my Struts 2 applications (also using
SiteMesh and Spring) and have found, like many others, that most of the
request/response time is taken rendering of the JSP page (assuming I am reading
the profile correctly).
What exactly is the guilty party here, OGNL
I am using struts2.0.11.1.
I am thoroughly confused about the configuration and where goes what. like
.java, .jsp,
struts.xml, and web.xml. And what to write in struts.xml and web.xml. What
do the top two lines in these two .xml mean.
Thanks.
On 4/24/08, aum strut [EMAIL PROTECTED] wrote:
For what its worth, I was confused as to where to start also. I got
Jakarta Struts for Dummies and read that. I had to use Struts 1.1,
because the book is written for 1.1 ... From what I've read there is a
lot of changes from 1.x to 2.x, but this will give you a good starting
point. I thought the
Vinay Nagrik wrote:
I am using struts2.0.11.1.
I am thoroughly confused about the configuration and where goes what.
you could also download the example applications and see how things are
laid out:
http://struts.apache.org/download.cgi#struts20111
This won't necessarily work out of the box
I started my download from the link you provided. And that link does not
give any info. Your email did not help me.
On 4/25/08, Brad A Cupit [EMAIL PROTECTED] wrote:
Vinay Nagrik wrote:
I am using struts2.0.11.1.
I am thoroughly confused about the configuration and where goes what.
--- Vinay Nagrik [EMAIL PROTECTED] wrote:
I started my download from the link you provided. And that link does not
give any info. Your email did not help me.
You are asking very vague questions.
How familiar are you with Java web development? Are you planning on using Ant
or Maven?
If you
Vinay Nagrik wrote:
I started my download from the link you provided. And that
link does not give any info.
this is the direct link to the Blank war file:
http://www.devlib.org/apache/struts/examples/struts2-blank-2.0.11.war
you can put that in your web server (like Tomcat) and run it. war
One thing that I see happening is, when I submit the form, the prepare method
of my action is called and my parameter (userId) is not null. Then the wait
page appears, and then the prepare method of my action is called a 2nd time
and now the userId parameter is null.
Why is the prepare method
Hello Dave,
On 4/25/08, Dave Newton [EMAIL PROTECTED] wrote:
--- Vinay Nagrik [EMAIL PROTECTED] wrote:
I started my download from the link you provided. And that link does
not
give any info. Your email did not help me.
You are asking very vague questions.
How familiar are you with
Actually, I found Maven very helpful when I was starting Struts2.
http://struts.apache.org/2.x/docs/struts-maven-archetypes.html has some
information on the archetype plugin, which Maven can use to generate the
empty shell of an application. That's great for beginners because all
the
I can not get Maven to install. It is looking for pom.xml and I don't have
it
in my download of Maven. I supplied it Super POM from internet and even
then it did not compile.
I tried
mvn clean install
mvn install
Both failed.
Thanks.
nagrik
On 4/25/08, Allen, Daniel [EMAIL PROTECTED]
Well, if you're going to use Maven, you need a pom.xml file in your
project. The pom file is project specific, so if you don't have it,
you need to create it. If you use the maven archetype, as described in
the tutorial at http://struts.apache.org/2.x/docs/ready-set-go.html it
will be created for
Did you read the page I linked? The archetype creator writes you a basic
POM, in addition to many other things.
If you don't read the answers people give you, this list won't be of any
help to you.
-Original Message-
From: Vinay Nagrik [mailto:[EMAIL PROTECTED]
Sent: Friday, April 25,
Hi,
I am trying to add several dynamic parameters to a URL.
So I thought the code below would work.
s:url id=3Durl action=3DsaveAction includeParams=3Dnone
s:iterator value=3Dparameters
s:param name=3D%{key} value=3Dvalue/
/s:iterator
/s:url
However
I just upgraded from Struts 1.2.8 to 1.3.8 and my custom Validators
aren't working. The standard included validators all work fine. I have
commons-validator-1.3.1.jar in my .war file web-inf/lib. I deleted the
stand alone validator-rules.xml file from same.
Any assistance would be
Hello
Is it possible to parameterize the title/ from an inner tile?
I have a template that specifies the pagewrapper,banner, menubar, left column.
I want to change the right column content with a jsp fragment and on that
fragment create a bean name=titleThis that has the specific title of page
Building first struts? You may use Netbeans 6.0 already has struts bundled
and everything you need to get started.
This is only a suggestion..you may or may not do this.
God bless,
Ryan Webb
On Sat, Apr 26, 2008 at 2:30 AM, Allen, Daniel [EMAIL PROTECTED]
wrote:
Did you read the page I linked?
30 matches
Mail list logo