Re: JSP help

2004-05-04 Thread Curtis Taylor
Hi San Pedro,

This is an HTML question: the "size" attribute refers to the number of rows of 
data visible in the select box, not the physical width on the page.

HTH,

Curtis

Santhosh P wrote:

Hi,

I have a select box in jsp page having data loaded as collection and is
working well.
My problem is the display text content "datalist" is too large and i want
the display limited
content in select box for good look and feel of the display page.
I have set a size="10" for select tag.
But still the select box is streched to include the full text content.
Why here the size attrribute not working here but works well for

Any one help me
Cheers
San Pedro
   
   
  
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 12:44 AM
Subject: [struts] Digest Number 3851


There are 25 messages in this issue.

Topics in this digest:

 1. Validator execution-order, all at once possible?
  From: [EMAIL PROTECTED]
 2. Re: Setting html:text readonly attribute
  From: Jason Miller <[EMAIL PROTECTED]>
 3. RE: Setting html:text readonly attribute
  From: Paul McCulloch <[EMAIL PROTECTED]>
 4. Re: How to use resource bundle in attributes
  From: Nathan Maves <[EMAIL PROTECTED]>
 5. RE: Setting html:text readonly attribute
  From: John Moore <[EMAIL PROTECTED]>
 6. Re: How to use resource bundle in attributes
  From: Ralf Schneider <[EMAIL PROTECTED]>
 7. RE: forwarding to a pop-up window
  From: "Ricardo Cortes" <[EMAIL PROTECTED]>
 8. Re: trouble with taglibs in xml syntax
  From: Tomasz Dreßler <[EMAIL PROTECTED]>
 9. Re: How to use resource bundle in attributes
  From: bOOyah <[EMAIL PROTECTED]>
10. Re: How to use resource bundle in attributes
  From: Nathan Maves <[EMAIL PROTECTED]>
11. Re: trouble with taglibs in xml syntax
  From: Kris Schneider <[EMAIL PROTECTED]>
12. Re: How to use resource bundle in attributes
  From: Ralf Schneider <[EMAIL PROTECTED]>
13. Re: How to use resource bundle in attributes
  From: Ralf Schneider <[EMAIL PROTECTED]>
14. nested:iterate & nested HashMap
  From: Serhiy Brytskyy <[EMAIL PROTECTED]>
15. sslext - non-ssl http links available from https pages
  From: "Eric Dahnke" <[EMAIL PROTECTED]>
16. RE: forwarding to a pop-up window
  From: "Brian Lee" <[EMAIL PROTECTED]>
17. RE: forwarding to a pop-up window
  From: "Ricardo Cortes" <[EMAIL PROTECTED]>
18. Re: Way to reload struts Action classes in WebLogic8.1
  From: Craig McClanahan <[EMAIL PROTECTED]>
19. Re: Split web.xml into multiple files
  From: Craig McClanahan <[EMAIL PROTECTED]>
20. issue with LazyList
  From: "Mathew, Manoj" <[EMAIL PROTECTED]>
21. Alpha and Beta testing...
  From: "Michael Marrotte" <[EMAIL PROTECTED]>
22. Re: Remembering form values across requests
  From: Jason Miller <[EMAIL PROTECTED]>
23. Special Characters (german Umlaute)
  From: Ralf Schneider <[EMAIL PROTECTED]>
24. Re: Alpha and Beta testing...
  From: Vic Cekvenich <[EMAIL PROTECTED]>
25. Re: [OT] Page Cannot Be Displayed
  From: Rick Reumann <[EMAIL PROTECTED]>


Message: 1
  Date: Mon, 3 May 2004 17:06:10 +0200
  From: [EMAIL PROTECTED]
Subject: Validator execution-order, all at once possible?
http://marc.theaimsgroup.com/?t=10590259932&r=1&w=2

Hi folks,

I got stuck on a problem discussed earlier in this list (@see link
above).
Hope this hasn't been answered elsewhere - it was the only thing I could
find.
Forms seem to get validated in a certain order. First, all required
fields are checked. Only after passing all required checks is other
validation performed. Correct?
Suppose you have a field "name" and a field "age". Both a required and
age also has integer checking applied. If user leaves "name" blank and
enters bogus values (non-int values) in age, validation will complain
only about name being required - not age being invalid. Only after name
is filled, integer validation complains.
I would like to see all applicable error messages at once. Is that a
configurable option? Work-arounds?
Thanx
Nils


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Two Submit Buttons with same Name, validation using ValidatorForm

2004-05-04 Thread Eric Noel
How do i validate in my ValidatorForm when in my html i have two submit 
buttons having same name = "btn".

## I have this idea of a login form with two submit buttons (ie., sign 
in, passwd change) having same name "btn":



  


 



 



 



 


  

   


   

  

  

## On my LoginAction i used LookupDispatchAction
...
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("signinForm.signin", "signin");
map.put("siginForm.pwdchg", "pwdchg");
return map;
}
public ActionForward signin(
LoginForm loginForm = (LoginForm)form;
loginName = loginForm.getLoginName();
loginPassword = loginForm.getLoginPassword();
loginNewPassword = loginForm.getLoginNewPassword();
public ActionForward pwdchg(
LoginForm loginForm = (LoginForm)form;
loginName = loginForm.getLoginName();
loginPassword = loginForm.getLoginPassword();
loginNewPassword = loginForm.getLoginNewPassword();
## The question is how do i validate the fields in my ActionForm (ie.g 
ValidatorForm). E.g if the password change button was clicked check if 
loginNewPassword and loginChangePassword exists, etc. If sign in button 
was clicked check if loginName exists, etc.

## my ValidatorForm code below, but it validates for both buttons :
..
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
		ActionErrors errors = super.validate(mapping, request);
		if (errors == null) errors = new ActionErrors();
		
		if ( (loginNewPassword == null ) || (loginNewPassword.length() == 0) 
|| (loginNewPassword.equals(""))) {
			errors.add("loginNewPassword",
	new ActionError("errors.login.newpassword.required"));
		}
		return errors;
  	}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts repopulate bug?

2004-05-04 Thread Riyad Kalla
... yea so I wasn't expecting that to be the fix... good job though!

Dana Hata wrote:

Problem solved.  Apparently, if you have the name and type attributes
defined in the html:form tag, it causes this behavior.  As in:


I simply changed that to:



And now the form gets repopulated.  Is this obvious to everyone else, or
does anyone else think struts should be more resilient?  Also, can
someone explain what actually happened in the first one?
Dana

On Tue, 2004-05-04 at 22:15, Barett McGavock wrote:
 

Hi Dana,

If I had only one guess as to the problem, I'd say there was a mismatch
between a JSP tag versus what was defined in struts-config. I've found my
silent errors most often trace back to JSP tags. This could be scope-related
but is more likely the name. The name attribute of the action tag
(struts-config) must match the name attribute of the form-bean tag
(struts-config). The action attribute of the html:form tag (JSP) must match
the path attribute of the action tag (struts-config). If the html:text or
other output elements are Struts tags and inside the form tag, you won't
need to specify the name attribute, just the property attribute. The JSP tag
names are often derided as poorly named.
Basic requirements for keeping an ActionForm contents:
- Must have your ActionForm defined in struts-config.xml
- Action must have this ActionForm associated in struts-config.xml.
- You should work with the ActionForm passed into the action.
- You should have an  tag configured to point to an action with
the form declared. (Don't forget to define the html JSP tag name.)
Beyond that, you might also compare your struts-config, jsp, and action to
some existing samples. I use the feature you mention in every one of my many
Struts modules and it works perfectly for me.
If you could give more concrete examples from the struts-config.xml, JSP,
and action files, we could probably be more helpful. Helpful stuff from
struts-config: your form, action, and action-mappings; from the JSP:
html:form tag and any fields, along with the definitions at the top. The
execute/perform method of your Action.
FYI: To know whether you're redirecting to the form, the form mapping must
have a redirect=true attribute in struts-config.xml.
B

   

-Original Message-
From: Dana Hata [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 6:38 PM
To: Struts Users Mailing List
Subject: Re: struts repopulate bug?

Answers to the questions below...

I spent 10 hours on it so far, so I've tried many things.  
Now I did see the Action errors listed in the JSP.  Either 
Struts is not putting the form bean on the request/session, 
or it's not populating what it did put on the request/session 
with was it found in the submitted form bean.

Dana

On Tue, 2004-05-04 at 21:26, Riyad Kalla wrote:
 

Dana,
Yes Struts should and does do this. It actually does this so well, 
that
for login forms you need to manually clear the beans or else it 
repopulates the values :)

1) Are you syncing up the names/properties of your fields 
   

on your JSP
 

page in the form with the property names of the Form?
.. Java snippet ..
public String getUserName();
public void setUserName(String userName);
... JSP Snippet ...

   

	Yes.  I am following Struts' strict naming conventions.

 

2) Did you implement your reset method cleanly?
   

	Yes.
 

3) Is your validate method straight forward?
if(userName == null || userName.length() == 0)
 // make/add some errors
return actionErrors;
   

	Yes.
 

4) How is your action defined in your struts-config? Did 
   

you specify a
 

scope for the bean? Have you tried NOT specifying the scope?

   

	I have tried both session and request, and neither 
worked, though it shouldn't matter which one you choose, no?

 

I want to reassure you that Struts does this very well and doesn't 
need
you to hack around it, so if this is not working for you, 
   

we just need 
 

to keep trying.

Dana Jeffrey Hata wrote:

   

I'm using Struts with WSAD, and I am attempting something very 
simple, which should happen automagically.  Basically, I 
 

just need to 
 

have the form re-populate after submitting a form which 
 

doesn't pass 
 

the form bean's validate method.  Should happen without 
 

any special 
 

coding from me, as this is supposed to be a feature of 
 

struts.  Well, 
 

it didn't happen for me.  I checked things like form-bean 
 

scope.  By 
 

plugging in some strategically placed System.outs, I realized that 
struts was creating a new formbean object, and populating it, but 
when it came back to my JSP, that was using a different formbean 
object.  Shouldn't it be getting the form bean which (should have 
been) placed in the request/session by the actionservlet?  
 

Well, it 
 

apparently wasn't, because the way I got it to work was simply 
putting the following line at the en

RE: struts repopulate bug?

2004-05-04 Thread Dana Hata
Problem solved.  Apparently, if you have the name and type attributes
defined in the html:form tag, it causes this behavior.  As in:



I simply changed that to:



And now the form gets repopulated.  Is this obvious to everyone else, or
does anyone else think struts should be more resilient?  Also, can
someone explain what actually happened in the first one?

Dana


On Tue, 2004-05-04 at 22:15, Barett McGavock wrote:
> Hi Dana,
> 
> If I had only one guess as to the problem, I'd say there was a mismatch
> between a JSP tag versus what was defined in struts-config. I've found my
> silent errors most often trace back to JSP tags. This could be scope-related
> but is more likely the name. The name attribute of the action tag
> (struts-config) must match the name attribute of the form-bean tag
> (struts-config). The action attribute of the html:form tag (JSP) must match
> the path attribute of the action tag (struts-config). If the html:text or
> other output elements are Struts tags and inside the form tag, you won't
> need to specify the name attribute, just the property attribute. The JSP tag
> names are often derided as poorly named.
> 
> Basic requirements for keeping an ActionForm contents:
> - Must have your ActionForm defined in struts-config.xml
> - Action must have this ActionForm associated in struts-config.xml.
> - You should work with the ActionForm passed into the action.
> - You should have an  tag configured to point to an action with
> the form declared. (Don't forget to define the html JSP tag name.)
> 
> Beyond that, you might also compare your struts-config, jsp, and action to
> some existing samples. I use the feature you mention in every one of my many
> Struts modules and it works perfectly for me.
> 
> If you could give more concrete examples from the struts-config.xml, JSP,
> and action files, we could probably be more helpful. Helpful stuff from
> struts-config: your form, action, and action-mappings; from the JSP:
> html:form tag and any fields, along with the definitions at the top. The
> execute/perform method of your Action.
> 
> FYI: To know whether you're redirecting to the form, the form mapping must
> have a redirect=true attribute in struts-config.xml.
> 
> B
> 
> > -Original Message-
> > From: Dana Hata [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, May 04, 2004 6:38 PM
> > To: Struts Users Mailing List
> > Subject: Re: struts repopulate bug?
> > 
> > 
> > Answers to the questions below...
> > 
> > I spent 10 hours on it so far, so I've tried many things.  
> > Now I did see the Action errors listed in the JSP.  Either 
> > Struts is not putting the form bean on the request/session, 
> > or it's not populating what it did put on the request/session 
> > with was it found in the submitted form bean.
> > 
> > Dana
> > 
> > On Tue, 2004-05-04 at 21:26, Riyad Kalla wrote:
> > > Dana,
> > > Yes Struts should and does do this. It actually does this so well, 
> > > that
> > > for login forms you need to manually clear the beans or else it 
> > > repopulates the values :)
> > > 
> > > 1) Are you syncing up the names/properties of your fields 
> > on your JSP
> > > page in the form with the property names of the Form?
> > > .. Java snippet ..
> > > public String getUserName();
> > > public void setUserName(String userName);
> > > 
> > > ... JSP Snippet ...
> > > 
> > > 
> > Yes.  I am following Struts' strict naming conventions.
> > 
> > > 2) Did you implement your reset method cleanly?
> > Yes.
> > > 
> > > 3) Is your validate method straight forward?
> > > if(userName == null || userName.length() == 0)
> > >   // make/add some errors
> > > return actionErrors;
> > Yes.
> > > 
> > > 4) How is your action defined in your struts-config? Did 
> > you specify a
> > > scope for the bean? Have you tried NOT specifying the scope?
> > > 
> > I have tried both session and request, and neither 
> > worked, though it shouldn't matter which one you choose, no?
> > 
> > > I want to reassure you that Struts does this very well and doesn't 
> > > need
> > > you to hack around it, so if this is not working for you, 
> > we just need 
> > > to keep trying.
> > > 
> > > Dana Jeffrey Hata wrote:
> > > 
> > > >I'm using Struts with WSAD, and I am attempting something very 
> > > >simple, which should happen automagically.  Basically, I 
> > just need to 
> > > >have the form re-populate after submitting a form which 
> > doesn't pass 
> > > >the form bean's validate method.  Should happen without 
> > any special 
> > > >coding from me, as this is supposed to be a feature of 
> > struts.  Well, 
> > > >it didn't happen for me.  I checked things like form-bean 
> > scope.  By 
> > > >plugging in some strategically placed System.outs, I realized that 
> > > >struts was creating a new formbean object, and populating it, but 
> > > >when it came back to my JSP, that was using a different formbean 
> > > >object.  Shouldn't it be getting the form bean which (should have 
> > > >been)

RE: struts repopulate bug?

2004-05-04 Thread Barett McGavock
Hi Dana,

If I had only one guess as to the problem, I'd say there was a mismatch
between a JSP tag versus what was defined in struts-config. I've found my
silent errors most often trace back to JSP tags. This could be scope-related
but is more likely the name. The name attribute of the action tag
(struts-config) must match the name attribute of the form-bean tag
(struts-config). The action attribute of the html:form tag (JSP) must match
the path attribute of the action tag (struts-config). If the html:text or
other output elements are Struts tags and inside the form tag, you won't
need to specify the name attribute, just the property attribute. The JSP tag
names are often derided as poorly named.

Basic requirements for keeping an ActionForm contents:
- Must have your ActionForm defined in struts-config.xml
- Action must have this ActionForm associated in struts-config.xml.
- You should work with the ActionForm passed into the action.
- You should have an  tag configured to point to an action with
the form declared. (Don't forget to define the html JSP tag name.)

Beyond that, you might also compare your struts-config, jsp, and action to
some existing samples. I use the feature you mention in every one of my many
Struts modules and it works perfectly for me.

If you could give more concrete examples from the struts-config.xml, JSP,
and action files, we could probably be more helpful. Helpful stuff from
struts-config: your form, action, and action-mappings; from the JSP:
html:form tag and any fields, along with the definitions at the top. The
execute/perform method of your Action.

FYI: To know whether you're redirecting to the form, the form mapping must
have a redirect=true attribute in struts-config.xml.

B

> -Original Message-
> From: Dana Hata [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 04, 2004 6:38 PM
> To: Struts Users Mailing List
> Subject: Re: struts repopulate bug?
> 
> 
> Answers to the questions below...
> 
> I spent 10 hours on it so far, so I've tried many things.  
> Now I did see the Action errors listed in the JSP.  Either 
> Struts is not putting the form bean on the request/session, 
> or it's not populating what it did put on the request/session 
> with was it found in the submitted form bean.
> 
> Dana
> 
> On Tue, 2004-05-04 at 21:26, Riyad Kalla wrote:
> > Dana,
> > Yes Struts should and does do this. It actually does this so well, 
> > that
> > for login forms you need to manually clear the beans or else it 
> > repopulates the values :)
> > 
> > 1) Are you syncing up the names/properties of your fields 
> on your JSP
> > page in the form with the property names of the Form?
> > .. Java snippet ..
> > public String getUserName();
> > public void setUserName(String userName);
> > 
> > ... JSP Snippet ...
> > 
> > 
>   Yes.  I am following Struts' strict naming conventions.
> 
> > 2) Did you implement your reset method cleanly?
>   Yes.
> > 
> > 3) Is your validate method straight forward?
> > if(userName == null || userName.length() == 0)
> >   // make/add some errors
> > return actionErrors;
>   Yes.
> > 
> > 4) How is your action defined in your struts-config? Did 
> you specify a
> > scope for the bean? Have you tried NOT specifying the scope?
> > 
>   I have tried both session and request, and neither 
> worked, though it shouldn't matter which one you choose, no?
> 
> > I want to reassure you that Struts does this very well and doesn't 
> > need
> > you to hack around it, so if this is not working for you, 
> we just need 
> > to keep trying.
> > 
> > Dana Jeffrey Hata wrote:
> > 
> > >I'm using Struts with WSAD, and I am attempting something very 
> > >simple, which should happen automagically.  Basically, I 
> just need to 
> > >have the form re-populate after submitting a form which 
> doesn't pass 
> > >the form bean's validate method.  Should happen without 
> any special 
> > >coding from me, as this is supposed to be a feature of 
> struts.  Well, 
> > >it didn't happen for me.  I checked things like form-bean 
> scope.  By 
> > >plugging in some strategically placed System.outs, I realized that 
> > >struts was creating a new formbean object, and populating it, but 
> > >when it came back to my JSP, that was using a different formbean 
> > >object.  Shouldn't it be getting the form bean which (should have 
> > >been) placed in the request/session by the actionservlet?  
> Well, it 
> > >apparently wasn't, because the way I got it to work was simply 
> > >putting the following line at the end of my formbean validate():
> > >
> > >request.setAttribute(,this);
> > >
> > >This made everhything work, so my question is, why the hell didn't 
> > >struts do this?  Isn't it supposed to?  Is there anything I could 
> > >have done to make struts not do this, or maybe place a 
> different form 
> > >bean instance on the request?  It works now, but I don't 
> like hacks.
> > >
> > >Thanks in advance,
> > >
> > >Dana
> > >
> > 
> >---

Re: struts repopulate bug?

2004-05-04 Thread Riyad Kalla
Dana Hata wrote:

Answers to the questions below...

I spent 10 hours on it so far, so I've tried many things.  Now I did see
 

Good god, I can understand your frustration now... I don't know why it 
is not doing this for you. Have you tried setting a breakpoint in your 
reset method and seeing when it is getting called? Are you using a 
stable build of Struts? What app server are you deploying too?

the Action errors listed in the JSP.  Either Struts is not putting the
form bean on the request/session, or it's not populating what it did put
on the request/session with was it found in the submitted form bean.
 

Good that your errors are being displayed, and no I don't think the 
scope of the form should matter, jsut for sanity sake remove the 'scope' 
attribute from your action in your struts-config. If you can narrow this 
down to a small test case: 1 jsp, 1 form, 1 action, 1 struts-config, you 
can post them here for us to look at.

Best,
Riyad
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: struts repopulate bug?

2004-05-04 Thread Dana Hata
Answers to the questions below...

I spent 10 hours on it so far, so I've tried many things.  Now I did see
the Action errors listed in the JSP.  Either Struts is not putting the
form bean on the request/session, or it's not populating what it did put
on the request/session with was it found in the submitted form bean.

Dana

On Tue, 2004-05-04 at 21:26, Riyad Kalla wrote:
> Dana,
> Yes Struts should and does do this. It actually does this so well, that 
> for login forms you need to manually clear the beans or else it 
> repopulates the values :)
> 
> 1) Are you syncing up the names/properties of your fields on your JSP 
> page in the form with the property names of the Form?
> .. Java snippet ..
> public String getUserName();
> public void setUserName(String userName);
> 
> ... JSP Snippet ...
> 
> 
Yes.  I am following Struts' strict naming conventions.

> 2) Did you implement your reset method cleanly?
Yes.
> 
> 3) Is your validate method straight forward?
> if(userName == null || userName.length() == 0)
>   // make/add some errors
> return actionErrors;
Yes.
> 
> 4) How is your action defined in your struts-config? Did you specify a 
> scope for the bean? Have you tried NOT specifying the scope?
> 
I have tried both session and request, and neither worked, though it
shouldn't matter which one you choose, no?

> I want to reassure you that Struts does this very well and doesn't need 
> you to hack around it, so if this is not working for you, we just need 
> to keep trying.
> 
> Dana Jeffrey Hata wrote:
> 
> >I'm using Struts with WSAD, and I am attempting something very simple, which should 
> >happen automagically.  Basically, I just need to have the form re-populate after 
> >submitting a form which doesn't pass the form bean's validate method.  Should 
> >happen without any special coding from me, as this is supposed to be a feature of 
> >struts.  Well, it didn't happen for me.  I checked things like form-bean scope.  By 
> >plugging in some strategically placed System.outs, I realized that struts was 
> >creating a new formbean object, and populating it, but when it came back to my JSP, 
> >that was using a different formbean object.  Shouldn't it be getting the form bean 
> >which (should have been) placed in the request/session by the actionservlet?  Well, 
> >it apparently wasn't, because the way I got it to work was simply putting the 
> >following line at the end of my formbean validate():
> >
> >request.setAttribute(,this);
> >
> >This made everhything work, so my question is, why the hell didn't struts do this?  
> >Isn't it supposed to?  Is there anything I could have done to make struts not do 
> >this, or maybe place a different form bean instance on the request?  It works now, 
> >but I don't like hacks.
> >
> >Thanks in advance,
> >
> >Dana 
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts-scaffold and commons-scaffold

2004-05-04 Thread Peter Martin
I have seen the 2 scaffolds referenced in the Struts book "Struts in
Action", but they are in the Jakarta sandbox.  Are these products usable?
If so, where would I find the current jar files and current source files?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts repopulate bug?

2004-05-04 Thread Riyad Kalla
Dana,
Yes Struts should and does do this. It actually does this so well, that 
for login forms you need to manually clear the beans or else it 
repopulates the values :)

1) Are you syncing up the names/properties of your fields on your JSP 
page in the form with the property names of the Form?
.. Java snippet ..
public String getUserName();
public void setUserName(String userName);

... JSP Snippet ...

2) Did you implement your reset method cleanly?

3) Is your validate method straight forward?
if(userName == null || userName.length() == 0)
 // make/add some errors
return actionErrors;
4) How is your action defined in your struts-config? Did you specify a 
scope for the bean? Have you tried NOT specifying the scope?

I want to reassure you that Struts does this very well and doesn't need 
you to hack around it, so if this is not working for you, we just need 
to keep trying.

Dana Jeffrey Hata wrote:

I'm using Struts with WSAD, and I am attempting something very simple, which should happen automagically.  Basically, I just need to have the form re-populate after submitting a form which doesn't pass the form bean's validate method.  Should happen without any special coding from me, as this is supposed to be a feature of struts.  Well, it didn't happen for me.  I checked things like form-bean scope.  By plugging in some strategically placed System.outs, I realized that struts was creating a new formbean object, and populating it, but when it came back to my JSP, that was using a different formbean object.  Shouldn't it be getting the form bean which (should have been) placed in the request/session by the actionservlet?  Well, it apparently wasn't, because the way I got it to work was simply putting the following line at the end of my formbean validate():

request.setAttribute(,this);

This made everhything work, so my question is, why the hell didn't struts do this?  Isn't it supposed to?  Is there anything I could have done to make struts not do this, or maybe place a different form bean instance on the request?  It works now, but I don't like hacks.

Thanks in advance,

Dana 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: struts repopulate bug?

2004-05-04 Thread Dana Hata
I keep coming across that as I google around for this.  The simple
answer is, I don't know.  All I know is that I am setting the 'input'
parameter for the action to the path to my JSP. I hope that answers your
question.  If not, how do I find out?

Dana

On Tue, 2004-05-04 at 21:26, Barett McGavock wrote:
> Are you redirecting to the JSP?
> 
> B
> 
> > -Original Message-
> > From: Dana Jeffrey Hata [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, May 04, 2004 5:36 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts repopulate bug?
> > 
> > 
> > I'm using Struts with WSAD, and I am attempting something 
> > very simple, which should happen automagically.  Basically, I 
> > just need to have the form re-populate after submitting a 
> > form which doesn't pass the form bean's validate method.  
> > Should happen without any special coding from me, as this is 
> > supposed to be a feature of struts.  Well, it didn't happen 
> > for me.  I checked things like form-bean scope.  By plugging 
> > in some strategically placed System.outs, I realized that 
> > struts was creating a new formbean object, and populating it, 
> > but when it came back to my JSP, that was using a different 
> > formbean object.  Shouldn't it be getting the form bean which 
> > (should have been) placed in the request/session by the 
> > actionservlet?  Well, it apparently wasn't, because the way I 
> > got it to work was simply putting the following line at the 
> > end of my formbean validate():
> > 
> > request.setAttribute(,this);
> > 
> > This made everhything work, so my question is, why the hell 
> > didn't struts do this?  Isn't it supposed to?  Is there 
> > anything I could have done to make struts not do this, or 
> > maybe place a different form bean instance on the request?  
> > It works now, but I don't like hacks.
> > 
> > Thanks in advance,
> > Dana 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts repopulate bug?

2004-05-04 Thread Barett McGavock
Are you redirecting to the JSP?

B

> -Original Message-
> From: Dana Jeffrey Hata [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 04, 2004 5:36 PM
> To: [EMAIL PROTECTED]
> Subject: struts repopulate bug?
> 
> 
> I'm using Struts with WSAD, and I am attempting something 
> very simple, which should happen automagically.  Basically, I 
> just need to have the form re-populate after submitting a 
> form which doesn't pass the form bean's validate method.  
> Should happen without any special coding from me, as this is 
> supposed to be a feature of struts.  Well, it didn't happen 
> for me.  I checked things like form-bean scope.  By plugging 
> in some strategically placed System.outs, I realized that 
> struts was creating a new formbean object, and populating it, 
> but when it came back to my JSP, that was using a different 
> formbean object.  Shouldn't it be getting the form bean which 
> (should have been) placed in the request/session by the 
> actionservlet?  Well, it apparently wasn't, because the way I 
> got it to work was simply putting the following line at the 
> end of my formbean validate():
> 
> request.setAttribute(,this);
> 
> This made everhything work, so my question is, why the hell 
> didn't struts do this?  Isn't it supposed to?  Is there 
> anything I could have done to make struts not do this, or 
> maybe place a different form bean instance on the request?  
> It works now, but I don't like hacks.
> 
> Thanks in advance,
> Dana 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help needed with application flow and reset button!!

2004-05-04 Thread Brian Boyle
Hey!

I need some advice on how to do the following:
I have a page where I input a number of values and hit submit. These values 
are then stored in a Map-backed ActionForm. Then my Action class forwards me 
on to the next page. The next page is a simple JSP that lets me review what 
I have just entered in the previous page. If I am happy with my input I can 
click Ok and the data is submitted to the database.
However, if I want to change my input I want to have a button that I can 
click so that I can return to the previous page and input new data. When I 
return to the new page I want all the fields to be cleared so I need the 
ActionForm to be Reset.
Does anyone know how I should approach this? I know I'll need an Action 
class for my last page but will I need an ActionForm?
Is there a tag that will reset my ActionForm and return me to the previous 
page similtaniously?

I'd appreciate any help or suggestions for this.

Thanks

Brian

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


struts repopulate bug?

2004-05-04 Thread Dana Jeffrey Hata
I'm using Struts with WSAD, and I am attempting something very simple, which should 
happen automagically.  Basically, I just need to have the form re-populate after 
submitting a form which doesn't pass the form bean's validate method.  Should happen 
without any special coding from me, as this is supposed to be a feature of struts.  
Well, it didn't happen for me.  I checked things like form-bean scope.  By plugging in 
some strategically placed System.outs, I realized that struts was creating a new 
formbean object, and populating it, but when it came back to my JSP, that was using a 
different formbean object.  Shouldn't it be getting the form bean which (should have 
been) placed in the request/session by the actionservlet?  Well, it apparently wasn't, 
because the way I got it to work was simply putting the following line at the end of 
my formbean validate():

request.setAttribute(,this);

This made everhything work, so my question is, why the hell didn't struts do this?  
Isn't it supposed to?  Is there anything I could have done to make struts not do this, 
or maybe place a different form bean instance on the request?  It works now, but I 
don't like hacks.

Thanks in advance,

Dana 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: button as link

2004-05-04 Thread Samuel Rochas
Hi Hubert,

Hubert Rabago wrote:

You can use an empty dyna form:
Great, that is doing the job.

I was afraid I needed to create the corresponding class too, but
since the declaration is needed only in the struts-config.xml, that's fine.
Thanks a lot.
Samuel
---  andinasoft SA - Software y Consulting  ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18  Cel. +593 9 946 4046
-  http://www.andinasoft.com  -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: button as link

2004-05-04 Thread Pedro Salgado
On 04/05/04 22:34, "Samuel Rochas" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I would like to use a button as a link.
> 
> I used to solve that, before struts, with a form containing only a button.
> 
> With struts, it seems I have to declare a form object in the
> struts-config.xml, create a class for that empty form, etc.
> 
> Is there a simple way to solve that?
> 

  What about a button with an onclick Javascript event that redirects you to
the desired Struts action passing any parameters by building the url?

Pedro Salgado


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: button as link

2004-05-04 Thread Riyad Kalla
Sam,
I do the same thing you are, and do what Hubert has suggested. It works 
nicely. I always define atleast one throw-away dynaform to use for these 
purposes, then you can use the form as a link, no problem.

On Tuesday 04 May 2004 02:37 pm, Hubert Rabago wrote:
> You can use an empty dyna form:
>
> 
>  type="org.apache.struts.action.DynaActionForm"/> 
>
> --- Samuel Rochas <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I would like to use a button as a link.
> >
> > I used to solve that, before struts, with a form containing only a
> > button.
> >
> > With struts, it seems I have to declare a form object in the
> > struts-config.xml, create a class for that empty form, etc.
> >
> > Is there a simple way to solve that?
> >
> > Sincerly
> > Samuel Rochas
> >
> > ---  andinasoft SA - Software y Consulting  ---
> > Mariano Aguilera 276 y Almagro - Quito, Ecuador
> > Tel. +593 2 290 55 18  Cel. +593 9 946 4046
> > -  http://www.andinasoft.com  -
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> __
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: button as link

2004-05-04 Thread Hubert Rabago
You can use an empty dyna form:






--- Samuel Rochas <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I would like to use a button as a link.
> 
> I used to solve that, before struts, with a form containing only a button.
> 
> With struts, it seems I have to declare a form object in the 
> struts-config.xml, create a class for that empty form, etc.
> 
> Is there a simple way to solve that?
> 
> Sincerly
> Samuel Rochas
> 
> ---  andinasoft SA - Software y Consulting  ---
> Mariano Aguilera 276 y Almagro - Quito, Ecuador
> Tel. +593 2 290 55 18  Cel. +593 9 946 4046
> -  http://www.andinasoft.com  -
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



button as link

2004-05-04 Thread Samuel Rochas
Hello,

I would like to use a button as a link.

I used to solve that, before struts, with a form containing only a button.

With struts, it seems I have to declare a form object in the 
struts-config.xml, create a class for that empty form, etc.

Is there a simple way to solve that?

Sincerly
Samuel Rochas
---  andinasoft SA - Software y Consulting  ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18  Cel. +593 9 946 4046
-  http://www.andinasoft.com  -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Manual reload struts-config.xml

2004-05-04 Thread Joe Germuska
How do I reload struts configuration file manualy without context restart?
Search the mailing list archives; this is a popular request which is 
not currently supported.  The lists will discuss some of the reasons 
why not.

If you can see a way clear to support it and want to write some code, 
I'm sure a lot of people would consider you a hero.

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Manual reload struts-config.xml

2004-05-04 Thread Marcelo Epstein
Hi,

How do I reload struts configuration file manualy without context restart?

Thanks in advance,
Marcelo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: looping question

2004-05-04 Thread Frank Maritato
Thanks!!

Robert Taylor wrote:
Close...





robert



-Original Message-
From: Frank Maritato [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: looping question
Is there a way to loop over a counter (not over a collection) in either 
struts or jstl? Looked like logic:iterate and c:forEach both require a 
collection.

Something like this:



I really don't want to create a collection of Integer objects to get 
around this...any ideas?
--
Frank Maritato

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Frank Maritato
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Strange Validation Behavior (SOLVED)

2004-05-04 Thread Nicholas L Mohler





Hubert,

Thanks for getting back to me.  We ended up finding the problem about an
hour ago.

It turns out that a developer had mistakenly added [inputForward="true"] to
the  section of the struts-config file.

The effect of that change is that the value for input tags are assumed to
be forwards.  When we removed the code the problem went away, so life is
good  :-)

Nick




|-+>
| |   Hubert Rabago|
| |   <[EMAIL PROTECTED]|
| |   o.com>   |
| ||
| |   05/04/2004 12:48 |
| |   PM   |
| |   Please respond to|
| |   "Struts Users|
| |   Mailing List"|
| ||
|-+>
  
>--|
  |
  |
  |   To:   Struts Users Mailing List <[EMAIL PROTECTED]>  
 |
  |   cc:  
  |
  |   Subject:  Re: Strange Validation Behavior
  |
  
>--|




Send your mappings so that others can "trace" the path along with you, and
maybe spot a problem.

--- Nicholas L Mohler <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> We are having a problem that occurs when a property fails a server-side
> validation.  The problem is that the value that we specify for the
"input"
> tag is not correctly resolved and we end up with a blank page being
> returned, as opposed to the page that originated the error with the
> appropriate errors highlighted.
>
> For our input tag, we specify another mapping that handles the things
that
> need to happen before we can return to an editting page.  Please don't
ask
> why we do it that way :-)  When I follow the code, we end up in the
> RequestProcessor.processValidate method.  When there are properties that
> fail validation and an input tag is specified, the input value is used to
> find a forward.  Because the input value points to another mapping, a
> forward is not found, and at that point, struts really has no where to
go,
> so we get the blank page.
>
> I have tested that I can create a "failed" forward, and then set the path
> to the same value as I had previously specified in the input tag, but
this
> does not seem right.  I have seen examples where the input points to a
.jsp
> file.  I think that is similar to what we are doingso I am at a loss.
>
> Does anybody have any thoughts?
> Nick
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Moving from bean:write to fmt:formatNumber

2004-05-04 Thread Kris Schneider
Actually, your "application resources" *are* bundles. In other words, you can
use the same property file(s) for Struts and JSTL tags. One thing you can do
for a default JSTL bundle is add the following to web.xml:


  javax.servlet.jsp.jstl.fmt.localizationContext
  Messages


It's sort of the equivalent of the  element in
struts-config.xml:



But, yes, it can get a bit hairy trying to make the two play nicely sometimes
because they really are independent entities.

Quoting Earl Woodman <[EMAIL PROTECTED]>:

> Thanks for your response Kris.
> 
> This seems a bit hairy... when I use bean:write, the key comes from my
> application resources file nicely, but with this fmt, I have to use a bundle
> of some sort. Why is this more complicated than the bean:writes? 
>  
> Earl
> 
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 04, 2004 3:34 PM
> To: Struts Users Mailing List
> Subject: Re: Moving from bean:write to fmt:formatNumber
> 
> There are (at least) a couple options. One would be to create a property
> like:
> 
> numberFormat={0,number,#.##}
> 
> And then use :
> 
> 
>   
> 
> 
> Another would be to leverage the fact that the pattern attribute of
>  accepts an EL expression. So, you'd load the pattern and
> then do:
> 
> 
> 
> There are all kinds of ways you could load the pattern, but one would be:
> 
> 
> 
> Quoting Earl Woodman <[EMAIL PROTECTED]>:
> 
> > Hi,
> > 
> > I'm trying to move from bean:writes to fmt:formatNumber in my 
> > application, but I'm finding that in order to format a number, I can't 
> > get a formatting pattern from my application resources file - there 
> > doesn't seem to be a key parameter in the fmt:formatNumber tag. Has 
> > anyone run into this problem in the past and what have you done about it?
> > 
> > Thanks a lot,
> > Earl
> >  
> >  
> > 
> > Earl Woodman
> > Software Developer
> > Verafin Inc
> > [EMAIL PROTECTED]
> 
> --
> Kris Schneider 
> D.O.Tech   

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Moving from bean:write to fmt:formatNumber

2004-05-04 Thread Earl Woodman
Thanks for your response Kris.

This seems a bit hairy... when I use bean:write, the key comes from my
application resources file nicely, but with this fmt, I have to use a bundle
of some sort. Why is this more complicated than the bean:writes? 
 
Earl

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 3:34 PM
To: Struts Users Mailing List
Subject: Re: Moving from bean:write to fmt:formatNumber

There are (at least) a couple options. One would be to create a property
like:

numberFormat={0,number,#.##}

And then use :


  


Another would be to leverage the fact that the pattern attribute of
 accepts an EL expression. So, you'd load the pattern and
then do:



There are all kinds of ways you could load the pattern, but one would be:



Quoting Earl Woodman <[EMAIL PROTECTED]>:

> Hi,
> 
> I'm trying to move from bean:writes to fmt:formatNumber in my 
> application, but I'm finding that in order to format a number, I can't 
> get a formatting pattern from my application resources file - there 
> doesn't seem to be a key parameter in the fmt:formatNumber tag. Has 
> anyone run into this problem in the past and what have you done about it?
> 
> Thanks a lot,
> Earl
>  
>  
> 
> Earl Woodman
> Software Developer
> Verafin Inc
> [EMAIL PROTECTED]

--
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: looping question

2004-05-04 Thread Amleto Di Salle
you can solve the problem in two ways:

1)




2)




BR
/Amleto

-Messaggio originale-
Da: Frank Maritato [mailto:[EMAIL PROTECTED] 
Inviato: martedì 4 maggio 2004 19.55
A: [EMAIL PROTECTED]
Oggetto: looping question


Is there a way to loop over a counter (not over a collection) in either 
struts or jstl? Looked like logic:iterate and c:forEach both require a 
collection.

Something like this:




I really don't want to create a collection of Integer objects to get 
around this...any ideas?
-- 
Frank Maritato

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Moving from bean:write to fmt:formatNumber

2004-05-04 Thread Kris Schneider
There are (at least) a couple options. One would be to create a property like:

numberFormat={0,number,#.##}

And then use :


  


Another would be to leverage the fact that the pattern attribute of
 accepts an EL expression. So, you'd load the pattern and
then do:



There are all kinds of ways you could load the pattern, but one would be:



Quoting Earl Woodman <[EMAIL PROTECTED]>:

> Hi,
> 
> I'm trying to move from bean:writes to fmt:formatNumber in my application,
> but I'm finding that in order to format a number, I can't get a formatting
> pattern from my application resources file - there doesn't seem to be a key
> parameter in the fmt:formatNumber tag. Has anyone run into this problem in
> the past and what have you done about it?
> 
> Thanks a lot,
> Earl
>  
>  
> 
> Earl Woodman
> Software Developer
> Verafin Inc
> [EMAIL PROTECTED]

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: looping question

2004-05-04 Thread Robert Taylor
Close...





robert


> -Original Message-
> From: Frank Maritato [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 1:55 PM
> To: [EMAIL PROTECTED]
> Subject: looping question
> 
> 
> Is there a way to loop over a counter (not over a collection) in either 
> struts or jstl? Looked like logic:iterate and c:forEach both require a 
> collection.
> 
> Something like this:
> 
> 
> 
> 
> I really don't want to create a collection of Integer objects to get 
> around this...any ideas?
> -- 
> Frank Maritato
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



looping question

2004-05-04 Thread Frank Maritato
Is there a way to loop over a counter (not over a collection) in either 
struts or jstl? Looked like logic:iterate and c:forEach both require a 
collection.

Something like this:



I really don't want to create a collection of Integer objects to get 
around this...any ideas?
--
Frank Maritato

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Moving from bean:write to fmt:formatNumber

2004-05-04 Thread Earl Woodman
Hi,

I'm trying to move from bean:writes to fmt:formatNumber in my application,
but I'm finding that in order to format a number, I can't get a formatting
pattern from my application resources file - there doesn't seem to be a key
parameter in the fmt:formatNumber tag. Has anyone run into this problem in
the past and what have you done about it?

Thanks a lot,
Earl
 
 

Earl Woodman
Software Developer
Verafin Inc
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FAQ via ezmlm - not available

2004-05-04 Thread Martin Cooper
I'm not sure there ever was a FAQ available via ezmlm...

--
Martin Cooper


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hola!

After subscribing the confirmation message offers:
> Send mail to the following for info and FAQ for this list:
> [EMAIL PROTECTED]

I tried that and got an email telling me:

> FAQ - Frequently asked questions of the [EMAIL PROTECTED] list.
> None available yet.

Maybe got lost when switching from [EMAIL PROTECTED]

Maybe someone with enough mojo can take a look at it.

regards
Nils



This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using the Monkey Tree as a Menu with Tiles

2004-05-04 Thread Hudson, Erik
I'm fairly new to Struts and Tiles and would appreciate any advice on this
topic.  I'm creating a Struts/Tiles app with the standard header, footer,
menu on left and main body on the right layout.  Each of my menu choices
will have submenus.

Currently, I'm using the menu definition that comes with Struts, but I would
like to use something like the Keyboard Monkey dynamic tree example.  I've
run through the KM tutorial and got that to work.  I'm a little confused
about translating that example to a dynamic menu.  The recurse action that
is called in the KM example forwards back to the input forward defined in
the struts-config.  When using the tree for the menu, the recurse action may
be called from any page in the app (since the menu is on all pages of the
app).  Is there a way to dynamicly determine the previous page in the
Recurse action so you know where to forward back to?

I've seen some references to a struts-menu library, but I need to use what's
available in the struts 1.1 distribution.  Is there another/better way to
accomplish the menu tree effect I'm looking for?

Thanks,

Erik


RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Chaikin, Yaakov Y (US SSA)
Complete link to what? The " http://...?jsp_precompile=true"; was
just an example to point out jsp_precompile instead of jsp_recompile.

If you are talking about the JBoss forum links, here they are again. If
this doesn't work as a link, just copy and paste it into your browser.

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=48970

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=44455

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

> -Original Message-
> From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 1:18 PM
> To: Struts Users Mailing List
> Subject: RE: [OT]JSP Precompile in JBOSS
> 
> can you post the complete link...look like link not working.
> 
> -Ramadoss
> 
> 
> -Original Message-
> From: Chaikin, Yaakov Y (US SSA)
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 12:05 PM
> To: Struts Users Mailing List
> Subject: RE: [OT]JSP Precompile in JBOSS
> 
> 
> It's http://...?jsp_precompile=true
> 
> HTH.
> 
> Yaakov Chaikin
> Software Engineer
> BAE SYSTEMS
> 301-838-6899 (ph)
> 301-838-6802 (fax)
> 
> 
> > -Original Message-
> > From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 04, 2004 12:00 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: [OT]JSP Precompile in JBOSS
> >
> > I've done this in the past using wget to try and retrieve each page
> with the
> > special jsp_recompile (or something - see the JSP spec) argument.
> >
> > The problem I found with JBOSS-Tomcat is that JBOSS would remove all
> the
> > compiled jsps on shutdown. If this is the root of your problem (it
was
> with
> > me) then you can turn this beahviour off by adding
> >
> > false
> >
> > to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
> this
> > before 
> >
> > HTH
> >
> > Paul
> >
> > > -Original Message-
> > > From: Ramadoss Chinnakuzhandai
> [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, May 04, 2004 4:47 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [OT]JSP Precompile in JBOSS
> > >
> > >
> > > Hi,
> > > Is there anyway I can configure JSP precompile in
> > > JBOSS startup? if so can you help me how to configure the same.
> > >
> > > Any help would be appreciated.
> > >
> > > Thank you in advance,
> > >
> > > Warm Regards,
> > > Ramadoss
> > >
> > >
> > >
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts - How to Download a File

2004-05-04 Thread Martin Cooper
Just set the appropriate HTTP response headers, write the content to the
servlet output stream, and then return 'null' from your Struts Action.

--
Martin Cooper


"Singh_bibek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
We wish to provide a link to the user, clicking on which user can download
the file(jpg,gif,mpg,wav,tiff) to his/her local disk.

The user should be therefore prompted for the path where the file is to be
saved.

Can anyone guide me as to how to achieve the same using Struts.

Thanks,

Regards,
Bibek




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Ramadoss Chinnakuzhandai
can you post the complete link...look like link not working.

-Ramadoss


-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 12:05 PM
To: Struts Users Mailing List
Subject: RE: [OT]JSP Precompile in JBOSS


It's http://...?jsp_precompile=true

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 12:00 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT]JSP Precompile in JBOSS
> 
> I've done this in the past using wget to try and retrieve each page
with the
> special jsp_recompile (or something - see the JSP spec) argument.
> 
> The problem I found with JBOSS-Tomcat is that JBOSS would remove all
the
> compiled jsps on shutdown. If this is the root of your problem (it was
with
> me) then you can turn this beahviour off by adding
> 
> false
> 
> to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
this
> before 
> 
> HTH
> 
> Paul
> 
> > -Original Message-
> > From: Ramadoss Chinnakuzhandai
[mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 04, 2004 4:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OT]JSP Precompile in JBOSS
> >
> >
> > Hi,
> > Is there anyway I can configure JSP precompile in
> > JBOSS startup? if so can you help me how to configure the same.
> >
> > Any help would be appreciated.
> >
> > Thank you in advance,
> >
> > Warm Regards,
> > Ramadoss
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts file upload strange error

2004-05-04 Thread Martin Cooper

"John Moore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 01:13 04/05/2004, Bryan Hunt wrote:
>
> >Dude, send me your address and I will fed-ex you a cold beer
> >!!
> >I should have thought of that before. Thanks for your help  I've
> >just wasted 24 hours
> >on this If I was running linux I could have ran a packet capture but
> >am on crappy
> >win 2000 box.
>
> Get yourself a copy of Network Spy
> (http://sumitbirla.com/network-spy/netspy.php), which is a very useful
> packet capture tool for Windows.

On Windows 2000, you have Network Monitor built in, so you don't actually
need any additional software...

--
Martin Cooper


>
> John
>
>
>
>
>
> =
> John Moore -Norwich, UK-[EMAIL PROTECTED]
> =
>






>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004
>
>






> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Ramadoss Chinnakuzhandai
Chaikin,Paul
thanks a lot for your information..I will look into that.

-Ramadoss


-Original Message-
From: Chaikin, Yaakov Y (US SSA)
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 12:05 PM
To: Struts Users Mailing List
Subject: RE: [OT]JSP Precompile in JBOSS


It's http://...?jsp_precompile=true

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 12:00 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT]JSP Precompile in JBOSS
> 
> I've done this in the past using wget to try and retrieve each page
with the
> special jsp_recompile (or something - see the JSP spec) argument.
> 
> The problem I found with JBOSS-Tomcat is that JBOSS would remove all
the
> compiled jsps on shutdown. If this is the root of your problem (it was
with
> me) then you can turn this beahviour off by adding
> 
> false
> 
> to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
this
> before 
> 
> HTH
> 
> Paul
> 
> > -Original Message-
> > From: Ramadoss Chinnakuzhandai
[mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 04, 2004 4:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OT]JSP Precompile in JBOSS
> >
> >
> > Hi,
> > Is there anyway I can configure JSP precompile in
> > JBOSS startup? if so can you help me how to configure the same.
> >
> > Any help would be appreciated.
> >
> > Thank you in advance,
> >
> > Warm Regards,
> > Ramadoss
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE:

2004-05-04 Thread balu raman
Thanks Mark. I guess I have too many (out of date) books on Struts, 4 of
them.Now, onto JSTL
Regards,
balu
On Tue, 2004-05-04 at 00:14, Mark Mandel wrote:
> Balu - 
> 
> Use the JSTL  tag - it's a faster and better tag.
> 
> Generally use the JSTL tags over the Struts tags where applicable.
> 
> Regards,
> 
> Mark
> 
> -Original Message-
> From: balu raman [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 4 May 2004 5:56 AM
> To: Struts Users Mailing List
> Subject: 
> 
> Hello,
> Can someone suggest some pointers to some reading materials that gives a 
> lot of good examples of iterate-tag, for a very dense struts newbie ?
> balu raman
> everest systems
> East Marredpally
> Secunderabad
> India
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation - can i use multiple properties ?

2004-05-04 Thread johannes Schwarz
Hello,

with struts-config.xml i define:




Than I can write the following code in a jsp-File:

 (i see the Field1-value from the XXX-File)
 (I see the Field1-value
from the YYY-File)


now I am using a form with validation.xml.
Some fields are required and the shown error is:

...

...

On Submit I see the Field1.error-value from the XXX-File.
I would like to see the error-value from the YYY-File. Is this possible?


Thanks
Johannes



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANNONCE] XMLStubs 1.0.1 released

2004-05-04 Thread Nicolas De Loof

Hello guys,

I've released the first plublic version (1.0.1) of a simple tool : XMLStubs.

It allows you to replace an API defined by interfaces by an emulated one declared in 
XML files. Jexl language (same as
JSP EL) is used to add conditional behaviour.

For example, if you need some implementation of IObject :

public interface IObject
{
int getIntValue(String name);
}

You can define a stub for this interface like this :




4


12






It can return simple types, other stubs from interfaces, collections, 
maps, javabeans (using default
constructor + setters) and result from static method calls (usefull for ValuedEnum)

I use it on my apps to build and make demos of the webapp while business tier is still 
in dev.

It comes with simple support for Springframework, junit, dbunit and StrutsTestCase : 
when you run a test, it loads an
XML file with same name as the test class to get stubs you can use in your test.

http://azote.sourceforge.net/xmlstubs.html


Nico.




Our name has changed, please update your address book to the following format for the 
latest identities received "[EMAIL PROTECTED]".

This message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it is 
addressed. If you are not the intended recipient,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Map backed form with list of String Arrays

2004-05-04 Thread Richard Mixon (qwest)
I am having a problem with a map-backed form and html:select with multiple="true".  
Would appreciate any help/ideas.

I need to display a set of "html:select" lists. The number of lists is user-defined 
(based on database data) and each select list
must allow more than one choice to be selected.

I settled on using a map property in the form bean as the manual suggests. Everything 
works great on initial display, furthermore I
am selecting all values which will be the normal use case for the user.

However, upon return, only a single value is passed in. Should I be using the "value" 
attribute on the html:select tag? I cannot
seem to figure out how to make it work as an array.

Here are the relevant struts/JSTL tags.



  
  

  



Here is a code snipped I use to inspect the map as it comes in (afer having been 
successfully sent out and displayed with all values
selected):

Set keySet = map.keySet();
Iterator ik = keySet.iterator();
while (ik.hasNext()) {
Object key = (String)ik.next();
log.debug("showMap - mapKey='"+key.toString()+"'");
Object value = map.get(key);
if ( value instanceof String[] ) {
String[] valArray = (String[]) value;
for (int i=0;i

RE: JSP help - reply

2004-05-04 Thread Kathy Zhou
You can use a CSS class to control "look and feel" in select box.

-Original Message-
From:   Santhosh P [SMTP:[EMAIL PROTECTED]
Sent:   Tuesday, May 04, 2004 2:32 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject:JSP help

Hi,

I have a select box in jsp page having data loaded as collection and is
working well.
My problem is the display text content "datalist" is too large and i want
the display limited
content in select box for good look and feel of the display page.
I have set a size="10" for select tag.
But still the select box is streched to include the full text content.
Why here the size attrribute not working here but works well for

Any one help me

Cheers
San Pedro

   
   
  
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 12:44 AM
Subject: [struts] Digest Number 3851


> There are 25 messages in this issue.
>
> Topics in this digest:
>
>   1. Validator execution-order, all at once possible?
>From: [EMAIL PROTECTED]
>   2. Re: Setting html:text readonly attribute
>From: Jason Miller <[EMAIL PROTECTED]>
>   3. RE: Setting html:text readonly attribute
>From: Paul McCulloch <[EMAIL PROTECTED]>
>   4. Re: How to use resource bundle in attributes
>From: Nathan Maves <[EMAIL PROTECTED]>
>   5. RE: Setting html:text readonly attribute
>From: John Moore <[EMAIL PROTECTED]>
>   6. Re: How to use resource bundle in attributes
>From: Ralf Schneider <[EMAIL PROTECTED]>
>   7. RE: forwarding to a pop-up window
>From: "Ricardo Cortes" <[EMAIL PROTECTED]>
>   8. Re: trouble with taglibs in xml syntax
>From: Tomasz Dre?ler <[EMAIL PROTECTED]>
>   9. Re: How to use resource bundle in attributes
>From: bOOyah <[EMAIL PROTECTED]>
>  10. Re: How to use resource bundle in attributes
>From: Nathan Maves <[EMAIL PROTECTED]>
>  11. Re: trouble with taglibs in xml syntax
>From: Kris Schneider <[EMAIL PROTECTED]>
>  12. Re: How to use resource bundle in attributes
>From: Ralf Schneider <[EMAIL PROTECTED]>
>  13. Re: How to use resource bundle in attributes
>From: Ralf Schneider <[EMAIL PROTECTED]>
>  14. nested:iterate & nested HashMap
>From: Serhiy Brytskyy <[EMAIL PROTECTED]>
>  15. sslext - non-ssl http links available from https pages
>From: "Eric Dahnke" <[EMAIL PROTECTED]>
>  16. RE: forwarding to a pop-up window
>From: "Brian Lee" <[EMAIL PROTECTED]>
>  17. RE: forwarding to a pop-up window
>From: "Ricardo Cortes" <[EMAIL PROTECTED]>
>  18. Re: Way to reload struts Action classes in WebLogic8.1
>From: Craig McClanahan <[EMAIL PROTECTED]>
>  19. Re: Split web.xml into multiple files
>From: Craig McClanahan <[EMAIL PROTECTED]>
>  20. issue with LazyList
>From: "Mathew, Manoj" <[EMAIL PROTECTED]>
>  21. Alpha and Beta testing...
>From: "Michael Marrotte" <[EMAIL PROTECTED]>
>  22. Re: Remembering form values across requests
>From: Jason Miller <[EMAIL PROTECTED]>
>  23. Special Characters (german Umlaute)
>From: Ralf Schneider <[EMAIL PROTECTED]>
>  24. Re: Alpha and Beta testing...
>From: Vic Cekvenich <[EMAIL PROTECTED]>
>  25. Re: [OT] Page Cannot Be Displayed
>From: Rick Reumann <[EMAIL PROTECTED]>
>
>
> 
> 
>
> Message: 1
>Date: Mon, 3 May 2004 17:06:10 +0200
>From: [EMAIL PROTECTED]
> Subject: Validator execution-order, all at once possible?
>
>
> http://marc.theaimsgroup.com/?t=10590259932&r=1&w=2
>
> Hi folks,
>
> I got stuck on a problem discussed earlier in this list (@see link
> above).
> Hope this hasn't been answered elsewhere - it was the only thing I could
> find.
>
> Forms seem to get validated in a certain order. First, all required
> fields are checked. Only after passing all required checks is other
> validation performed. Correct?
>
> Suppose you have a field "name" and a field "age". Both a required and
> age also has integer checking applied. If user leaves "name" blank and
> enters bogus values (non-int values) in age, validation will complain
> only about name being required - not age being invalid. Only after name
> is filled, integer validation complains.
>
> I would like to see all applicable error messages at once. Is that a
> configurable option? Work-arounds?
>
> Thanx
> Nils
>
>
>
>
> This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by y

JSP help

2004-05-04 Thread Santhosh P
Hi,

I have a select box in jsp page having data loaded as collection and is
working well.
My problem is the display text content "datalist" is too large and i want
the display limited
content in select box for good look and feel of the display page.
I have set a size="10" for select tag.
But still the select box is streched to include the full text content.
Why here the size attrribute not working here but works well for

Any one help me

Cheers
San Pedro

   
   
  
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 12:44 AM
Subject: [struts] Digest Number 3851


> There are 25 messages in this issue.
>
> Topics in this digest:
>
>   1. Validator execution-order, all at once possible?
>From: [EMAIL PROTECTED]
>   2. Re: Setting html:text readonly attribute
>From: Jason Miller <[EMAIL PROTECTED]>
>   3. RE: Setting html:text readonly attribute
>From: Paul McCulloch <[EMAIL PROTECTED]>
>   4. Re: How to use resource bundle in attributes
>From: Nathan Maves <[EMAIL PROTECTED]>
>   5. RE: Setting html:text readonly attribute
>From: John Moore <[EMAIL PROTECTED]>
>   6. Re: How to use resource bundle in attributes
>From: Ralf Schneider <[EMAIL PROTECTED]>
>   7. RE: forwarding to a pop-up window
>From: "Ricardo Cortes" <[EMAIL PROTECTED]>
>   8. Re: trouble with taglibs in xml syntax
>From: Tomasz Dreßler <[EMAIL PROTECTED]>
>   9. Re: How to use resource bundle in attributes
>From: bOOyah <[EMAIL PROTECTED]>
>  10. Re: How to use resource bundle in attributes
>From: Nathan Maves <[EMAIL PROTECTED]>
>  11. Re: trouble with taglibs in xml syntax
>From: Kris Schneider <[EMAIL PROTECTED]>
>  12. Re: How to use resource bundle in attributes
>From: Ralf Schneider <[EMAIL PROTECTED]>
>  13. Re: How to use resource bundle in attributes
>From: Ralf Schneider <[EMAIL PROTECTED]>
>  14. nested:iterate & nested HashMap
>From: Serhiy Brytskyy <[EMAIL PROTECTED]>
>  15. sslext - non-ssl http links available from https pages
>From: "Eric Dahnke" <[EMAIL PROTECTED]>
>  16. RE: forwarding to a pop-up window
>From: "Brian Lee" <[EMAIL PROTECTED]>
>  17. RE: forwarding to a pop-up window
>From: "Ricardo Cortes" <[EMAIL PROTECTED]>
>  18. Re: Way to reload struts Action classes in WebLogic8.1
>From: Craig McClanahan <[EMAIL PROTECTED]>
>  19. Re: Split web.xml into multiple files
>From: Craig McClanahan <[EMAIL PROTECTED]>
>  20. issue with LazyList
>From: "Mathew, Manoj" <[EMAIL PROTECTED]>
>  21. Alpha and Beta testing...
>From: "Michael Marrotte" <[EMAIL PROTECTED]>
>  22. Re: Remembering form values across requests
>From: Jason Miller <[EMAIL PROTECTED]>
>  23. Special Characters (german Umlaute)
>From: Ralf Schneider <[EMAIL PROTECTED]>
>  24. Re: Alpha and Beta testing...
>From: Vic Cekvenich <[EMAIL PROTECTED]>
>  25. Re: [OT] Page Cannot Be Displayed
>From: Rick Reumann <[EMAIL PROTECTED]>
>
>
> 
> 
>
> Message: 1
>Date: Mon, 3 May 2004 17:06:10 +0200
>From: [EMAIL PROTECTED]
> Subject: Validator execution-order, all at once possible?
>
>
> http://marc.theaimsgroup.com/?t=10590259932&r=1&w=2
>
> Hi folks,
>
> I got stuck on a problem discussed earlier in this list (@see link
> above).
> Hope this hasn't been answered elsewhere - it was the only thing I could
> find.
>
> Forms seem to get validated in a certain order. First, all required
> fields are checked. Only after passing all required checks is other
> validation performed. Correct?
>
> Suppose you have a field "name" and a field "age". Both a required and
> age also has integer checking applied. If user leaves "name" blank and
> enters bogus values (non-int values) in age, validation will complain
> only about name being required - not age being invalid. Only after name
> is filled, integer validation complains.
>
> I would like to see all applicable error messages at once. Is that a
> configurable option? Work-arounds?
>
> Thanx
> Nils
>
>
>
>
> This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> 

Re: Strange Validation Behavior

2004-05-04 Thread Hubert Rabago
Send your mappings so that others can "trace" the path along with you, and
maybe spot a problem.

--- Nicholas L Mohler <[EMAIL PROTECTED]> wrote:
> 
> 
> 
> 
> Hi,
> 
> We are having a problem that occurs when a property fails a server-side
> validation.  The problem is that the value that we specify for the "input"
> tag is not correctly resolved and we end up with a blank page being
> returned, as opposed to the page that originated the error with the
> appropriate errors highlighted.
> 
> For our input tag, we specify another mapping that handles the things that
> need to happen before we can return to an editting page.  Please don't ask
> why we do it that way :-)  When I follow the code, we end up in the
> RequestProcessor.processValidate method.  When there are properties that
> fail validation and an input tag is specified, the input value is used to
> find a forward.  Because the input value points to another mapping, a
> forward is not found, and at that point, struts really has no where to go,
> so we get the blank page.
> 
> I have tested that I can create a "failed" forward, and then set the path
> to the same value as I had previously specified in the input tag, but this
> does not seem right.  I have seen examples where the input points to a .jsp
> file.  I think that is similar to what we are doingso I am at a loss.
> 
> Does anybody have any thoughts?
> Nick
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 





__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Strange Validation Behavior

2004-05-04 Thread Nicholas L Mohler




Hi,

We are having a problem that occurs when a property fails a server-side
validation.  The problem is that the value that we specify for the "input"
tag is not correctly resolved and we end up with a blank page being
returned, as opposed to the page that originated the error with the
appropriate errors highlighted.

For our input tag, we specify another mapping that handles the things that
need to happen before we can return to an editting page.  Please don't ask
why we do it that way :-)  When I follow the code, we end up in the
RequestProcessor.processValidate method.  When there are properties that
fail validation and an input tag is specified, the input value is used to
find a forward.  Because the input value points to another mapping, a
forward is not found, and at that point, struts really has no where to go,
so we get the blank page.

I have tested that I can create a "failed" forward, and then set the path
to the same value as I had previously specified in the input tag, but this
does not seem right.  I have seen examples where the input points to a .jsp
file.  I think that is similar to what we are doingso I am at a loss.

Does anybody have any thoughts?
Nick



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Test, please ignore

2004-05-04 Thread Chaikin, Yaakov Y (US SSA)
Thanks.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Chaikin, Yaakov Y (US SSA)
BTW, you should search the JBoss forums and you'll find some answers to
this question:

Here are a couple of URLs for you to look at:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=48970 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=44455

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 12:00 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT]JSP Precompile in JBOSS
> 
> I've done this in the past using wget to try and retrieve each page
with the
> special jsp_recompile (or something - see the JSP spec) argument.
> 
> The problem I found with JBOSS-Tomcat is that JBOSS would remove all
the
> compiled jsps on shutdown. If this is the root of your problem (it was
with
> me) then you can turn this beahviour off by adding
> 
> false
> 
> to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
this
> before 
> 
> HTH
> 
> Paul
> 
> > -Original Message-
> > From: Ramadoss Chinnakuzhandai
[mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 04, 2004 4:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OT]JSP Precompile in JBOSS
> >
> >
> > Hi,
> > Is there anyway I can configure JSP precompile in
> > JBOSS startup? if so can you help me how to configure the same.
> >
> > Any help would be appreciated.
> >
> > Thank you in advance,
> >
> > Warm Regards,
> > Ramadoss
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Chaikin, Yaakov Y (US SSA)
It's http://...?jsp_precompile=true

HTH.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (ph)
301-838-6802 (fax)
 

> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 12:00 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT]JSP Precompile in JBOSS
> 
> I've done this in the past using wget to try and retrieve each page
with the
> special jsp_recompile (or something - see the JSP spec) argument.
> 
> The problem I found with JBOSS-Tomcat is that JBOSS would remove all
the
> compiled jsps on shutdown. If this is the root of your problem (it was
with
> me) then you can turn this beahviour off by adding
> 
> false
> 
> to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add
this
> before 
> 
> HTH
> 
> Paul
> 
> > -Original Message-
> > From: Ramadoss Chinnakuzhandai
[mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 04, 2004 4:47 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OT]JSP Precompile in JBOSS
> >
> >
> > Hi,
> > Is there anyway I can configure JSP precompile in
> > JBOSS startup? if so can you help me how to configure the same.
> >
> > Any help would be appreciated.
> >
> > Thank you in advance,
> >
> > Warm Regards,
> > Ramadoss
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT]JSP Precompile in JBOSS

2004-05-04 Thread Paul McCulloch
I've done this in the past using wget to try and retrieve each page with the
special jsp_recompile (or something - see the JSP spec) argument.

The problem I found with JBOSS-Tomcat is that JBOSS would remove all the
compiled jsps on shutdown. If this is the root of your problem (it was with
me) then you can turn this beahviour off by adding 

false

to jbossweb-tomcat41.sar\META-INF\jboss-service.xml. You need to add this
before 

HTH

Paul

> -Original Message-
> From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 4:47 PM
> To: [EMAIL PROTECTED]
> Subject: [OT]JSP Precompile in JBOSS
> 
> 
> Hi,
> Is there anyway I can configure JSP precompile in 
> JBOSS startup? if so can you help me how to configure the same.
> 
> Any help would be appreciated.
> 
> Thank you in advance,
> 
> Warm Regards,
> Ramadoss
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT]JSP Precompile in JBOSS

2004-05-04 Thread Ramadoss Chinnakuzhandai
Hi,
Is there anyway I can configure JSP precompile in JBOSS startup? if so can you 
help me how to configure the same.

Any help would be appreciated.

Thank you in advance,

Warm Regards,
Ramadoss


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FileUpload: Stream ended unexpectedly

2004-05-04 Thread JoAnn Lemm
There's a new patch out there for the isapi_redirector2.dll that will solve
your problem.

 

About 3 weeks ago, I discovered that the problem recurred when I uploaded
large files from the internet (no problems with the intranet.) When I turned
on the debugger, the problem corrected itself about 70% of the time. At that
point, I realized it was a timing issue & I posted this information on the
Tomcat user group.

 

The developers there took this information & determined what the problem was
and deployed a patch!  But in answer to your question, I believe it was the
server.xml

 

--JoAnn

-Original Message-
From: bouchalhi yann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 1:47 AM
To: [EMAIL PROTECTED]
Subject: Re: FileUpload: Stream ended unexpectedly

 

Hello JoAnn ,

in what file you have changed the Tomcat's socket connection timeout value ?

thanks 

 

 

> Actually, I've uploaded a 3M file with no problem - so that restriction no
> longer appears to be the issue.
>
> Turns out that Tomcat's socket connection timeout out (she was using >
dialup
>after all) and there was too long a delay between the data packets. As >a
>result, the socket closed before the file finished uploading.  The >problem
>went away after I upped the timeout.
>
>Thanks for you help!

--JoAnn 

-Original Message-
From: Dan Tran [mailto:[EMAIL   PROTECTED] 
Sent: Wednesday, March 17, 2004 12:24 PM
To: Struts Users Mailing List
Subject: Re: FileUpload: Stream ended unexpectedly

Last time I check, isapi_redirect2.dll can not handle file upload bigger
then 100K.

You may try to check this bug with tomcat list.

-Dan

- Original Message - 
From: "JoAnn Lemm" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 17, 2004 8:08 AM
Subject: FileUpload: Stream ended unexpectedly


> Hi All,
>
> One of our customers has a problem when trying to upload a 800KB file.
>
> I'm using struts1.1 with "JBoss/Tomcat4.1 " and an IIS (using the
> isapi_redirector2.dll) in front of it.
>
> I'm using the standard struts tag:   />
>
>
> When I watch the processing of her file, it seems to go very slowly,
whereas
> others are much, much quicker. Any suggestions, hints and solutions would
be
> much appreciated.
>
> JoAnn
>
>
> Stack Trace follows:
>
> 2004-03-17 08:08:37,084 ERROR
> [org.apache.struts.upload.CommonsMultipartRequestHandler] Failed to parse
> multipart request
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-data request failed. Stream ended unexpectedly
> at
>
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.jav
> a:429)
> at
>
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Common
> sMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
> ava:821)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:256)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:191)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:643)
> at
>
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrR
> ealm.java:220)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStat
> sValve.java:76)
> at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> eNext(StandardPipeline.java:641)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> at
> org.apache.catalina.core.StandardCont

RE: Special Characters (german Umlaute)

2004-05-04 Thread Kransen, J.
This is something I've been wondering: is it absolutely necessary to convert
text files using this tool? I use UTF-8 encoding for the
ApplicationResources.properties_?? files, I indicate that UTF-8 is the
encoding of my web pages, with the tag 



and it works just fine. Is this just coincidence and should I not count on
this to work anytime, anywhere?

On my website under
http://jeroen.kransen.nl:8080/belbin/form/introductie.jsp 
I'm making a small personality test and use different languages, it's still
under construction and only complete in NL and EN so far, but the characters
such as Umlauts (or the NL trema's which is basically the same thing) and
the Cyrillic alphabet work on all browsers I tried so far. 
This way we can just edit the texts of any character set as we do with plain
ASCII and don't have to perform the additional step. Generally the tendency
seems to be that using different character encodings is becoming more and
more transparent.

> -Oorspronkelijk bericht-
> Van: Ralf Schneider [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 4 mei 2004 10:34
> Aan: Struts Users Mailing List
> Onderwerp: Re: Special Characters (german Umlaute)
> 
> Am Montag, 3. Mai 2004 21:57 schrieb Ruth, Brice:
> > You can use the native2ascii application that is bundled with your JDK
> to
> > automatically convert your native-encoded file with umlauts to \u
> > format encodings.
> 
> Thanks, works fine!
> 
> The only thing I have to manage now is to automate this task within
> Eclipse
> 3.0M8. At the moment, there is no build.xml file in my project. So,
> Eclipse
> must somehow know what to do with the resource files as they are copied
> automatically from the source to the classes directory when they are
> saved.
> How can I tell Eclipe not only to copy them but to run native2ascii?
> 
> Ralf.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validation - can i use multiple properties ?

2004-05-04 Thread Ivan
Take a look at

JSTL format with multiple Resource Bundles
http://www.cheblogs.com/roller/page/princeamin/20031104



   



- Original Message - 
From: "johannes Schwarz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 3:54 PM
Subject: AW: Validation - can i use multiple properties ?


I know this and i use this language files.

XXX_de.properties
XXX_en.properties

AND

YYY_de.properties
YYY_en.properties

I use a action to set the language:
-
String lang = httpServletRequest.getParameter("language");
Locale newlang = new Locale(lang);
this.setLocale(httpServletRequest, newlang);
-

And in all jsp-Pages i can use the properties.



But why isn't it possible to use different properties between the
validation file?

If i use three different forms (html-formular), than i would like to use
also

-> three different validationfiles
it works, i use between struts-config:


X-Validation.xml is defined for formular 1
Y-Validation.xml is defined for formular 2 and so on

-> three different configfiles
it works, i use between struts-config:
[ ] and at the
position i write &actions;

MyActions1.xml is defined for formular 1 (all actions for this
fields...)
MyActions2.xml is ...


-> three different properties-files
it works between the jsp-pages, but NOT between VALIDATION.

//The defenition between config



//My jsp-Pages:
Page1.jsp: ...:
:



RE: html:link forward + hard coded parameter

2004-05-04 Thread Menke, John

 


-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 8:59 AM
To: Struts Users Mailing List
Subject: Re: html:link forward + hard coded parameter


"Dean A. Hoover" <[EMAIL PROTECTED]> wrote on 05/04/2004 04:15:19 
AM:

> Maybe I need to restate this...
> 
> Ok, so I am generating a page of "entries"
> that are clickable by the user, in which case
> something about that entry will be displayed.
> Its the classic search engine results type of thing.
> Anyway, so let's say I have a forward defined
> something like "show" => "/ShowResult.do".
> The way ShowResult knows what to show is
> by looking at a parameter (e.g., x). If I were
> just going to generate HTML (and not use the
> forward) I would output:
> 
> One
> Two
> etc.
> 
> I am trying to figure out how to hang the "?x=n"
> query string onto the forward using the html:link
> tag. Is this even possible? All the parameter oriented
> attributes to this tag seem to rely on bean related stuff.
> That's not what this is about. As stated in the title
> the parameter is "hard coded" (in the HTML that is).
> Anyone know how to do it, or do I need to write my own
> version of the html:link tag?
> 

Dean,

Since you are hard coding, does this not work for you?

One

OR I believe you can use the 'action' attribute instead of the 'page' 
attribute.

HTH,
Susan Bradeen

> Dean Hoover
> 
> Dean A. Hoover wrote:
> 
> > I want to use a forward I have defined
> > when the user clicks on one of several
> > on a page. A parameter indicates which
> > one the user clicked on. In html, it might
> > look like this:
> >
> > http://abc.com?x=1";>One
> > http://abc.com?x=2";>Two
> > http://abc.com?x=3";>Three
> >
> > How would I do this using the html:link tag.
> >
> > Dean Hoover
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Validation - can i use multiple properties ?

2004-05-04 Thread johannes Schwarz
I know this and i use this language files.

XXX_de.properties
XXX_en.properties

AND

YYY_de.properties
YYY_en.properties

I use a action to set the language:
-
String lang = httpServletRequest.getParameter("language");
Locale newlang = new Locale(lang);
this.setLocale(httpServletRequest, newlang);
-

And in all jsp-Pages i can use the properties. 



But why isn't it possible to use different properties between the
validation file?

If i use three different forms (html-formular), than i would like to use
also 

-> three different validationfiles
it works, i use between struts-config: 


X-Validation.xml is defined for formular 1
Y-Validation.xml is defined for formular 2 and so on

-> three different configfiles
it works, i use between struts-config:
[ ] and at the
position i write &actions;

MyActions1.xml is defined for formular 1 (all actions for this
fields...)
MyActions2.xml is ...


-> three different properties-files
it works between the jsp-pages, but NOT between VALIDATION.

//The defenition between config



//My jsp-Pages:
Page1.jsp: ...:
:



RE: Struts - How to Download a File

2004-05-04 Thread Lee, Yau-Pang
Not really struts here, more of a http question.

In your servlet you can response to the client with something like this:

response.setContentType("application/mpg");
response.setHeader("Content-disposition", "attachment; filename=" + fileName);

out = response.getWriter();
out.write(output.toString());

where output is your file

-Original Message-
From: Singh_bibek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 12:58 AM
To: [EMAIL PROTECTED]
Subject: Struts - How to Download a File


Hi All,
We wish to provide a link to the user, clicking on which user can download the 
file(jpg,gif,mpg,wav,tiff) to his/her local disk.

The user should be therefore prompted for the path where the file is to be saved.

Can anyone guide me as to how to achieve the same using Struts.

Thanks,

Regards,
Bibek


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Page Cannot Be Displayed

2004-05-04 Thread Shyamal Shah
Probably will have to do that from now. Didnt know about junk mails in
apache group. For beer, I prefer the real one :)

- Original Message - 
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 7:25 AM
Subject: Re: [OT] Page Cannot Be Displayed


> ORyou could configure YOUR mail client to delete [OT] messages.
>
> Personally, I have a special filter that moves all messages with "beer" in
> the subject or body up to the top of the list, bolds them, and if, for
some
> reason, I don't read it within a few minutes, it sends me a text message
to
> let me know that I got another beer.  When I log in, if there are any
unread
> beers, I get a friendly AOL-like "you've got beer" announcement to remind
me
> to read my beer.
>
>
>
> --
> James Mitchell
>
>
>
> - Original Message -
> From: "Shyamal Shah" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 04, 2004 1:33 AM
> Subject: RE: [OT] Page Cannot Be Displayed
>
>
> > Guys,
> >Not to offend anybody but would you please stick to the objective of
> this
> > user group? One mail starts the chain of such mails and everyone's mail
> box
> > gets flooded with it. We can have a separate yahoo or msn fun group for
> that
> > :)
> >
> > Thanks,
> >
> > >From: "Andrew Hill" <[EMAIL PROTECTED]>
> > >Reply-To: <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: RE: [OT] Page Cannot Be Displayed
> > >Date: Tue, 4 May 2004 12:39:08 +0800
> > >
> > >Take the advice about using your foot for the mouse seriously. The only
> > >proper use for a hand is holding a can of beer. ;-)
> > >
> > >Im not sure I agree on the wire though. Problem is that there is not
> enough
> > >springiness there. The best idea is to have the wires attached to firm
> > >springs and the springs attached to the computer. This way the computer
> > >will
> > >not be shocked out of position so easily and can thus keep itself tuned
> > >into
> > >the web page better. The principle is somewhat similar to the need for
> > >antishock technology in portable cd players.
> > >
> > >Basically if given a large bump the computer will lose its 'focus' on
the
> > >web page and the result is all too commonly that annoying "page cannot
be
> > >displayed" message.
> > >
> > >btw: you may be interested to know that this problem has been around
> > >awhile.
> > >Early arcade machine hardware - such as pinball machines - suffered
> similar
> > >problems. Of course all technology is incremental, and while things
have
> > >developed a lot since then, modern PCs are still based on the same
> > >underlying technology (electricity) as their earlier pinballing
> ancestors -
> > >and this trait of being unable to withstand shocks is something that
has
> > >been passed along all these years. Of course with the advent of the
> > >internet
> > >the problem has been exacerbated. Keeping focus on a webpage among all
> the
> > >millions out there is an order of magnitude more complex than
maintaining
> > >an
> > >appropriate trajectory on a mere pinball, and unfortunately as the
> internet
> > >gets more crowded you can expect to see more of these errors.
> > >
> > >...is it Friday yet?
> > >
> > >-Original Message-
> > >From: Rick Reumann [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, 4 May 2004 03:14
> > >To: Struts Users Mailing List
> > >Subject: Re: [OT] Page Cannot Be Displayed
> > >
> > >
> > >Joshi, Naveen wrote:
> > >
> > > > All,
> > > >
> > > > Just wondering if any of you get this "Page Cannot Be Displayed"
error
> > >once in a while, in Internet Explorer. Is there a solution to this
issue.
> > > >
> > > > Thanks
> > > > Naveen
> > >
> > >I'm sorry for not replying sooner to this message. Just getting caught
> > >up with struts-users messages.
> > >
> > >Joshi, this is very serious. You might want to consider upgrading all
of
> > >your RAM to something like 23GB. Also make sure you raise the computer
> > >so that it is not directly touching the floor (I find suspending the
> > >computer from wires beneath my desk helps). Also make sure you are
using
> > >your foot to move the mouse when browsing in IE, using your hand could
> > >cause be the cause of such errors as you are describing.
> > >
> > >hth,
> > >
> > >--
> > >Rick
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > _
> > Mother’s Day is May 9. Make it special with great ideas from the Mother’
s
> > Day Guide! http://special.msn.com/network/04mothersday.armx
> >
> >
> > --

RE: Validation - can i use multiple properties ?

2004-05-04 Thread nils . mueller

Hi Johannes, 

are you aware of localization / i18n support by having multiple language property 
files? Like: 

XXX_de.properties
XXX_en.properties
XXX_fr.properties
... 

Struts then chooses the properties-file depending on locale. Maybe a look at that 
stuff helps.

good luck
Nils



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:link forward + hard coded parameter

2004-05-04 Thread Susan Bradeen
"Dean A. Hoover" <[EMAIL PROTECTED]> wrote on 05/04/2004 04:15:19 
AM:

> Maybe I need to restate this...
> 
> Ok, so I am generating a page of "entries"
> that are clickable by the user, in which case
> something about that entry will be displayed.
> Its the classic search engine results type of thing.
> Anyway, so let's say I have a forward defined
> something like "show" => "/ShowResult.do".
> The way ShowResult knows what to show is
> by looking at a parameter (e.g., x). If I were
> just going to generate HTML (and not use the
> forward) I would output:
> 
> One
> Two
> etc.
> 
> I am trying to figure out how to hang the "?x=n"
> query string onto the forward using the html:link
> tag. Is this even possible? All the parameter oriented
> attributes to this tag seem to rely on bean related stuff.
> That's not what this is about. As stated in the title
> the parameter is "hard coded" (in the HTML that is).
> Anyone know how to do it, or do I need to write my own
> version of the html:link tag?
> 

Dean,

Since you are hard coding, does this not work for you?

One

OR I believe you can use the 'action' attribute instead of the 'page' 
attribute.

HTH,
Susan Bradeen

> Dean Hoover
> 
> Dean A. Hoover wrote:
> 
> > I want to use a forward I have defined
> > when the user clicks on one of several
> > on a page. A parameter indicates which
> > one the user clicked on. In html, it might
> > look like this:
> >
> > http://abc.com?x=1";>One
> > http://abc.com?x=2";>Two
> > http://abc.com?x=3";>Three
> >
> > How would I do this using the html:link tag.
> >
> > Dean Hoover
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to read a collection or a Array ?

2004-05-04 Thread Daniel H A Lima
Try this (i think you can remove "logic:notEmpty") :

 
   
  
   
   
  
  


Be sure that you forward is a true forward (not a
redirect) or you will lose the attributes in your
request, ok ?


 --- cacau_braga <[EMAIL PROTECTED]> escreveu: >
Hi All,
> 
>   This is my first message in that list.
> 
> I have a class action that I set in request an Array
> of my specific object (UfDataTransfer[ ], it´s a
> simple
> bean with get and set methods),
> I want to know as I make to call that array with tag
> iterate, because i need to build my view.
> 
>   In my Action:
> ...
> UfDataTransfer[ ] = bd.getDados();
> ...
> request.setAttribute("dataTranferUF", arrDto);
> return (mapping.findForward
> (Constants.RETORNO_APRESENT_SUCESSO));
> 
>   In my View :
>   ...
>--> What´s that name
> ?
>   indexId="">
> 
>property="empresa"/>
>property="vlRecarga"/>
> 
> 
> 
> 
> Regards,
> 
> Teixeira
> 
> 
> 
> 
>  
>
__
> Acabe com aquelas janelinhas que pulam na sua tela.
> AntiPop-up UOL - É grátis!
> http://antipopup.uol.com.br/
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

__

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tools for check struts-config.xml parse exception

2004-05-04 Thread James Holmes
Struts Console will tell you whether or not your Struts, Tiles and Validator
config files are valid as it uses their respective DTDs to check their
format.

http://www.jamesholmes.com/struts/

Hope that helps,

-James

-Original Message-
From: Kelvin wu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 2:43 AM
To: [EMAIL PROTECTED]
Subject: Tools for check struts-config.xml parse exception

Dear all,

Which tools you are using for check parse exception for struts-config.xml?

Kelvinwu


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator execution-order, all at once possible?

2004-05-04 Thread Susan Bradeen
[EMAIL PROTECTED] wrote on 05/03/2004 11:06:10 AM:

> 
> http://marc.theaimsgroup.com/?t=10590259932&r=1&w=2
> 
> Hi folks, 
> 
> I got stuck on a problem discussed earlier in this list (@see link
> above).
> Hope this hasn't been answered elsewhere - it was the only thing I could
> find.
> 
> Forms seem to get validated in a certain order. First, all required
> fields are checked. Only after passing all required checks is other
> validation performed. Correct?
> 
> Suppose you have a field "name" and a field "age". Both a required and
> age also has integer checking applied. If user leaves "name" blank and
> enters bogus values (non-int values) in age, validation will complain
> only about name being required - not age being invalid. Only after name
> is filled, integer validation complains.
> 
> I would like to see all applicable error messages at once. Is that a
> configurable option? Work-arounds?
> 

Nils, 

Using strictly server-side validation (not the client-side JavaScript 
validations), this can be done. 

Susan Bradeen


> Thanx
> Nils
> 
> 
> 
> 
> This message is for the designated recipient only and may contain 
> privileged, proprietary, or otherwise private information.  If you 
> have received it in error, please notify the sender immediately and 
> delete the original.  Any other use of the email by you is prohibited.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to read a collection or a Array ?

2004-05-04 Thread cacau_braga
Hi All,

  This is my first message in that list.

I have a class action that I set in request an Array
of my specific object (UfDataTransfer[ ], it´s a simple
bean with get and set methods),
I want to know as I make to call that array with tag
iterate, because i need to build my view.

  In my Action:
...
UfDataTransfer[ ] = bd.getDados();
...
request.setAttribute("dataTranferUF", arrDto);
return (mapping.findForward
(Constants.RETORNO_APRESENT_SUCESSO));

  In my View :
  ...
   --> What´s that name ?
 

  
  




Regards,

Teixeira




 
__
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tools for check struts-config.xml parse exception

2004-05-04 Thread Kris Schneider
Ant's optional  task.

Quoting Kelvin wu <[EMAIL PROTECTED]>:

> Dear all,
> 
> Which tools you are using for check parse exception for struts-config.xml?
> 
> Kelvinwu

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting html:text readonly attribute

2004-05-04 Thread Mario Eckl
The readonly-attribute can have the following two states

- readonly
and
- [nothing].
There is no
   readonly ="true"
or
   readonly="false"
for HTML text-input-fields.
(The same applies for the 'disabled'- and 'checked'-attributes of e.g. 
checkboxes)

For this reason the browsers behavior is correct. OK, maybe it's a 
little misleading (if you are used to boolean-variables in Java or any 
other programming language), but why specify
   readonly="false"
when
   "writable"
is the default anyway?

Bye,

Mario


-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 4:07 PM
To: Struts Users Mailing List
Subject: RE: Setting html:text readonly attribute
 

I've found that this, unfortunately doesn't work, at least with my current 
browser of choice (Firefox), which insists on making the text field 
read-only as long as there is a 'readonly' attribute present. I'm exploring 
the other options next.

I have to say, completely off-topic, that it strikes me as pretty moronic 
behaviour for a browser if you have a boolean attribute, readonly, and it 
interprets "readonly='false'" as being an instruction to make the field 
read-only. But it does.

John

=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


FAQ via ezmlm - not available

2004-05-04 Thread nils . mueller
Hola!

After subscribing the confirmation message offers:
> Send mail to the following for info and FAQ for this list:
> [EMAIL PROTECTED]

I tried that and got an email telling me:

> FAQ - Frequently asked questions of the [EMAIL PROTECTED] list.
> None available yet.

Maybe got lost when switching from [EMAIL PROTECTED]

Maybe someone with enough mojo can take a look at it.

regards
Nils



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Page Cannot Be Displayed

2004-05-04 Thread James Mitchell
ORyou could configure YOUR mail client to delete [OT] messages.

Personally, I have a special filter that moves all messages with "beer" in
the subject or body up to the top of the list, bolds them, and if, for some
reason, I don't read it within a few minutes, it sends me a text message to
let me know that I got another beer.  When I log in, if there are any unread
beers, I get a friendly AOL-like "you've got beer" announcement to remind me
to read my beer.



--
James Mitchell



- Original Message -
From: "Shyamal Shah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 1:33 AM
Subject: RE: [OT] Page Cannot Be Displayed


> Guys,
>Not to offend anybody but would you please stick to the objective of
this
> user group? One mail starts the chain of such mails and everyone's mail
box
> gets flooded with it. We can have a separate yahoo or msn fun group for
that
> :)
>
> Thanks,
>
> >From: "Andrew Hill" <[EMAIL PROTECTED]>
> >Reply-To: <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: [OT] Page Cannot Be Displayed
> >Date: Tue, 4 May 2004 12:39:08 +0800
> >
> >Take the advice about using your foot for the mouse seriously. The only
> >proper use for a hand is holding a can of beer. ;-)
> >
> >Im not sure I agree on the wire though. Problem is that there is not
enough
> >springiness there. The best idea is to have the wires attached to firm
> >springs and the springs attached to the computer. This way the computer
> >will
> >not be shocked out of position so easily and can thus keep itself tuned
> >into
> >the web page better. The principle is somewhat similar to the need for
> >antishock technology in portable cd players.
> >
> >Basically if given a large bump the computer will lose its 'focus' on the
> >web page and the result is all too commonly that annoying "page cannot be
> >displayed" message.
> >
> >btw: you may be interested to know that this problem has been around
> >awhile.
> >Early arcade machine hardware - such as pinball machines - suffered
similar
> >problems. Of course all technology is incremental, and while things have
> >developed a lot since then, modern PCs are still based on the same
> >underlying technology (electricity) as their earlier pinballing
ancestors -
> >and this trait of being unable to withstand shocks is something that has
> >been passed along all these years. Of course with the advent of the
> >internet
> >the problem has been exacerbated. Keeping focus on a webpage among all
the
> >millions out there is an order of magnitude more complex than maintaining
> >an
> >appropriate trajectory on a mere pinball, and unfortunately as the
internet
> >gets more crowded you can expect to see more of these errors.
> >
> >...is it Friday yet?
> >
> >-Original Message-
> >From: Rick Reumann [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, 4 May 2004 03:14
> >To: Struts Users Mailing List
> >Subject: Re: [OT] Page Cannot Be Displayed
> >
> >
> >Joshi, Naveen wrote:
> >
> > > All,
> > >
> > > Just wondering if any of you get this "Page Cannot Be Displayed" error
> >once in a while, in Internet Explorer. Is there a solution to this issue.
> > >
> > > Thanks
> > > Naveen
> >
> >I'm sorry for not replying sooner to this message. Just getting caught
> >up with struts-users messages.
> >
> >Joshi, this is very serious. You might want to consider upgrading all of
> >your RAM to something like 23GB. Also make sure you raise the computer
> >so that it is not directly touching the floor (I find suspending the
> >computer from wires beneath my desk helps). Also make sure you are using
> >your foot to move the mouse when browsing in IE, using your hand could
> >cause be the cause of such errors as you are describing.
> >
> >hth,
> >
> >--
> >Rick
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Mother’s Day is May 9. Make it special with great ideas from the Mother’s
> Day Guide! http://special.msn.com/network/04mothersday.armx
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Setting html:text readonly attribute

2004-05-04 Thread Takhar, Sandeep
maybe you need to use custom tags.

sandeep

-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED]
Sent: Monday, May 03, 2004 4:07 PM
To: Struts Users Mailing List
Subject: RE: Setting html:text readonly attribute


At 16:09 03/05/2004, Paul McCulloch wrote:

>1) Use an html (rather than a jsp) tag:
>
>  

I've found that this, unfortunately doesn't work, at least with my current 
browser of choice (Firefox), which insists on making the text field 
read-only as long as there is a 'readonly' attribute present. I'm exploring 
the other options next.

I have to say, completely off-topic, that it strikes me as pretty moronic 
behaviour for a browser if you have a boolean attribute, readonly, and it 
interprets "readonly='false'" as being an instruction to make the field 
read-only. But it does.

John


=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validation - can i use multiple properties ?

2004-05-04 Thread johannes Schwarz
Hello,

with struts-config.xml i define:




Than I can write the following code in a jsp-File:

 (i see the Field1-value from the XXX-File)
 (I see the Field1-value
from the YYY-File)


now I am using a form with validation.xml.
Some fields are required and the shown error is:

...

...

On Submit I see the Field1.error-value from the XXX-File.
I would like to see the error-value from the YYY-File. Is this possible?
How to define?


Thanks
Johannes


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: background process

2004-05-04 Thread Guillermo Meyer
We implement something like this. 
We have a really heavy process submitted by a user, so we don't want him
to wait for finishing.
In a struts action, we call a Service (POJO) and this service places a
message in a JMS and saves a record of the process in a database table
in a "running" state. Then the first action forwards to other action
that keeps checking (autorefresh) if the JMS process has finished,
cheking if the process database record changes the state.
The operation is performed when attended by JMS (the POJO service itself
is a JMS MessageListener) and when finish updates the database record
indicating its completion and stores the result in the table.
If the user waits for the process to finish, he sees an autorefreshing
page that when detects (the action) its completion forwards to the
results page. If the user leaves the application, he can return later
and query the process status and results form the table.

If you also need something that runs in the background without user
intervention, check javax.management.timer.Timer class from JMX

Regards.
Guillermo.

-Original Message-
From: Wei, Robert (MAN-Corporate) [mailto:[EMAIL PROTECTED] 
Sent: Lunes, 03 de Mayo de 2004 05:32 p.m.
To: 'Struts Users Mailing List'
Subject: background process


Hi Folks,

I need implement an action which sends back a forward upon request and
then, keep working on a batch process till finish in the background.
Anyone familiar with an easy mechanism in struts 1.1? Thanks.

Robert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting html:text readonly attribute

2004-05-04 Thread John Moore
At 16:08 03/05/2004, Jason Miller wrote:

Actually, you can't use a tag as the value of another tag's attribute.
Out of interest, does anyone know whether there are plans for this for a 
future JSP version? It seems quite an obvious requirement, and I can't see 
any technical reason why it should not be possible. It would surely be easy 
to establish an order of evaluation (the nested tags get evaluated first).

John

=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts file upload strange error

2004-05-04 Thread John Moore
At 01:13 04/05/2004, Bryan Hunt wrote:

Dude, send me your address and I will fed-ex you a cold beer 
!!
I should have thought of that before. Thanks for your help  I've 
just wasted 24 hours
on this If I was running linux I could have ran a packet capture but 
am on crappy
win 2000 box.
Get yourself a copy of Network Spy 
(http://sumitbirla.com/network-spy/netspy.php), which is a very useful 
packet capture tool for Windows.

John





=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 20/04/2004

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Special Characters (german Umlaute)

2004-05-04 Thread Ralf Schneider
Am Montag, 3. Mai 2004 21:57 schrieb Ruth, Brice:
> You can use the native2ascii application that is bundled with your JDK to
> automatically convert your native-encoded file with umlauts to \u
> format encodings.

Thanks, works fine! 

The only thing I have to manage now is to automate this task within Eclipse 
3.0M8. At the moment, there is no build.xml file in my project. So, Eclipse 
must somehow know what to do with the resource files as they are copied 
automatically from the source to the classes directory when they are saved. 
How can I tell Eclipe not only to copy them but to run native2ascii?

Ralf.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logging (Log4J and Digester)

2004-05-04 Thread Johannes Wolfgang Woger


Weiss, Daniel (EXTERN: FOURTH) wrote:

Hi folks,

How could i config log4j to get no more DEBUG informations about the init
method of the actionservlet? What will be the best way to config log4j?
I would use chainsaw from log4j to see all Error Levels in a queue, but at
present
the debug msg are disturbing to use them.
Any suggesstions ?

My logger in log4j.properties looks like:

log4j.logger.org.zack =DEBUG, rolling

where org.zack is my package structure, so I only get messages from 
classes beneath org/zack/

Wolfgang

Cheers
Daniel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:link forward + hard coded parameter

2004-05-04 Thread Dean A. Hoover
Maybe I need to restate this...

Ok, so I am generating a page of "entries"
that are clickable by the user, in which case
something about that entry will be displayed.
Its the classic search engine results type of thing.
Anyway, so let's say I have a forward defined
something like "show" => "/ShowResult.do".
The way ShowResult knows what to show is
by looking at a parameter (e.g., x). If I were
just going to generate HTML (and not use the
forward) I would output:
One
Two
etc.
I am trying to figure out how to hang the "?x=n"
query string onto the forward using the html:link
tag. Is this even possible? All the parameter oriented
attributes to this tag seem to rely on bean related stuff.
That's not what this is about. As stated in the title
the parameter is "hard coded" (in the HTML that is).
Anyone know how to do it, or do I need to write my own
version of the html:link tag?
Dean Hoover

Dean A. Hoover wrote:

I want to use a forward I have defined
when the user clicks on one of several
on a page. A parameter indicates which
one the user clicked on. In html, it might
look like this:
http://abc.com?x=1";>One
http://abc.com?x=2";>Two
http://abc.com?x=3";>Three
How would I do this using the html:link tag.

Dean Hoover

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tools for check struts-config.xml parse exception

2004-05-04 Thread Kelvin wu
Dear all,

Which tools you are using for check parse exception for struts-config.xml?

Kelvinwu


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]