Re: [s2] number format s:textfield tag

2010-03-30 Thread Juanjo C
Any idea?

2007/10/23 Pedro Herrera 

>
> Hi,
>   I have a currency input field (BigDecimal). In my location the decimal
> point is comma, eg, 10,00(==10.00) must be permitted.  Struts is throwing a
> message error : Invalid field value for field "valor".
>
>
> Thanks
>
> Herrera
>
>
> --
> View this message in context:
> http://www.nabble.com/-s2--number-format-s%3Atextfield-tag-tf4680318.html#a13373598
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Additional validation for j_security_check action

2010-01-08 Thread Juanjo C
Sorry for use this thread, but I'm desperate

Dani, How to use Struts 2 with JAAS? I have my own implementation of JAAS
that works fine in applications without Struts, but don't works if I use it
into Strust.

Can you help me?

2009/6/17 Wes Wannemacher 

> I have thought about this a bit lately and I never came up with a good
> solution. In this case, you are sort of hacking the framework by using
> our view library to render the UI, but the processing happens
> elsewhere. That's why I don't know if there is a good solution to
> sprinkle in some validation as well, since validation is handled as a
> function of the processing.
>
> I have thought about trying to put an action out in front of
> j_security_check. I am not sure if it would work, but you can try to
> create a thin action that has the getters/setters for j_username /
> j_password, then dispatch to j_security_check. I don't know if you're
> feeling up to it, but if you hack around enough and find a way to
> pre-process the form with struts then hand it off to j_security_check,
> I'd be interested in how you did it.
>
> -Wes
>
> On Wed, Jun 17, 2009 at 11:06 AM, Daniil Petrov wrote:
> > Hi,
> >
> > I am using JAAS authentication in a Struts 2 web application. A login
> form
> > looks like:
> >
> >
> >
> >
> >
> >
> >
> > I need to validate password field before passing it to the authentication
> > service. Basically, I need to check that this field is not empty. Struts
> 2
> > suggests two ways for validation: either implement validate() method in
> > action or configure field validators in xml file. But in this case I do
> not
> > have a particular action, because j_security_check is something
> > container-dependent. What validation can be done in this case?
> >
> > Thanks,
> > Daniil
> >
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Problem with Struts 2 and security constraint

2010-01-08 Thread Juanjo C
Hi,

I'm trying to use JAAS with Struts2. I have my own implementation of JAAS
and if I use it in an application without Struts, it works fine. I'm using
FORM like authentication method.

But when I wan to use it with Struts 2, I get an 404 error (I have an
constraint with "/*"). If I deactivate the security constraint (I comment
the element security-constraint in the web.xml file), the application works
fine again.

I have tried to use the BASIC authentication method with the realm that
comes with Tomcat with the application struts-blank. The results is the
same. When I active the security-constraint, I get an 404 error, but when I
deactivate security, works fine.

Is like if the filter of struts don't works... any of this has sense...

any idea?


Re: How to access the form data directly?

2009-11-15 Thread Juanjo C
The data that I want to show is the bean (the values of their fields) that I
have declared in the ModelDriven... I think that this data are available in
the jsp...

Uff... It's difficult for me to express my question in English ...  sorry.

Thanks

2009/11/15 Musachy Barroso 

> where is the data that you want to show, in the action?
>
> musachy
>
> On Sat, Nov 14, 2009 at 6:55 PM, Juanjo C  wrote:
> > Hi,
> >
> > I have an action class that implements the interfaces ModelDriven and
> > Preparable with a bean that has data. And I have too an JSP that shows,
> > through s:textfield, the data to the user. It works fine.
> >
> > But I need show in other way the data, i.e. with s:property or
> s:iterator...
> > but I don't know where are this data... In the ValueStack?
> >
> > Any idea?
> >
> > sorry for my English
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: How to access the form data directly?

2009-11-15 Thread Juanjo C
Uuuu it works, but... I prefer don't use scriptlet of Java... Is
there any way to use the tags like s:property or s:iterator?

Thanks Neil.

2009/11/15 Neil Aggarwal 

> Juanjo:
>
> > but I don't know where are this data... In the ValueStack?
>
> I use this code in my JSP to retrieve values from
> the value stack:
>
> ActionContext.getContext().getValueStack().findValue("myValue");
>
> I hope that helps,
>Neil
>
> --
> Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
> CentOS 5.4 VPS with unmetered bandwidth only $25/month!
> 7 day no risk trial, Google Checkout accepted
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


How to access the form data directly?

2009-11-14 Thread Juanjo C
Hi,

I have an action class that implements the interfaces ModelDriven and
Preparable with a bean that has data. And I have too an JSP that shows,
through s:textfield, the data to the user. It works fine.

But I need show in other way the data, i.e. with s:property or s:iterator...
but I don't know where are this data... In the ValueStack?

Any idea?

sorry for my English