I think the @OP's difficulty is with the name vs method attributes of the
action element so (if I may
be excused for borrow Musachy's example) if you have
/survey/survey-results.jsp
/survey/survey.jsp
then the action alias is save (and not per
They are quite distinct -- ThreadLocal variables are not shared at all while
synchronized permits sharing (but not concurrently).
Suppose you have a background thread that does some calculation that you might
need [in my case you have an abstract
graph and a background thread is checking if the
Your trouble is here:
pstmtname = conn.prepareStatement(sql);
sql = "UPDATE tbl_content_admin_accounts SET CA_PASSWORD = ? WHERE ROW_ID =
" + UserID;
When you call prepareStatement(sql) the sql string is sent to the database
which "prepares" it (essentially does all the steps neccessary b
The tag previously referred to is where you can launch a java app
from
a jsp (or even an ordinary html page). Check out Java Web Start.
Your java app can be an ordinary swing app and the server sends
a .jnlp file with instructions to the browser to download the necessary classes.
Your client n
Also, the file should be LoginAction-validation.xml . Use the config-browser
to see that you have the validators in place.
Chris
-Original Message-
From: Gabriel Belingueres
To: Struts Users Mailing List
Sent: Wed, Jan 20, 2010 10:12 am
Subject: Re: validation in struts2
t
Since interceptors are not thread safe I would look at manipulating fields
from a given thread with a jaundiced eye.
Chris M.
-Original Message-
From: Nils-Helge Garli Hegvik
To: Struts Users Mailing List
Sent: Fri, 3 Apr 2009 1:46 am
Subject: Re: how to re-init / update param
An interceptor has access to application via ActionContext so it is easy to
rig up. From anywhere in your application you can manipulate an entry in
application and have the interceptor check if it matches the value it currently
has. I still think it is an unorthodox approach though. It al
Why not write the code in its own action or pojo and use or
wherever you want it?
Chris M
**The Average US Credit Score is 692. See Yours in Just 2 Easy
Steps!
(http://pr.atwola.com/promoclk/100126575x1221621489x1201450100/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefaul
Yes, in between the or tags the object is sitting on
top of the value stack so you can access it with OGNL like you would a
'normal' action. Handy for things like populating combo boxes which crop up all
over the place.
Chris M
**The Average US Credit Score is 692. See Yours in
You might want to be cautious about that -- essentially you are allowing the
client by typing
a URL in their browser to delete material in your database in an adhoc fashion.
Chris M
-Original Message-
From: Bhaarat Sharma
To: Struts Users Mailing List
Sent: Tue, 14 Apr 2009 11:03
Sorry i was not very clear: when you configure your application to allow the
bang (!) notation, the client gets to choose *any* of the
public methods on your action and use them as action methods as opposed to you
listing what your action methods are explicitly.
So?the developer has to be cautiou
When/if you use the JasperReports plugin use an older version of poi (3.0 is
the latest I had success with). The new poi throws an exception which many have
complained about but has not been fixed/
Chris
-Original Message-
From: renisha
To: user@struts.apache.org
Sent: Sun, 26 Apr 200
Here is the link to the discussion on Jasperforge
http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=47545
I wasn't aware of a poi-plugin for Struts2 -- can't see it in the registry. I
used the JasperReports plugin and the poi jar. You must have a different
approa
There is bound to be some logic that determines what method the button
would invoke. Why not put that logic in the action method and have it call
appropriate helper methods? In other words move the fork from the view to
inside
the action method.
Chris
**Remember Mom this Mother's Da
I bet it has something to do with a null not being assignable to an int.
Chris
-Original Message-
From: Richard Sayre
To: Struts Users Mailing List
Sent: Mon, 11 May 2009 11:44 am
Subject: Re: Converter trying to set String on int field
After some further investigatio
Jim, since it is the interceptor you are interested in testing why not
test it without the Convention Plug-in (configuring the action by
xml) to see if it is working, which is your aim. That way you don't
have two things you are unsure of happening at once.
Cheers
Chris
-Original Messag
Fernandes I had the same problem -- essentially I could not get it to work
using the Convention plugin. Also, when you configure by xml you can't
have dev mode on.
The most I have gleaned off the internet, and there are people who
should know better than me on this list the problem is to do with
Lukasz, it is JBoss specific -- actually JBoss 5. Apps that
work on JBoss 4 with the Convention Plugin fail with
JBoss 5.
I can post the specific error messages when I get home next
week (I am in Stockholm without my code.
Cheers
Chris
-Original Message-
From: Lukasz Lenart
To: Struts U
Me again: here is a link with a discussion. Don't hold your breath as
it does not give a work around.
http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html
Chris
-Original Message-
From: Fernandes Celinio
To: Struts Users Mailing List
Sent: Wed, 27 May 2009 1:06
There is something new -- something to do with virtual classpaths that
makes JBoss 5 reject apps with dev mode on or with the Convention
plugin active while JBoss 4 accepts them.
Chris
-Original Message-
From: Lukasz Lenart
To: Struts Users Mailing List
Sent: Wed, 27 May 2009 4:51 pm
Su
Are you using xml or annotations?
Does your package extend struts-default? (the 'built-in' types are defined
there)
Chris
-Original Message-
From: Jim Collings
To: Struts Users Mailing List
Sent: Fri, 29 May 2009 2:57 pm
Subject: Re: Cant find @Result type=? list in docs
Are you saying you have a method called input() in the action or is it that
you are
getting a result code "input" which would imply a validation error?
-Original Message-
From: Pro1712
To: user@struts.apache.org
Sent: Tue, Jun 23, 2009 9:34 am
Subject: Update to Struts 2.1.7
I would think this is even more expensive that just doling out static content
from Tomcat as Struts 2
is also creating a whole bunch of objects for the request cycle.
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Tue, Jun 23, 2009 12:11 pm
I am with the devs on this one -- typically the constructor of an object whose
life cycle is managed by
the framework is off limits -- you wouldn't write code to throw exceptions from
a servlet or
EJB etc.
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing Lis
SInce you are comited to a re-write, go for it.
Chris
-Original Message-
From: Mitchell, Steven
To: Struts Users Mailing List
Sent: Thu, Jun 25, 2009 5:17 pm
Subject: RE: Struts1 or Struts2
Chris,
My opinion is that you will take an initial productivity hit while the
team gets
I see your point that there has to be some design to handle? that contingency
(exceptions coming from the constructor) but with so many opportunities for
us to do things via interceptors I would let the framework have a total monopoly
on the constructors.
Essentially we (application developers) s
If you lecture your developers to be aware that any public method becomes fair
game the security concern might be mitigated but you still have a
maintainability issue. With explicit configuration someone inheriting the code
can easily figure out how an action method is used by looking at annot
Are you not mixing Struts 1 and Struts 2 concepts?
Chris
-Original Message-
From: Martin Gainty
To: Struts Users Mailing List
Sent: Tue, Jul 7, 2009 2:26 pm
Subject: RE: Commercial framework based on struts2.
majority of struts tags support ajax out of the box
would
JSP tags wont't funtion inside jars -- the "JSP"s you might have spotted in
jars are probably using Freemarker tags which will work in jars.
Chris
-Original Message-
From: Dale Newfield
To: Struts Users Mailing List
Sent: Fri, Jul 10, 2009 5:06 am
Subject: Re: Struts 2 Plug-in
It is unlikely but if your actions have a finalize() method they won't be
collected by minor GCs
Chris
-Original Message-
From: Anselmo
To: user@struts.apache.org
Sent: Sat, Jul 11, 2009 2:55 am
Subject: Re: Actions are not Garbage Collected
The only references I hav
JWebUnit integrates? nicely with eclipse. I fall in the?'unit tests are for
small? units' group.
If your validation is configured wrong you won't fix it in the action so you
are not really unit
testing the action at that point. I prefer separate JUnit unit tests and
JWebUnit tests to test
the wh
[The standard?diclaimer that it is not a popularity contest and nothing that
does the job for you is wrong.]
Would you not agree that if you are going to mock up the framework the
simulation of S2 of highest fidelity is S2 itself.
IMHO?you are digging a swimming pool by the ocean to test your ya
I vaguely remember it working on some browsers and not on others ... I
think it was IE that did not work. Try another browser.
Chris
**A Good Credit Score is 700 or Above. See yours in just 2 easy
steps!
(http://pr.atwola.com/promoclk/100126575x1222377105x1201454426/aol?redir=http:/
No offence intended, John but I would strongly counsel you to read some Tomcat
documentation before trying to launch your shopping cart.
At the very least the official Tomcat docs for you version of Tomcat
(http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html) or some such url
and a book
Not sure what you mean when you say it is dynamic -- Why not keep track of the
original key-value pairs in the user session?
You only need the key.
Chris
-Original Message-
From: Bhaarat Sharma
To: Struts Users Mailing List
Sent: Mon, Jul 27, 2009 9:52 pm
Subject: getting list
It is not clear how one gets to help -- I have submitted bugs with fixes a few
times and then wondered
what to do next so they sit there and ferment ...
Chris
-Original Message-
From: Musachy Barroso
To: Struts Users Mailing List
Sent: Tue, Jul 28, 2009 12:33 am
Subject: Re: Str
it possible to not click any url but
still set a setter
If you don't need any user interraction why not do it in the action? It is not
clear what
would be the point of a view that without any user input then proceeds to do
further logic...
Chris
-Original Message-
From:
what type is questionId? You might have a problem with the
equals() in it.
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Wed, Aug 5, 2009 1:09 pm
Subject: Re: struts2 ognl confusion
I would try to fiddle around with incorrectQs to
Looks more like the questioner is after StaticParams. I would check
-- that you have the appropriate setter
-- that your interceptor stack includes staticParams
Chris
-Original Message-
From: Martin Gainty
To: Struts Users Mailing List
Sent: Thu, Aug 6, 2009 8:26 am
Subject: RE:
is it (questionId) human generated 9I am thinking leading/trailing white space
etc).
Really clutching at straws but somehow the questionid must occasionally be
different ...
Chris
-Original Message-
From: Bhaarat Sharma
To: Struts Users Mailing List
Sent: Wed, Aug 5, 2009 1:4
SiteMesh is just a decorator and not Struts 2 centric so you won't find what
you want in its native configuration.? As far as it is concerned the view could
have been generated by a CGI script of anything. I think the path of least
effort it to have two essentially blank JSps that include the
You did understand me correctly and I see your dilema -- problem is the tags
like are
not aware of what action the view came from :(
-Original Message-
From: CS Wong
To: Struts Users Mailing List
Sent: Tue, Aug 11, 2009 1:03 pm
Subject: Re: Configuring SiteMesh for specific
I think this is what you are after:
http://struts.apache.org/2.x/docs/visitor-validator.html
...This
allows you to use the ModelDriven development pattern ...
-Original Message-
From: James Carr
To: Struts Users Mailing List
Sent: Tue, Aug 11, 2009 1:43 pm
Subject: [S2] Model
Are you able to put a parameter in your action URL -- something like
.myAction.action@&printable=true
because in that case you can configure different (or no) decoration based on
the parameter
chris
-Original Message-
From: CS Wong
To: Struts Users Mailing List
Sent: Tue,
I think your pattern is on the namespace rather than the action?
C.
-Original Message-
From: Zoran Avtarovski
To: Struts Users Mailing List ; CS Wong
Sent: Tue, Aug 11, 2009 9:49 pm
Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2?
I¹m cert
Check out
http://struts.apache.org/2.x/docs/expression-validator.html
If you are using annotations check out
http://struts.apache.org/2.x/docs/expressionvalidator-annotation.html
Your expression will be something like
@ExpressionValidator(expression="email.equals(confirmEmail)",? message="Th
Hopefully it solves the OP's problem.
Cheers
Chris
-Original Message-
From: Zoran Avtarovski
To: Struts Users Mailing List ; musom...@aol.com
Sent: Wed, Aug 12, 2009 7:27 pm
Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2?
I apologise, you’re
Have dynamic method invocation off and be careful with wildcards.
Another possibility is to have an interceptor veto calls to that method
but that would get tedious if you have many of them.
chris
-Original Message-
From: Louis Voo
To: Struts Users Mailing List
Sent: Thu, Aug
Check
@Result(name="input",value="findUser",type=ServletActionRedirectResult.class)
I think the attribute should be location rather than value in 2.1.x
Chris
-Original Message-
From: spsarolkar
To: user@struts.apache.org
Sent: Thu, Aug 13, 2009 12:47 am
Subject: RE: Valida
try the pattern
etc
-Original Message-
From: James Carr
To: Struts Users Mailing List
Sent: Thu, Aug 13, 2009 9:53 am
Subject: Re: Validating that two fields match?
I have tried this and it doesn't seem to work at all. I am using
ModelDriven and the model object has
But then look at
http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPlugin-Resultannotation
I am using location successfuly.
C
-Original Message-
From: Martin Gainty
To: Struts Users Mailing List
Sent: Thu, Aug 13, 2009 9:34 am
Subject: RE: Validation does n
Martin I think the docs you are looking at are for the old
org.apache.struts2.config.Result
rather than
org.apache.struts2.convention.annotation.Result.
Chris
-Original Message-
From: musom...@aol.com
To: user@struts.apache.org
Sent: Thu, Aug 13, 2009 10:10 am
Subject: Re: Validati
Note that
org.apache.struts2.dispatcher.FilterDispatcher
is deprecated since 2.1.3 in favor of
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.
-Original Message-
From: Martin Gainty
To: Struts Users Mailing List
Sent: Sat, Aug 15, 2009 9:29 am
Subj
OGNL properties are JavaBean properties. In your case you are trying to
define the property stockAmount twice with two different types.
Instead of overloading the setter give it a different name:
public void setStockAmountStr(String stockAmount) {
this.stockAmount = Integer.pars
Glad it is working.
Yes, in a JavaBean the setter/getter methods define the property. The type is
derived from the arguments and return types of those methods. The actual data
might not even be stored in the bean, e.g. it might be stored in a database or
be a calculated value.
OGNL follows th
The names of the params for double validator are different from those of int
validator.
Instead of max and min your choices are
minInclusive
maxInclusive
minExclusive
maxExclusive
Chris
-Original Message-
From: sandy.verfai...@roularta.be
To: user@struts.apache.org
Sent: Mon,
In the products.jsp you assume the action? addProduct to be in the "/service"
namespace but? "shop" package which
contains the action is not in the "/service" namespace.
Try
-Original Message-
From: sandy.verfai...@roularta.be
To: user@struts.apache.org
Sent: Mon, Aug 17, 200
ok -- I used as much of your code as you have posted and put a working version
at
http://pastie.org/585837
Chris
-Original Message-
From: sandy.verfai...@roularta.be
To: user@struts.apache.org
Sent: Mon, Aug 17, 2009 2:09 pm
Subject: RE: validation
Requiredstring do
For primitives and dates you don't need to do anything? -- the type conversion
is automatic
Chris
-Original Message-
From: sandy.verfai...@roularta.be
To: user@struts.apache.org
Sent: Mon, Aug 17, 2009 10:43 am
Subject: RE: validation
Chris,
Your version doesn't work
That looks like a question -- it is meant to be an assertion but somehow
question marks crept in.
C.
-Original Message-
From: musom...@aol.com
To: user@struts.apache.org
Sent: Mon, Aug 17, 2009 11:12 am
Subject: Re: validation
For primitives and dates you don't need
That is because you are using Struts 2.1.5. There is a bug in the type
conversion for doubles in XWork which is fixed in
the current version (XWork 2.1.4). When you enter a zero it claims it is not a
valid value.
To use XWork 2.1.4 you need Struts 2.1.7. I have just sent the zips I promised
an
You are kind, Wes. I saw that message and thought "I don't want anything to do
with
this person!"
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Thu, Aug 20, 2009 9:39 am
Subject: Re: Re: Why submit didn't support param
On Thu
Check it out with the config-browser -- you should see on the results tab if
your login result is
really there.
Chris
-Original Message-
From: ManiKanta G
To: Struts-User
Sent: Fri, Aug 21, 2009 3:36 am
Subject: Problem with result returning from interceptor
Hi
The action is instantiated before the interceptors fire so all your
interceptors
are processing the request after the action is created.
after it is created
Chris
-Original Message-
From: Karan Malhi
To: user@struts.apache.org
Sent: Fri, Aug 21, 2009 11:28 pm
Subjec
Sorry -- I should have asked if you were using Struts 1 or 2!
Struts 2 interceptors kick in after action creation.
Chris
-Original Message-
From: Karan Malhi
To: user@struts.apache.org
Sent: Fri, Aug 21, 2009 11:28 pm
Subject: How to register an ActionEventListener
Yes, the interceptors can tinker with the action before the action method
executes .
Chris
-Original Message-
From: Karan Malhi
To: Struts Users Mailing List
Sent: Sat, Aug 22, 2009 10:35 pm
Subject: Re: How to register an ActionEventListener
Struts 2. If inter
where is the information they are sharing located?
Chris
-Original Message-
From: Struts Two
To: Struts Users Mailing List
Sent: Sun, Aug 23, 2009 10:05 am
Subject: Re: Intermittent Session Problems in Strut2.
Do you log in to the system from two different client
I would get a copy of the Tomcat version you are targeting from
http://archive.apache.org/dist/tomcat/tomcat-5/
and see if it runs. That would answer you question much faster than us guessing.
Cheers.
Chris
-Original Message-
From: kalaimathi
To: user@struts.apache.org
Sent
Where is the information that is being shared? Your problem might
have nothing to do with authentication.
Chris
-Original Message-
From: pankaj semwal
To: Struts Users Mailing List
Sent: Mon, Aug 24, 2009 10:15 am
Subject: Re: Intermittent Session Problems in Strut2.
The OP is mapping the result by XML so the behavior (as someone pointed out) is
what you would expect.
Chris
-Original Message-
From: Paweł Wielgus
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 2:58 am
Subject: Re: Convention Plugin problem
Hi all,
my thi
In the time between the first time you go to the page and the second time
where in your application is the data supposed to be?
Chris
-Original Message-
From: Paweł Wielgus
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 5:34 am
Subject: Re: ActionForm is been calle
His status is a char.
Chris
-Original Message-
From: Luca
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 11:58 am
Subject: Re: Struts 2 Hi,?
>?
> i am using struts 2. i want to check some condition in my jsp and based on?
> result i want to perform some task.?
Wasn't being picky -- the single versus double quote rules in
OGNL for single character Strings versus chars often trip
people up at places like
Chris
-Original Message-
From: Luca
To: Struts Users Mailing List
Sent: Fri, Aug 28, 2009 1:07 pm
Subject: Re: Struts 2 His
JSP create sessions by default. It is servlets that don't create a session
unless you
call getSession(). Do you have something like
<%@ page session="false">
at the top of your JSPs?
Chris
-Original Message-
From: Rajeev Sharma
To: Struts Users Mailing List
Sent: Tue
1) Create a file called snippet.jsp with just:
And this line is from the target action.
-
2) Change result in your struts.xml to read
/snippet.jsp
Great. The trick is not to have an action's result contain a call to the
action --
you set up an infinite recursion that way.
Chris
-Original Message-
From: briannic...@aspca.org
To: Struts Users Mailing List
Sent: Wed, Sep 2, 2009 3:21 pm
Subject: Re: Action Tag java.lan
Different tags do different things so I'm afraid you have to look at the
documentation for
a tag to see just what it does. This one was written for the purpose of
allowing you to
use the result of an action in the page you are currently rendering.
Chris
-Original Message
By the way, Pawel, at that link some software seems to have severely butchered
your xml
in the struts.xml part.
Chris
-Original Message-
From: Dale Newfield
To: Struts Users Mailing List
Sent: Wed, Sep 9, 2009 12:41 pm
Subject: Re: Interceptor question
Paweł Wiel
Check out
http://struts.apache.org/2.1.6/docs/bean.html
Chris
-Original Message-
From: deepannair
To: user@struts.apache.org
Sent: Fri, Sep 11, 2009 9:51 am
Subject: Struts jsp access java class
I have a properties class which has soem properties being loaded f
Try the pattern "#.00".
Chris
-Original Message-
From: ashwin ala
To: user@struts.apache.org
Sent: Sat, Sep 12, 2009 2:30 pm
Subject: RE: Formatting in extended theme using Freemarker
Thank you for the prompt replies.
The BigDecimal rounding somehow always renders
When you say "on the classpath" do you mean the compile classpath of the
project or is the jar physically in
WEB-INF/lib?
Chris
-Original Message-
From: Wes Wannemacher
To: Struts Users Mailing List
Sent: Sat, Sep 19, 2009 6:55 pm
Subject: Re: Hello Help please with Strut
JSP page:
The c in CBookingFactorsBean should be lower case , I think.
Chris
-Original Message-
From: Raghuveer.V
To: user@struts.apache.org
Sent: Mon, Sep 21, 2009 7:48 am
Subject: RE: Struts2 - OGNL - access bean property in model object
Hi Rouxel,
The name of the xml file is immaterial -- what is the namespace attribute on
the package you defined inside of home.xml?
I would use the config-browser to check that the configuration is what you
intended.
Chris
-Original Message-
From: Muthu Velappan
To: user@struts.apa
Do you also have an exception for the decorator tag library? The one you have
in your post is for the
page tag library. Check that you have the struts2-sitemesh-plugin jar in
WEB-INF/lib because that is
where those tag libraries are. Also check that your web.xml has the appropriate
elements fo
Since it is not happening consistently and seems to happen more under load it
could well be that the instantiation of an object is triggering a
garbage collection so it might be unrelated to the itself and more to
hanging onto some other objects for too long.
Chris
-Original Message-
SEAM does use a conversation id that is passed in the traffic to the client.
The longer "business process context" stores data in a database so that another
participant in the process on logging in can work on it.
Chris
-Original Message-
From: Greg Lindholm
To: user@struts.ap
I noticed while upgrading that the new @Result annotation
[import org.apache.struts2.convention.annotation.Result]
forces you to explicitly put in the name attribute. Is there a reason fro
dropping
the convention that it defaults to "success"?
Chris Mawata
Hi Pawel
agreed -- I was trying to dodge the massive renaming of the jsps to
hyphenated names. Oh well...
Cheers
Chris
-Original Message-
From: Paweł Wielgus
To: Struts Users Mailing List
Sent: Thu, 19 Feb 2009 3:12 am
Subject: Re: @Result annotation (2.1.6) -- name does not defaul
In your index.jsp if seems you are saying
so the framework is searching the default "/" namespace.
Try
**
A Good Credit Score is 700 or Above. See yours in just 2 easy
steps!
(http://pr.atwola.com/promoclk/100126575x1218822736x1201267884/aol?redir=http:%2F%2Fwww.freecreditreport
Wasn't aware of it (the separator) and that any single character does the
separation trick. Thanks for the pointer.
Chris
-Original Message-
From: Dave Newton
To: Struts Users Mailing List
Sent: Thu, 19 Feb 2009 12:58 pm
Subject: Re: @Result annotation (2.1.6) -- name does not defau
What do you have inside the iterator tag?? Hard to diagnose without knowing
what you have. Some possible causes:
A a possible OGNL expression error inside your iterator tag.
If the Sample objects are not built-in java objects (String, Date..) you might
be having type conversion problems?
Are
Hi Phan,
??? I wrestled with this problem until I was out of my depth.?
I tried it with an ArrayList> initialized as
[[1.0, 2.0, 3.0], [7.0, 8.0, 9.0]]
and on resubmission the data keeps getting flattened to
[[[1.0]], [[2.0]], [[3.0]], [[7.0]], [[8.0]], [[9.0]]]
:(
Here is what I have dug u
es you the Map and use the tag as you
populate the select.
Cheers
Chris aka musomesa
-Original Message-
From: Muthu Velappan
To: user@struts.apache.org
Sent: Fri, 13 Mar 2009 2:12 pm
Subject: org.apache.jasper.JasperException: tag 'select', field 'list', name
'
Question on design intent: I noticed that the @Action annotation does not have
attributes for a parent namespace so if you have multiple actions in the same
class you only have the @ParentPackage class level annotation to indicate the
location of definitions for custom inteceptors, results etc.
Thanks for clarifying.
Chris
-Original Message-
From: Musachy Barroso
To: Struts Users Mailing List
Sent: Fri, 13 Mar 2009 10:44 pm
Subject: Re: Do all actions in an action class (struts 2.1) have to inherit
definitions from the same package?
yes
On Fri, Mar 13, 2009 at 4:53 AM,
Hi Sumit -- the two are different. Easiest to illustrate by example:
Definitions:
Interceptor stack: an ordered list of interceptors with pre/post processing
logic. You have one.
Value stack: a stack (in data structure sense) that holds javabeans including
your current action. You have one *per
This line is the problem:
com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter
You only need to define the converter for a Setting object and not for
SettingList
Also, spaces around the '=' sign are mandatory
Cheers
Chris M?
>
>> com.rjssoft.webdocs.s
But then how do you plan to write a converter to convert a String[] to a
SettingList? Also why is aggregation a bad design?
Regards
Chris M
-Original Message-
From: Lukasz Lenart
To: Struts Users Mailing List
Sent: Wed, 18 Mar 2009 5:50 pm
Subject: Re: Type conversion exceptions
200
My bad -- I didn't realize SettingList extends ArrayList. Suggestion: make it
aggregation so that SettingList has a property of type ArrayList and
your type conversion problems will go away.
Chris
-Original Message-
From: ryangr
To: user@struts.apache.org
Sent: Wed, 18 Mar 2009 6
I have downloaded your code and will study it so that I don't misunderstand.
Can you also post the converter?
If I see it I might?suggestions that fit what you are doing better.
Chris
-Original Message-
From: Lukasz Lenart
To: Struts Users Mailing List
Sent: Wed, 18 Mar 2009 6:10 pm
1 - 100 of 112 matches
Mail list logo