RequestProcessor instantiation doubt ( in .NET)

2005-02-13 Thread Leandro Melo
Hi all. The last days I've been working in a Struts like framework for .NET. I guess most people that work for companies that develop both in Java and in .NET whish they had something like Struts for .NET projects. The framework is almost ready (when I finish and publish it, in few days, I'll send

RequestProcessor never assigned in ActionServlet.

2005-02-07 Thread Leandro Melo
Hi. Why does the ActionServlet has a RequestProcessor instance member that never gets assigned? The point is that the ActionServlet uses the RequestProcessor created by RequestUtils and never assigns it to it's instance member. I check this out in 1.1 and 1.2.4 source. Any comments?

Initialization sequence diagram

2005-02-06 Thread Leandro Melo
Hi all. I'm working on something like struts for .net for a project. If i get something actually usefull, i'll post it somewhere. I'm looking for a sequence diagram of struts initialization, does anyone know where i can find one? I don't want sequence diagrams for the request process, but just of

RE: Initialization sequence diagram

2005-02-06 Thread Leandro Melo
__ (mobile) 617-852-7822 From: Leandro Melo [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: struts jakarta user@struts.apache.org Subject: Initialization sequence diagram Date: Sun, 6 Feb 2005 15:20:57 -0300 (ART) MIME-Version

Synchronization in request processor may cause performance impacts????

2005-02-06 Thread Leandro Melo
Hi. I was taking a look at struts source and found out something new (to me, of course). I knew that the RequestProcessor is the one that acutally handles the request. Although it makes sense, I didn't know that the method getRequestProcessor() in the ActionServlet was synchronized. Has anyone

Re: Synchronization in request processor may cause performance impacts????

2005-02-06 Thread Leandro Melo
- From: Leandro Melo [EMAIL PROTECTED] Sent: Sunday, February 06, 2005 7:31 PM Hi. I was taking a look at struts source and found out something new (to me, of course). I knew that the RequestProcessor is the one that acutally handles the request. Although it makes sense, I

Coupling between view and domain model (off topic)

2005-01-31 Thread Leandro Melo
Hi all. This might seem more a design question than a struts specific question. Anyway, if anyone could help me out a little here. I`m going to explain what is my approach for an specific situation, then you tell me what you think about that, ok. When i`m designinig the web interface for a

Re: Coupling between view and domain model (off topic)

2005-01-31 Thread Leandro Melo
not care, as long as they get what they want. Only then do I integrate the 2. .V Leandro Melo wrote: Hi all. This might seem more a design question than a struts specific question. Anyway, if anyone could help me out a little here. I`m going to explain what is my approach for an specific

JSF and Struts (off topic)

2005-01-11 Thread Leandro Melo
Hi all, I need to start up very quick with JSF for a project! Actually, I'm just gonna check it out to see if it's worth a change! Does anyone know somekinda guide From Struts to JSF?? It could be just a beginner one. Thanks. ltcmelo __ Do you

Re: Where is the html:label tag (another workaround)???

2004-10-17 Thread Leandro Melo
them anyway. --- Craig McClanahan [EMAIL PROTECTED] escreveu: On Sun, 17 Oct 2004 13:14:16 -0300 (ART), Leandro Melo [EMAIL PROTECTED] wrote: Hi Craig, that what i first thought, but if i try to substitute this html:text property=partyName/ for this bean:write name

RE: Exposing ActionForm and MVC fields

2004-10-16 Thread Leandro Melo
Well, i actually end up doing the update only on the required fields on my ejb layer. This way, i don't need to worry about the exposure of the ActionForm fields. --- Freddy Villalba A. [EMAIL PROTECTED] escreveu: Hi, I believe you shouldn't abuse neither from the MVC pattern or the

Where is the html:label tag???

2004-10-16 Thread Leandro Melo
Hi, what is the reason for not having a html:label tag? Leandro. ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread Leandro Melo
at first (specially if the differences are insignificant), but after a few meetings with the corporate managers, you'll realize it was not such a smart move after all! :P My humble oppinion, Freddy. -Mensaje original- De: Leandro Melo [mailto:[EMAIL PROTECTED] Enviado el: viernes

Re: Exposing ActionForm and MVC fields

2004-10-15 Thread Leandro Melo
to the request and populate your form from that for the Seller view and vice versa for the Buyer view. Friday pub lunch may have tarred my brain but I think that will work :) Chris -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: 15 October 2004 14:49

Re: Exposing ActionForm and MVC fields

2004-10-15 Thread Leandro Melo
Lee, even if i use different Actions i wil be still using BeanUtils and still suceptible to hacking. --- Lee Harrington [EMAIL PROTECTED] escreveu: In this case, i`m still suceptible to be hacked by javascript, because of the ActionForm fields exposure. What about that???

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread Leandro Melo
Hi Freddy, i agree with you in parts. Actually, i don`t have a formal workflow graph, but i do have it in some sketches. I think the point here is more about workflow implementations details, isn`t it??? --- Freddy Villalba A. [EMAIL PROTECTED] escreveu: Hi, I believe you shouldn't

RE: Exposing ActionForm and MVC fields

2004-10-15 Thread Leandro Melo
It's seems allright. --- David Suarez [EMAIL PROTECTED] escreveu: How about creating a hash/digest when you send the page down with your read-only fields and save it to session/hidden (you know the +/-), then compare it on the re-submit to see if any of the values have changed. If so,

Exposing ActionForm and MVC fields

2004-10-14 Thread Leandro Melo
Hi, i'd like to hear some opinions. I got a b2b application. I'm facing a desing problem. This problems is associated basically to 2 themes: - MVC - Exposing AcfionForm fields. I got a page where the BUYER fills a form to buy an specific item. The steps are very simple. 1 - He sends a request

Re: cleaning session

2004-10-06 Thread Leandro Melo
If you have your action in HttpSession, why don`t you just call reset whenever a user clicks on the button supposed to start this wizard? --- struts lover [EMAIL PROTECTED] escreveu: Hello everyone, I am facing this problem of session. I have my action form in session(a wizard like

Re: Kind of out of topic, but... AOP in j2ee

2004-09-14 Thread Leandro Melo
CoR patern is major part of Struts 2.0 code in CVS. You can post questions about CoR on Commons user list and get some help here. If you want something futuristic consider declerative programing like JDNC and Flex and Longhorn's XAML or even Apache Jelly) .V Leandro Melo wrote

Kind of out of topic, but... AOP in j2ee

2004-09-13 Thread Leandro Melo
Hi, sorry for the kind of out of topic message, but i'm looking for some information that developers like the ones in this list may help me a little. I'm applying for a master degree (M.sC) and i need to have a project sumary, something like a project idea for start up. I've heard a lot about

Re: Advantages of J2EE w. Struts vs .NET ASP.NET

2004-09-12 Thread Leandro Melo
I guess it depends about what you really want for your app. Is it just a project? Is it a product? Will it need maintance? Do you care about best software engineering? How much time do you have? My opinion is: --- please answer this questions (just came up on my mind at the moment). Want a

basic locale question

2004-09-11 Thread Leandro Melo
Hi, this is very very basic. When i started learning Java i really never payed attention to that. I don't have any one line of code in my struts application that secifies my locale. So, what's actually the default locale i'm using??? if i want to change the locale, how exactly should i do??

Specifying validation field per Form, only way????

2004-09-11 Thread Leandro Melo
Hi, do i need to specify validation fields per form in validation.xml??? Suppose the field name, for example, many form beans may use this field. Is there a way i can specify a global validation for name, instead of specifying it for all form beans that have the field name???

Re: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
been set when you weren't expecting it to. - Bill Siggelkow Leandro Melo wrote: Hi, i sent this question yesterday, but as nowbody answered me, i trying it again with a more sifinificant title (sorry for the re-post). Also, if i'm doing something terrible, i'd like to know

Re: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
been set when you weren't expecting it to. - Bill Siggelkow Leandro Melo wrote: Hi, i sent this question yesterday, but as nowbody answered me, i trying it again with a more sifinificant title (sorry for the re-post). Also, if i'm doing something terrible, i'd like to know

ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
Hi, i believe that a lot of developers use BeanUtils to copy the data from ActionForms to the specific DTOs. I've used this approach, but right now i'm facing a problem, not a big one. I've allways been confused about working with dates in Java. I got a jsp where the user must input a date in the

RE: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
this customized classes to use with validator. --- Jim Barrows [EMAIL PROTECTED] escreveu: -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 07, 2004 5:48 PM To: struts jakarta Subject: ActionForm with all application attributes

Re: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
that BeanUtils uses to copy from a string to a date. Write your own converter, using the date format you need, then use ConvertUtils.register(...) to register it. That's what I do anyhow. -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08

RE: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
--- Jim Barrows [EMAIL PROTECTED] escreveu: -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 9:48 AM To: Struts Users Mailing List Subject: RE: ActionForm with all application attributes Jim, all the code i`m

RE: ActionForm with all application attributes

2004-09-08 Thread Leandro Melo
Thanks, i`ll take a look at that in the next days!! --- Jim Barrows [EMAIL PROTECTED] escreveu: -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 10:25 AM To: Struts Users Mailing List Subject: RE: ActionForm with all

Re: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
I got one doubt in your code when used in a situation that i mentioned (transforming data from action form to dto). When date comes from action form, they usually come in Strings, but in your method you verify value instanceof Date... This will never happen, as the value comes in String. Am i

RE: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
--- Jim Barrows [EMAIL PROTECTED] escreveu: -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 4:28 PM To: Struts Users Mailing List Subject: Re: ActionForm data type X BeanUtils - using Dates I got one doubt

RE: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
to me that when the value goes to the convert method it already has a defined data type (that's way the instanceof). But can anyone tell me how exactly is the flux of data?? When does exactly my value assumes the destination type??? --- Leandro Melo [EMAIL PROTECTED] escreveu: --- Jim Barrows

Re: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
I almost understand it in the other way, haha... Now things are clear!!! --- Bryce Fischer [EMAIL PROTECTED] escreveu: Leandro Melo wrote: I got one doubt in your code when used in a situation that i mentioned (transforming data from action form to dto). When date comes from action

Re: ActionForm data type X BeanUtils - using Dates

2004-09-08 Thread Leandro Melo
forms, putting breakpoints in my Converters to figure out what was going on... Leandro Melo wrote: I almost understand it in the other way, haha... Now things are clear!!! --- Bryce Fischer [EMAIL PROTECTED] escreveu: Leandro Melo wrote: I got one doubt

ActionForm with all application attributes

2004-09-07 Thread Leandro Melo
Hi, i sent this question yesterday, but as nowbody answered me, i trying it again with a more sifinificant title (sorry for the re-post). Also, if i'm doing something terrible, i'd like to know. Keeping in mind that more than one action form may have to validate and/or reset the same fields, i

1:N relationship - ActionForms x DTOs

2004-09-06 Thread Leandro Melo
hi, unfortunatelly i got my action forms coupled with my DTOs . This is a very common disucussion in which i don't want to go to the merits of it right now. I just need a solution for a specific problem, but if this solutions requires going back to the first point, it's ok. I'm used to have jsps

Is this some kind of pattern? is this good at all?

2004-09-06 Thread Leandro Melo
Hi, keeping in mind that more than one action form may have to validate and/or reset the same fields, i decided to this. I already have a MyBaseActionForm which incorporates all some methods that i need in my application. I don't use Validator, as i prefer to use java classes for validation

Re: Is this some kind of pattern? is this good at all? (MORE INFO)

2004-09-06 Thread Leandro Melo
, this is not a drawback because forces you to use a nice use of software engineering forcing you to give significant names for the fiels. Well, i'd appreciate comments (bad or nice ones) on that. Leandro. --- Leandro Melo [EMAIL PROTECTED] escreveu: Hi, keeping in mind that more than one action

Re: How long is Action's scope?

2004-09-01 Thread Leandro Melo
I could save the reference to stateful session ejb and jsessionid in a map in HttpSession. This way, things wouldn't get counfusing, am i right? --- Brett Connor [EMAIL PROTECTED] escreveu: Leandro Melo wrote: Hi, for how long will an Action be in memory? Here's the point. I have

How long is Action's scope?

2004-08-31 Thread Leandro Melo
Hi, for how long will an Action be in memory? Here's the point. I have a situation where the user register his/her company in my application. He/she uses a wizard of 4 jsp pages, as he/she submits one, he/she is redirected to the other one. In this situation i keep a reference of my Stateful

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Leandro Melo
A quick look at the DispatchAction source (if you don`t have the source, you can download it) would the best way for you to understand. It`s not that complicated. I never took a detailed look at the source, but basically, it gets the mapping for the method specified in struts-config.xml and then

Re: Help with Cactus StrutsTestCase

2004-08-27 Thread Leandro Melo
flow and tutorial portions provide a good kickstart even if you use another IDE - check it out: http://www.oracle.com/technology/pub/articles/server_side_unit_tests.html Regards Duncan Mills http://www.groundside.com/blog Leandro Melo wrote: Doesn`t know the answer, where can i

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Leandro Melo
I gues the point of the ImageTagUtil class is specially for use with submit image buttons. However you can do build your wokraround for use in any cases. In my case for example, here`s what i do. In my application, i decided to make of my submissions that go for Actions must have the parameter

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Leandro Melo
Michael, i`d preffer to do it the way i described. Having all submit buttons with the it`s name beeing method por exemplo, and then checking if the return of getName() is null. If it is - String methodName request.getParameter(method) dipatchMethod(..., methodName); --- Michael McGrady

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Leandro Melo
Doesn`t know the answer, where can i find a good tutorial do test struts applications? Is it true that for good testing the actions must delegate their work to POJOs ?? --- [EMAIL PROTECTED] escreveu: I am trying to write test cases for my Struts app, but can't seem to figure it out. I

Re: Help with Cactus StrutsTestCase

2004-08-26 Thread Leandro Melo
?? --- Leandro Melo [EMAIL PROTECTED] escreveu: Doesn`t know the answer, where can i find a good tutorial do test struts applications? Is it true that for good testing the actions must delegate their work to POJOs ?? --- [EMAIL PROTECTED] escreveu: I am trying to write test cases for my

Re: Struts login with JAAS (Part 2)

2004-08-26 Thread Leandro Melo
: Leandro Melo [EMAIL PROTECTED] To: struts jakarta [EMAIL PROTECTED] Sent: Friday, August 20, 2004 4:40 PM Subject: Struts login with JAAS (Part 2) I'm back! After getting some jaas studies, i'm a little bit better, so i can now formulate a better question. Here it is... (I know

RE: Question about authentication

2004-08-26 Thread Leandro Melo
If you write a servlet filter that checks for any request if the user is authenticated and then set some httpsession data, you can easily handle this redirection thing of tomcat. That's how i do it. --- Joe Hertz [EMAIL PROTECTED] escreveu: My gripe with container managed authentication for

Re: ActionForm and Transfer Object

2004-08-25 Thread Leandro Melo
Rick, i agree with you, i also use BeanUtils to populate my forms. But, this doesn't go far way from having your ActionForms dependent on your TOs (or CustomTOs, doesn' t matter). As Sebastian said, i've heard a lot that TOs should mirror or shouldn't be coupled to your ActionForms, but i really

Re: ActionForm and Transfer Object

2004-08-25 Thread Leandro Melo
=get_topicf=58t=002880 --- Rick Reumann [EMAIL PROTECTED] escreveu: Leandro Melo wrote: Rick, i agree with you, i also use BeanUtils to populate my forms. But, this doesn't go far way from having your ActionForms dependent on your TOs (or CustomTOs, doesn' t matter). Well I wouldn't say

Re: Browse button localization -- IMPORTANT !!!!

2004-08-23 Thread Leandro Melo
I think this problem goes right at the same point as the 100 last messages of the list... :-), the ones about a image button replacing the browse button. --- struts lover [EMAIL PROTECTED] escreveu: Hello Everyone, I am stuck with this localization issue. I am using html:file tag. I am not

Weird message when redirecting

2004-08-23 Thread Leandro Melo
I'm working on a login module, wich because of JBoss/Tomcat way of handling JAAS it has some redirections on the way. I built an action the does some stuff for me and then returns an ordinary forward. I decided to set redirect=true in this forwared just to make sure that the user sees the correct

Re: Tiles set up

2004-08-22 Thread Leandro Melo
You can also try this: http://www.onjava.com/pub/a/onjava/excerpt/progjakstruts_14/index4.html There are definitions examples there. Leandro. --- Shinobu Kawai [EMAIL PROTECTED] escreveu: Hi Andy, I am (still!) trying to set up Tiles in my Struts app. I am hoping to use Tiles

JAAS, JBoss and Struts review. Erik, now i get the point !!!

2004-08-21 Thread Leandro Melo
Hi, i've been trying for days to make this thing work. I googled the web for many tutorials and documentation, i read Scot Stark review, and lot other stuff. Unfortunatelly, i guess i didn't make a good search right here on the struts mail archive. I if i've done i'd have found this very

Re: image button for file upload

2004-08-21 Thread Leandro Melo
I'm no expert here, but i think you're gonna have to deal with the tradicional and ordinary file button as it comes. In other words, i don't think it's possible to use an image for this button. That's not because of struts, it's how the browsers implement thier html. --- Dean A. Hoover [EMAIL

Re: Struts login with JAAS (Part 2)

2004-08-20 Thread Leandro Melo
saying . . . Leandro Melo wrote: Hi Erik, the point is that i actually changing my approach. I gave up for a moment the action=j_security_check (i'm using j_username and j_password just to make it similar just because they names were already there when i tried something

Re: Security - From tradition to struts

2004-08-19 Thread Leandro Melo
an expert in this area. Hope that helps, Erik Leandro Melo wrote: So Erik, is it a common and usual aproach to do login outside of Struts (ordinary jsps), and then use Struts afterwards??? --- Erik Weber [EMAIL PROTECTED] escreveu: Leandro, search the archives

Re: Security - From tradition to struts

2004-08-19 Thread Leandro Melo
to implement finer-grained permissions checks on your own if you need to, for example, show/hide links on a page based on permissions. Erik Leandro Melo wrote: Erik, i don't quite understand what you call a hand-rolled java component (maybe because of my english). Anyway, it seems to me

Struts login with JAAS (Part 2)

2004-08-19 Thread Leandro Melo
I'm back! After getting some jaas studies, i'm a little bit better, so i can now formulate a better question. Here it is... (I know that this is not only a Struts question, because it envolves jaas, but i'm pretty sure that people over here could give me some advise on how to handle the problem).

Security - From tradition to struts

2004-08-18 Thread Leandro Melo
Please help me out here! I'm very new with jaas, so i need some help. I got a simple login that is working fine for me, here it is: ... FORM action='%= response.encodeURL(j_security_check)%' method=get !-- esses nomes tem q ser assim - j_username -- NOME:INPUT type=text

Re: Security - From tradition to struts

2004-08-18 Thread Leandro Melo
Or i just extend the DatabaseServerLoginModule class and leave an empty class --- Leandro Melo [EMAIL PROTECTED] escreveu: Just complementing my question... Would it be fair if i copy JBoss' DatabaseServerLoginModule code and place it inside an Action??? This way, i'll have

Re: Security - From tradition to struts

2004-08-18 Thread Leandro Melo
-- but I don't know if this has been done). I presume it's a much easier endeavor if you are just using Tomcat stand alone, but I'll let Craig address that if he wants, because I've never tried it. Erik Leandro Melo wrote: Or i just extend the DatabaseServerLoginModule class

Login and authentication

2004-08-17 Thread Leandro Melo
Hi, i'm building a b2b application that must be released for testing in a few days. I got 1 very basic problem: - I don't know jaas The good point is that i need only a login module to go with Struts and jboss. It doesn't need to be definitie, but it must work. I don't know if by the fact i'm

Re: Modifying Tiles definitions dinamically

2004-08-16 Thread Leandro Melo
suggest to use TilesAction because that class can manipulate the definition itself (please people working on Struts, correct me if I am wrong). Leandro Melo wrote: Hi, i got a very ordinary problem. I need to provide diferent menus for diferent people that are logged in the application. I

RE: Overwritting RequestProcessor, how to???

2004-08-16 Thread Leandro Melo
/strutsws for an example of writing your own command processor. I get the feeling it's not the right approach, but I could be wrong. Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies www.omnytex.com From: Leandro Melo [EMAIL PROTECTED] Reply-To: Struts

Overwritting RequestProcessor, how to???

2004-08-15 Thread Leandro Melo
Hi, i'd like to overwirte RequestProcessor, but actually i don't really know if it's a good idea. Here's the point: I'd like to have one more action if my form.validate() method fails on ActionForm. I'd like to do some specific stuff everytime the validate method fails. Then, i thought of

Problems on disabling inputs

2004-08-15 Thread Leandro Melo
Hi, if i try to disable an input like this html:text disable=true/ i get something like this form the browser input type=text ... disabled=disabled/ which, i don't know why causes my ActionForm to not see the value of the specific input, and then generate an error. Leandro

Re: Problems on disabling inputs

2004-08-15 Thread Leandro Melo
for the property being disabled not sure if this will solve you problem - a dump of the exact exception you are getting may shed more light Regards Mike - Original Message - From: Leandro Melo [EMAIL PROTECTED] To: struts jakarta [EMAIL PROTECTED] Sent: Sunday, August 15, 2004 11

Re: Overwritting RequestProcessor, how to???

2004-08-15 Thread Leandro Melo
/configuration.html#controller_config I guess whether its a good idea or not depends on what you're doing. Niall - Original Message - From: Leandro Melo [EMAIL PROTECTED] To: struts jakarta [EMAIL PROTECTED] Sent: Sunday, August 15, 2004 6:06 PM Subject: Overwritting

Modifying Tiles definitions dinamically

2004-08-15 Thread Leandro Melo
Hi, i got a very ordinary problem. I need to provide diferent menus for diferent people that are logged in the application. I don't know what i should do exactly to provide this funcionality, because i don't really know what Tiles allow me to do (i don't know it's potencial). I got the following

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
have to go one by one for each ActionForm :-( ??? --- Ruth, Brice [EMAIL PROTECTED] escreveu: Ensure that the request attributes are set in the ActionForm, this is the only way that you can ensure that they'll still be there when the validate fails. Leandro Melo wrote: Hi, when

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
: form.reset(); robert -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 11:20 AM To: Struts Users Mailing List Subject: Re: Loosing request attributes I was taking a look at the HttpServeltRequest and ServletRequest apis

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
then changing it to false will solve the problem. Thanx, Satish Kataria -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 7:39 AM To: struts jakarta Subject: Loosing request attributes Hi, when a user request hits the ActionForm's validate

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
Sorry Kataria, the redirect attribute is inside the forward tag. My fault. Any way, i'm not using and as i understand the default is false. --- Leandro Melo [EMAIL PROTECTED] escreveu: No i'm not Kataria. Is this the default option??? Actually, i checked it out in some bibliography

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
attributes, right !? --- Jim Barrows [EMAIL PROTECTED] escreveu: -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 10:50 AM To: Struts Users Mailing List Subject: RE: Loosing request attributes No i'm not Kataria

RE: Losing request attributes

2004-08-13 Thread Leandro Melo
, that already starts a different request, so the request attributes are no longer there. In your mapping for the action where the form gets submitted to, where does the input attribute point to? Hubert --- Leandro Melo [EMAIL PROTECTED] wrote: As i replied many times

Re: Losing request attributes

2004-08-13 Thread Leandro Melo
. On Fri, 13 Aug 2004 15:23:47 -0300 (ART), Leandro Melo [EMAIL PROTECTED] wrote: Hubert, i think that's actually the only solution. Thanks. You can point the input to an action which will populate the request with the attribute(s) you need, and then forwards to your

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
are intact? Is there a pattern to it? Erik Leandro Melo wrote: I don`t want to reset the attributes of my ActionForm (what a form.reset() would do), BUT the attributes of the request the were probably set by the Action that forwarded to the specific page. So i need them back

Who calls the validate method ???

2004-08-13 Thread Leandro Melo
Hi, could anyone tell me who calls the validate method of the ActionForms? I thought it was ActionServlet, but it seems not be it. ltcmelo = ___ Yahoo! Acesso Grátis - navegue de graça com conexão de

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
Vary nice Rick! Interesting solution, i'll work on that! --- Rick Reumann [EMAIL PROTECTED] escreveu: Leandro Melo wrote: Suppose a user submits a request that is handled by MyActionDoSomething. Then this action sets a request attribute like this: request.setAttribute(MyObject

Re: Who calls the validate method ???

2004-08-13 Thread Leandro Melo
Reumann [EMAIL PROTECTED] escreveu: Leandro Melo wrote: Hi, could anyone tell me who calls the validate method of the ActionForms? I think you should:) I find it's often more beneficial to not rely on Struts calling this validate() method and instead you should call this manually

Re: Multiple image tags

2004-08-12 Thread Leandro Melo
Allright! Actually, my first languages are c++ and pascal. Why did you ask anyway!? Thanks again, ltcmelo ATTACHMENT part 9 message/rfc822 Data: Wed, 11 Aug 2004 14:17:11 -0700 Para: Struts Users Mailing List [EMAIL PROTECTED] De: Michael McGrady [EMAIL PROTECTED] Assunto: Re: Multiple

Re: Multiple image tags

2004-08-12 Thread Leandro Melo
LOL!!! You wouldn't believe if i tell you that it was what i first thought! I speak portuguese (from Brazil). ltcmelo --- Michael McGrady [EMAIL PROTECTED] escreveu: Leandro Melo wrote: Allright! Actually, my first languages are c++ and pascal. Why did you ask anyway!? Thanks again

Re: Importing Struts context

2004-08-12 Thread Leandro Melo
Worked perfectly Jim! Thanks, ltcmelo Try this instead of html:errors: logic:messagesPresent ul html:messages id=error message=false li class=errorbean:write name=error //li /html:messages /ul /logic:messagesPresent If that works then you can mangle the html however you want of

Loosing request attributes

2004-08-12 Thread Leandro Melo
Hi, when a user request hits the ActionForm's validate method and bounces back, i'm loosing some request attributes that i had set for the page. In other words, if the user inputs some data that don't pass the validate method, the page comes back with a few request scope attributes missing. Is

A character decoding problem

2004-08-12 Thread Leandro Melo
Hi, i got a weird thing happening. Actually it's not that weird, it has very sense, but anyway, i would like to avoid that. Ther word you in portuguese is você. I got some error messages like that. error.invalid.name=Vocccedil; deve digitar o nome. What in english would be

Re: Multiple image tags

2004-08-11 Thread Leandro Melo
Michael, i think i understand your point now! If my english let get the point correctly, i realized that if i have an ordinary Action, and have such method that finds out what was the value of the image tag (using your getCommand function) and delegate (probably with an if) the processing of the

Re: Importing context with Struts

2004-08-11 Thread Leandro Melo
Jim, as i said i have a page with only one line of code, wich is the error page. It only has this: html:errors/ Suppose now we want to register a company in the application, i got then an form with all the necessary inputs in a page registercompanycustominforeq.jsp. Here's the page for

Multiple image tags

2004-08-10 Thread Leandro Melo
Hi, this is a big question, so probably for only the patient ones... I'm beeing a very purist on MVC in my application, so i got a .jsf that is called HTMLbuttons.jsf, wich looks like this. code: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/struts-html.tld

Importing context with Struts

2004-08-10 Thread Leandro Melo
Suppose i got scattered pieces of code, wich includes a lot of Struts tags. These pieces are separate files, and i need to accesss some struts attributes (or beans) from these other files for each request. A nice example would be the html: error tag. In my case, it's located outside of the file

Re: Multiple image tags

2004-08-10 Thread Leandro Melo
Hi Michael, please correct me if i'm wrong, but none of those solutions would work nicely in my case. The problem is that both solutions in a higher level focus on getting the parameter and checking it out to see its value. In my case, i got a MyLookupDispatchAction that receives all the

Re: Importing context with Struts

2004-08-10 Thread Leandro Melo
/ tiles, and use tilesaction for each tilee and put in scope what the tiles defnitions need to render, so each request is dynamycaly assembled. Rember that you can use tiles-el or el anywhere in servlet 2.4 (If you want to use extrnal or non jsp source, check out sitemesh) .V Leandro Melo