Hi,
As I know, use of s:action tag should be avoided, the better option is
to use Preparable interface, you can use prepare() method
also.
http://struts.apache.org/2.x/docs/prepare-interceptor.html
Regards
--
Lukasz
http://www.lenart.org.pl/
> I can implement custom validation using validate(), but I've around 30
> transactional forms with this type of requirements.
Maybe it will be better if you implement your own validator for thoese
30 forms? I think it will be soft option then very compilcated
expression above ;-)
Regards
--
Lu
Hi
>
Add namespace attribute like this namespace="/front"
> However, when I run "mvn jetty:run", Struts 2 doesn't find the action
> "front/home.action". I looked in the target directory as well as in the war
> file packaged with the command "mvn package", and I saw that front.xml was
> NOT in
Hi,
Even I've this problem... Here is my requirement
I've 3 fields. On successful validation of 1st field ONLY the 2nd field
should be validated, and only with the successful validation of second,
then only the 3rd field should be validated against some validation.
I did this by using fi
Hi Laurie / Dave,
can you please help on this?
-- Forwarded message --
From: Narayana S <[EMAIL PROTECTED]>
Date: Tue, Jun 24, 2008 at 3:12 PM
Subject: Re: Struts Themes Problem - help
To: Struts Users Mailing List , [EMAIL PROTECTED]
Hi laurie,
Dear All,
I am building my first Struts 2 application. I'm using maven 2.0.9, jdk
1.6.0_06 and jetty 6.1.10 to deploy inline in maven.
Here is my src/main/resources/struts.xml:
http://struts.apache.org/dtds/struts-2.0.dtd";>
It points to front.xml, which sits in
src/m
Trying again to give out my pseudo JSP...
s:form name="myAction"
s:textfield name="foo0"/
s:action name="languages" executeResult="true"/
s:textfield name="foo1"/
s:submit/
/s:form
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Struts 2 - Repopulate controls when validation fa
I'm following the "How do we repopulate controls when validation fails" FAQ
located at...
http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html
Of the two methods it suggests I am trying to use the 'action tag' method.
Using the simple example from the FAQ
agree that should work...
http://struts.apache.org/2.0.11.1/docs/crud-demo-i.html
(another alternative is to push value into a property and then test the
value of the property)
HTH
Martin
__
Disclaimer and confidentiality note
Is that actually rendering properly?!
I thought you had to add an index to the field name manually so it would be
sent back as foo.bar[1], but perhaps I'm wrong.
Dave
--- On Wed, 6/25/08, Kleiderman, Matthew <[EMAIL PROTECTED]> wrote:
> From: Kleiderman, Matthew <[EMAIL PROTECTED]>
> Subject:
I'm trying create a form that maps to a collection of data objects, so
that a user can edit any property of any object, and submit the changes.
I'm using an s:iterator tag to draw each item in the collection as a row
in a table, and the xhtml template. The table is getting drawn
properly, with dat
I'm able to fix this problem using 'top'
Thanks,
Sharath.
--- On Wed, 6/25/08, sharath karnati <[EMAIL PROTECTED]> wrote:
From: sharath karnati <[EMAIL PROTECTED]>
Subject: Re: weird problem tag.
To: "Paweł Wielgus" <[EMAIL PROTECTED]>, user@struts.apache.org
Date: Wednesday, June 25, 2008, 6:
The deploymentVersion is from 'action'. I even tried with and it is also
having same issue.
Thanks,
Sharath.
--- On Wed, 6/25/08, Paweł Wielgus <[EMAIL PROTECTED]> wrote:
From: Paweł Wielgus <[EMAIL PROTECTED]>
Subject: Re: weird problem tag.
To: "Struts Users Mailing List" , [EMAIL PROTECTE
Now, server-side validation works!
I changed ActionErrors class with ActionMessages class into my java
validation method and into "validator-rules.xml".
The only problem is that
Resources.getActionMessage(request, va, field)
method in my custom validator class is deprecated and I don't know how to
Hi Sarath,
where from this deploymentVersion is from (action, session)?
Such construction works for me in many places, so i would like to
replicate this problem.
Best greetings,
Paweł Wielgus.
2008/6/25 sharath karnati <[EMAIL PROTECTED]>:
> Hi All,
>
> In .jsp file, I'm having following cod
>
Maybe use tag instead?
http://struts.apache.org/2.1.2/docs/if.html
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi All,
In .jsp file, I'm having following code which is using tag.
The tag is showing properties values(projectNm,
subject,comments)correctly. 'deploymentVersion' property is not
And the problem is?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
I recently have been working on a struts 2 + spring 2 + hibernate system and
have come across a problem that I never have when just working on a struts 2
system.
I have two action classes, one that prepares the jsp and populates some
selects for the user to choose from, and another tha
Hi All,
In .jsp file, I'm having following tag
You either do conditional validations, implement custom validators, or as
Lukasz suggested write your own validate() method. When validation is very
complex the last may be the best options.
Dave
--- On Wed, 6/25/08, Istvan Kozma <[EMAIL PROTECTED]> wrote:
> How the validation should be done fo
Hi,
> How the validation should be done for fields which are only displayed in
> certain conditions? If I do this through the XML file the validation is done
> all the time even when the field is not visible.
You can implement validate() or validate() and remember
to implement Validatable inte
Hi,
How the validation should be done for fields which are only displayed in
certain conditions? If I do this through the XML file the validation is done
all the time even when the field is not visible.
Istvan
- Original Message
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts User
yorlick kilroy wrote:
Still... the "problem" seems to be the OGNL implementation in struts2.
I'm guessing here, but maybe your issues are related to:
http://jira.opensymphony.com/browse/OGNL-141
Which has been pushed off in Xwork to 2.5:
http://jira.opensymphony.com/browse/XW-631
And which
I believe most servlet containers prevent sharing of session objects
between applications by default. But it probably can be configured to
be allowed (consult the documentation for your server to find out
how). A shared cache is also an option. But the easiest would be to
put them in the same appli
--- On Wed, 6/25/08, Mustafa Cayci <[EMAIL PROTECTED]> wrote:
> Let me try to understan what you mean. Are you saying
> that I should be doing this
> public ActionForward execute(ActionMapping mapping,
> ActionForm form,
>
> HttpServletRequest request,
>
Hello Dave,
Let me try to understan what you mean. Are you saying that I should be doing
this
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response) thro
Hi Mustafa,
if I understand you correctly you're trying to pass an object in another
webapp. That's not a really struts-usecase. I think you're looking for
a webservice or another kind of procedurecalls (like rmi).
I think you should look for axis, cxf or another project which are more
helpful f
--- On Wed, 6/25/08, Mustafa Cayci <[EMAIL PROTECTED]> wrote:
> I am fairly new to Struts. I have two applications. AppA
> is a Struts application and AppB is another application. I
> have an Action class in AppA. Within execute() method, I am
> creating some objects. I would like to call the
Hello,
I am fairly new to Struts. I have two applications. AppA is a Struts
application and AppB is another application. I have an Action class in AppA.
Within execute() method, I am creating some objects. I would like to call the
servlet in AppB and somehow I want to pass these objects to
Hi Jonny,
I have id properties on actions all over my application.
I also have several actions that do a redirect to id. I think there's
something wrong with either your environment or your action that's causing
the issue.
What exactly happens when it doesn't work?
Mark
The guy who wrote the a
Dwipin C wrote:
WEB-INF/jsp/ChangePassword.jsp
Include a / in front of WEB-INF. (/WEB-INF/jsp/ChangePassword.jsp)
S2 forwards to the JSP result and without the leading slash the
container assumes it's a path relative to your pa
This http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect article
about post and redirect in struts 2 explains how to redirect to a
dynamically evaluated action.
However, if I use a param which references an action property called "id",
it doesn't work.
namespace getting appended to servletPath
Hi,
I have used a namespace "abc" for a particular set of action
classes. The action class invocation happens with the namespace in the
requested url, as expected. However after the processing is done, the
namespace is appended to the result jsp.
code snippet -
http://struts.apache
albertooi wrote:
Anyone aware if the Struts2 UI tags are HTML compliant? Which version of HTML
Specs? E.g 4.x? Need to ascertain which browser is supported if struts2 ui
tags are being used.
generally html 4.x but I don't think they validate. Definitely not
xhtml, no features of 5.x.
More
HI,
I have to show list in my jsp page. I am using
i am getting two lists from data base and it is in employee form bean: first
list is for employee no and second list is for name. i want to display
employee name in and want to use employee no as VALUE in
so list would have employee no as val
Anyone aware if the Struts2 UI tags are HTML compliant? Which version of HTML
Specs? E.g 4.x? Need to ascertain which browser is supported if struts2 ui
tags are being used.
--
View this message in context:
http://www.nabble.com/Struts2-UI-Tag-HTML-Compliance--tp18114585p18114585.html
Sent
Brad Cupit wrote:
> I'm not sure which order the scopes are checked
For anyone who's interested, #attr appears to check scopes in the
following order:
1. page / action *
2. request
3. value stack
4. session
5. application
* I used to set one value at page scope and one at action scope,
and whic
Whoops, as the other reply said, it's the tag [1], not
.
Dave
[1] http://struts.apache.org/2.x/docs/fielderror.html
--- On Wed, 6/25/08, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On Wed, 6/25/08, Anshu Dhamija wrote:
> > i am facing problem in performing validation through
> > xml actually
Anshu Dhamija wrote:
hi
i am new to struts 2.i am facing problem in performing validation through
xml
actually i want to display message at the top of my form instaed of at field
level
can anyone please help me
Hi,
In struts2 there is a provision for handling the error messages by field
--- On Wed, 6/25/08, Anshu Dhamija <[EMAIL PROTECTED]> wrote:
> i am facing problem in performing validation through
> xml actually i want to display message at the top of
> my form instaed of at field level
> can anyone please help me
The validation messages are placed in the form by the S2 for
People *have* responded, both Laurie and I attempted to help. We asked
questions, we provided links. Not sure what else we can do--what about the help
wasn't helpful?
Dave
--- On Wed, 6/25/08, Narayana S <[EMAIL PROTECTED]> wrote:
> From: Narayana S <[EMAIL PROTECTED]>
> Subject: Re: internati
hi
i am new to struts 2.i am facing problem in performing validation through
xml
actually i want to display message at the top of my form instaed of at field
level
can anyone please help me
Hi,
please reply, i was kind of stuck because of this issue,.
On Wed, Jun 25, 2008 at 9:20 AM, Narayana S <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i am applying simple theme for my struts 2 page, when the theme is
> default it could read values from resource bundle, after i changed the
Hello all,
I would like my S2 project to be mapped to .html actions, so I have
set this up :
- struts.action.extension=html in my struts.properties
- in my
xwork-default.xml
- in my
struts-default.xml.
Please note that for the two last ones, I have simply added the
property to the original f
Hi Joe,
sorry for the previus post, too fast fingers ;-)
Long time ago I had similiar problem in struts 1, when accesing lists
with logic:iterate it turned out that if i used and this getMyList() method was not
really a getter but some logic that was building myList, logic:iterate
was accesing myL
Hi Joe,
i had similiar problem in struts
On 25/06/2008, yorlick kilroy <[EMAIL PROTECTED]> wrote:
> Thanks for the performance-tuning links Dave. I Found a couple of
> useful hints there.
> Still... the "problem" seems to be the OGNL implementation in struts2.
> It seems to me as if one should
Thanks for the performance-tuning links Dave. I Found a couple of
useful hints there.
Still... the "problem" seems to be the OGNL implementation in struts2.
It seems to me as if one should be VERY careful when using OGNL i.e.
make use of it very sparingly. in some of my jsps I descend fairly
deeply
48 matches
Mail list logo