Re: on validation fail

2003-09-17 Thread Daniel Wang
I can't imagine why you would need to use validation when there's no user input involved, but... - you can put all the values of your bean in html:hidden so they get resubmitted or - you can put the bean in the session daniel - Original Message - From: Darius Ghanipour [EMAIL

Re: derrive the form action name from the action mapping that called the JSP

2003-09-17 Thread Daniel Wang
I don't believe you can... What I end up doing is make the form submit to a common dispatch action that then forwards to either action1 or action2... daniel - Original Message - From: Mick Knutson [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:22 PM

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
I don't believe you can. html:errors or html:messages can only accept a single message bundle. daniel manglu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thomas, You didn't get the question. I understand that multiple bundles can be used in bean:write or other tags that

Re: getting redirect to work -- easy one?

2003-09-17 Thread Daniel Wang
Looks like you printed something to the response before you try to do the redirect() daniel - Original Message - From: Adam Fisk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:02 PM Subject: getting redirect to work -- easy one? Hopefully this is an easy

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
They are the same tablib, i.e. html:errors or html:messages and you can only specify one optional bundle with each of these tags. If you really want to implement this, you can subclass or modify ActionMessage to allow you to specify a message bundle, and subclass ErrorsTag to use the specified

Re: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Daniel Wang
You could be running out of file descriptors? run ulimit before you start resin. - Original Message - From: Casey Forbes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 5:21 AM Subject: [OT] OutOfMemoryError when I have plenty of heap Hi everyone, There

Re: How to pull messages from multiple Bundles?

2003-09-17 Thread Daniel Wang
fmt:setBundle fmt:bundle - Original Message - From: Carlos Sánchez [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 6:53 AM Subject: RE: How to pull messages from multiple Bundles? Another question which I've already asked but

Re: Reuse of JSP's and relative links

2003-09-17 Thread Daniel Wang
use href as opposed to page i.e. html:link href=Show.do - Original Message - From: Anders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:07 AM Subject: Reuse of JSP's and relative links Hi, How can i get html:link to use relative links? I'm trying

Re: Reuse of JSP's and relative links

2003-09-17 Thread Daniel Wang
? Thanks, Anders, On Wed, 17 Sep 2003, Daniel Wang wrote: use href as opposed to page i.e. html:link href=Show.do - Original Message - From: Anders [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:07 AM Subject: Reuse of JSP's and relative

Re: Reuse of JSP's and relative links

2003-09-17 Thread Daniel Wang
Mailing List Subject: RE: Reuse of JSP's and relative links You might be able to do this with an onsubmit handler ie.. html:form onsubmit=this.location.href='/Show.do' -Original Message- From: Daniel Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:29 AM

Re: Design Question

2003-09-17 Thread Daniel Wang
You can probably write an aspect (using AspectJ) to do this fairly automatically -- i.e. create a pointcut for all *Form.set* methods, and then do your comparisons there. i.e. public aspect DiffAspect { pointcut setter() : call(public void *Form.set*(..)); before() : setter() { //...

Re: Fail over: ActionForm's FormFile attribute is null .....(Weblogic8.1 cluster)...

2003-09-17 Thread Daniel Wang
I don't know how to solve your problem -- but does your cluster support failover during file uploads? If so, can you describe how it is configured? we are trying to provide this functionality... thanks, daniel - Original Message - From: Trieu, Danny [EMAIL PROTECTED] To: [EMAIL

Re: searching on client side.

2003-09-17 Thread Daniel Wang
A *lot* of javascript. You can basically iterate through the entire table, i.e. with something like document.getElementsByTag(TR); use RegEx to find the data you want; and then hide the other rows by turning CSS style display to 'none' Imho, the client is not the right place to do this...

Re: [OT] M7 Development tool

2003-09-17 Thread Daniel Wang
Err... you don't work for free... why should they? btw, M7 is on the board of eclipse. - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:42 PM Subject: RE: [OT] M7 Development tool ouch!

Re: Undesired whitespace using html:link

2003-09-17 Thread Daniel Wang
I don't believe html:link is adding the whitespace (or at least, it's not doing it for me) but it will write out whatever you put in between it. i.e. html:linkfoo/html:link should print to afoo/a (no whitespace) but if you do html:link foo /html:link it'll add the whitespaces in between. daniel

Re: getting redirect to work -- easy one?

2003-09-17 Thread Daniel Wang
should be obvious continues to elude me =). -adam On Wed, 17 Sep 2003 02:21:53 -0700, Daniel Wang [EMAIL PROTECTED] said: Looks like you printed something to the response before you try to do the redirect() daniel - Original Message - From: Adam Fisk

newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I have a dumb question re: struts validator: How do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types in foo, how do I show 'foo' is not a valid email address as opposed to the more

Re: newbie validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
and concatenate the error message defined in applicationresources.properties file errors.email={0} is not a valid email address. -Original Message- From: Daniel Wang [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:13 PM To: Struts Users Mailing List Subject: newbie validator

validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types

validator question: show value of a field in error

2003-09-16 Thread Daniel Wang
I asked this earlier and did not receive any response, so i'll post it one more time with more supporting info... In validation.xml, how do I show the value of the offending field in the error message as opposed to the field name? i.e. if the field I want to validate is email, and the user types

Re: re-invoke request after authentication

2003-09-16 Thread Daniel Wang
If you simply do a return mapping.findForward( new ActionForward(foo.do) ); your request will be forwarded to the new action with the existing ServletRequest object in tact. i.e. everything will just work. daniel - Original Message - From: Morten Andersen [EMAIL PROTECTED] To: [EMAIL