RE: form display

2004-07-20 Thread mike . raath
I find it's better to use Strings for ActionForm attributes, which can then
be validated, and copied to correctly typed attributes in DTO beans once
validation has passed. This would allow you to hold your null value, as this
would be an empty string.

-Original Message-
From: Isaac Mosquera [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2004 15:51
To: Struts Users Mailing List
Subject: form display


In my form i have an integer, which cannot be initialized to null, however, 
it shows up in the html:text box as a "0", and i would prefer that it shows 
up blank when a user FIRST reaches the page.  After that, i would like the 
variable to retain the value which the user has entered.
-isaac 


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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: How to Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread mike . raath
Or a system design? So that these last-minute issues aren't all urgent?

-Original Message-
From: McCormack, Chris [mailto:[EMAIL PROTECTED] 
Sent: 16 July 2004 11:19
To: Struts Users Mailing List
Subject: RE: How to Disable "open" button on "File Download" dialogue box.
...please urgent


Maybe a change of career or invest some time reading up the technologies
that appear on your CV ? Just a thought

-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED] 
Sent: 16 July 2004 09:52
To: [EMAIL PROTECTED]
Subject: How to Disable "open" button on "File Download" dialogue
boxplease urgent


Hi Friends,

i'm very happy to tell u my problems and get answers.

i need a solution how to disable "open" button on 
"File Download" dialog box.i want control on it.
Pls don't say no solution.Bcox i saw that type of
dialogue box...Now i require that feature.
pls let me know the solution asap.

I used the following code to appear "File Download
box"

httpServletResponse.setContentLength((int) f.length));
  
httpServletResponse.setContentType(mimeType);
   
httpServletResponse.setHeader("Content-Disposition","attachment;filename="+f
.getName());

os =httpServletResponse.getOutputStream();
stream = new FileInputStream(f);
bis = new BufferedInputStream(stream);
is = new BufferedInputStream(bis);
int count;
byte buf[] = new byte[4096];
while ((count = is.read(buf)) > -1)
os.write(buf, 0, count);


i'm using 
tomcat 5.0.19
Struts 1.1
IE 6.0
Windows 2000server

Thanks
Ganesh





__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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


***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its subsidiaries is 100 Old
Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is
262152.



-
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 Disable "open" button on "File Download" dialogue box. ...please urgent

2004-07-16 Thread mike . raath
Ganesh, why do you always ask your question 3 times? And your questions are
always urgent?

-Original Message-
From: ganesh gadi [mailto:[EMAIL PROTECTED] 
Sent: 16 July 2004 09:52
To: [EMAIL PROTECTED]
Subject: How to Disable "open" button on "File Download" dialogue
boxplease urgent


Hi Friends,

i'm very happy to tell u my problems and get answers.

i need a solution how to disable "open" button on 
"File Download" dialog box.i want control on it.
Pls don't say no solution.Bcox i saw that type of
dialogue box...Now i require that feature.
pls let me know the solution asap.

I used the following code to appear "File Download
box"

httpServletResponse.setContentLength((int) f.length));
  
httpServletResponse.setContentType(mimeType);
   
httpServletResponse.setHeader("Content-Disposition","attachment;filename="+f
.getName());

os =httpServletResponse.getOutputStream();
stream = new FileInputStream(f);
bis = new BufferedInputStream(stream);
is = new BufferedInputStream(bis);
int count;
byte buf[] = new byte[4096];
while ((count = is.read(buf)) > -1)
os.write(buf, 0, count);


i'm using 
tomcat 5.0.19
Struts 1.1
IE 6.0
Windows 2000server

Thanks
Ganesh





__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: how to implement && using tag in struts

2004-06-17 Thread mike . raath
Try a nested version:



...



|| would involve a few more tags.


-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2004 14:45
To: Struts Users Mailing List
Subject: RE: how to implement && using  tag in struts


I don't think you can. 
You can do this sort of thing with JSTL:






robert

> -Original Message-
> From: Asim Ghosh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 17, 2004 9:35 AM
> To: [EMAIL PROTECTED]
> Subject: how to implement && using  tag in struts
> 
> 
> hello guys,
>  
>how do i implement && and ||  using 
>  
> example
> i need to convert
>  <% if( a > b && b > c) {
>  
> }
> %>
>  
> into struts  tag 
>  
> Asim
> 
> 
> 
> 
>   
> -
>  ALL-NEW Yahoo! Messenger - so many all-new ways to express 
> yourself

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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: Diff. b/w and

2004-06-17 Thread mike . raath
The difference is that  renders an  tag of type image,
whereas  renders an  tag.

-Original Message-
From: Asim Ghosh [mailto:[EMAIL PROTECTED] 
Sent: 17 June 2004 08:57
To: [EMAIL PROTECTED]
Subject: Diff. b/w  and 


hello guys,
 
  can any one tell me what is the diff. b/w  and 
 
 
Asim 



-
 ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself 



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: Want to do some business logic before the action class of str uts is invoked. How ?

2004-06-11 Thread mike . raath
Have you looked at filters?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 11 June 2004 09:33
To: [EMAIL PROTECTED]
Subject: Want to do some business logic before the action class of struts is
invoked. How ?


Dear Strusts users,

I have a typical requirement where i need to do some business 
logic before any action class gets executed. Where should I write the code 
for this ? Pls suggest.

regds
r-a-v-i



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: Reccomendations for good reference book

2004-06-01 Thread mike . raath
Personally, I found the best reference was Rick Reumann's (of this parish)
excellent Struttin with Struts.

http://www.reumann.net/do/struts/main


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] 
Sent: 01 June 2004 15:16
To: 'Struts Users Mailing List'
Subject: Reccomendations for good reference book


Folks,

I am a newbie. I want a good reference that is easy to digest, yet contains
advanced examples (for later:-) Searching on a book site reveals at least 20
publications


Any recommendations?


TIA - Adam



-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2004 22:30
To: Struts Users Mailing List
Subject: Re: (repost) validwhen validation


Since nobody else has answered I'll take a shot.

To get this to work, you would need to get the source code of the struts
version you are using (1.1 final) and the source code for the
org.apache.struts.validator.validwhen.ValidWhen class (as well as anything
it depends on). You would have to merge the validwhen class/dependencies
into the struts source and recompile it, and use this newly compiled
struts.jar

Upgrading to a nighly build that includes validwhen may be a better option
for you.



Matt


- Original Message - 
From: "Josh Cronemeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 4:10 PM
Subject: (repost) validwhen validation


> I seem to have deleted the original messages to this thread, but it is
> probably best that I just ask the question again anyway.
>
> I am rather new to struts and I am trying to use the validwhen
> dependency for validation.  After finding out that validwhen feature 
> wasn't included in struts 1.1 final release I went and downloaded the 
> struts validation-rules.xml file from CVS and replaced my old 
> validation-rules.xml, but now I am getting class not found exceptions 
> "org.apache.struts.validator.validwhen.ValidWhen"
>
> is there something else I need to download?  (perhaps this validwhen
> class that it cannot find)
>
> anyone else who has gotten this feature to work I would really
> appreciate some guideance.
>
> Thank you in advance
>
>
> -
> 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]




For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: why and how to configure tomcat with apache web server urgent

2004-05-26 Thread mike . raath
Is this a Struts question?

-Original Message-
From: ganesh g [mailto:[EMAIL PROTECTED] 
Sent: 26 May 2004 14:15
To: user
Subject: why and how to configure tomcat with apache web server urgent


Hi list
 
Will u please tell me for my thearitical question
 
what is the need of to configure Tomcat with Apache web server. And how to
do it.
 
waiting for ur reply urgent
 
Thanks
Ganesh




-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: Clearing Input fields

2004-05-05 Thread mike . raath
Reset resets your form to the state it was in when loaded - ie how it was
shown *after* your submission.

To clear your fields you will need to code a javascript function do this
explicitly.

-Original Message-
From: Brian Boyle [mailto:[EMAIL PROTECTED] 
Sent: 05 May 2004 14:40
To: [EMAIL PROTECTED]
Subject: Clearing Input fields


Hi guys!

I was wonderng if anyone could help me with aporblem I have. I input data 
into my input fields on my JSP page. If I press reset the fields are 
cleared. I press submit and my ActoinForm reads the data in and my Action 
processes it etc However, when I return to this page again the same data

is still there in hte input fields. When I press my reset button nothing 
happens. I want to be able to return to the page again and the fields be 
cleared. I don't want to see the same ddata in them.

Any ideas on how to do this?

Thanks for your help

Brian

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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




For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: determining session timeout value

2004-04-22 Thread mike . raath
I think getMaxInactiveInterval on the HttpSession should give you what you
want.

-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED] 
Sent: 22 April 2004 13:36
To: [EMAIL PROTECTED]
Subject: determining session timeout value


After getting some great suggestions here for various
ways of handling session timeouts, I have implemented
something I am very happy with. Now, when a timeout
happens I want to be more informative to the user by constructing a message
that tells them what the timeout is in minutes. Anyone know how I can get
this value?

Dean Hoover


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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: execute() method running twice

2004-04-21 Thread mike . raath
Long shot, but I once had something similar

Are you using mailto:[EMAIL PROTECTED] 
Sent: 21 April 2004 15:21
To: [EMAIL PROTECTED]
Subject: execute() method running twice


Hi there .. :-)

Wonder if anyone could help me with a strange problem I can't seem to solve.

I have a form tied to an Action. The form is submitted through a Javascript
call from the 
JSP page.

I was getting some strange behaviour, so I added a bit of debug code, and
discovered 
that the execute() method in the action is being called twice each time the
form is 
submitted.

Has anyone come across this before? 




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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: Jbuilder 9 Changing Stuts 1.0 to 1.1

2004-04-21 Thread mike . raath
Yes it - is. I use Jbuilder 9 and struts 1.1

You need to manually configure it:
- Add 2 new libraries through Tools/Configure Libraries - call one Struts
1.1 and the other Struts 1.1 JSTL
- For Struts 1.1 JSTL
- add classes %strutsdir%/contrib/struts-el/lib/jstl.jar and
%strutsdir%/contrib/struts-el/lib/standard.jar
- Framework- choose JSTL and define all libraries eg core (EL)
prefix c, core (RT) prefix c_rt
- For Struts 1.1
- add classes commons-beanutils.jar, commons-collections.jar,
commons-digester.jar, commons-fileupload.jar, commons-lang.jar,
commons-validator.jar, jakarta-oro.jar, struts.jar, struts-el.jar all from
%strutsdir%/contrib
- Framework - choose Struts and define all the tag libraries
- Required libraries - Struts JSTL 1.1

-Original Message-
From: Ramil Mirhasanov [mailto:[EMAIL PROTECTED] 
Sent: 21 April 2004 11:15
To: [EMAIL PROTECTED]
Subject: Jbuilder 9 Changing Stuts 1.0 to 1.1


Hi,
I am using J Builder 9 for web development.
It has built-in Struts 1.0. Is it possible to change it to struts 1.1
version. I tried changing the struts.jar file in
thirdparty/jakarta-struts-1.0.2. But it doesnt work properly. My problem is
the error given:

Parse Error at line 7 column -1: Element "form-bean" does not allow
"form-property" here.
org.xml.sax.SAXParseException: Element "form-bean" does not allow
"form-property" here.

in my struts-congig.xml:

 

   

   

Thanks for help.
Regards,
Ramil



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: ActionMessages won't display

2004-04-19 Thread mike . raath
Sorry for missing that Matt.

The id = 'varName' is the object name which will hold each message in the
messages list as it iterates through.

All you should need is something along the following:








This will examine the request for an ActionMessages object, then iterate
through it assiging each item to object "message". Then the c:out tag will
output the value of message and add a  as a line break.


-Original Message-
From: Matthew Hegarty [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2004 16:05
To: 'Struts Users Mailing List'
Subject: RE: ActionMessages won't display


Mike
Thanks for response.
I had tried that but to no avail (I mentioned it near the end of my original
message)

I am not clear as to what 'id="messages"' which appears in the html:messages
tag is supposed to refer to. According to the docs:

"The name of a page scope JSP bean that will contain the current element of
the collection of messages on each iteration, if it is not null. [Required]"

http://jakarta.apache.org/struts/userGuide/struts-html.html#messages

Do I have to define this bean at any point other than in the tag?

Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 19 April 2004 15:54
To: [EMAIL PROTECTED]
Subject: RE: ActionMessages won't display


Try setting the message="true" attribute of the  tag. The
default is false which means that you are actually testing for ActionErrors
not ActionMessages.

-Original Message-
From: Matthew Hegarty [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2004 15:49
To: '[EMAIL PROTECTED]'
Subject: ActionMessages won't display



Hello
I am hoping someone can help with an ActionMessages problem

I am setting ActionMessages in my action, but they are not appearing in the
page. The action code is:

if(showDetails.size() == 0 ) {
LOGGER.debug("no ShowDetails found");
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("errors.none.found", "showDetail"));
saveMessages(request,messages);
return mapping.findForward("none");
}

The JSP code is:

 

messages found:

 


The log output confirms that the java snippet is called.
The 'messages found' string appears in the JSP, but no error message. I have
tried various configurations of params to the 'messages' tag, including
adding "message='true'".

I have the following in struts-config.xml



I have a file in 'WEB-INF/classes' called 'jsp-messages.properties'

This contains the string: 'errors.none.found=No {0}(s) were found'

Hope someone can help - this one's got me stumped!

cheers
Matt


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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




-
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: ActionMessages won't display

2004-04-19 Thread mike . raath
Try setting the message="true" attribute of the  tag. The
default is false which means that you are actually testing for ActionErrors
not ActionMessages.

-Original Message-
From: Matthew Hegarty [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2004 15:49
To: '[EMAIL PROTECTED]'
Subject: ActionMessages won't display



Hello
I am hoping someone can help with an ActionMessages problem

I am setting ActionMessages in my action, but they are not appearing in the
page. The action code is:

if(showDetails.size() == 0 ) {
LOGGER.debug("no ShowDetails found");
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("errors.none.found", "showDetail"));
saveMessages(request,messages);
return mapping.findForward("none");
}

The JSP code is:

 

messages found:

 


The log output confirms that the java snippet is called.
The 'messages found' string appears in the JSP, but no error message. I have
tried various configurations of params to the 'messages' tag, including
adding "message='true'".

I have the following in struts-config.xml



I have a file in 'WEB-INF/classes' called 'jsp-messages.properties'

This contains the string: 'errors.none.found=No {0}(s) were found'

Hope someone can help - this one's got me stumped!

cheers
Matt


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



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: Formatting date values

2004-04-15 Thread mike . raath
You should keep all your form types as string - then you do not get
conversion problems. Do your validation in the validate() method. Format
your date using a DateFormat object before redisplaying.


-Original Message-
From: Paulo Rezende [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2004 14:57
To: [EMAIL PROTECTED]
Subject: Formatting date values


Hi friends,

My ActionForm has a Date property. 

First I need to renderize it formatted. Since the html:text has no format
property, i did this:

">

Another way?

Second I need to submit the value inserted in the html:text by user, to this
same Date property.

But when i submit the page, de BeanUtils.populate throws a error, because it
can not do the automatic conversion from String to Date.

How it could be done automatically?

tks, Paulo Marcio



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: what is the difference between forward and redirect?

2004-04-15 Thread mike . raath
As a rule of thumb... Normal workflow would use a forward. Abnormal
workflow, such as session timeouts requiring the user to be passed back to
the login page, or notification of moved pages where you want the user to
rebookmark would be redirects.

Redirects are slower because of the extra round-trip and as others have said
cause request-scode parameters and variables to be lost. So use them only
when you need to.

-Original Message-
From: Kommineni, Sateesh (GE Consumer & Industrial)
[mailto:[EMAIL PROTECTED] 
Sent: 15 April 2004 13:40
To: Struts Users Mailing List
Subject: RE: what is the difference between forward and redirect?


Hi,

   when you use redirect , what ever data you have stored in the request
will no longer be available as you are making a new request. where as if you
use forward the request scope will be continued and all the objects you
stored in the request will be available..

-Sateesh



-Original Message-
From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 5:57 PM
To: Struts Users Mailing List
Subject: Re: what is the difference between forward and redirect?


Hi,
I basically understood the technical diffence between forward and redirect,
but from webapplications point of view, when do I use forward or redirect.

On which circumstances should I use a redirect for example?

Wolfgang

Sanoj, Antony (IE10) wrote:

>Mike,
> 
>  forward is carried inside the servlet engine, whereas the redirect 
>goes to the browser, and then the browser sends the request to the 
>resource
>  forward preserves the request state, but redirect destroys the original
>request as it completes a request/response cycle 
>  when the browser receives the redirect.
>regards
>Sanoj
>
>-Original Message-
>From: Mu Mike [mailto:[EMAIL PROTECTED]
>Sent: Thursday, April 15, 2004 3:00 PM
>To: [EMAIL PROTECTED]
>Subject: what is the difference between forward and redirect?
>
>
>when forward, what do we foward?
>when redirect, what we do different?
>
>Thanks&Regards
>Mike
>
>_
>与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn
>
>
>-
>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]



For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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



RE: what is the difference between forward and redirect?

2004-04-15 Thread mike . raath
The main difference is that the forward takes place on the server, whereas
the redirect results in another HTTP request from the client. A forward is
therefore invisible to the client, whereas the redirect is something they
would see.

Example 1: user types in http://myserver.com/page1
/page1 forwards to /page2

User still thinks they are seeing http://myserver.com/page1

Example 2: user types in http://myserver.com/page1
/page1 sends redirect to /page2
Client then requests /page2

A browser would then show http://myserver.com/page2 in the address bar


-Original Message-
From: Mu Mike [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2004 10:30
To: [EMAIL PROTECTED]
Subject: what is the difference between forward and redirect?


when forward, what do we foward? 
when redirect, what we do different?

Thanks&Regards
Mike

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


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




For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.




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