What about
2010/12/10 Greg Akins :
> Not sure what is best here.
>
> I need to create an URL with a value from my default resource bundle in the
> URL
>
> For example returns logo.gif
>
> I need to do something like that will
> return my relative url with the value of IMAGE appended.
>
> So i
2010/12/10 Jose Luis Martinez Avial :
>The
> validation should be dinamic, so the rules should be able to receive
> information from the request.
Basing Rule Access Control on request's parameters might induce
security flow risks.
> What I would like to do is to use Struts'
> mechanism to process
Hi,
Generic I have given a pojo class List and am doing validation as
a separate method in my action as given below.
List boList = new ArrayList< PojoClassBO >();
Public String save(){
If(isValid())
{
Continue
}else{
Return "input";
}
Return "succes
any one look this
http://www.playframework.org/
will this feature inside S2
F
Looks like you want a car inside the engine.
I take a quick look at the first 3 minutes of video: Controller and
Model class seem to be a hierarchy-killer.
Do you know appfuse [1]? though I prefer grails [2]
[1] http://appfuse.org/display/APF/Home
[2] http://www.grails.org/
2010/12/10 Frans Thamu
i know appfuse, but the real live concept is good
am i post in wrong mailing list ?
F
On Fri, Dec 10, 2010 at 6:37 PM, Maurizio Cucchiara <
maurizio.cucchi...@gmail.com> wrote:
> Looks like you want a car inside the engine.
> I take a quick look at the first 3 minutes of video: Controller and
I like it.
It has some fast way to create pages.
And I really enjoy the possibility to pass params directly to a method,
without getters & setters. It can be new feature to S2! Helps to keep the
Action class clean!
See you!
On Fri, Dec 10, 2010 at 9:14 AM, Frans Thamura wrote:
> any one look
thx
that is the idea of my thread ;)
thx :)
On Fri, Dec 10, 2010 at 6:45 PM, Felipe Lorenz wrote:
> I like it.
>
> It has some fast way to create pages.
>
> And I really enjoy the possibility to pass params directly to a method,
> without getters & setters. It can be new feature to S2! Helps
Thanks Li.. you're correct. And I'm still wondering why the form in
my Application won't display fieldError messages when I use only
Serverside validation.
If, on the s:form, I use validation="true" the javascript is included
to do validation, and the errorMessages automagically appear
(theme="x
On Fri, Dec 10, 2010 at 6:14 AM, Frans Thamura wrote:
> any one look this
>
> http://www.playframework.org/
>
> will this feature inside S2
>
Why bother? Use one or the other.
Dave
On Fri, Dec 10, 2010 at 8:19 AM, Greg Akins wrote:
> Thanks Li.. you're correct. And I'm still wondering why the form in
> my Application won't display fieldError messages when I use only
> Serverside validation.
>
> If, on the s:form, I use validation="true" the javascript is included
> to do
It does appear to be an interesting way of doing it and it would
certainly help on action class bloat, especially on actions where a form
may contain lots of parameters.
In some places we've actually reverted to a hack concept of ActionForms
where our web page contains "class.property" variables
Actually, it shouldn't come down to using the *other* because the
*one*doesn't support one neat feature. I have always thought the
parameters
interceptor should reflect on object properties in the case where it could
not find a set/get method. These determinations could be cached. Dave, can
you
Maurizio Cucchiara wrote:
>
> At first glance everything would seems correctly configured (except
> for that unnecessary RequiredFieldValidator).
> Did you try it in a more recent version (like 2.2.1)?
>
Hi Maurizo,
I've upgraded to 2.2.1 and the behaviour has changed slightly, but still
does
On Fri, Dec 10, 2010 at 9:59 AM, wrote:
> I have always thought the parameters interceptor should reflect on object
> properties in the case where it could
> not find a set/get method.
>
Properties haven't needed setters since ~2.1, give or take. I don't know if
that was an OGNL change or an S2
No schit! Going to try it now.
On Fri, Dec 10, 2010 at 9:04 AM, Dave Newton wrote:
> On Fri, Dec 10, 2010 at 9:59 AM, wrote:
>
> > I have always thought the parameters interceptor should reflect on object
> > properties in the case where it could
> > not find a set/get method.
> >
>
> Properti
I think they still have to be public, but I don't really remember anymore.
On Fri, Dec 10, 2010 at 10:09 AM, wrote:
> No schit! Going to try it now.
>
> On Fri, Dec 10, 2010 at 9:04 AM, Dave Newton
> wrote:
>
> > On Fri, Dec 10, 2010 at 9:59 AM, wrote:
> >
> > > I have always thought the para
Hi list,
I am trying to use an object from scriplet to tag for a conditional
display purpose.
Here is the code:
In jsp I am fetching user record from the session
<%
UserDTO userDTO = (UserDTO)session.getAttribute("user");
%>
Now I like to show Logout label only if userDTO is avail
Logout
try this:
Logout
It's stored in session and your attribute name is user per your previous
scriplet.
Beez
r 5347
-Original Message-
From: ashish chawre [mailto:ashish.chawr...@gmail.com]
Sent: Friday, December 10, 2010 10:22 AM
To: Struts Users Mailing List
Subject: Problem using sc
They do, but what the hell. I think we have reached a level of
sophistication (pronounced no dumb people on the team) where this should no
longer be a problem. I really haven't seen validation code in a setter
method anyway. They are usually generated as:
public void setFoo(String foo){
Thanks a lot Kevin. It works but I am wondering why is the user userDTO
not working. If we have a requirement something like this where we have to
use any variable from scriplet in struts tag then how
we will do that.
-- Ashish
On Fri, Dec 10, 2010 at 7:30 AM, Biesbrock, Kevin wrote:
> try thi
Oh, I thought you were replacing the scriplets. Why would you want to
mix them?
I'm not sure how ognl works, whether or not it would have access to a
page context set outside of ognl.
At any rate, you can try using:
Logout
the "attr" context map basically searches all available contexts...I
thi
Forget what I told you about fieldName, try simply to change value of messge
inside visitor annotation. Setting append prefix to true tells struts to
prepend message to error fileds.
Maurizio Cucchiara
Il giorno 10/dic/2010 16.02, "RogerV" ha
scritto:
>
>
> Maurizio Cucchiara wrote:
>>
>> At fir
I'm not really sure how to ask this question, so please bear with me.
Requirement:
The system has several functions which a typical user can perform. The
user selects a function and the appropriate action is executed. If that
action implements myObjectAware, myObjectInterceptor retrieves myObje
Interceptors don't "execute in reverse order", they're each a "wrapper"
around the next interceptor's execution, and eventually, the action itself.
If the interceptor is firing twice there's been to requests, which could be
a result of a redirect.
Dave
On Fri, Dec 10, 2010 at 1:50 PM, Biesbrock,
Thanks.. attr doesn't seem to be working in this scenario. I will be trying
using wrote:
> Oh, I thought you were replacing the scriplets. Why would you want to
> mix them?
>
> I'm not sure how ognl works, whether or not it would have access to a
> page context set outside of ognl.
>
> At any ra
Ah. So is the idea that you *could* have logic in an interceptor that
executes after the action by adding logic after invocation.invoke()?
invocation.invoke is the method that executes the next interceptor,
correct?
Frick. A redirect is exactly what is causing my issue.
Thank you, kindly!
Beez
On Fri, Dec 10, 2010 at 2:23 PM, Biesbrock, Kevin wrote:
> Ah. So is the idea that you *could* have logic in an interceptor that
> executes after the action by adding logic after invocation.invoke()?
>
Sure, like closing a Hibernate session, for example.
The caveat (to me, at least) is that the
On Friday, December 10, 2010 2:33 PM, Dave Newton wrote:
> if you want to do something before rendered you need to implement
PreResultListener.
I will keep this in mind.
As far as the redirect issue, I just need to rework my actions a bit, I
guess. I appreciate your wealth of knowledge, Dave.
I am having issues trying to get a Type Converter to run when
converting a field that is a "sub-object" of the main model. For
example, I have a Contact class that contains a ContactLead class. I
have an Action class that saves a new Contact and ContactLead at the
same time. Originally, I set up
30 matches
Mail list logo