fmt:setLocale little OT

2007-03-14 Thread Vinicius Carvalho
Hello there! I'm struggling with this for the last couple of hours, I'm pretty sure is a dumb thing I forgot. I'm setting the locale for my JSPs (not using struts yet, this is for a presentation) and fmt:setLocale refuses to override the default locale. I'm using jakarta standards 1.1.2 apache

Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Hello there! I have a simple question on Tiles usage, hope I get some advice here. I know this is not the best usage for it, but we have a kinda of emergency here... I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
bean:write name=someBean property=title/ Regards On 11/8/06, Antonio Petrelli [EMAIL PROTECTED] wrote: Vinicius Carvalho ha scritto: I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag a tiles definition will be used to display the content

Re: Simple Question about Tiles

2006-11-08 Thread Vinicius Carvalho
Doh, missed a bean:define toScope ... regards On 11/8/06, Greg Reddin [EMAIL PROTECTED] wrote: On Nov 8, 2006, at 8:12 AM, Antonio Petrelli wrote: Vinicius Carvalho ha scritto: I have a list that is going to be iterated, and the bean inside it will be checked, depending on a certain flag

ActionMapping roles attribute

2006-07-20 Thread Vinicius Carvalho
Hello there folks! I was wondering, is it possible to force struts to not check request.isUserInRole() when we provide a roles parameter in our action-mapping declaration? I need to get it's value, but I get redirect to an unauthorized page before my execute() happens. Regards

html:multibox problem

2006-07-20 Thread Vinicius Carvalho
Hello there! I have a multibox on my jsp, that maps to a String[] id; property on my formbean. The problem is, when the user submits it, I get my Array filled, but the first position of the array is filled with a strange [EMAIL PROTECTED] string. Seems that some weird object had it toString()

Re: html:select disable problem

2006-07-19 Thread Vinicius Carvalho
Thanks all, we solved this using hidden fields :) Thanks On 7/18/06, Laurie Harper [EMAIL PROTECTED] wrote: Vinicius Carvalho wrote: Hello there! I believe this is an HTML/HTTP issue, but... I have a userForm that some of the fields (selects) when the user is editing must come as readonly

HTML reset problem

2006-07-19 Thread Vinicius Carvalho
Hello there! This is more an HTML/JavaScript issue, but I hope someone has the answer :) I've been using HTML for a long time, but today I've just found out something stupid that I've never cared about, reset on a form does not clean it, but restores to the original state ... Ok, you can laugh

html:select disable problem

2006-07-17 Thread Vinicius Carvalho
Hello there! I believe this is an HTML/HTTP issue, but... I have a userForm that some of the fields (selects) when the user is editing must come as readonly (disabled). Well, that's almost ok, because I need that data on the action called by the form, and those values are not passed to the

Re: Form validation not happening

2006-07-04 Thread Vinicius Carvalho
of the URI, ValidatorForm uses the key of the form name. Did you recently upgrade Struts or the Validator? Vinicius Carvalho [EMAIL PROTECTED] wrote: I did a deeper look on my project, enabled debug output and even though on the log it says that the requestprocessor is calling validate, my

Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
Well, I've just quit the validation on strtuts (based on commons-validator). So I've decided to use dumb manual validation. Well problem is, I still can't get one of my forms to validate! Here´ my struts-config: form-beans form-bean name=cadastrarVotanteForm

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
. Paul Vinicius Carvalho [EMAIL PROTECTED] wrote: Well, I've just quit the validation on strtuts (based on commons-validator). So I've decided to use dumb manual validation. Well problem is, I still can't get one of my forms to validate! Here´ my struts-config: type

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
but ActionForm). Remember, the method signature must match YOUR version of struts. Are there any errors in your log files that might shed some light on this? Regards, David -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 12:34 PM To: Struts

Form validation not happening

2006-07-03 Thread Vinicius Carvalho
Hello there! I'm trying to use form validation (It was working, but somehow, I messed something and it quit working). Here are my files: struts-config.xml form-beans form-bean name=userForm type=com.acme.UserForm/form-bean /form-beans action path=/register scope=request

Re: Form validation not happening

2006-07-03 Thread Vinicius Carvalho
I did a deeper look on my project, enabled debug output and even though on the log it says that the requestprocessor is calling validate, my validate method on my class (gave up on validation using xml) does not even get called... Any ideas? Regards On 7/3/06, Vinicius Carvalho [EMAIL

Re: Securing an Action

2006-06-30 Thread Vinicius Carvalho
the action. Paul Vinicius Carvalho [EMAIL PROTECTED] wrote: Hello there! I know this kind of question has been very very discussed. But I've been away from struts for a while. I need to create two types of actions, one that anyone can access and a secure one, based solely on user's roles

Securing an Action

2006-06-28 Thread Vinicius Carvalho
Hello there! I know this kind of question has been very very discussed. But I've been away from struts for a while. I need to create two types of actions, one that anyone can access and a secure one, based solely on user's roles. Here's what I've come in mind: public abstract class BaseAction

problems wit h Struts 1.2.9

2006-06-26 Thread Vinicius Carvalho
Hello there! I'm having a strange problem with my struts app (1.2.9), it's been a long time since the last time I've used struts (being in the Swing world for a while now). The application launches an error on startup: [java] SEVERE: Parsing error processing resource path

Re: problems wit h Struts 1.2.9

2006-06-26 Thread Vinicius Carvalho
DOO!! Thanks man, I'd never find this :) On 6/26/06, David Friedman [EMAIL PROTECTED] wrote: Vinicius, Your struts-config.xml file is incorrect. In your Actionmapping is incorrect. You have: action path=/votar scope=request validate=true

nested:select question

2004-11-12 Thread Vinicius Carvalho
Hi there! I'm using nested select to display a select box of a nested bean, So far it worked great. Here's the structure I have: A steps collection which holds references for n objects of type step so I use nested to display each of the properties of the step bean. I have this to display a

Re: ActionMessages question (simple)

2004-10-26 Thread Vinicius Carvalho
is the label of the current message instance in the loop. The name in the bean:write tag in this case corresponds to the label you gave to current message instance. Um abraco, Thompson Vinicius Carvalho wrote: I'm kinda lost with this. I set a message like below : ActionMessages msgs = new

request question

2004-10-25 Thread Vinicius Carvalho
Hi there! This kinda off topic, but I'm confused with that. I have this flow on my app: User search - content display - remove Let me get in some finer details. The user enters a criteria to filter the number of items displayed, on the next screen those items are shown with a trash icon,

Question regarding formbeans

2004-10-20 Thread Vinicius Carvalho
Hi there! I have the following problem: My form offers the ability to a user select from some categories, let's say first grade, second grade on the next step user selects subjects for each one: first grade: MathEnglishScience second grade: MathEnglish History As you can see, a

Agregating form beans

2004-10-07 Thread Vinicius Carvalho
I was wondering. Is it possible for a form bean to have a field that would be another form bean? I have a form, that depending on the user selection on the previous screen, it would generate n number of small forms in order for him to fill it up. So I was wondering to have something like

Re: cleaning session

2004-10-07 Thread Vinicius Carvalho
Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define your wizards? In that way: (1) No matter where

Re: cleaning session

2004-10-07 Thread Vinicius Carvalho
Erik Weber wrote: Vinicius Carvalho wrote: Freddy Villalba A. wrote: Well guys, although on the same direction you are pointing to, I do believe though that the more framework-independent the solution is, the better. So, my thought: Why not have a XML descriptor where you can explicitly define

Re: Validator

2004-10-05 Thread Vinicius Carvalho
David G. Friedman wrote: I haven't used the validator in a while but I have a 3 questions for you: 1. If, as you say, the Javascript tag isn't being enclosed in script../script tags, then you need to verify that your validation file is loaded AND that you have the correct form name in your

Re: Validator

2004-10-01 Thread Vinicius Carvalho
container web(Tomcat, JBoss etc), em geral eles listam a maioria dos problemas da sua aplicação. Gabriel F Campolina Analista desenvolvedor Java Stefanini IT Solutions - BH On Thu, 30 Sep 2004 14:33:51 -0300, Vinicius Carvalho [EMAIL PROTECTED] wrote: Hi there! I've been using Struts for quite

Validator

2004-09-30 Thread Vinicius Carvalho
Hi there! I've been using Struts for quite sometime, but haven't used the validator yet. So I followed the receipt provided by Struts in Action, but got no success at all. Here's what I've done Struts-config is configured for the right plugin My ActionForm extends ValidatorForm and has no