How to carry parameters to action: login.do?action=addid=123

2006-06-04 Thread M.Liang Liu
I just want to carry parameters to action :login.do I will make use of the url .../login.do?action=addid=123 in the other page as a link. And I want to get those parameters using: request.getAttribute(action); request.getAttribute(id); to get them. However,it does NOT work. I would like

Re: Java class package organization

2006-06-04 Thread Leon Rosenberg
tld.company.project.module.layer.unit: tld.company.project.mail.presentation.action, tld.company.project.mail.presentation.bean, tld.company.project.mail.presentation.jsp, tld.company.project.mail.business, tld.company.project.mail.business.data, tld.company.project.mail.persistence,

Re: How to carry parameters to action: login.do?action=addid=123

2006-06-04 Thread Leon Rosenberg
On 6/4/06, M.Liang Liu [EMAIL PROTECTED] wrote: I just want to carry parameters to action :login.do I will make use of the url .../login.do?action=addid=123 in the other page as a link. And I want to get those parameters using: request.getAttribute(action); request.getAttribute(id); to get

spring MVC equivalent of Tiles?

2006-06-04 Thread Adam Hardy
Just reviewed the Spring MVC website and I couldn't really get a good grasp of their templating strategy for JSPs, if they actually have one that's more than just taglibs. Has anyone experience in this area? Adam - To

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-04 Thread Jakub Milkiewicz
Hi. Exactly boy :). 2006/6/4, Scott Van Wart [EMAIL PROTECTED]: Jakub Milkiewicz wrote: If you are thinking of creating custom validator remember that even if your custom validator fails it doesn't mean that your form is invalid! You must remember to add ActionError/ActionMessage to

Re: [Shale - Clay] nested properties in @managed-bean-name can't work

2006-06-04 Thread Gary VanMatre
From: phyopiyo [EMAIL PROTECTED] Hi I just found out why this is happening. If you have nested objects under your managed bean, and if it is a class defined by you, you must provide the getter method of that object to return a new instance when the object is null. I got the

Re: Validation 'depends' attribute order, and 'validwhen'

2006-06-04 Thread Martin Gainty
Scott- Isnt that an HTTP convention for return values from action..more specifically.. return false which indicates stop processing return true which indicates processing completed succcessfully ??? Merci, Martin This email message and any files transmitted with it contain confidential

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-04 Thread Karr, David
-Original Message- From: Rafael [mailto:[EMAIL PROTECTED] actually WAS6 comes with JSTL libraries, so the jars with TLDs are located inside WAS6 lib directory. If I include the taglib directive (%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %) all jstl tags in the

How to terminate the uploading process of Struts?

2006-06-04 Thread Truong Xuan Tinh
Hi experts, Can we terminate the uploading process of Struts when the uploaded data size is exceeded the max file size configured in the controller of Struts. It seems that Struts upload the file completely and then check it file size against the maxFileSize. Thank you very much for your reply.

Re: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-04 Thread Rafael
I'm using JSTL version 1.0, but 1.1 doesn't work too. No, I haven't. Can you explain JSTL stopped working a little more extensively? sure, will try to give examples... I've a JSP page called index.jsp in this index page I included another jsp page called taglib.jsp in this taglib.jsp I've

Re: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-04 Thread Rafael
Could you please elaborate on what doesn't work? I described it in my previous e-mail to Adam, I'm also included some examples. Do you see specific error messages? No, I don't. If I include - P Say: c:out value=Hi/ /P it just appears Say: I followed your .jspf suffix suggestion, but it

Re: spring MVC equivalent of Tiles?

2006-06-04 Thread Adam Hardy
I shall use Tiles then, if necessary. I shall also use Validator for the validation. I was surprised when I found out how many of the Spring MVC classes also have names based on xxxAction. It seems the similarities between the 2 frameworks are as great as the differences. Well, perhaps I'm

Re: reset button deos not work with struts validator

2006-06-04 Thread Laurie Harper
Victor.T. Ying wrote: Hi, I meet a problem using structs validator and reset button The problem occurs when the validator find a validation error, then reset button can not clear the input field but retain the error values. BTW the respective form is in the session and I am using html:reset

Re: Strange problem:Validator can NOT validate Integer ?!

2006-06-04 Thread Laurie Harper
M.Liang Liu wrote: Yup. That's OK. I just wondering why the validation is omitted if I define the field as Integer or int. Perhaps because an integer-typed field can only hold an integer value, so the 'integer' validation rule is always going to pass. L. Defining all the fields as

Re: Controlling Reset method

2006-06-04 Thread chamal desilva
Dear Scott , Thanks for your reply. If you're viewing the second account, why would you need data for the first account? If it's a problem of losing the customer ID for the I need the first account data because it is in the Vector of Customer bean. So the first item(Account) of vector will

Re: Controlling Reset method

2006-06-04 Thread Scott Van Wart
chamal desilva wrote: Dear Scott , Thanks for your reply. If you're viewing the second account, why would you need data for the first account? If it's a problem of losing the customer ID for the I need the first account data because it is in the Vector of Customer bean. So the first

Re: Controlling Reset method

2006-06-04 Thread chamal desilva
Hi Scott, Thanks a lot for your reply. It was very useful. Thanking You, Chamal. --- Scott Van Wart [EMAIL PROTECTED] wrote: chamal desilva wrote: Dear Scott , Thanks for your reply. If you're viewing the second account, why would you need data for the first account? If it's

html:text inside logic:iterate ....

2006-06-04 Thread Li
Hi guys, I have a scenario here, I have an application bean called 'AppBean' in my webapp, which contains two properties 'List1' and 'List2' whose type is ArrayList. Now in a jsp page, I have a form, which will display items in 'List1', and bundle a set of html:text controls to 'List2' to accept