Re: problem in tiles

2006-04-09 Thread Antonio Petrelli
Ahmed Hashim ha scritto: ... but i remember that I can request the page directly... You remember wrong! You cannot request a Tiles definition directly. You have at least to write a simple JSP page with tag. You can invoke a Tiles definition directly only through a forward, if you are usin

RE: [OT] Re: Bean Question

2006-04-09 Thread Neil Meyer
Thanks, The following worked. PropertyUtils.getSimpleProperty(bean,propertyName) Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 02:56 PM To: Struts Users Mailing List Subject: [OT] Re: Bean Question One, or both, of these may help: 1. h

RE: Servlet Filter?

2006-04-09 Thread Quinn Stone
Frank, thanks for the link to javawebparts. The source code there helped me a great deal. Dakota, thanks for that very detailed explanation of creating my own dispatcher, but I chose to use a filter for now. I'm just not ready to go change the buttons and existing actions at the moment. I'll look

Validation Problem

2006-04-09 Thread Vinit Sharma
Hi All, I've custom validations written for my application. The formset element has been localized. Is there any way I can pick a specific validation rule for a field based on some criteria? For eg, field xyz need to be validated against rule val1 or val2 based on another param present in request

[HELP] Problem with redirect attribute of forward tag

2006-04-09 Thread Pham Anh Tuan
Hi all, I got problem with redirect attribute in forward tag. after MyRegistration is processed, it register some values in request scope (some messages to inform that Registration was successful), but after redirecting to Summary action, all values which registered in request scope is empty o

Re: [HELP] how do I catch url like http://www.myweb.com/mysite :(

2006-04-09 Thread Pham Anh Tuan
thanks Ted, You said, "I'm not even sure that Java would be the best platform for this use case", is it true :( I just think that we can check request object, after that we check db for specific username (360.yahoo.com/username), if it's exist, we will view homepage of that username. The pro

Re: Looking for a tutorial or complete example of using DynaValidatorForm

2006-04-09 Thread pantichd
Laurie, Thanks for getting back to me. I've been able to get a little further. I've gotten the jsp to come up. When I click the submit button with nothing in either input field it stops on a breakpoint in the validate method of the DynaValidatorForm class. Just in case you don't have the code of

Re: Looking for a tutorial or complete example of using DynaValidatorForm

2006-04-09 Thread Laurie Harper
I don't see anything obviously wrong there. It's not surprising that your breakpoints aren't hit since the action would only be invoked when the form rendered by the JSP gets submitted. It might help if you post the full stack trace you're getting. Failing that, I'd suggest simplifying things

Re: struts validation problem

2006-04-09 Thread Laurie Harper
Madhav Bhargava wrote: Hi All, I am using Struts 1.0 and struts-validator 1.0. I have a JSP which has 3 tabs. Each tab body has a different element inside it. I am using Ajax to dynamically generate the tab body content. Let me take an example and explain it. Assume there are 2 tabs - Tab1 and

Re: Email Validation for .info Domain Qualifier

2006-04-09 Thread Laurie Harper
Jeff Deskins wrote: A user kept getting an email validation error when entering his email address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts. Apparently, the Struts email validation doesn't like the 4 character domain qualifier (.info in this case - I believe there may be others

Re: struts web app performance suggestions

2006-04-09 Thread Laurie Harper
Jeff Thorne wrote: I am seeing slow performance with a few initial pages of my struts app. Here is the flow of the app. 1. Index.html forwards to index.jsp. 2. index.jsp loads user cookies into session. 3. if member cookie found forward to load member page struts action. 4.

Re: Validator rule question

2006-04-09 Thread Laurie Harper
The problem is that validwhen's expression syntax isn't powerful enough to describe date constraints. The best you could do with validwhen is to say 'if field X has a value, this field must have a value too' and then do the data validation server-side in the form-bean's validate() method. The

Re: Tree display in JSP page

2006-04-09 Thread Laurie Harper
As a simpler alternative, you could create a custom tag handler or a JSP 2.0 tag file that knows how to render a tree node and invoke itself recursively as necessary to render child nodes. You could even use a JSP include and not bother with custom tags / tag files at all. As long as you have y

Re: Validator rule question

2006-04-09 Thread Laurie Harper
Bart Busschots wrote: Rivka Shisman wrote: Hi Quinn, As much as I understand the "validwhen" is more like an enhanced "requiredif", but I need that the "date" rule on my property be checked only when my other property has value "X". I don't think the "validwhen" can solve this. Am I right?

Re: printing label from Form bean

2006-04-09 Thread Laurie Harper
Deva Pitchai(NatureSoft) wrote: Is htere a way to print a value in html as label from Form bean, without using bean:write tag? I cant use the bean:write because it is asking for the bean name. I have some include jsp files, which may have different form bean depending on the file where it is

Re: Validator rule question

2006-04-09 Thread Bart Busschots
Hi, The example is in the archives of the mailing list no more than a few days ago. I'm not at work now so I don't have it in front of me to re-send it. The example does not exactly solve your identical problem but it does show how you can use validwhen to apply logic based on the value of an

RE: Validator rule question

2006-04-09 Thread Rivka Shisman
Hi Bart, I still can't see how the "validwhen" solves my original problem. Can you please attach your example of solving it with "validwhen"? Thanks Rivka -Original Message- From: Bart Busschots [mailto:[EMAIL PROTECTED] Sent: Sunday, April 09, 2006 4:09 PM To: Struts Users Mailing Lis

Re: Use struts module with relative url path when forwarding request from webserver

2006-04-09 Thread Adam Hardy
I can't visualise what the final URL looks like in the browser in your situation with the webserver in-between. Try using the tag. Scott Zhu on 07/04/06 19:35, wrote: Thanks. The problem is that we can't use absolute path (leading "/") because we are forwarding the request from webserver to

Re: problem in tiles

2006-04-09 Thread Ahmed Hashim
I tried to forward to loginPage.page from the action and it is working fine, but i remember that I can request the page directly... any suggestion? On 4/9/06, Yang Sun <[EMAIL PROTECTED]> wrote: > > I think you should add an action in the action-mappings section for > loginPage action. You request

Re: problem in tiles

2006-04-09 Thread Yang Sun
I think you should add an action in the action-mappings section for loginPage action. You request have not been processed by tiles yet. // Yang On 4/9/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote: > > what is wrong with this configuration? > > Configuration 1.2//EN" " > http://struts.apache.org/d

problem in tiles

2006-04-09 Thread Ahmed Hashim
what is wrong with this configuration? http://struts.apache.org/dtds/struts-config_1_2.dtd "> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";> http://java.sun.com/xm

Re: Validator rule question

2006-04-09 Thread Bart Busschots
Rivka Shisman wrote: Hi Quinn, As much as I understand the "validwhen" is more like an enhanced "requiredif", but I need that the "date" rule on my property be checked only when my other property has value "X". I don't think the "validwhen" can solve this. Am I right? No, the valid when is s

Re: Filter mapping to URL

2006-04-09 Thread Yang Sun
Hi, Chuanjiang: I am not very clear on your question. But in general, if you have something difficult to use the built-in authentication method, you can overwrite the processRoles() method in your customized RequestProcessor and register your processor with the actionservlet in the configuration f

Filter mapping to URL

2006-04-09 Thread chuanjiang lo
Hi all, I have a module (/module) with three functions For e.g. Function a -> module/functiona.do Function b - > module/functionb.do Function c -> module/functionc.do, module/functionc1.do I have two roles, say Role A can access the whole module. Role B can onl access Function C For Role A, the

Re: Struts newbee

2006-04-09 Thread Yang Sun
Hi, Wang Zeng: I think what Ted said is one way to transfer ActionFrom data to the business object. And you can get a detailed description on other ways to transfer ActionForm data to the business object and pros and cons of each ways by reading charpter 5 of the book <>. Regards, Yang On 4/9/

Re: Struts newbee

2006-04-09 Thread 王曾wang_zeng
hi,Ted Do you mean in your solution that one bean is not only action form bean,but also a business object? Because it extends ActinForm and implement business object interface. 2006/4/6, Ted Husted [EMAIL PROTECTED]: > > If the beans you want to "nest" are being passed to the business > lo

Re: how to include a "do" url?

2006-04-09 Thread 王曾wang_zeng
That's great! Thank you,Michael,for using your time. This approach is kind of novel, I have nerver seen this kind of usage before. Actually,it's not my ideal, one of my coworker teachs me to do that. I am really moved. 2006/4/9, Michael Jouravlev <[EMAIL PROTECTED]>: > > I use it. Works well for