Ah ha. Found it. Looks like the dev guys accounted for this.
You can see how in org.apache.struts.validator.Resources.
public static ActionMessage getActionMessage(Validator validator,
HttpServletRequest request, ValidatorAction va, Field field) {
Msg msg = field.getMessage(va.ge
I see that Commons Validator now supports this as an option. For
applications (and whole companies) which aren't concerned about i18n it
would be very nice to have less moving pieces and place the name of the
field directly into validation.xml rather than referencing a key into a
resource bundle.
make the form bean session scoped and see what happens...
I doubt if this doesnt work.
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
Senior Software Engineer,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
Niniva Ray <[EMAIL PROTECTED]>
12/1
No, my form bean has request scope.
yes, both the form beans name are same.
NRay
[EMAIL PROTECTED] wrote:
Is your Form Bean Sessioin Scoped?
Are you using the same form bean name for both the actions?
If you have done these 2, you shouldnt have any problems passing form bean
between 2 act
Is your Form Bean Sessioin Scoped?
Are you using the same form bean name for both the actions?
If you have done these 2, you shouldnt have any problems passing form bean
between 2 actions :D
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
Senior Software Engineer,
HCL Australia
Hello,
If my Action class's success path is another Action class, not a jsp, how do
I pass data from one Action class to the other Action class?
Both of my action classes are associated with the same form bean. I was
setting the method A of the common form bean in one Action class and doi
Marked off-topic, as Struts doesn't care what build tools you use; this
is really a 'how does ant work?' thread.
That said, Sandeep is right, Ant doesn't care where you put your files.
It's up to you to tell Ant what to do and where to find things. If you
want to just re-use an existing build.
If you want an HTML 'button' element, use the tag. A good
rule of thumb for this sort of problem is to figure out how to achieve
what you want in HTML, then figure out what tags will give you the same
result.
L.
José Carlos Ortiz wrote:
Thanks Ashok, but I need a button. Your solution gives
Haha, one new library at a time, eh? Well, this is a common request
that also came up in the presentation I just gave to ApacheCon on
Struts 2. I think we should come up with a solution. Please put in a
feature request and mark its fix version as 2.0.2.
Thanks,
Don
On 10/11/06, Wesslan <[EM
Ah, ok, this issue is showing up because we had to switch out the date
picker implementation from an LGPL library to one provided by Dojo.
Unfortunately, the Dojo one doesn't support localization, so we need
to update the tag attributes to reflect the capabilities with the new
implementation.
Ple
Hm..when extracting tiles into a plugin, we could have misplaced the
TLD. Add a JIRA ticket for the issue so we don't forget it.
Thanks,
Don
On 10/11/06, Dave Newton <[EMAIL PROTECTED]> wrote:
Before I updated to Struts 2.0.1 I had the tiles-core.tld in the JAR (in
META-INF) as distributed. I
It is possible for scoped "forms", when using a ModelDriven action.
Simply implement ScopedModelDriven and use the
ScopedModelDrivenInterceptor to manage the form's scope. See the
Struts 1 example in the showcase, where we use a session-scoped
ActionForm without modifying the code at all. This t
I don't believe there is a constant for the "location" string; just
use "location" :)
Don
On 10/11/06, Sébastien LABEY <[EMAIL PROTECTED]> wrote:
Hi,
I would like to read the parameters of a ResultConfig. But I can't find the
constant for the parameter "location"... Someone could guide me?
Tha
First, I really appreciate the quick response!
I'm a little confused on the suggestion, since save() is called automatically
since it uses a dispatch action. The struts-config.xml has a mapping for
event_save=save, so if it's in save(), I wouldn't really need to test a form
field called Action
1)rewrite your save() logic to invoke form.getAction() and test on the returned
parameter
if(form.getAction() == "save")
{
//do all your save logic here
return (mapping.findForward("save"));
}
//the last thing you need to do in your save method is to return the mapping
for success as in
return
Eric
Take a look at the bottom save method
HTH
Martin --
> I've been trying to get the hang of struts now for the past few months, and
> am wondering how people write "re-usable" base classes for Struts. If you
> have the time, I'd really appreciate your thoughts on this - bear with me, as
>
I've been trying to get the hang of struts now for the past few months, and am
wondering how people write "re-usable" base classes for Struts. If you have
the time, I'd really appreciate your thoughts on this - bear with me, as it's a
lot of reading:
My actions tend to be "similar" but making
You could create a filter and put it in the chain that would display
that page. You would do something like:
- get a handle to the original response writer
- extend HttpServletResponseWrapper to capture the output
- pass in an instance of above to chain.doFilter()
- parse the response, looking for
I don't know the answer to your question but Acegi *is* a Spring subproject
and will be renamed "Spring security". So now you only use ONE new
technology... :)
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: den 11 oktober 2006 17:50
To: Struts Users Mailing List
Subj
/WEB-INF/jsp/component/layout.jsp(1): Error in using tag library
uri='/WEB-INF/tld/struts-tags.tld' prefix='s': The Tag class
'org.apache.struts2.views.jsp.ui.DatePickerTag' has no setter method
corresponding to TLD declared attribute 'language', (JSP 1.1 spec,
5.4.1)
probably occurred due to an er
OK... so I've been playing around with this for the pass day.
1. I don't want to store the trademark symbol as ™ in my lucene index.
2. I could write a method to detect the TM symbol and then encode it to ™
and then use the filter="false" in the bean:write tag.
But is there a more elegant way
HTML can't do what you want. You can create an image that looks like a
button (of course it won't change to match what the OS buttons look like),
that includes an image on it. With that image you can either use an
with some javascript or an , but you can't put an
image on a button in HTML.
(*C
Before I updated to Struts 2.0.1 I had the tiles-core.tld in the JAR (in
META-INF) as distributed. I just tried with the new Struts 2.0.1 tiles
plugin and it barfed; putting it under WEB-INF/tld and specifying it
manually fixed it.
What did I screw up? (I am running under 1.4 so converted
struts2-
What *is* the canonical way to do app- and role-based authentication
like I used to with a custom RequestProcessor in Struts1?
The way I have it now is via an action param with a csv list of roles
and an interceptor that expects all actions to implement a getter for
that parameter.
I know there'
Hi Antonio,
Nice work! solves my direct problem.
I did try this already but did not put the direct path of the page in question
in the definition rather left it as a attribute within the intermediate
definition!
thanks
Andrew
-Oorspronkelijk bericht-
Van: Antonio Petrelli [mailto:[EM
Hi All, (specially Antonio and Mikolaj)
Finally found the root cause of the problem.
The error lies in case-sensitivity in declaring the form bean entry. If the
package name does not match the directory structure (in case-sensitive form)
then the corresponding error is thrown.
Thanks for all yo
Andrew Martin ha scritto:
Uh wait a minute! If I understood you well you want to put
"subcontent3.jsp" as a value of an attribute inside page3.jsp, right?
In this case you have to create an intermediate definition:
Then put this definition
Opps, sorry typo in my example, they should of course have different names!
-Oorspronkelijk bericht-
Van: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 11 oktober 2006 16:26
Aan: S
Andrew Martin ha scritto:
Three definitions with the same name???
This is a bug, my friend :-)
-
To unsubscribe, e-mail: [EMAIL PROTE
Hi,
I have a problem with nested tiles. I can't seem to be able to read the value
of a attribute in nested JSP's!
having looked through this list it appears that I am not alone, but I have yet
to find a working solution.
Maybe there isn't one! In which case I ask myself whats the added benifit
My first was the same.
Thanks, Dave for your response.
From: "Dave Newton" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: format/unformat of input values
Date: Wed, 11 Oct 2006 09:47:08 -0400
From: fea jabi [mailto:[EMAIL PROTECTED]
>
S.Onur SELAMET yazmış:
I want to add an attribute to struts ( ver: 1.3.5 ) tag.
I m trying to extend "org.apache.struts.taglib.html.BaseFieldTag/"/
and after declaring variable and constructing accessors for it, i try
to override "protected void prepareOtherAttributes()" / /method with
prop
From: fea jabi [mailto:[EMAIL PROTECTED]
> using fmt:Number as below and putting the value in the input field.
>
> But, when form is submitted the value in the input field is comma
> separated. How to make this value unformatted when form is submitted?
> Is there something in JSTL that does this?
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote:
> > You should not instantiate manually your own formbean nor put it
into
> > the request scope, you must use the formbean passed into your action
> > class via the ActionForm object.
> Ok I think my
using fmt:Number as below and putting the value in the input field.
currencySymbol="" var="rev"/>
But, when form is submitted the value in the input field is comma separated.
How to make this value unformatted when form is submitted? Is there
something in JSTL that does this? Ofcourse can d
From: S.Onur SELAMET [mailto:[EMAIL PROTECTED]
> Solved by myself thanks.
FWIW, I think it's nice to include at least a hint to the solution for
the sake of archival completeness. (Did calling the super fix it?)
Dave
-
To unsub
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> I said:
> > There are any number of ways around this; creating another action
> > mapping (perhaps just a forward) is one way.
> Forward wont do I need to get things from a DB before displaying the
page.
Obviously that won't work then.
> > Turning
On 10/11/06, Ed Griebel <[EMAIL PROTECTED]> wrote:
You should not instantiate manually your own formbean nor put it into
the request scope, you must use the formbean passed into your action
class via the ActionForm object.
Ok I think my question isnt clear.
I have two action classes PrepareA
On 10/10/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> Is this the wrong way of doing things??
"Wrong" seems a bit strong.
There are any number of ways around this; creating another action
mapping (perhaps just a forward) is one way.
Forward w
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> The prepare action needs to prepopulate values into the form that is
> displayed subsequently. How else can i do this??
Populating a form is different than instantiating one and putting it in
to scope: Struts1 already instantiates and scopes forms.
You should not instantiate manually your own formbean nor put it into
the request scope, you must use the formbean passed into your action
class via the ActionForm object.
When you get the handle to the formbean you can either cast the
formbean to it's real class or you can use
BeanUtils.populate
On 10/11/06, Dave Newton <[EMAIL PROTECTED]> wrote:
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> the fooAction has formBeanName as its form bean defined in the struts
> config. But Im not able to get any values into the fields in my form.
Why are you doing this manually? If you have configu
From: Puneet Lakhina [mailto:[EMAIL PROTECTED]
> the fooAction has formBeanName as its form bean defined in the struts
> config. But Im not able to get any values into the fields in my form.
Why are you doing this manually? If you have configured your actions
properly the framework will do this bi
Hi,
This has to be one of the most bewildering thing I have faced in my 3 months
of learning struts.
Now I have an action(PreapreAction) which I use to prepare a page for
display. This for fetches values from a Database and creates an instance of
the formbean and puts values into the form bean. No
From: Sébastien LABEY [mailto:[EMAIL PROTECTED]
> Yes, I understand that, but it can be useful to specify the scope of an
> action. For example, [...]
I understand what you're saying, but you were never specifying the scope of an
action. You could *use* it as that, but that wasn't its original pu
Yes, I understand that, but it can be useful to specify the scope of an
action. For example, you could have to search for a list of objects in DB to
help the user to select the right item (let's imagine there are too much
items to have them in one time on your page), and you would like to save
you
From: Sébastien LABEY [mailto:[EMAIL PROTECTED]
> I was used to specify a scope (request or session) for in the action
> configuration in struts-config.xml with struts1.x, and I used it to know
> where to store some parameters.
My understanding (as a Struts2 n00b) is that since there are no form
I want to add an attribute to struts ( ver: 1.3.5 ) tag. I
m trying to extend "org.apache.struts.taglib.html.BaseFieldTag/"/ and
after declaring variable and constructing accessors for it, i try to
override "protected void prepareOtherAttributes()" / /method with
proper "prepareAttribute()"
Hi,
I was used to specify a scope (request or session) for in the action
configuration in struts-config.xml with struts1.x, and I used it to know
where to store some parameters. So my struts-config.xml was like this :
But I can't find the "scope" attribute in the DTD fo
Hi All,
I am using DWR with Struts for all the dynamic actions. In my
case I want the return the error messages in the DWR action.
For this I want to use the struts messageresources. How to
access struts messageresources outside struts or is there any better way
of doing the
Antonio,
I have just now redeployed the Weblogic server but still am unable to deploy
the application.
The strange fact is that I am using the same weblogic version, java version,
eclipse version and ant version to build and deploy, and the application
deploys very smoothly.
Please help me out a
Andy.de wrote:
knows anyone a sample code for a page with 2 listboxes and 2 buttons to move
objects from left list to right list and vice versa?
Try uitags.sf.net
--
Mikolaj Rydzewski <[EMAIL PROTECTED]>
smime.p7s
Description: S/MIME Cryptographic Signature
Hi,
knows anyone a sample code for a page with 2 listboxes and 2 buttons to move
objects from left list to right list and vice versa?
Regads, Andy
--
View this message in context:
http://www.nabble.com/2-listboxes-with-buttons-t-move-from-on-list-to-other-tf2422483.html#a6753787
Sent from the St
i have tried cleaning up the cache of the weblogic. also cleaned the build
folder.
by any method if i am deploying after deleting the additional
line it works fine.
but by adding just one another line the deployment fails and I
start getting a 503 error.
its really weird and making me crazy :-)
Sandeep Gupta wrote:
But when I am deploying the WAR it works perfectly. I have validated the
struts-config.xml file using various validators and it is validated
without
any errors or warnings.
Maybe some kind of file-locking occurs? How do you make a deploy? Just
copy war's content into app's
i will try and check this parsing thing too...
may be this is the reason...
- Sandeep
On 10/11/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Sandeep Gupta ha scritto:
> Hi
>
> I have checked my log files.but the only error they report is as
> shown
> below while starting the weblogic
Sandeep Gupta ha scritto:
Hi
I have checked my log files.but the only error they report is as
shown
below while starting the weblogic server.
I copied the whole WAR and EAR to another system and deployed it. The
deployment was SUCCESSFUL. No error was reported and the website worked
perfec
Hi
I have checked my log files.but the only error they report is as shown
below while starting the weblogic server.
I copied the whole WAR and EAR to another system and deployed it. The
deployment was SUCCESSFUL. No error was reported and the website worked
perfectly file. I tired a link vali
Hi,
I would like to read the parameters of a ResultConfig. But I can't find the
constant for the parameter "location"... Someone could guide me?
Thanks.
Sebastien
José Carlos Ortiz ha scritto:
But, it generates a image that links to another page, and I need a button,
with that image inside, that links to another page.
http://www.htmlcodetutorial.com/forms/_BUTTON.html
I don't think that Struts tags support this element, so I think you need
to use
Thanks Ashok, but I need a button. Your solution gives me a image that works
as a button, but I need a button with that image inside, next to the button
text. Something like:
V Accept
Where 'V' is the image I want to display...
MADISHETTY, ASHOK [AG-Contractor/8042] wrote:
>
> Jose,
>
>
Jose,
Try following:
Do not write tag. Instead write the following by modifying the
src location. It is equalent to of HTML.
Thanks
Ashok
-Original Message-
From: José Carlos Ortiz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 1:41 PM
To: user@struts.apache.org
Subjec
Sandeep Gupta ha scritto:
As soon as I add another form bean to the struts-config.xml file, I am
getting the exception on deployment of the WAR in EXPLODED format:
javax.servlet.UnavailableException: Parsing error processing resource
path
at org.apache.struts.action.ActionServlet.ha
The new form-bean entry is as under
the corresponding action class and form class are there, and are being
compiled into respective classes. Even the WAR includes the classes.
- Sandeep
On 10/11/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
Sandeep Gupta ha scritto:
> Hi Antonio
But, it generates a image that links to another page, and I need a button,
with that image inside, that links to another page.
Chetan Pandey wrote:
>
> Then use and insert your image between the link opening and
> closing tags.
>
> Chetan
>
> -Original Message-
> From: José Carlos Or
Then use and insert your image between the link opening and
closing tags.
Chetan
-Original Message-
From: José Carlos Ortiz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 3:54 PM
To: user@struts.apache.org
Subject: Re: How to put an image into a without CSS
Laurie Harpe
Sandeep Gupta ha scritto:
Hi Antonio
Last night I was trying to get it right and observed something new
with the issue. I tried removing the form-bean entry and the
deployment goes just fine. when i tried putting in the form-bean entry
(same entry) again this time even the WAR deployment
Laurie Harper wrote:
>
> José Carlos Ortiz wrote:
>> Hello,
>>
>> Does anybody know how to put an image inside a tag. I can't
>> use the background-image css property because the image has transparent
>> fragments and I need this fragments to be the same color of the text
>> (text
>> is white
Thanks Dave for your answer. I have just one more question : I'm not sure
about the methods in ActionSupport : addFieldError(), addActionError() and
addActionMessage().
I suppose addFieldError() is to add an error link to a property of the form
(view side),
addActionError() is to add a "global" er
69 matches
Mail list logo