Re: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?

2004-05-13 Thread Dan Tran
I have been using version 2.0 with struts 1.1 since last September.  No
problem surface yet ;-)

Go for it.

-D
- Original Message - 
From: "Hohlen, John C" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 8:57 PM
Subject: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?


> We're trying to figure out how backwards compatible Commons-Lang 2.0 is
with it's predecessor (1.0.1).  Specifically, we'd like to use Commons Lang
2.0 with Struts 1.1 (which is distributed with Commons-Lang 1.0.1).  Has
anyone ever attempted this?   I asked this question about a month ago but
never received any replies:
>
> http://marc.theaimsgroup.com/?l=struts-user&m=108154032009627&w=2
>
> Thanks,
>
> JOHN
>

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



RE: submit form question

2004-05-13 Thread Andrew Hill
Yes, its a difficult one this.

(Afaik) Your only hope is onBeforeUnload(), but in most browsers I have
tried, getting the browser to submit the form at this point in time simply
didnt work properly for me (ie: it didnt submit!). Does submit() work for
you from inside a beforeUnload handler? If so your halfway there.

In my case I needed it to merely hit a url (to tell server side code to
clean out a particluar object from the session), so I achieved this by
having it open a popup window (ouch!) that submits itself and closes. In
order to differentiate between a window navigation and a window close I had
to have all the navigation links work via javascript and have them set a
variable which the beforeUnload handler could check. If the variable was not
set it would assume it was a window close rather than a navigation and go
ahead and do its thing.

In your case things will be a lot more difficult as you have to get the form
data submitted to the server, and coming up with something that will work
cross-browser ... well good luck, but if I were you Id try and get your
requirements changed so you dont have to go into this particluar minefield!

Its been a while since I did that code so I cant remember all the other
options I looked at at the time, so maybe there is a better way to achieve
it?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 May 2004 13:44
To: Struts Users Mailing List
Subject: submit form question



Hi experts,
How to submit the form when the user closes the browser window,
before closing the browser window i want to submit the form.
Which JavaScript event should i  use. i tried using onBeforeUnload(), the
problem is that this event gets fired even when the user goes to
another page. Thanks in advance

Regards
Subramaniam Olaganthan


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



submit form question

2004-05-13 Thread subramaniam . o

Hi experts,
        How
to submit the form when the user closes the browser window, before closing
the browser window i want to submit the form.
Which _javascript_ event should i  use.
i tried using onBeforeUnload(), the problem is that this event gets fired
even when the user goes to 
another page. Thanks in advance

Regards
Subramaniam Olaganthan
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the
addressee. Unauthorized use, disclosure or copying is strictly prohibited and may 
constitute unlawful act and can possibly attract legal action, civil and/or criminal. 
The contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services
on any subject matter. Any action taken or omitted to be taken based on this message 
is entirely at your risk and neither the originator of this message nor Tata 
Consultancy Services takes any responsibility or liability towards the same. Opinions, 
conclusions and any other
information contained in this message that do not relate to the official business of 
Tata Consultancy Services shall be understood as neither given nor endorsed by Tata 
Consultancy Services or any affiliate of Tata Consultancy Services. If you have 
received this message in error,
you should destroy this message and may please notify the sender by e-mail. Thank you.


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

Re: How to set an ActionForm to null

2004-05-13 Thread Kiran Kumar
just a guess in ur execute method try this

form = null;



--- pls <[EMAIL PROTECTED]> wrote:
> thanks for the suggestion Amol, but that returns an
> IllegalStateException..
> thanks for trying anyways.
> 
> 
> "Amol Yadwadkar" <[EMAIL PROTECTED]> wrote in
> message
>
news:[EMAIL PROTECTED]
> > Hi,
> > I havn't tried this but just try this in the
> execute method :--
> > public ActionForward execute(ActionMapping
> mapping, ActionForm form,
> > HttpServletRequest req, HttpServletResponse res) {
> > 
> > ...
> > ...
> > mapping.setAttribute(null);
> >
> > }
> >
> > Hope this may help you!!!
> > --Amol
> >
> > -Original Message-
> > From: pls [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 14, 2004 10:03 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to set an ActionForm to null
> >
> >
> > hi there,
> >
> > i am trying to set an actionform to null after
> inserting it's properties
> > into a DB.
> > then, control is forwarded to a different action
> and the info is read from
> > the DB back into the actionform for display by a
> JSP.
> >
> > the only part that is giving me trouble is with
> explicitly setting my
> > actionform "MBForm" to null.  After several form
> submissions and a DB
> > update, the first Action attempts to clear the
> values in MBForm:
> >
> >   request.getSession().setAttribute("MBForm",
> null);
> >
> > after this, control is forwarded to the second
> Action which handles the
> > display.  it checks to see if MBForm is null and,
> if it is, it fills
> MBForm
> > from a DB.   in between these two actions, the
> controller servlet is
> > automatically refilling the MBForm with the values
> that I just nullified..
> > the only bean property that stays empty is myHash
> which represents several
> > groups of multiboxes.  i believe this is a result
> of the MBForm reset()
> > method which contains the following:
> >
> >  myHash.put(multiBoxCategories, new
> Integer[0]);  //resets several
> > groups of multiboxes
> >
> > setting other properties to null in the reset()
> method is not the solution
> > as it wipes the value out after every (but somehow
> it doesn't do the same
> > thing to the multiboxes?!?)
> >
> > let me know if this enough background for you to
> help me diagnose the
> > problem..  any discussion of reset() or is
> welcome..  thanks
> >
> >
> >
> >
> >
>
-
> > 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]
> 





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Re: Can you help me about Struts validator?

2004-05-13 Thread Marcus Vinicius W. Ferreira
Hello , 
 
I´m brazilian guy  and I don´t speak english very well, then,
sorry for language mistakes. I saw the message of  David Graham about
bundle attribute in struts validator at 
 
 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg06445.htm
l
 
 
Can you help me? The bundle attribute in a validation.xml is ignored
by Struts?
In my xml, there is an element like this, but the bundle attribute
is ignored...
 
  
  
  
 
  
 
Is it correct? Help me, please!! I´m looking for about this
problem a few days... but i didn´t find anything...   
 
   Thank you very much,
 
 
Marcus Ferreira - Curitiba/Paraná/Brazil
 
 


Re: Html:link and save form

2004-05-13 Thread Nicolas De Loof

A link in HTML does not submit a form. Only submit inputs (buttons) an images input 
does.
You can use javascript to do it (as you did), but then it overrides the href set on 
the link (/myAction.do) and its
parameters.

Nico.


> I have a form with a htlm:link
>
>  paramName="address" onclick="document.forms[0].submit();">
>
> I need to add submit on the onclick to have changes of the form.
>
> If I don't make submit the state of the form is not saved.
>
> Is it a bug ?
>
> Sandra
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Our name has changed.  Please update your address book to the following format: 
"[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]



Hi

2004-05-13 Thread Vetrichelvam Malaichamy
Hi
I am Vetri Chelvam. I am using struts 1.1. I am getting a problem.
The problem is like this.
There is a button on a Page. And on click of this button, the Action
servelet is called and the database updations are done and the request is
served with the response of opening a PDF template. Once the PDF  is opened,
the request is submitted again and the Action servlet is called and the
database is updated again.  But we have only one PDF template is opened. For
One request of opening the PDF template, there are two Database updations
are done(since the request is submitted again). Can anyone please help me to
solve this problem. I am little bit tied up with this problem.

Actually this problem occurs during my UAT of the application. But it does
not able to be replicated, in the development environment.

Thanks
Vetri





==

Interleasing (UK) Limited
Registered Office: Griffin House, Osborne Road, Luton, LU1 3YT
Registered in England No. 274476
Telephone: +44 (0) 870 732 
Fax: +44(0) 870 732 4000

The above E-mail and any attached files ("E-mail") may contain confidential and/or 
privileged material and 
is intended solely for the addressee(s). If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, please be advised 
that you have received this E-mail in error and that any use, retransmission, 
dissemination  or copying is 
strictly prohibited. 

If you have received this E-mail in error please delete the material from any computer 
and notify the Computer Helpdesk 
by telephoning the above number.
 
The E-mail is for information only and should not be relied, acted upon,  
copied or changed without our written authority. 

We make no representation, disclaim all responsibility and accept no liability 
as to the completeness, accuracy and use of the E-mail prior to written 
confirmation in the form of a letter or fax.

Any opinions expressed in this E-mail may be those of the individual(s) 
and not necessarily of Interleasing (UK) Limited.

=


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



Re: How to set an ActionForm to null

2004-05-13 Thread pls
yes definitely.
everything with the actionform works fine, the values remain in the bean,
the db gets updated just fine, and the jsp page displays all of the
properties.
the only part that is giving me trouble is setting the form to null and
keeping it null until i fill it back from the db..


"Amol Yadwadkar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Has your ActionMappings at Struts-config.xml contains the name of the form
> which you are  using ?
>
>
> -Original Message-
> From: pls [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 14, 2004 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to set an ActionForm to null
>
>
> thanks for the suggestion Amol, but that returns an
IllegalStateException..
> thanks for trying anyways.
>
>
> "Amol Yadwadkar" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi,
> > I havn't tried this but just try this in the execute method :--
> > public ActionForward execute(ActionMapping mapping, ActionForm form,
> > HttpServletRequest req, HttpServletResponse res) {
> > 
> > ...
> > ...
> > mapping.setAttribute(null);
> >
> > }
> >
> > Hope this may help you!!!
> > --Amol
> >
> > -Original Message-
> > From: pls [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 14, 2004 10:03 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to set an ActionForm to null
> >
> >
> > hi there,
> >
> > i am trying to set an actionform to null after inserting it's properties
> > into a DB.
> > then, control is forwarded to a different action and the info is read
from
> > the DB back into the actionform for display by a JSP.
> >
> > the only part that is giving me trouble is with explicitly setting my
> > actionform "MBForm" to null.  After several form submissions and a DB
> > update, the first Action attempts to clear the values in MBForm:
> >
> >   request.getSession().setAttribute("MBForm", null);
> >
> > after this, control is forwarded to the second Action which handles the
> > display.  it checks to see if MBForm is null and, if it is, it fills
> MBForm
> > from a DB.   in between these two actions, the controller servlet is
> > automatically refilling the MBForm with the values that I just
nullified..
> > the only bean property that stays empty is myHash which represents
several
> > groups of multiboxes.  i believe this is a result of the MBForm reset()
> > method which contains the following:
> >
> >  myHash.put(multiBoxCategories, new Integer[0]);  //resets several
> > groups of multiboxes
> >
> > setting other properties to null in the reset() method is not the
solution
> > as it wipes the value out after every (but somehow it doesn't do the
same
> > thing to the multiboxes?!?)
> >
> > let me know if this enough background for you to help me diagnose the
> > problem..  any discussion of reset() or is welcome..  thanks
> >
> >
> >
> >
> > -
> > 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: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?

2004-05-13 Thread Phil Steitz
Have a look at the lang 2.0 release notes here:
 
http://www.apache.org/dist/jakarta/commons/lang/RELEASE-NOTES.txt
 
and the JDIFF report here:
 
http://jakarta.apache.org/commons/lang/Commons-Lang-1.0.1-to-2.0/changes.html
 
Phil
 
 

-Original Message- 
From: Hohlen, John C [mailto:[EMAIL PROTECTED] 
Sent: Thu 5/13/2004 9:49 PM 
To: Struts Users Mailing List; Struts Users Mailing List 
Cc: 
Subject: RE: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?



That's a good idea about the Commons-Lang User list.  I actually searched the 
archive before posting to the Struts mailing list, but didn't see anything.

That's very interesting about the 1.2 nightlies.  I'm seeing 2.0 is required 
for 1.2 (assuming the installation notes are up to date):

http://jakarta.apache.org/struts/userGuide/installation.html

Thanks for the reply,

JOHN

-Original Message-
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Thu 5/13/2004 11:12 PM
To: 'Struts Users Mailing List'
Cc:
Subject: RE: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?
   
   

You might want to ask this on commons-user.
   
As a datapoint, I'm looking at the Struts 1.2 Nightlies I have built
with, and I don't even see a Commons-Lang.jar packaged with it.
   
> -Original Message-
> From: Hohlen, John C [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?
>
>
> We're trying to figure out how backwards compatible
> Commons-Lang 2.0 is with it's predecessor (1.0.1).
> Specifically, we'd like to use Commons Lang 2.0 with Struts
> 1.1 (which is distributed with Commons-Lang 1.0.1).  Has
> anyone ever attempted this?   I asked this question about a
> month ago but never received any replies:
>
http://marc.theaimsgroup.com/?l=struts-user&m=108154032009627&w=2
   
Thanks,
   
JOHN
   
   
   
-
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 set an ActionForm to null

2004-05-13 Thread Amol Yadwadkar
Has your ActionMappings at Struts-config.xml contains the name of the form
which you are  using ?


-Original Message-
From: pls [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: Re: How to set an ActionForm to null


thanks for the suggestion Amol, but that returns an IllegalStateException..
thanks for trying anyways.


"Amol Yadwadkar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I havn't tried this but just try this in the execute method :--
> public ActionForward execute(ActionMapping mapping, ActionForm form,
> HttpServletRequest req, HttpServletResponse res) {
> 
> ...
> ...
> mapping.setAttribute(null);
>
> }
>
> Hope this may help you!!!
> --Amol
>
> -Original Message-
> From: pls [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 14, 2004 10:03 AM
> To: [EMAIL PROTECTED]
> Subject: How to set an ActionForm to null
>
>
> hi there,
>
> i am trying to set an actionform to null after inserting it's properties
> into a DB.
> then, control is forwarded to a different action and the info is read from
> the DB back into the actionform for display by a JSP.
>
> the only part that is giving me trouble is with explicitly setting my
> actionform "MBForm" to null.  After several form submissions and a DB
> update, the first Action attempts to clear the values in MBForm:
>
>   request.getSession().setAttribute("MBForm", null);
>
> after this, control is forwarded to the second Action which handles the
> display.  it checks to see if MBForm is null and, if it is, it fills
MBForm
> from a DB.   in between these two actions, the controller servlet is
> automatically refilling the MBForm with the values that I just nullified..
> the only bean property that stays empty is myHash which represents several
> groups of multiboxes.  i believe this is a result of the MBForm reset()
> method which contains the following:
>
>  myHash.put(multiBoxCategories, new Integer[0]);  //resets several
> groups of multiboxes
>
> setting other properties to null in the reset() method is not the solution
> as it wipes the value out after every (but somehow it doesn't do the same
> thing to the multiboxes?!?)
>
> let me know if this enough background for you to help me diagnose the
> problem..  any discussion of reset() or is welcome..  thanks
>
>
>
>
> -
> 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 set an ActionForm to null

2004-05-13 Thread pls
thanks for the suggestion Amol, but that returns an IllegalStateException..
thanks for trying anyways.


"Amol Yadwadkar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I havn't tried this but just try this in the execute method :--
> public ActionForward execute(ActionMapping mapping, ActionForm form,
> HttpServletRequest req, HttpServletResponse res) {
> 
> ...
> ...
> mapping.setAttribute(null);
>
> }
>
> Hope this may help you!!!
> --Amol
>
> -Original Message-
> From: pls [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 14, 2004 10:03 AM
> To: [EMAIL PROTECTED]
> Subject: How to set an ActionForm to null
>
>
> hi there,
>
> i am trying to set an actionform to null after inserting it's properties
> into a DB.
> then, control is forwarded to a different action and the info is read from
> the DB back into the actionform for display by a JSP.
>
> the only part that is giving me trouble is with explicitly setting my
> actionform "MBForm" to null.  After several form submissions and a DB
> update, the first Action attempts to clear the values in MBForm:
>
>   request.getSession().setAttribute("MBForm", null);
>
> after this, control is forwarded to the second Action which handles the
> display.  it checks to see if MBForm is null and, if it is, it fills
MBForm
> from a DB.   in between these two actions, the controller servlet is
> automatically refilling the MBForm with the values that I just nullified..
> the only bean property that stays empty is myHash which represents several
> groups of multiboxes.  i believe this is a result of the MBForm reset()
> method which contains the following:
>
>  myHash.put(multiBoxCategories, new Integer[0]);  //resets several
> groups of multiboxes
>
> setting other properties to null in the reset() method is not the solution
> as it wipes the value out after every (but somehow it doesn't do the same
> thing to the multiboxes?!?)
>
> let me know if this enough background for you to help me diagnose the
> problem..  any discussion of reset() or is welcome..  thanks
>
>
>
>
> -
> 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: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?

2004-05-13 Thread Hohlen, John C
That's a good idea about the Commons-Lang User list.  I actually searched the archive 
before posting to the Struts mailing list, but didn't see anything. 
 
That's very interesting about the 1.2 nightlies.  I'm seeing 2.0 is required for 1.2 
(assuming the installation notes are up to date):
 
http://jakarta.apache.org/struts/userGuide/installation.html
 
Thanks for the reply,

JOHN

-Original Message- 
From: Joe Hertz [mailto:[EMAIL PROTECTED] 
Sent: Thu 5/13/2004 11:12 PM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?



You might want to ask this on commons-user.

As a datapoint, I'm looking at the Struts 1.2 Nightlies I have built
with, and I don't even see a Commons-Lang.jar packaged with it.

> -Original Message-
> From: Hohlen, John C [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?
>
>
> We're trying to figure out how backwards compatible
> Commons-Lang 2.0 is with it's predecessor (1.0.1). 
> Specifically, we'd like to use Commons Lang 2.0 with Struts
> 1.1 (which is distributed with Commons-Lang 1.0.1).  Has
> anyone ever attempted this?   I asked this question about a
> month ago but never received any replies:
> 
http://marc.theaimsgroup.com/?l=struts-user&m=108154032009627&w=2

Thanks,

JOHN



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





RE: How to set an ActionForm to null

2004-05-13 Thread Amol Yadwadkar
Hi,
I havn't tried this but just try this in the execute method :--
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest req, HttpServletResponse res) {

...
...
mapping.setAttribute(null);

}

Hope this may help you!!!
--Amol

-Original Message-
From: pls [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 10:03 AM
To: [EMAIL PROTECTED]
Subject: How to set an ActionForm to null


hi there,

i am trying to set an actionform to null after inserting it's properties
into a DB.
then, control is forwarded to a different action and the info is read from
the DB back into the actionform for display by a JSP.

the only part that is giving me trouble is with explicitly setting my
actionform "MBForm" to null.  After several form submissions and a DB
update, the first Action attempts to clear the values in MBForm:

  request.getSession().setAttribute("MBForm", null);

after this, control is forwarded to the second Action which handles the
display.  it checks to see if MBForm is null and, if it is, it fills MBForm
from a DB.   in between these two actions, the controller servlet is
automatically refilling the MBForm with the values that I just nullified..
the only bean property that stays empty is myHash which represents several
groups of multiboxes.  i believe this is a result of the MBForm reset()
method which contains the following:

 myHash.put(multiBoxCategories, new Integer[0]);  //resets several
groups of multiboxes

setting other properties to null in the reset() method is not the solution
as it wipes the value out after every (but somehow it doesn't do the same
thing to the multiboxes?!?)

let me know if this enough background for you to help me diagnose the
problem..  any discussion of reset() or is welcome..  thanks




-
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 set an ActionForm to null

2004-05-13 Thread pls
hi there,

i am trying to set an actionform to null after inserting it's properties
into a DB.
then, control is forwarded to a different action and the info is read from
the DB back into the actionform for display by a JSP.

the only part that is giving me trouble is with explicitly setting my
actionform "MBForm" to null.  After several form submissions and a DB
update, the first Action attempts to clear the values in MBForm:

  request.getSession().setAttribute("MBForm", null);

after this, control is forwarded to the second Action which handles the
display.  it checks to see if MBForm is null and, if it is, it fills MBForm
from a DB.   in between these two actions, the controller servlet is
automatically refilling the MBForm with the values that I just nullified..
the only bean property that stays empty is myHash which represents several
groups of multiboxes.  i believe this is a result of the MBForm reset()
method which contains the following:

 myHash.put(multiBoxCategories, new Integer[0]);  //resets several
groups of multiboxes

setting other properties to null in the reset() method is not the solution
as it wipes the value out after every (but somehow it doesn't do the same
thing to the multiboxes?!?)

let me know if this enough background for you to help me diagnose the
problem..  any discussion of reset() or is welcome..  thanks




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



RE: Declarative Exception handling

2004-05-13 Thread Ashutosh Satyam
That was a nice piece of information.
Thanks a lot Mat.

Regards,
Ashutosh

-Original Message-
From: Lowery, Mat [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 9:19 PM
To: Ashutosh Satyam; Struts Users Mailing List
Subject: RE: Declarative Exception handling


I use the Log Jakarta Taglib in my error page like so:



http://jakarta.apache.org/taglibs/doc/log-doc/intro.html


-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 6:39 AM
To: Struts Users Mailing List
Subject: Declarative Exception handling

Hi,
 In my struts configuration file, I have declared a global exception as 
 mentioned below.

 

 

 I'm using the default ExceptionHandler.

 The idea behind defining this global exception was not to show
 any kind of exception on the browser.
 
 This works fine. But now I'm not able to track the reason for the 
 failure. Tell me approach so that I can see the stack trace in the
 log file / system console. Currently, I'm not able to see any
 exceptions coming on the console.

 Is it a must to sub class the ExceptionHandler to achieve this?


 Regards,
 Ashutosh.


"The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments."


-
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: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?

2004-05-13 Thread Joe Hertz
You might want to ask this on commons-user.

As a datapoint, I'm looking at the Struts 1.2 Nightlies I have built
with, and I don't even see a Commons-Lang.jar packaged with it.

> -Original Message-
> From: Hohlen, John C [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 13, 2004 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?
> 
> 
> We're trying to figure out how backwards compatible 
> Commons-Lang 2.0 is with it's predecessor (1.0.1).  
> Specifically, we'd like to use Commons Lang 2.0 with Struts 
> 1.1 (which is distributed with Commons-Lang 1.0.1).  Has 
> anyone ever attempted this?   I asked this question about a 
> month ago but never received any replies:
>  
http://marc.theaimsgroup.com/?l=struts-user&m=108154032009627&w=2
 
Thanks,

JOHN



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



Repost: Anybody Using Commons-Lang 2.0 With Struts 1.1?

2004-05-13 Thread Hohlen, John C
We're trying to figure out how backwards compatible Commons-Lang 2.0 is with it's 
predecessor (1.0.1).  Specifically, we'd like to use Commons Lang 2.0 with Struts 1.1 
(which is distributed with Commons-Lang 1.0.1).  Has anyone ever attempted this?   I 
asked this question about a month ago but never received any replies:
 
http://marc.theaimsgroup.com/?l=struts-user&m=108154032009627&w=2
 
Thanks,

JOHN


Re: java.lang.OutOfMemoryError after server app start/stop cyclin g

2004-05-13 Thread Jignesh Patel
As per my knowledge the bug of OutOfMemory is related to version less then 
jdk1.4. It has been solved in the 1.4.

-Jignesh
On Thursday 13 May 2004 23:30, Heinle, Chuck wrote:
> We have a similar problem with WebLogic 8.1 SP2...I was told by an
> associate that there is a 1.4.2_02 bug related class loading that might
> associated with the OutOfMemory.
>
> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 1:52 PM
> To: Struts Users Mailing List
> Subject: RE: java.lang.OutOfMemoryError after server app start/stop cycling
>
> At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
> >Putting up the maximum memory Xmx does help as it gives it more memory to
> >use up, but only delays the inevitable :)
> >
> >Is this a struts issue? or does it happen with all tomcat apps?
>
> It happens with every servlet container I've used.  My understanding
> is that to redeploy a webapp, app servers generally discard the
> classloader they have been using and make a new one.  For various
> reasons, this can leave orphan objects which are never garbage
> collected.  If enough of these accumulate, you run out of memory.
>
> Admittedly, I use Struts in all these cases, you might argue that
> it's a Struts issue, since that's the common feature, but I can't
> think of anyways Struts is being particularly careless in a way that
> would aggravate this problem.
>
> I may have a completely wrong understanding of the problem too, but
> this is how we explain it to ourselves around here!
>
> Joe

-- 
Jignesh Patel
Project Leader

Bang Software Technolgy Pvt. Ltd.

 
 (E) [EMAIL PROTECTED]

 (T) 091 484 3942132


 B-4, Smart Business Centre,
 Infopark, SDF IT Building,
 Kusumagiri P.O.,Kakkanad,
 Kochi - 682030,
 Kerala,
 India.

 Information contained in this transmission to the named  addressee, including 
any attachments thereto, should be
 considered the proprietary and confidential information of the sender.  As a 
condition for viewing the information,
 the sender agrees to keep the information confidential, to  refrain from 
disclosing the information, directly or
 indirectly, and to refrain from any actions that would  constitute or 
facilitate unauthorized access to the 
 information without express permission from the sender. The recipient also 
acknowledges and agrees to respect
 sender's intellectual property rights in and to the  information.  If the 
recipient of this transmission is not
 the named addressee, the recipient should immediately notify the sender and 
destroy the information transmitted
 without making any copy or distribution thereof. 

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



Selects

2004-05-13 Thread Jonathan Wright
Can anyone see anything wrong with the following select and option tags? I
cannot fathom out why I keep getting an exception thrown in the
BodyContent.clearBody method.

This does not work:
  Select One  Auckland  Christchurch   Dunedin  Gisborne   Hamilton  Hastings   Invercargill  Napier   Nelson  New Plymouth  Palmerston North   Rotorua  Tauranga   Wanganui  Wellington   Whangarei  Other
The only way I can get the page to work at runtime with the select tag
included is to do the following:


Even a single white space in the body causes the page to fail, e.g.
 

Any help would be most appreciated!

Jonathan


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



Re: findSuccess(Unknown Source)!!

2004-05-13 Thread Caroline Jen
Thanks for the feedbacks.  I have fixed the spelling
(scope).  And my ListThread.java extends Action. 
ListThread.java does not extend ParameterAction.
 
In the end of the ListThread.java, it is a standard:

return ( mapping.findForward( "success" ) );

And the relevant part in my struts.config.xml is:


   


Because ListThread.java does not really submit a form,
I simply put name="articleForm" there.  I have
substitue other forms; nonetheless, I always get:

org.apache.struts.action.RequestProcessor
ProcessException
Warning: unhandle exception thrown: class
java.lang.NullPointerException

And in the log file, I have:

- Root Cause -
java.lang.NullPointerException
at
org.apache.struts.scaffold.ParameterAction.findSuccess(Unknown
Source)
at
org.apache.struts.scaffold.BaseAction.execute(Unknown
Source)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)

--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> Need your expertise to diagnose the problem.
> 
> I have a java class ListThread.java that extends
> Action.  This java class simply calls a couple of
> helper classes to access my database.
> 
> I have not yet prepared a JSP to be displayed in the
> browser after ListThread.java completes its tasks;
> therefore, upon completion, I temporarily wants the
> application to be forwarded to my welcome page.  (My
> welcome page works fine.)
> 
> I got Status 500 error:
> 
> java.lang.NullPointerException
>   at
>
org.apache.struts.scaffold.ParameterAction.findSuccess(Unknown
> Source)
> 
> 
> My struts-config.xml looks like:
> 
>  roles="administrator,editor,contributor"
> path="/message/ListThreads"
> type="org.apache.artimus.message.ListThread"
> name="articleForm"
> scopte="request"
> validate="false">
> name="success"
> path="/signin/Welcome.jsp"/>
> 
> 
> And here is my ListThread.java:
> 
> import LOTS OF PACKAGES AND CLASSES;
> 
> public final class ListThread extends Action
> {
>public ActionForward execute(ActionMapping
> mapping,
> ActionForm form,
> HttpServletRequest
> request,
> HttpServletResponse
> response)
> throws Exception 
>{
> 
>   String memberName = request.getRemoteUser();
> 
>   // for sort and order stuff
>   String sort  = request.getParameter( "sort" );
>   String order = request.getParameter( "order"
> );
> 
>   if ( sort.length() == 0 ) sort =
> "ThreadLastPostDate";
>   if ( order.length()== 0 ) order = "DESC";
> 
>   int offset  = 0;
>   int rows=
> MessageInboxConfig.ROWS_IN_THREADS;
>   offset = Integer.parseInt(
> request.getParameter(
> "offset" ) );
>   rows = Integer.parseInt( request.getParameter(
> "rows" ) );
> 
>   ListThreadHandler lthandler = new
> ListThreadHandler();
>   ListPostHandler lphandler = new
> ListPostHandler();
> 
>   int totalThreads =
> lthandler.getNumberOfThreads_forReceiver( memberName
> );
>   if ( offset > totalThreads ) 
>   {
>  throw new BadInputException( "The offset is
> not allowed to be greater than total rows." );
>   }
> 
>   Collection beans =
>
lthandler.getThreads_forReceiver_withSortSupport_limit(
> memberName, offset, rows, sort, order );
> 
>   SiteUtil.prepareNavigate( request, offset,
> beans.size(), totalThreads,
> MessageInboxConfig.ROWS_IN_THREADS );
>   int totalPosts =
> lphandler.getNumberOfPosts_forReceiver( memberName
> );
> 
>   request.setAttribute( "ThreadBeans", beans );
>   request.setAttribute( "TotalThreads", new
> Integer( totalThreads ) );
>   request.setAttribute( "TotalPosts", new
> Integer(
> totalPosts ) );
> 
>   return ( mapping.findForward( "success" ) );
> 
>}
> }
> 
> 
> 
> 
> 
>   
>   
> __
> Do you Yahoo!?
> Yahoo! Movies - Buy advance tickets for 'Shrek 2'
>
http://movies.yahoo.com/showtimes/movie?mid=1808405861
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



RE: findSuccess(Unknown Source)!!

2004-05-13 Thread Barett McGavock
I believe the parameter action takes a parameter to determine which worker
method to call. Are you using an Action that extends ParameterAction
somewhere in your application? I don't believe it is called unexplicitly.
Could be wrong.

"Unknown Source" in the stack trace just means that the line number was not
available from the version of ParameterAction class the servlet container
was using.

B

> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 13, 2004 6:45 PM
> To: [EMAIL PROTECTED]
> Subject: findSuccess(Unknown Source)!!
> 
> 
> Need your expertise to diagnose the problem.
> 
> I have a java class ListThread.java that extends
> Action.  This java class simply calls a couple of
> helper classes to access my database.
> 
> I have not yet prepared a JSP to be displayed in the
> browser after ListThread.java completes its tasks;
> therefore, upon completion, I temporarily wants the
> application to be forwarded to my welcome page.  (My
> welcome page works fine.)
> 
> I got Status 500 error:
> 
> java.lang.NullPointerException
>   at 
> org.apache.struts.scaffold.ParameterAction.findSuccess(Unknown
> Source)
> 
> 
> My struts-config.xml looks like:
> 
>  roles="administrator,editor,contributor"
> path="/message/ListThreads"
> type="org.apache.artimus.message.ListThread"
> name="articleForm"
> scopte="request"
> validate="false">
> name="success"
> path="/signin/Welcome.jsp"/>
> 
> 
> And here is my ListThread.java:
> 
> import LOTS OF PACKAGES AND CLASSES;
> 
> public final class ListThread extends Action
> {
>public ActionForward execute(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest
> request,
> HttpServletResponse
> response)
> throws Exception 
>{
> 
>   String memberName = request.getRemoteUser();
> 
>   // for sort and order stuff
>   String sort  = request.getParameter( "sort" );
>   String order = request.getParameter( "order" );
> 
>   if ( sort.length() == 0 ) sort =
> "ThreadLastPostDate";
>   if ( order.length()== 0 ) order = "DESC";
> 
>   int offset  = 0;
>   int rows=
> MessageInboxConfig.ROWS_IN_THREADS;
>   offset = Integer.parseInt( request.getParameter(
> "offset" ) );
>   rows = Integer.parseInt( request.getParameter(
> "rows" ) );
> 
>   ListThreadHandler lthandler = new
> ListThreadHandler();
>   ListPostHandler lphandler = new
> ListPostHandler();
> 
>   int totalThreads = 
> lthandler.getNumberOfThreads_forReceiver( memberName );
>   if ( offset > totalThreads ) 
>   {
>  throw new BadInputException( "The offset is
> not allowed to be greater than total rows." );
>   }
> 
>   Collection beans = 
> lthandler.getThreads_forReceiver_withSortSupport_limit(
> memberName, offset, rows, sort, order );
> 
>   SiteUtil.prepareNavigate( request, offset,
> beans.size(), totalThreads,
> MessageInboxConfig.ROWS_IN_THREADS );
>   int totalPosts =
> lphandler.getNumberOfPosts_forReceiver( memberName );
> 
>   request.setAttribute( "ThreadBeans", beans );
>   request.setAttribute( "TotalThreads", new
> Integer( totalThreads ) );
>   request.setAttribute( "TotalPosts", new Integer( totalPosts ) );
> 
>   return ( mapping.findForward( "success" ) );
> 
>}
> }
> 
> 
> 
> 
> 
>   
>   
> __
> Do you Yahoo!?
> Yahoo! Movies - Buy advance tickets for 'Shrek 2' 
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

-
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]



findSuccess(Unknown Source)!!

2004-05-13 Thread Caroline Jen
Need your expertise to diagnose the problem.

I have a java class ListThread.java that extends
Action.  This java class simply calls a couple of
helper classes to access my database.

I have not yet prepared a JSP to be displayed in the
browser after ListThread.java completes its tasks;
therefore, upon completion, I temporarily wants the
application to be forwarded to my welcome page.  (My
welcome page works fine.)

I got Status 500 error:

java.lang.NullPointerException
at
org.apache.struts.scaffold.ParameterAction.findSuccess(Unknown
Source)


My struts-config.xml looks like:


   


And here is my ListThread.java:

import LOTS OF PACKAGES AND CLASSES;

public final class ListThread extends Action
{
   public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest
request,
HttpServletResponse
response)
throws Exception 
   {

  String memberName = request.getRemoteUser();

  // for sort and order stuff
  String sort  = request.getParameter( "sort" );
  String order = request.getParameter( "order" );

  if ( sort.length() == 0 ) sort =
"ThreadLastPostDate";
  if ( order.length()== 0 ) order = "DESC";

  int offset  = 0;
  int rows=
MessageInboxConfig.ROWS_IN_THREADS;
  offset = Integer.parseInt( request.getParameter(
"offset" ) );
  rows = Integer.parseInt( request.getParameter(
"rows" ) );

  ListThreadHandler lthandler = new
ListThreadHandler();
  ListPostHandler lphandler = new
ListPostHandler();

  int totalThreads =
lthandler.getNumberOfThreads_forReceiver( memberName
);
  if ( offset > totalThreads ) 
  {
 throw new BadInputException( "The offset is
not allowed to be greater than total rows." );
  }

  Collection beans =
lthandler.getThreads_forReceiver_withSortSupport_limit(
memberName, offset, rows, sort, order );

  SiteUtil.prepareNavigate( request, offset,
beans.size(), totalThreads,
MessageInboxConfig.ROWS_IN_THREADS );
  int totalPosts =
lphandler.getNumberOfPosts_forReceiver( memberName );

  request.setAttribute( "ThreadBeans", beans );
  request.setAttribute( "TotalThreads", new
Integer( totalThreads ) );
  request.setAttribute( "TotalPosts", new Integer(
totalPosts ) );

  return ( mapping.findForward( "success" ) );

   }
}







__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Struts on iPlanet Web Server 6.0

2004-05-13 Thread brutledg
Hi All-

I need to deploy my Struts app on iPlanet Web Server 6.0 SP5 (not to be
confused with iPlanet App Server).  To test out the servers ability to
handle a Struts app, I successfully deployed 'struts-examples.war' using
the 'wldeploy' tool provided with the server.

I can successfully call the initial page of the app from a browser, but
get the following stack trace when clicking any of the links that execute
Action classes.

I was hoping someone out there could offer advice on how to configure
iPlanet WS 6.0SP5 to use Struts.  Any good/bad experiences?

Thanks,
-Billy

[13/May/2004:18:14:10] failure (  678): Internal error: servlet service
function had thrown ServletException
(uri=/struts-examples/jsp/simple/Simple.j
sp): javax.servlet.ServletException, stack: javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
at _jsps._jsp._simple._Simple_jsp._jspService(_Simple_jsp.java:838)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
at
com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
, root cause: javax.servlet.jsp.JspException
at
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:563)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
at _jsps._jsp._simple._Simple_jsp._jspService(_Simple_jsp.java:179)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:248)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:238)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:519)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:588)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1061)
at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
at
com.iplanet.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.iplanet.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:48)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at com.iplanet.server.ht

Problems with Selects

2004-05-13 Thread Jonathan Wright
I've narrowed the javax.servlet.jsp.tagext.BodyContent.clearBody() problem
down to a select tag in my page.

As soon as I put white space or any option tags inside the select's body the
page fails when invoked.

Anyone else encountered similar problems or am I'm omitting something
glaringly obvious??

Jonathan


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



Re: RE: struts logic-iterate and accessing nested index properties

2004-05-13 Thread Satish Satish
Hi Prasad and all,
How come this part works

<%
ArrayList Test = tForm.getTestResult();
if(Test == null) { logger.debug("Test is null");}
else { logger.debug("Test sixe: " + Test.size()); }

%>

and for this section it throws exception as mentioned below



 Hello





[ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method
for property testResult of bean tForm'
javax.servlet.jsp.JspException: No getter method for property
testResult of bean tForm at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
at
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277)
at


Thanks

Regards,
Satish

 On Fri, 14 May 2004, Prasad, Kamakshya
([EMAIL PROTECTED]) wrote:

> Hi,
> 
> It can as well be done in struts using this
> 
>  indexId="index"> 
> 
> 
>  
> [] 
> 
> 
> KP
> 
> -Original Message-
> From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] 
> Sent: Friday, May 14, 2004 5:28 AM
> To: Struts Users Mailing List
> Subject: RE: struts logic-iterate and accessing nested index
properties
> 
> Thank you Tim. I used JSTL , that solved my problem
> 
> -Original Message-
> From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 13, 2004 1:58 PM
> To: 'Struts Users Mailing List'
> Subject: RE: struts logic-iterate and accessing nested index
properties
> 
> 
> > In my JSP I have coded the following
> >  > indexId="index">  > property='<%= "fooBean[" + index + "].attID" 
> > %>'/> []

> > 
> > When I run the JSP I get the following error
> > Error 500: No getter method for property fooBean[0].attID of

> > bean element 
> 
> Use JSTL:
> 
> 
>
> 
> 
> 
> --
> Tim Slattery
> [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]
> 
> 
> 
> 



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



javax.servlet.jsp.tagext.BodyContent.clearBody()V Exception

2004-05-13 Thread Jonathan Wright
I'm having a very peculiar problem that I'm finding difficult to pin down.
As a bit of background, this is a problem that I have encountered trying to
use the Tomcat Administration web application (I believe this is also a
Struts based app).

I Authored a page in Dreamweaver before converting HTML form, input etc tags
to struts HTML tag library equivalents. The page compiles OK but fails when
I try to load it in a browser. Tomcat produces the following stack trace as
the root cause:

javax.servlet.ServletException:
javax.servlet.jsp.tagext.BodyContent.clearBody()V
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
at org.apache.jsp.Page2_jsp._jspService(Page2_jsp.java:318)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
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.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
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.StandardEngineValve.invoke(StandardEngineValve.java
:174)
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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
at java.lang.Thread.run(Thread.java:534)
The J2EE API docs describe the
javax.servlet.jsp.tagext.BodyContent.clearBody() method as simply "Clear the
body without throwing any exceptions". Well, this obviosly isn't happening
in my case. Is there an easy way to track down the real cause of this
problem? Is it a STRUTS bug? Has anyone else encountered this problem
please help!!

The Tomcat generated code for my JSP is as follows:

package org.apache.jsp;

import javax.servlet.*;import javax.servlet.http.*;import
javax.servlet.jsp.*;import org.apache.jasper.runtime.*;import
nz.co.aboutit.nzda.session.UserView;

public class Page2_jsp extends HttpJspBase {

  private static java.util.Vector _jspx_includes;

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_base;
private org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_html_form_method_action;  private
org.apache.jasper.runtime.TagHandlerPool
_jspx_tagPool_html_text_size_property_maxlength;  private
org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html

RE: struts logic-iterate and accessing nested index properties

2004-05-13 Thread Prasad, Kamakshya
Hi,

It can as well be done in struts using this

 


 
[] 


KP

-Original Message-
From: PADALA, SANDHYA (SBCSI) [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 14, 2004 5:28 AM
To: Struts Users Mailing List
Subject: RE: struts logic-iterate and accessing nested index properties

Thank you Tim. I used JSTL , that solved my problem

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: struts logic-iterate and accessing nested index properties


> In my JSP I have coded the following
>  indexId="index">  property='<%= "fooBean[" + index + "].attID" 
> %>'/> [] 
> 
> When I run the JSP I get the following error
> Error 500: No getter method for property fooBean[0].attID of 
> bean element 

Use JSTL:


   



--
Tim Slattery
[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]



Fwd: Creating a table of radio buttons

2004-05-13 Thread Satish Satish



 forwarded message attached ---



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag--- Begin Message ---
Hi,
I am trying to create a table of radio buttons but have been
unsuccessfully.
I am getting the following exception

[ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method
for property testResultList of bean testResultForm'
javax.servlet.jsp.JspException: No getter method for property
testResultList of bean testResultForm at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
at
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277)
at
Below is my code

In my Action I am
Iterator it = resMap.values().iterator();
logger.debug("Number of TestResult: " + resMap.size());
while (it.hasNext()) {
TestResult tr = (TestResult) it.next();
trList.add(tr);
}
trForm.setTestResultList(trList);

Form:
=
public class TestResultForm
extends ActionForm {
private Logger logger = Logger.getLogger(this.getClass());

private ArrayList testResultList = new ArrayList();

public ArrayList getTestResultList(){
return this.testResultList;
}

public void setTestResultList(ArrayList testResultList) {
this.testResultList = testResultList;
}

public TestResult getTestResultList(int index) {
return (TestResult) this.testResultList.get(index);
}

public void setTestResultList(int index, TestResult tc) {
testResultList.set(index, tc);
}


JSP





<%
TestCase tCase = proj.getTestRoot().searchTestCase(tcid);
pageContext.setAttribute("tCase", tCase,
PageContext.PAGE_SCOPE);
%>








 




Pass


Block


NotRun







Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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


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

[ANNOUNCE] JavaServer Faces in Action book available

2004-05-13 Thread Kito D. Mann
I'm pleased to announce that my book, JavaServer Faces in Action, is now 
available via Manning's Early Access Program (MEAP). MEAP allows you to 
download chapters of the book as they're finished, and then get the print 
version when it becomes available (if you so desire). In addition to 
thorough coverage of JSF, I explain how it relates to Struts and other 
frameworks, and also provide a chapter on Struts integration. You can get 
the book from Manning's site (http://www.manning.com/mann).

~~~
Kito D. Mann ([EMAIL PROTECTED])
Virtua, Inc.
Author, JavaServer Faces in Action 
(http://www.manning.com/mann/index.html)
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

"Existence doesn't necessarily mean living..."  

Tiles Multiple modules 404 error

2004-05-13 Thread Vijay . Kukreja

Return Receipt
   
Your  Tiles Multiple modules 404 error 
document   
:  
   
was   Vijay Kukreja/EU/Star
received   
by:
   
at:   05/13/2004 04:39:18 PM PDT   
   





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



Re: Doubt: how to handle Action threading?

2004-05-13 Thread kimbuba
Thanx Jason for answering.


I saw and i do agree with your design.
I have another question.
Do you think that there are performance implications?
Actions are reused in multithreading.
But since in java all objects go into the heap
it would no difference between using instance vars and local-method vars.

I mean, do you think that there are performance differences between:

1. Subclassing Strut's Action, then calling from it's execute method another
execute on a new object as to be thread safe.
ie:
execute (ActionMapping mapping, ActionF ..){
/*
MyPersonalThreadSafeAction can use all the instance members he wants since
this instance will be re-created for a new thread.
*/
new MyPersonalThreadSafeAction(mapping, forward,...).execute();

}

2. Subclassing Strut's Action but this time using other methods but passing
all the args everytime.
ie:
CustomAction extends Action;
+ execute(arg1,arg2,...)
- privateHandler1(arg1,arg2,...))  //all private handlers can't use instance
members since they are on concurrent access.
- privateHandler2(arg1,arg2,...))

flow->  execute->privateHandler1->privateHandler2 ...

What do you think about it?

I guess the only diff between instance members and local method vars is in
that instance members
can reuse memory space because of the static allocation.
ie: private MyObject myInstance;

Maybe the first case is better because of using instance members.
The problem is that i have to create at least two classes one for the
subclassing of the default Action class
and another for calling the right object, all of that beacuse of Struts
mappings need the class name.
The first class is a kind of wrapper.
Example:
--Mapping:
action type="com.CreateUserAction"

--the class:
public class CreateUserAction extends Action{
...
execute(..){
new MyCreateUserAction().execute();
}

--and the class:
class MyCreateUserAction{
private Object myThreadSafeInstance;

execute(..){
do what i want.




Thnx for your time!

"Jason Miller" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> I have a similar hierarchy, with a base action providing generic
> services like VO manipulation, security methods, exception manipulation,
> and framework interaction, and in general I pass everything as
> parameters.  This is mitigated by the fact that the action classes
> simply adapt the input to the backend, the pass everything off.  In
> other words, the actions don't really do much aside from act as a glue
> layer.
>
> This is really a combination of both concepts you've listed.  The local
> methods provide the generic action services, and the processing for the
> request is actually done by handing everything off to other objects,
> which handle their own synchronization issues.
>
> I would say you're on the right track.
>




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



Tiles Multiple modules 404 error

2004-05-13 Thread Anand Stephen
Greetings,
I am having trouble with multiple struts modules and tiles
configuration...

Web.xml snippet

action
 
org.apache.struts.action.ActionServlet
 
  
  config/admin
  /WEB-INF/struts-admin-config.xml
  
  
  config/admin-tools
 
/WEB-INF/struts-admin-tools-config.xml
  

Module 1 snippet (config/admin):







Module 2 snippet (config/admin-tools):







When I try to access a page from the admin tools
http://localhost:8650/admin-tools/main.do
404 Not Found
/admin-tools/doc.mainLayout was not found on this server.  
If I have only one struts module it works. I am using struts 1.1.

Please advice,
Thank you,
--[sa]




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



Re: Server side validation

2004-05-13 Thread Samuel Rochas
Hello Geeta,

"login" must have been defined as a global-forward ..?
You are right, I am quite new here, I did no notice.

No reason. So just take it out..:)
Ok, it's gone.

But I still get an empty page when I make a validation error :-(

The validation code is going thru, maybe another hint?

Samuel

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


Re: Cannot retrieve definition for form bean null

2004-05-13 Thread Hubert Rabago
You need to associate a form-bean with an action to which a form will be
submitted.
If you don't have an ActionForm to use, try an empty form bean:





and then add 'name="emptyForm"' in your action mapping:

>  roles="administrator,editor,contributor"
> path="/message/ListThreads"
  name="emptyForm"
> type="org.apache.struts.scaffold.ProcessAction"
> parameter="org.apache.artimus.message.ListThread">
> name="success"
> path="/signin/Welcome.jsp"/>
> 


Hmm... in your case, however, you're using , so you really
should have a form bean.  Use the form bean that has the dispatch property.

When the form is submitted, your action will receive an instance of the form
bean you've declared, with the values entered on the form.

hth,
Hubert

--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> I got the root cause of the problem:
> 
> javax.servlet.ServletException: Cannot retrieve
> definition for form bean null
> 
> I know that I screwed up part of the struts-config.xml
> file.  Please point out my problem:
> 
> In my menu.jsp file, I have
> 
> 
> 
> 
>VALUE="submit" STYLE="font: 10pt sans-serif White;
> background:#FFCE9C; width:130px; height:30px">View
> Messages
> 
> 
>   sorted by
>onchange="document.forms[4].elements[2].focus()">
>labelProperty="label"/>
>   
> 
> 
>   in 
>onchange="document.forms[5].elements[2].focus()">
>property="value" labelProperty="label"/>
>   
>   order
> 
> 
> 
> 
> and in my struts-config.xml, I have:
> 
>  roles="administrator,editor,contributor"
> path="/message/ListThreads"
> type="org.apache.struts.scaffold.ProcessAction"
> parameter="org.apache.artimus.message.ListThread">
> name="success"
> path="/signin/Welcome.jsp"/>
> 
> 
> 
> 
>   
>   
> __
> Do you Yahoo!?
> Yahoo! Movies - Buy advance tickets for 'Shrek 2'
> http://movies.yahoo.com/showtimes/movie?mid=1808405861 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Cannot retrieve definition for form bean null

2004-05-13 Thread Caroline Jen
I got the root cause of the problem:

javax.servlet.ServletException: Cannot retrieve
definition for form bean null

I know that I screwed up part of the struts-config.xml
file.  Please point out my problem:

In my menu.jsp file, I have




  View
Messages


  sorted by
  
  
  


  in 
  
  
  
  order




and in my struts-config.xml, I have:


   






__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Re: (repost) validwhen validation

2004-05-13 Thread Matt Bathje
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]



String[] not transferred to form

2004-05-13 Thread Paul Jurgens
Hey guys!

A few months ago our Struts "expert" up and moved to Minnesota.  For the first 
month or so we got by ok, but then we started to really notice the knowledge 
drain.  It was most evident when we decided to upgrade from 1.0.2 to 1.1.  We 
struggled through the upgrade and thought we had gotten past all of the issues 
until we released to QA last week.  QA found a couple bugs that seem to be 
Struts related.  The most confusing one seems about the simplest


We have the following code on a JSP...






And some Java Script that loads N selections into the hidden field (for loop 
omitted).

var hiddenTable = document.all("hiddenParams");
if (!(document.getElementsByName('hiddenSearchParameterValues')[ndx]))
{
newRow = hiddenTable.insertRow();
cell1 = newRow.insertCell();
cell1.innerHTML = '';
}

document.getElementsByName('hiddenSearchParameterValues')[ndx].value = 
document.forms[0].searchParameters.options[ndx].value;


And in the Form object we have the following function declarations.
public void setHiddenSearchParameterValues(String selectedParameters)
public void setHiddenSearchParameterValues(String[] selectedParameters)


The setHiddenSearchParameterValues(String selectedParameters) methods was added 
earlier today by myself just to make sure Struts wasn't mistakenly looking for 
a different signature.


The bug is that the setHiddenSearchParameterValues(String[] selectedParameters)
is never getting called.  We have deployed several versions of this application 
under Struts 1.0.2 that were all running successfully over the past 2 years.  
According to CVS this code hasn't changed in 6 or 7 months!

And to make matters more confusing we've used a sniffer to see the request that 
is sent back after the submit is pressed and the data is there!  Somehow Struts 
is not picking it up.  I know it is some subtle configuration problem, but I 
have no idea where to begin looking, more less what question to ask.


Any suggestions?  Ideas?

Thanks!
Paul Jurgens



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



(repost) validwhen validation

2004-05-13 Thread Josh Cronemeyer
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]



Creating a table of radio buttons

2004-05-13 Thread Satish Satish
Hi,
I am trying to create a table of radio buttons but have been
unsuccessfully.
I am getting the following exception

[ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method
for property testResultList of bean testResultForm'
javax.servlet.jsp.JspException: No getter method for property
testResultList of bean testResultForm at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)
at
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:277)
at
Below is my code

In my Action I am
Iterator it = resMap.values().iterator();
logger.debug("Number of TestResult: " + resMap.size());
while (it.hasNext()) {
TestResult tr = (TestResult) it.next();
trList.add(tr);
}
trForm.setTestResultList(trList);

Form:
=
public class TestResultForm
extends ActionForm {
private Logger logger = Logger.getLogger(this.getClass());

private ArrayList testResultList = new ArrayList();

public ArrayList getTestResultList(){
return this.testResultList;
}

public void setTestResultList(ArrayList testResultList) {
this.testResultList = testResultList;
}

public TestResult getTestResultList(int index) {
return (TestResult) this.testResultList.get(index);
}

public void setTestResultList(int index, TestResult tc) {
testResultList.set(index, tc);
}


JSP





<%
TestCase tCase = proj.getTestRoot().searchTestCase(tcid);
pageContext.setAttribute("tCase", tCase,
PageContext.PAGE_SCOPE);
%>








 




Pass


Block


NotRun







Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



RE: nested logic tag

2004-05-13 Thread Kathy Zhou
Just follow-up my previous note: I got this work by using:

  





fyi,

Kathy

-Original Message-
From:   Kathy Zhou [SMTP:[EMAIL PROTECTED]
Sent:   Thursday, May 13, 2004 2:39 PM
To: '[EMAIL PROTECTED]'
Subject:nested logic tag

I need your help on how to use nested logic tag:

I have a ArrayList list1. each element of the list1 is a ArrayList too. In 
Java code, it will be like:

for(int i=0; i

RE: Server side validation

2004-05-13 Thread Geeta Ramani
Samuel:

> > input="/myDir/myForm.jsp"
> If the page is under /web (root of the application), then a 
> "/page.jsp" 
> is ok?

Yes, that should be ok.

> Why in the login example there is only a input="login" 
> without a page name?

"login" must have been defined as a global-forward ..?

> 
> > ..and you may want to check on the "scope=session" bit. 
>  > Are you using session scope?
> For what? What should be in the session?

No reason. So just take it out..:)

> 
> Samuel


regards,
Geeta 

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



RE: struts logic-iterate and accessing nested index properties

2004-05-13 Thread PADALA, SANDHYA (SBCSI)
Thank you Tim. I used JSTL , that solved my problem

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: struts logic-iterate and accessing nested index properties


> In my JSP I have coded the following
>  indexId="index">  property='<%= "fooBean[" + index + "].attID" 
> %>'/> [] 
> 
> When I run the JSP I get the following error
> Error 500: No getter method for property fooBean[0].attID of 
> bean element 

Use JSTL:


   



--
Tim Slattery
[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: forward request parameter

2004-05-13 Thread Geeta Ramani
Samuel:

> -Original Message-
> From: Samuel Rochas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 4:20 PM
> To: Struts Users Mailing List
> Subject: Re: forward request parameter
> 
> 
> Hello Geeta,
> 
> Thanks.
> 

> It means I'll have to process it again, and put again in the request?

Yes, that's right.

> So a session variable may be more apropriate?

That's really up to you. If you put it in the session you will hav eto keep track of 
it and clean it up when you are done with it..

> 
> Samuel

Regards,
Geeta 

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



RE: Form not being repopulated

2004-05-13 Thread Geeta Ramani
Nestor:

Add an "input" attribute in, something like this:



this way when validation fails control will go back to login/login.jsp
Geeta


> My struts-config looks like this:
>  
>  type="com.tcs.reclamos.struts.action.LoginAction"
> name="loginForm" scope="request">
>redirect="true"/>
>   
> 
>  
> Every time a failure occurs because a validation problem the 
> form is not
> repopulated. What else should I check?

>  
> Thanks 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]



Re: forward request parameter

2004-05-13 Thread Samuel Rochas
Hello Geeta,

Thanks.

Geeta Ramani wrote:

You will have to put the data again in the request 
> scope in your second action..
It means I'll have to process it again, and put again in the request?
So a session variable may be more apropriate?
Samuel

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


Re: Server side validation

2004-05-13 Thread Samuel Rochas
Hello Geeta,

Thanks again for your answer.

Geeta Ramani wrote:
The "input" field is the path to the jsp where your form resides, something like: 

	input="/myDir/myForm.jsp"
If the page is under /web (root of the application), then a "/page.jsp" 
is ok?
Why in the login example there is only a input="login" without a page name?

..and you may want to check on the "scope=session" bit. 
> Are you using session scope?
For what? What should be in the session?
Samuel

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


Form not being repopulated

2004-05-13 Thread Nestor Boscan
Hi
 
I'm working with struts and tiles and I have a problem with my forms that
they are not being repopulated. I have a simple login form like this:
 
 
   

 
   User
 
 
   
  


 
  Password 
 
 
  
 


 
  
 

 
 
 
My struts-config looks like this:
 

  
  

 
Every time a failure occurs because a validation problem the form is not
repopulated. What else should I check?
 
Thanks in advance



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



RE: Server side validation

2004-05-13 Thread Geeta Ramani
Samuel: 

The "input" field is the path to the jsp where your form resides, something like: 

input="/myDir/myForm.jsp"

..and you may want to check on the "scope=session" bit. Are you using session scope?

Geeta

> -Original Message-
> From: Samuel Rochas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 11:42 AM
> To: Struts Users Mailing List
> Subject: Server side validation
> 
> 
> Hello,
> 
> I am trying to use server side validation. I validate my form data in 
> the validate method of the form. When there is a validation error the 
> application shows me a blank page, and not the form again.
> 
> I guess I have an error in the action mapping configuration in 
> struts-config, I am not sure about the use of the "input" field.
> 
>   type="x.y.ItemNewAction"
> name="itemForm"
> scope="session"
> input="item">
>
>  
> 
> My form validation works fine with the login (from the struts 
> example) 
> but I can't see what is the difference between both form 
> configuration.
> 
> Can anybody help?
> 
> Thanks
> 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]
> 
> 

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



RE: forward request parameter

2004-05-13 Thread Geeta Ramani
Sameul:

You will have to put the data again in the request scope in your second action..

Geeta

> -Original Message-
> From: Samuel Rochas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 11:43 AM
> To: Struts Users Mailing List
> Subject: forward request parameter
> 
> 
> Hello,
> 
> I am using an Action which puts some data in the request scope. That's
> just fine to display the data in the next jsp page (let's
> call it target.jsp).
> 
> I am submiting a form in target.jsp which should do some 
> action an show
> again the target.jsp page.
> 
> When I show again the target.jsp page, the data are not 
> shown. How can I
> do to show again my data without using a session variable?
> 
> Sincerly
> 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]
> 
> 

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



forward request parameter

2004-05-13 Thread Samuel Rochas
Hello,

I am using an Action which puts some data in the request scope. That's
just fine to display the data in the next jsp page (let's
call it target.jsp).
I am submiting a form in target.jsp which should do some action an show
again the target.jsp page.
When I show again the target.jsp page, the data are not shown. How can I
do to show again my data without using a session variable?
Sincerly
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]


Server side validation

2004-05-13 Thread Samuel Rochas
Hello,

I am trying to use server side validation. I validate my form data in 
the validate method of the form. When there is a validation error the 
application shows me a blank page, and not the form again.

I guess I have an error in the action mapping configuration in 
struts-config, I am not sure about the use of the "input" field.


  

My form validation works fine with the login (from the struts example) 
but I can't see what is the difference between both form configuration.

Can anybody help?

Thanks
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]


converting to FormFile

2004-05-13 Thread Octavia Yung
Hi All,

I have an entity class object which has been created from a FormFile object.  Is it 
possible to convert this object back to a FormFile object?  If so, how does one 
proceed?

Thanks much!

Octavia

RE: struts logic-iterate and accessing nested index properties

2004-05-13 Thread Slattery, Tim - BLS
> In my JSP I have coded the following
>  indexId="index">  property='<%= "fooBean[" + index + "].attID" 
> %>'/> [] 
> 
> When I run the JSP I get the following error
> Error 500: No getter method for property fooBean[0].attID of 
> bean element 

Use JSTL:


   



--
Tim Slattery
[EMAIL PROTECTED]


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



struts logic-iterate and accessing nested index properties

2004-05-13 Thread PADALA, SANDHYA (SBCSI)
Hi 
I have a form bean which extexnds Action form . 
FooForm

This FooForm has an array of another java bean say FooJavaBean


Public class FooForm extends ActionForm {

Public FooJavaBean[] fooBean = ;

Public FooJavaBean getFooBean(int index)
{
return fooBean[index];
}

Public FooJavaBean[] getFooBean()
{
return fooBean;
}

Public void setFooBean(int index, FooJavaBean fb)
{
this.fooBean[index] = fb;
}

Public void setFooBean(FooJavaBean[] fb)
{
this.fooBean = fb;
}

}

public class FooJavaBean {

public String attID;


public String getAttID()
{
return attID;
}

public void setAttID(String id)
{
this.attID = id;
}

}

I have to iterate over the FooJavaBean array and display the attID for
each FooJavaBean in the array.

In my JSP I have coded the following

 []


When I run the JSP I get the following error
Error 500: No getter method for property fooBean[0].attID of bean
element 

Can someone please help me out what I am doing wrong. I started learning
struts only a week ego. So I might be doing some silly mistake. I will
be very thankful if one of you can figure what I am doing wrong.

Thank you in advance
Sandhya


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



struts logic-iterate and accessing nested index properties

2004-05-13 Thread PADALA, SANDHYA (SBCSI)
Hi 
I have a form bean which extexnds Action form . 
FooForm

This FooForm has an array of another java bean say FooJavaBean


Public class FooForm extends ActionForm {

Public FooJavaBean[] fooBean = ;

Public FooJavaBean getFooBean(int index)
{
return fooBean[index];
}

Public FooJavaBean[] getFooBean()
{
return fooBean;
}

Public void setFooBean(int index, FooJavaBean fb)
{
this.fooBean[index] = fb;
}

Public void setFooBean(FooJavaBean[] fb)
{
this.fooBean = fb;
}

}

public class FooJavaBean {

public String attID;


public String getAttID()
{
return attID;
}

public void setAttID(String id)
{
this.attID = id;
}

}

I have to iterate over the FooJavaBean array and display the attID for
each FooJavaBean in the array.

In my JSP I have coded the following

 []


When I run the JSP I get the following error
Error 500: No getter method for property fooBean[0].attID of bean
element 

Can someone please help me out what I am doing wrong. I started learning
struts only a week ego. So I might be doing some silly mistake. I will
be very thankful if one of you can figure what I am doing wrong.

Thank you in advance
Sandhya




 -Original Message-
From: None None [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Language resource bundles problem


That seems right to me... I added the From: "Harjot Narula" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Language resource bundles problem
>Date: Thu, 13 May 2004 21:05:31 +0530
>
>Hi
>
>I think you need to mention something like this in web.xml
>
>   
>config
>/WEB-INF/struts-config.xml
>   
>
>and in struts-config.xml  you need to have this
>
>   
>   
>
>you can use this in JSP as
>
>
>
>This will also work probably
>
>myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));
>
>Correct me if I am wrong
>
>Harjot
>
>
>
>
>
>- Original Message -
>From: "None None" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, May 13, 2004 8:54 PM
>Subject: Language resource bundles problem
>
>
> > Hello all.  I posted this question a little while ago as a reply to
>another
> > thread, but I figured the question might be lost there...
> >
> > I'm trying to get multiple language support to work.  I have created
two
> > files, ofmResources.properties and ofmResources_de.properties and
stored
> > them in WEB-INF/classes.
> >
> > In web.xml I have:
> >
> > ...
> > 
> >   application
> >   ofmResources
> > 
> > ...
> >
> > ...as an init parameter of ActionServlet.  Then, in a particular
action 
>I
> > need to return a message to the view, so I do this:
> >
> > MessageResources mr = getResources(request);
> > myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
> >
> > Now, this works just fine.  My message is displayed as a result of
the
> > onLoad event of my page via a simple JavaScript alert box.  Very
cool.
> >
> > However, if I want to display the message from the German resource
file, 
>I
> > can't get it to work.  I thought all I had to do was this:
> >
> > myActionForm.setMessage(mr.getMessage("de",
"messages.deleteFailed"));
> >
> > ...but it always seems to return null.  I am expecting that the 
>framework
> > will, in simplest terms, just append _de to the "ofmResources" value
of
>the
> > application init param, and therefore get the messages.deleteFailed 
>value
> > out of that file rather than the default ofmResources.properties
file.
> >
> > Am I nuts or should it not work that way?  If I'm nuts (or nutier
than
> > normal :) ), then how does one get this to work?  If I'm not nuts,
any
>ideas
> > why what I'm doing doesn't work?  Thanks all!
> >
> > _
> > Best Restaurant Giveaway Ever! Vote for your favorites for a chance
to 
>win
> > $1 million! http://local.msn.com/special/giveaway.asp
> >
> >
> >
-
> > 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]
>

_
Is your PC infected? Get a FREE online computer virus scan from
McAfee(r) 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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]



nested logic tag

2004-05-13 Thread Kathy Zhou
I need your help on how to use nested logic tag:

I have a ArrayList list1. each element of the list1 is a ArrayList too. In 
Java code, it will be like:

for(int i=0; i

nested logic tag

2004-05-13 Thread Kathy Zhou
I need your help on how to use nested logic tag:

I have a ArrayList list1. each element of the list1 is a ArrayList too. In
Java code, it will be like:

for(int i=0; i

RE: Language resource bundles problem

2004-05-13 Thread None None
Another related problem...

I've gotten this working as you state fine now.  I have a session attribute, 
countryCode, that is literally just EN, DE, etc.  I have some images of 
flags, when you click one it calls an action that sets the appropriate code 
in session (I also do this in the first Action called in my app, defaulting 
to EN).

Here's my question... in my JSP's, when using , I know that I 
can specify bundle="en" or bundle="de" and that works, but how can I set the 
bundle attribute to a variable value, namely the value of the session 
attribute countryCode?

Thanks again!


From: Paul McCulloch <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: Language resource bundles problem
Date: Thu, 13 May 2004 16:47:00 +0100
You are calling the getMessage(String, Object) method. The String is the 
key
& the object is a substitution paramter (i.e. {0}).

You want the getMessage(Locale, String) method. You can eaither create a
Locale from 'de' or get the users first requested locale with
"request.getSession().getAttribute(Globals.LOCALE_KEY);"
HTH,

Paul

> MessageResources mr = getResources(request);
> myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
>
> Now, this works just fine.  My message is displayed as a
> result of the
> onLoad event of my page via a simple JavaScript alert box.  Very cool.
>
> However, if I want to display the message from the German
> resource file, I
> can't get it to work.  I thought all I had to do was this:
>
> myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));
>


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If 
you are not the addressee indicated in this message (or responsible for 
delivery of the message to such person), you may not copy or deliver this 
message to anyone. In such case, you should destroy this message, and 
notify us immediately. If you or your employer does not consent to Internet 
email messages of this kind, please advise us immediately. Opinions, 
conclusions and other information expressed in this message are not given 
or endorsed by my Company or employer unless otherwise indicated by an 
authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore strongly 
advised to undertake anti virus checks prior to accessing the attachment to 
this electronic mail.  Axios Systems Ltd grants no warranties regarding 
performance use or quality of any attachment and undertakes no liability 
for loss or damage howsoever caused.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself with the new version of MSN Messenger! Download today - 
it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/

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


RE: java.lang.OutOfMemoryError after server app start/stop cyclin g

2004-05-13 Thread Heinle, Chuck
We have a similar problem with WebLogic 8.1 SP2...I was told by an associate
that there is a 1.4.2_02 bug related class loading that might associated
with the OutOfMemory.

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 1:52 PM
To: Struts Users Mailing List
Subject: RE: java.lang.OutOfMemoryError after server app start/stop cycling

At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
>Putting up the maximum memory Xmx does help as it gives it more memory to
>use up, but only delays the inevitable :)
>
>Is this a struts issue? or does it happen with all tomcat apps?

It happens with every servlet container I've used.  My understanding 
is that to redeploy a webapp, app servers generally discard the 
classloader they have been using and make a new one.  For various 
reasons, this can leave orphan objects which are never garbage 
collected.  If enough of these accumulate, you run out of memory.

Admittedly, I use Struts in all these cases, you might argue that 
it's a Struts issue, since that's the common feature, but I can't 
think of anyways Struts is being particularly careless in a way that 
would aggravate this problem.

I may have a completely wrong understanding of the problem too, but 
this is how we explain it to ourselves around here!

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]

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



RE: java.lang.OutOfMemoryError after server app start/stop cycling

2004-05-13 Thread Joe Germuska
At 6:07 PM +0100 5/13/04, Daniel Perry wrote:
Putting up the maximum memory Xmx does help as it gives it more memory to
use up, but only delays the inevitable :)
Is this a struts issue? or does it happen with all tomcat apps?
It happens with every servlet container I've used.  My understanding 
is that to redeploy a webapp, app servers generally discard the 
classloader they have been using and make a new one.  For various 
reasons, this can leave orphan objects which are never garbage 
collected.  If enough of these accumulate, you run out of memory.

Admittedly, I use Struts in all these cases, you might argue that 
it's a Struts issue, since that's the common feature, but I can't 
think of anyways Struts is being particularly careless in a way that 
would aggravate this problem.

I may have a completely wrong understanding of the problem too, but 
this is how we explain it to ourselves around here!

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]


RE: Language resource bundles problem

2004-05-13 Thread None None
Sorry Paul, I actually missed your reply (the inevitable result of having 
five different high-volume mailing lists filing into one eMail account).  
Indeed, what you state did the trick, thank you very much!

Oh, actually, one other question... I've never had to think about 
internationalization before, so this question is out of my experience... is 
there a Local object in session by default, or do I need to put it there 
myself as the result of the first request of my app?  Thanks again!

From: Paul McCulloch <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: Language resource bundles problem
Date: Thu, 13 May 2004 16:47:00 +0100
You are calling the getMessage(String, Object) method. The String is the 
key
& the object is a substitution paramter (i.e. {0}).

You want the getMessage(Locale, String) method. You can eaither create a
Locale from 'de' or get the users first requested locale with
"request.getSession().getAttribute(Globals.LOCALE_KEY);"
HTH,

Paul

> MessageResources mr = getResources(request);
> myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
>
> Now, this works just fine.  My message is displayed as a
> result of the
> onLoad event of my page via a simple JavaScript alert box.  Very cool.
>
> However, if I want to display the message from the German
> resource file, I
> can't get it to work.  I thought all I had to do was this:
>
> myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));
>


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If 
you are not the addressee indicated in this message (or responsible for 
delivery of the message to such person), you may not copy or deliver this 
message to anyone. In such case, you should destroy this message, and 
notify us immediately. If you or your employer does not consent to Internet 
email messages of this kind, please advise us immediately. Opinions, 
conclusions and other information expressed in this message are not given 
or endorsed by my Company or employer unless otherwise indicated by an 
authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore strongly 
advised to undertake anti virus checks prior to accessing the attachment to 
this electronic mail.  Axios Systems Ltd grants no warranties regarding 
performance use or quality of any attachment and undertakes no liability 
for loss or damage howsoever caused.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Doubt: how to handle Action threading?

2004-05-13 Thread Jason Miller
I have a similar hierarchy, with a base action providing generic 
services like VO manipulation, security methods, exception manipulation, 
and framework interaction, and in general I pass everything as 
parameters.  This is mitigated by the fact that the action classes 
simply adapt the input to the backend, the pass everything off.  In 
other words, the actions don't really do much aside from act as a glue 
layer.

This is really a combination of both concepts you've listed.  The local 
methods provide the generic action services, and the processing for the 
request is actually done by handing everything off to other objects, 
which handle their own synchronization issues.

I would say you're on the right track.

kimbuba wrote:

Hello i have the following doubt.
Actions are multithreaded.
That means that more than one thread can access the same action.
Therefore a class that extends an Action cant' use instance members without
appropriate synch.
I have the following doubt: i have specialized subclasses hierarcy of Action
class; each one with more than one method.
I guess two soultions:
1) do a subclass hierarcy  with no instance members so evrything is passed
as a local method field with no synch issues. (i could even declare all
methods static )
2) do 2 classes: one that subclass Action but under the execute method it
will instantiate a new Object and execute it's own "run" method.
Doing that way the new Object will haver no synch issues.
I'm interested on what kind of solutions have you adopded.

thnx a lot!

kimbuba.



-
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]


Doubt: how to handle Action threading?

2004-05-13 Thread kimbuba
Hello i have the following doubt.
Actions are multithreaded.
That means that more than one thread can access the same action.
Therefore a class that extends an Action cant' use instance members without
appropriate synch.


I have the following doubt: i have specialized subclasses hierarcy of Action
class; each one with more than one method.

I guess two soultions:
1) do a subclass hierarcy  with no instance members so evrything is passed
as a local method field with no synch issues. (i could even declare all
methods static )
2) do 2 classes: one that subclass Action but under the execute method it
will instantiate a new Object and execute it's own "run" method.
Doing that way the new Object will haver no synch issues.

I'm interested on what kind of solutions have you adopded.

thnx a lot!

kimbuba.




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



RE: Language resource bundles problem

2004-05-13 Thread Paul McCulloch
You don't need anything in struts.xml - as I said in my other message you
are just calling the wrong getMessage() method.

Paul

> -Original Message-
> From: None None [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 6:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Language resource bundles problem
> 
> 
> That seems right to me... I added the  as you state 
> (I already had the config init param in web.xml), but it 
> still doesn't seem 
> to be working, looks like it's still getting null.
> 
> 
> >From: "Harjot Narula" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Language resource bundles problem
> >Date: Thu, 13 May 2004 21:05:31 +0530
> >
> >Hi
> >
> >I think you need to mention something like this in web.xml
> >
> >   
> >config
> >/WEB-INF/struts-config.xml
> >   
> >
> >and in struts-config.xml  you need to have this
> >
> >   
> >   
> >
> >you can use this in JSP as
> >
> >
> >
> >This will also work probably
> >
> >myActionForm.setMessage(mr.getMessage("de", 
> "messages.deleteFailed"));
> >
> >Correct me if I am wrong
> >
> >Harjot
> >
> >
> >
> >
> >
> >- Original Message -
> >From: "None None" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 13, 2004 8:54 PM
> >Subject: Language resource bundles problem
> >
> >
> > > Hello all.  I posted this question a little while ago as 
> a reply to
> >another
> > > thread, but I figured the question might be lost there...
> > >
> > > I'm trying to get multiple language support to work.  I 
> have created two
> > > files, ofmResources.properties and 
> ofmResources_de.properties and stored
> > > them in WEB-INF/classes.
> > >
> > > In web.xml I have:
> > >
> > > ...
> > > 
> > >   application
> > >   ofmResources
> > > 
> > > ...
> > >
> > > ...as an init parameter of ActionServlet.  Then, in a 
> particular action 
> >I
> > > need to return a message to the view, so I do this:
> > >
> > > MessageResources mr = getResources(request);
> > > myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
> > >
> > > Now, this works just fine.  My message is displayed as a 
> result of the
> > > onLoad event of my page via a simple JavaScript alert 
> box.  Very cool.
> > >
> > > However, if I want to display the message from the German 
> resource file, 
> >I
> > > can't get it to work.  I thought all I had to do was this:
> > >
> > > myActionForm.setMessage(mr.getMessage("de", 
> "messages.deleteFailed"));
> > >
> > > ...but it always seems to return null.  I am expecting that the 
> >framework
> > > will, in simplest terms, just append _de to the 
> "ofmResources" value of
> >the
> > > application init param, and therefore get the 
> messages.deleteFailed 
> >value
> > > out of that file rather than the default 
> ofmResources.properties file.
> > >
> > > Am I nuts or should it not work that way?  If I'm nuts 
> (or nutier than
> > > normal :) ), then how does one get this to work?  If I'm 
> not nuts, any
> >ideas
> > > why what I'm doing doesn't work?  Thanks all!
> > >
> > > _
> > > Best Restaurant Giveaway Ever! Vote for your favorites 
> for a chance to 
> >win
> > > $1 million! http://local.msn.com/special/giveaway.asp
> > >
> > >
> > > 
> -
> > > 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]
> >
> 
> _
> Is your PC infected? Get a FREE online computer virus scan 
> from McAfee® 
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail 

Re: Language resource bundles problem

2004-05-13 Thread None None
That seems right to me... I added the 


From: "Harjot Narula" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Language resource bundles problem
Date: Thu, 13 May 2004 21:05:31 +0530
Hi

I think you need to mention something like this in web.xml

  
   config
   /WEB-INF/struts-config.xml
  
and in struts-config.xml  you need to have this

  
  
you can use this in JSP as



This will also work probably

myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));

Correct me if I am wrong

Harjot





- Original Message -
From: "None None" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 8:54 PM
Subject: Language resource bundles problem
> Hello all.  I posted this question a little while ago as a reply to
another
> thread, but I figured the question might be lost there...
>
> I'm trying to get multiple language support to work.  I have created two
> files, ofmResources.properties and ofmResources_de.properties and stored
> them in WEB-INF/classes.
>
> In web.xml I have:
>
> ...
> 
>   application
>   ofmResources
> 
> ...
>
> ...as an init parameter of ActionServlet.  Then, in a particular action 
I
> need to return a message to the view, so I do this:
>
> MessageResources mr = getResources(request);
> myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
>
> Now, this works just fine.  My message is displayed as a result of the
> onLoad event of my page via a simple JavaScript alert box.  Very cool.
>
> However, if I want to display the message from the German resource file, 
I
> can't get it to work.  I thought all I had to do was this:
>
> myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));
>
> ...but it always seems to return null.  I am expecting that the 
framework
> will, in simplest terms, just append _de to the "ofmResources" value of
the
> application init param, and therefore get the messages.deleteFailed 
value
> out of that file rather than the default ofmResources.properties file.
>
> Am I nuts or should it not work that way?  If I'm nuts (or nutier than
> normal :) ), then how does one get this to work?  If I'm not nuts, any
ideas
> why what I'm doing doesn't work?  Thanks all!
>
> _
> Best Restaurant Giveaway Ever! Vote for your favorites for a chance to 
win
> $1 million! http://local.msn.com/special/giveaway.asp
>
>
> -
> 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]
_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: java.lang.OutOfMemoryError after server app start/stop cycling

2004-05-13 Thread Daniel Perry
And along those lines, two questions:

1. will i need to change anything if i move my app to tomcat 5, or will it
work as-is?

2. running tomcat as a windows service, it seems to ignore JAVA_OPTS and
CATALINA_OPTS envirorment options.  How can i give it the -Xmx option?

Daniel.

-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 18:08
To: Struts Users Mailing List
Subject: RE: java.lang.OutOfMemoryError after server app start/stop
cycling


Putting up the maximum memory Xmx does help as it gives it more memory to
use up, but only delays the inevitable :)

Is this a struts issue? or does it happen with all tomcat apps?

Daniel.

-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 17:49
To: 'Struts Users Mailing List'
Subject: RE: java.lang.OutOfMemoryError after server app start/stop
cycling


I've been having the same problem, I emailed a friend to ask him about it
and he replied with the following:

"I'm not too sure. You could try try tweaking the JVM heap size. You can set
these by the "-Xms", "-Xmx", "-XX:NewSize", and "-XX:MaxNewSize". The values
they'll take will differ from system to system depending on OS and the
amount of physical/virtual memory on the machine. Take a look at the Apache
and Sun websites on what values they should take and where to set them."

I haven't gotten around to trying it yet, let me know if this is a help

CH


-Original Message-
From: Daniel Perry [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 17:01
To: Struts User List
Subject: java.lang.OutOfMemoryError after server app start/stop cycling

Does anyone else out there get:

java.lang.OutOfMemoryError

exceptions after stoping and starting their struts webapp in tomcat manager?

Any idea how to stop this?

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]



-
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 and save form

2004-05-13 Thread Heligon Sandra
Hi,

Thanks for you response.

I was probably not very clear, so I prefer to explain the
configuration again.

My form is associated to a LookupDispatchAction


we have a lot of data in our form that we want to save before
displaying the next page.
That is why we add submit on the onchange



The execute function of setupLookupDispatchAction seems to be called twice.
In debug mode (step by step) several thread seem to work simultaneously: it
jumps
from a line to another without logic.

Replacing the hyperlink by an image or a button works but we need to solve
the problem for combobox (html:select).
On the Onchange method we should update fields on the form.

Sandra

-Original Message-
From: Axel Stahlhut [mailto:[EMAIL PROTECTED]
Sent: 13 May 2004 16:05
To: Struts Users Mailing List
Subject: Re: Html:link and save form


Hi Sandra,

a link never submits data of the surrounding form. If you do it the way 
you did, this should work, but if the user has javascript disabled, 
nothing is submitted. You have got to check at least for errors from 
that. But the user will never know or understand, ehat is happening. You 
should use a button, maybe an image button, and the image is the linktext?!

Regards axel

Heligon Sandra wrote:

>I have a form with a htlm:link 
>
>paramName="address" onclick="document.forms[0].submit();">
>
>I need to add submit on the onclick to have changes of the form.
>
>If I don't make submit the state of the form is not saved.
>
>Is it a bug ?
>
>Sandra
>
>
>-
>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: Newbie question: How to implement conditional validation in an ActionForm?

2004-05-13 Thread Adam Lipscombe
That did the trick.  Many thanks!


-Original Message-
From: John Moore [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2004 17:58
To: Struts Users Mailing List
Subject: Re: Newbie question: How to implement conditional validation in an
ActionForm?


Adam Lipscombe wrote:

>
>Is there any way to recognise that the cancel button has been pressed 
>wothin the validate method? Or should I move the validation to the 
>Action classes?
>
>  
>
Well yes, it doesn't really matter where you do it, the same thing 
applies. I presume your Cancel button is a submit button. You can check 
for whether it has been clicked before doing any testing of page number, 
thus:

String submitText=httpServletRequest.getParameter("submit");
if(submitText!=null && submitText.trim().equalsIgnoreCase("Cancel")){
//do whatever

HTH,

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]



RE: Declarative Exception handling

2004-05-13 Thread Lowery, Mat
I use the Log Jakarta Taglib in my error page like so:



http://jakarta.apache.org/taglibs/doc/log-doc/intro.html


-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 13, 2004 6:39 AM
To: Struts Users Mailing List
Subject: Declarative Exception handling

Hi,
 In my struts configuration file, I have declared a global exception as 
 mentioned below.

 

 

 I'm using the default ExceptionHandler.

 The idea behind defining this global exception was not to show
 any kind of exception on the browser.
 
 This works fine. But now I'm not able to track the reason for the 
 failure. Tell me approach so that I can see the stack trace in the
 log file / system console. Currently, I'm not able to see any
 exceptions coming on the console.

 Is it a must to sub class the ExceptionHandler to achieve this?


 Regards,
 Ashutosh.


"The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments."


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



RE: Language resource bundles problem

2004-05-13 Thread Paul McCulloch
You are calling the getMessage(String, Object) method. The String is the key
& the object is a substitution paramter (i.e. {0}).

You want the getMessage(Locale, String) method. You can eaither create a
Locale from 'de' or get the users first requested locale with
"request.getSession().getAttribute(Globals.LOCALE_KEY);"

HTH,

Paul

> MessageResources mr = getResources(request);
> myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
> 
> Now, this works just fine.  My message is displayed as a 
> result of the 
> onLoad event of my page via a simple JavaScript alert box.  Very cool.
> 
> However, if I want to display the message from the German 
> resource file, I 
> can't get it to work.  I thought all I had to do was this:
> 
> myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));
> 



**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**


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



keeping VO on form Bean through JSP

2004-05-13 Thread Williams, Robert E

Hello,

I am trying to pass parameters on a form bean (a VO and a Collection), from
a JSP, so that if validation fails, the parameter can be used to repaint the
page.

We are using a two action pattern, where the first action prefills a form
bean.  Since the action mapping scope = "request" the parameters don't get
passed from the JSP to the next Form, unless the JSP does the hand-off.

Could anyone give an example of how this might be done?

Thank you,
Rob

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



Re: Language resource bundles problem

2004-05-13 Thread Harjot Narula
Hi

I think you need to mention something like this in web.xml

  
   config
   /WEB-INF/struts-config.xml
  

and in struts-config.xml  you need to have this

  
  

you can use this in JSP as



This will also work probably

myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));

Correct me if I am wrong

Harjot





- Original Message - 
From: "None None" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 8:54 PM
Subject: Language resource bundles problem


> Hello all.  I posted this question a little while ago as a reply to
another
> thread, but I figured the question might be lost there...
>
> I'm trying to get multiple language support to work.  I have created two
> files, ofmResources.properties and ofmResources_de.properties and stored
> them in WEB-INF/classes.
>
> In web.xml I have:
>
> ...
> 
>   application
>   ofmResources
> 
> ...
>
> ...as an init parameter of ActionServlet.  Then, in a particular action I
> need to return a message to the view, so I do this:
>
> MessageResources mr = getResources(request);
> myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
>
> Now, this works just fine.  My message is displayed as a result of the
> onLoad event of my page via a simple JavaScript alert box.  Very cool.
>
> However, if I want to display the message from the German resource file, I
> can't get it to work.  I thought all I had to do was this:
>
> myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));
>
> ...but it always seems to return null.  I am expecting that the framework
> will, in simplest terms, just append _de to the "ofmResources" value of
the
> application init param, and therefore get the messages.deleteFailed value
> out of that file rather than the default ofmResources.properties file.
>
> Am I nuts or should it not work that way?  If I'm nuts (or nutier than
> normal :) ), then how does one get this to work?  If I'm not nuts, any
ideas
> why what I'm doing doesn't work?  Thanks all!
>
> _
> Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win
> $1 million! http://local.msn.com/special/giveaway.asp
>
>
> -
> 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 Come The User List Archive Is Not Being Updated?

2004-05-13 Thread Joe Germuska
At 10:05 AM -0500 5/13/04, Hohlen, John C wrote:
Nothing new since March 26:

http://www.mail-archive.com/[EMAIL PROTECTED]/

Well, the mailing list changed addresses.  This is somewhat more up-to-date:
http://www.mail-archive.com/[EMAIL PROTECTED]/
But still seems to stop in late April.

Personally, I much prefer the user interface to GMANE's list archive anyway.
http://news.gmane.org/gmane.comp.jakarta.struts.user
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]


Language resource bundles problem

2004-05-13 Thread None None
Hello all.  I posted this question a little while ago as a reply to another 
thread, but I figured the question might be lost there...

I'm trying to get multiple language support to work.  I have created two 
files, ofmResources.properties and ofmResources_de.properties and stored 
them in WEB-INF/classes.

In web.xml I have:

...

 application
 ofmResources

...
...as an init parameter of ActionServlet.  Then, in a particular action I 
need to return a message to the view, so I do this:

MessageResources mr = getResources(request);
myActionForm.setMessage(mr.getMessage("messages.deleteFailed"));
Now, this works just fine.  My message is displayed as a result of the 
onLoad event of my page via a simple JavaScript alert box.  Very cool.

However, if I want to display the message from the German resource file, I 
can't get it to work.  I thought all I had to do was this:

myActionForm.setMessage(mr.getMessage("de", "messages.deleteFailed"));

...but it always seems to return null.  I am expecting that the framework 
will, in simplest terms, just append _de to the "ofmResources" value of the 
application init param, and therefore get the messages.deleteFailed value 
out of that file rather than the default ofmResources.properties file.

Am I nuts or should it not work that way?  If I'm nuts (or nutier than 
normal :) ), then how does one get this to work?  If I'm not nuts, any ideas 
why what I'm doing doesn't work?  Thanks all!

_
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win 
$1 million! http://local.msn.com/special/giveaway.asp

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


Re: [OT] Jobs

2004-05-13 Thread James Mitchell
No...sorry.  The original email specified Atlanta, GA.


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx



- Original Message - 
From: "Andy Engle" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 11:00 AM
Subject: Re: [OT] Jobs


> James Mitchell <[EMAIL PROTECTED]> wrote:
> 
> > I am trying to find 10 descent struts developers to fill open
> > positions. 
> 
> Might any of those positions be in Chicago?
> 
> 
> Andy
> 
> 
> -
> 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 Come The User List Archive Is Not Being Updated?

2004-05-13 Thread nils . mueller
Try http://marc.theaimsgroup.com/?l=struts-user
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]



tiles and validation problem

2004-05-13 Thread Julia Weaver
Hi,

Thank you very much for any help!

In my struts-config.xml, I have:



In my tiles-defs.xml, I have:
 
 
  
  
  
  
 



  
  



In my formbean, I have:
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {...


But when validate error, It only shows EditPO.jsp, not
able to display menu.jsp and Header.jsp

Thank you very much for any help!







__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Re: [OT] Jobs

2004-05-13 Thread Harjot Narula
Any positions in India ???
I have struts development experience of almost 2 years ...


- Original Message - 
From: "Andy Engle" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 8:30 PM
Subject: Re: [OT] Jobs


> James Mitchell <[EMAIL PROTECTED]> wrote:
> 
> > I am trying to find 10 descent struts developers to fill open
> > positions. 
> 
> Might any of those positions be in Chicago?
> 
> 
> Andy
> 
> 
> -
> 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 Come The User List Archive Is Not Being Updated?

2004-05-13 Thread Hohlen, John C
Nothing new since March 26:
 
http://www.mail-archive.com/[EMAIL PROTECTED]/
 
Is there another way to see an up to date list?
 
Thanks,

JOHN
 


Re: [OT] Jobs

2004-05-13 Thread Andy Engle
James Mitchell <[EMAIL PROTECTED]> wrote:

> I am trying to find 10 descent struts developers to fill open
> positions. 

Might any of those positions be in Chicago?


Andy


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



Struts validator?

2004-05-13 Thread Marcus Vinicius W. Ferreira
Hello ,

I´m brazilian guy  and I don´t speak english very well, then, sorry for
language mistakes.
I saw the message of  David Graham about bundle attribute in struts
validator at


http://www.mail-archive.com/[EMAIL PROTECTED]/msg06445.html

Can you help me? The bundle attribute in a validation.xml is ignored by
Struts?
In my xml, there is an element like this, but the bundle attribute is
ignored...







Is it correct? Help me, please!! I´m looking for about this problem
a few days... but i didn´t find anything...

Thank you very much,

Marcus Ferreira - Curitiba/Paraná/Brazil

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



Re: JSTL Core equivalent of ?

2004-05-13 Thread John Moore
Paul McCulloch wrote:



 

Hm, that obvious, eh? Oh, dear! Thanks. Of course, now I know what the 
answer is, Google suddenly returns all the kind of stuff I was looking 
for before...

--
==
John Moore  -  Norwich, UK  -  [EMAIL PROTECTED]
==
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Accessing ResourceBundle items from Action class

2004-05-13 Thread None None
I thought that would be correct, but I'm now trying something similar and 
it's not working.  Here's what I've done...

In my WEB-INF/classes folder I have two files: ofmResoures.properties and 
ofmResources_de.properties.  In my Action, I have the following:

MessageResources mr = getResources(request);
myActionForm.setMessage(mr.getMessage("DE", "messages.deleteFailed"));
the mr.getMessage() call returns null though.  If I take out the locale 
specification, it does work, pulling the value out of 
ofmResources.properties.  I've tried the locale in upper and lower-case, 
makes no difference.

Do you need to pass ALL the resource filenames as init params in web.xml?  I 
had been assuming that just passing "ofmResources" as I've done would be 
enough for the servlet to also load all the locale-specific versions, but 
maybe that's a bad assumption?  Does anyone know?  Thanks!


From: "Ivan" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Accessing ResourceBundle items from Action class
Date: Thu, 13 May 2004 09:37:47 +0200
I want to share mine :^)

[...]

 /* Guardo los mensajes */
 PropertyMessageResources messages =
(PropertyMessageResources)request.getAttribute("org.apache.struts.action.MES
SAGE");
 Locale locale = (Locale)session.getAttribute(Globals.LOCALE_KEY);
[...]

 this.seleccio =
messages.getMessage(locale,"etiqueta.enregistramentPersonal.intern");
is it correct?

- Original Message -
From: "None None" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 2004 10:11 PM
Subject: Re: Accessing ResourceBundle items from Action class
> (in my best StrongBad voice)... That's right, bow to my awesome
> superiorityness ;)
>
> Seriously though, I've been getting a ton of help from people on this 
list
> the past few days as I go through the exercise of learning Struts, so if 
I
> can give back even a little, that's very cool in my book.
>
> >From: Riyad Kalla <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Accessing ResourceBundle items from Action class
> >Date: Wed, 12 May 2004 13:05:50 -0700
> >
> >On Wednesday 12 May 2004 01:04 pm, None None wrote:
> > > Thank you for that answer Riyad.  I think I actually found another
> > > (better?) way in my stumbling about trying to solve it on my own...
> >
> >No you didn't, mine is the BEST :*D
> >
> > >
> > > All I did is in my Action, after all my real processing, is this:
> > >
> > > MessageResources mr = getResources(request);
> > > lpcaf.setMessage(mr.getMessage("messages.deleteFailed"));
> > >
> > > where lpcaf is the ActionForm from the form submission.  That seems 
to
> >do
> > > precisely what I want.
> >
> >oh... yea your way IS better! Thanks for sharing, now I know.
> >
> >Best,
> >Riyad
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Getting married? Find tips, tools and the latest trends at MSN Life
Events.
> http://lifeevents.msn.com/category.aspx?cid=married
>
>
> -
> 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]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.com/go/onm00200415ave/direct/01/

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


Re: Html:link and save form

2004-05-13 Thread Axel Stahlhut
Hi Sandra,

a link never submits data of the surrounding form. If you do it the way 
you did, this should work, but if the user has javascript disabled, 
nothing is submitted. You have got to check at least for errors from 
that. But the user will never know or understand, ehat is happening. You 
should use a button, maybe an image button, and the image is the linktext?!

Regards axel

Heligon Sandra wrote:

I have a form with a htlm:link 


I need to add submit on the onclick to have changes of the form.

If I don't make submit the state of the form is not saved.

Is it a bug ?

Sandra

-
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: composing dynamic url

2004-05-13 Thread Ryan . Hoffmann




I like that approach better than the one I found using jsp:getproperty.
Thanks Kiran



   

  Kiran Kumar  

  <[EMAIL PROTECTED] To:  Struts Users Mailing List 
<[EMAIL PROTECTED]> 
  om>  cc: 

   Subject: Re: composing dynamic url  

  05/13/2004 02:31 

  AM   

  Please respond   

  to Struts Users  

  Mailing List 

   

   





Use bean define and store the url into a jsp variable
and then use the following tag to forward it to the
particular u want

 


Hope this is useful

~Kiran

--- [EMAIL PROTECTED] wrote:
>
>
>
>
> I am new to STRUTS so I am struggling with the use
> of the "page or href"
> attribute in the html:link statement.  I don't see a
> need to specify an
> action in the config-struts that points to an
> ActionClass to make the URL
> available to the JSP page.  I already have the URL
> stored in a bean and I
> can see the value in the browser when my cursor is
> over the link.  But when
> I click on the link it goes to the page specified by
> href. I need for it to
> go to the URL contained in the bean.  The code
> listed below is what I have
> so far.
>
> I have spent a lot of time on this.  Any help would
> be greatly appreciated.
>
>  scope="request">
> 
> 
> CCS Number
> State
> Description
> Num Ref
> Type
> Iss
> Sht
> 
>
>  name="constant.docNum">
>
> 
>  property="ccsNumber" />
>  property="ccsNumState" />
>  property="ccsNumDescr" />
>  property="ccsDocNumRef" />
>  property="ccsDocType" />
>  property="ccsDocIss" />
>
> 
>  name="ccsNum"
> property="ccsDocSheets">
>
>  page="/GetLatestRelNum.do" paramId="url"
> paramName="shtNum" paramProperty="url">
>property="shtNumber" />
>
>
> 
> 
> 
>
> 
>
> 
>
> 
>
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861

-
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: Newbie question regarding Tiles and ActionErrors

2004-05-13 Thread Adam Lipscombe
Thanks Karan and Susan.

The action tag was indeed incorrect - the input attribute was Page1.jsp
rather than the template JSP.
Hmmm - I am learning!



Adam



-Original Message-
From: karan kondal [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2004 14:07
To: Struts Users Mailing List
Subject: Re: Newbie question regarding Tiles and ActionErrors


Hi

I think you should check your  tag for the
input attribute. input attribute should be having the
name of the file you want to display in case of any
error from validation

cheers
kk

PS: let me know if that help

--- Adam Lipscombe <[EMAIL PROTECTED]>
wrote:
> Folks,
>  
>  
> I am a struts newbie trying to create a test app
> using Struts 1.1, JSP with
> Tiles.
>  
> My problem is that I am using Tiles to construct
> templated JSPs.
> One of the JSP elements inserted into the template
> has a form that captures
> user input.
> When the form is submitted and the ActionForm
> validation fails, the JSP
> template element re-displayed, but the entire
> template is not.
> What I want is for the whole template to be
> redisplayed.
>  
>  
> My template looks like this:
>  
> file WizardTemplate1.jsp
>  
>  flush="true" >
>   
value="/pages/wizards/newclaimwizard/PageHeader.jsp"/>
>value="/pages/wizards/newclaimwizard/Page1.jsp"/>
> 
> 
> If  the /pages/wizards/newclaimwizard/Page1.jsp
> ActionForm validation fails
> then Page1 is re-displayed alone. What I want is for 
> WizardTemplate1.jsp to be re-displayed so that the PageHeader.jsp 
> element is also displayed.
>  
>  
>  
> Please accept my apologies is this is obvious. I
> have scoured the info put
> cant find anything that allows me to specify the JSP
> that gets displayed
> when an ActionError is returned from a ActionForm.
>  
>  
>  
> TIA - Adam
> 





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

-
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: Newbie question regarding Tiles and ActionErrors

2004-05-13 Thread karan kondal
Hi

I think you should check your  tag for the
input attribute. input attribute should be having the
name of the file you want to display in case of any
error from validation

cheers
kk

PS: let me know if that help

--- Adam Lipscombe <[EMAIL PROTECTED]>
wrote:
> Folks,
>  
>  
> I am a struts newbie trying to create a test app
> using Struts 1.1, JSP with
> Tiles.
>  
> My problem is that I am using Tiles to construct
> templated JSPs. 
> One of the JSP elements inserted into the template
> has a form that captures
> user input.
> When the form is submitted and the ActionForm
> validation fails, the JSP
> template element re-displayed, but the entire
> template is not.
> What I want is for the whole template to be
> redisplayed.
>  
>  
> My template looks like this:
>  
> file WizardTemplate1.jsp
>  
>  flush="true" >
>   
value="/pages/wizards/newclaimwizard/PageHeader.jsp"/>
>value="/pages/wizards/newclaimwizard/Page1.jsp"/>
> 
> 
> If  the /pages/wizards/newclaimwizard/Page1.jsp
> ActionForm validation fails
> then Page1 is re-displayed alone. What I want is for
> WizardTemplate1.jsp to
> be re-displayed so that the PageHeader.jsp element
> is also displayed.
>  
>  
>  
> Please accept my apologies is this is obvious. I
> have scoured the info put
> cant find anything that allows me to specify the JSP
> that gets displayed
> when an ActionError is returned from a ActionForm.
>  
>  
>  
> TIA - Adam
> 





__
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

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



Re: Newbie question regarding Tiles and ActionErrors

2004-05-13 Thread Susan Bradeen
"Adam Lipscombe" <[EMAIL PROTECTED]> wrote on 05/13/2004 
08:43:15 AM:

> Folks,
> 
> 
> I am a struts newbie trying to create a test app using Struts 1.1, JSP 
with
> Tiles.
> 
> My problem is that I am using Tiles to construct templated JSPs. 
> One of the JSP elements inserted into the template has a form that 
captures
> user input.
> When the form is submitted and the ActionForm validation fails, the JSP
> template element re-displayed, but the entire template is not.
> What I want is for the whole template to be redisplayed.
> 
> 
> My template looks like this:
> 
> file WizardTemplate1.jsp
> 
> 
>value="/pages/wizards/newclaimwizard/PageHeader.jsp"/>
>   
> 
> 
> If  the /pages/wizards/newclaimwizard/Page1.jsp ActionForm validation 
fails
> then Page1 is re-displayed alone. What I want is for WizardTemplate1.jsp 
to
> be re-displayed so that the PageHeader.jsp element is also displayed.
> 
>

Adam, 

Sounds like maybe the 'input' attribute of your action mapping is not what 
you want it to be. What do your action mappings for this look like? 

Susan Bradeen
 
> 
> Please accept my apologies is this is obvious. I have scoured the info 
put
> cant find anything that allows me to specify the JSP that gets displayed
> when an ActionError is returned from a ActionForm.
> 
> 
> 
> TIA - Adam


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



Re: Html:link and save form

2004-05-13 Thread Susan Bradeen
Sandra,

I'm not exactly clear on your question. Looks like you are trying to 
submit a form by clicking of a link, invoking myAction.do to do something 
with the form data. This should be workable. Are things not happening as 
you expect after the form submits? Does changing the paramScope to 
'request' make any difference for you?

Susan Bradeen




Heligon Sandra <[EMAIL PROTECTED]> 
05/13/2004 06:23 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc

Subject
Html:link and save form






I have a form with a htlm:link 



I need to add submit on the onclick to have changes of the form.

If I don't make submit the state of the form is not saved.

Is it a bug ?

Sandra


-
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]



Newbie question regarding Tiles and ActionErrors

2004-05-13 Thread Adam Lipscombe
Folks,
 
 
I am a struts newbie trying to create a test app using Struts 1.1, JSP with
Tiles.
 
My problem is that I am using Tiles to construct templated JSPs. 
One of the JSP elements inserted into the template has a form that captures
user input.
When the form is submitted and the ActionForm validation fails, the JSP
template element re-displayed, but the entire template is not.
What I want is for the whole template to be redisplayed.
 
 
My template looks like this:
 
file WizardTemplate1.jsp
 

  
  


If  the /pages/wizards/newclaimwizard/Page1.jsp ActionForm validation fails
then Page1 is re-displayed alone. What I want is for WizardTemplate1.jsp to
be re-displayed so that the PageHeader.jsp element is also displayed.
 
 
 
Please accept my apologies is this is obvious. I have scoured the info put
cant find anything that allows me to specify the JSP that gets displayed
when an ActionError is returned from a ActionForm.
 
 
 
TIA - Adam


RE: DispatchAction with Images

2004-05-13 Thread Robert Taylor
This may help:

http://issues.apache.org/bugzilla/show_bug.cgi?id=19925


robert

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Mittack
> Sent: Thursday, May 13, 2004 4:29 AM
> To: [EMAIL PROTECTED]
> Subject: DispatchAction with Images
> 
> 
> 
> When a Button is clicked I currently use JavaScript to set a flag in a formbean 
> which the Action Class then uses to determine which button I pressed. 
> Implementing in this fashion has caused numerous nested ifs in the Action Class.
> 
> So that we could seperate the code into seperate functions I was looking into 
> using DispatchAction. ( http://husted.com/struts/tips/002.html ) However as the 
> buttons are images I am unable to use Dispatch Action as clicking on a image 
> does not submit the form.
> 
> I have also looked at the workaround on JGuru ( 
> http://www.jguru.com/faq/view.jsp?EID=893423 ) for using Images but 
> implementing this way still results in nested if's in the Action class.
> 
> Any suggestions?
> 
> 
> 
> 
> 
> -
> 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]



Problem with tag

2004-05-13 Thread hicnar_struts_list
Hi all,

My name is Chris and I'm new around here :)

I'm trying to go through some code that is "inspired" by the
"FinancialPortfolio" example from "Struts Kick Start" book.
I've encountered some problems with the  tab. The
details are right here.

One of the windows is supposed to look kind of like this:
---
|  header.jsp |
| |
--|
|  b||   b|
|  a||   a|
|  r||   r|
|  l||   r|
|  e||   i|
|  f|  center.jsp|   g|
|  t||   h|
|  .||   t|
|  j||   .|
|  s||   j|
|  p||   s|
|   |||
--|
|bottom.jsp   |
---

the "newUser.jsp" code is as follows (only header.jsp and
barleft.jsp included)...




<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="tmp" %>
<%@ page 
language="java"
contentType="text/html; charset=CP1250"
pageEncoding="CP1250"
%>













Last thing seen before the code
is cut...











the header.jsp code is:


<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>



the barleft.jsp code is:


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

 
  
  
 

 
  
 

 
  
  
  
 

 
  
 



After the project is published on a Tomcat 4.1.29
the source of the newUser.jsp opened in the browser looks like this:










Register new user





Register new user




Last thing seen before the code
is cut...

So the header.jsp is inserted, but the barleft.jsp is not!!

Can anybody explain what I do wrong with this example??

Regards
Chris

PS. To make things funny... preview of the page in WSAD looks fine 


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



Re: JSTL Core equivalent of ?

2004-05-13 Thread John Moore
Paul McCulloch wrote:



 

Hm, that obvious, eh? Oh, dear! Thanks. Of course, now I know what the 
answer is, Google suddenly returns all the kind of stuff I was looking 
for before...

John

--
=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


action with context relative forward

2004-05-13 Thread Navjot Singh
Hi,

I have a module-based struts application. Assume, one of the modules is
"member".

Now, i need an 

when i type http://localhost/napp/member/ShowMemberReg.do (/napp is context)

it tries to forward to /member/WEB-INF/jsp/member/reg.jsp which is valid as
DTD says "this forward attribute is module-relative."

Now, what i wish to do is achieve my objective *declaratively*. I know i can
create an action tag with context-relative forward tag, specify some action
class. That action class can then call findForward()

But i don't wish to create these classes. Is there anything that can be done
with in struts-member.xml?
Or you can suggest some changes in how can i go about it?

---
regards
Navjot Singh
Net4India Ltd.

If there's only one answer, then this must not be a very interesting topic.


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



RE: JSTL Core equivalent of ?

2004-05-13 Thread Paul McCulloch


> -Original Message-
> From: John Moore [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 13, 2004 11:48 AM
> To: Struts Mailing List
> Subject: JSTL Core equivalent of ?
> 
> 
> I'm trying to switch over to using JSTL where possible. I've done the 
>  replacements, where parameters and scoped objects are 
> concerned. I want now to find the JSTL replacement for  key="xxx"/>, where the key is an entry in 
> ApplicationResources.properties (i.e., a properties file in 
> the /classes 
> directory). It is, I'm sure, obvious, but not, alas, to me today.
> 
> John
> 
> 
> -- 
> =
> John Moore -Norwich, UK-[EMAIL PROTECTED]
> =
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**


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



RE: skins with Struts-Tiles framework

2004-05-13 Thread Guillermo Meyer
Xkins does not replace Tiles. You can use Xkins with tiles.
Tiles (among other things) arrange page layout. Xkins manage the
look&feel of the page. 
Xkins does not replace struts tags as struts-layout does.
Xkins are used inside taglibs to generate HTML (or other output) or as
decorators of other tags (for example, as decorator of struts tags).
Xkins comes with XkinsForms, that are a taglib that uses Xkins to
generate forms for a page. Instead of use 
, etc, you can use XkinsForms  
(http://xkins.sourceforge.net/xkinsforms.html) (or your own taglibs that
uses Xkins) to generate the page. If you want your frame change from one
skin to other, you just change the Xkin definition but nothing in the
page. Xkins allow more than change just styles (as CSS whould be
enough): if your frames are in xkins templates, you could change HTML
code that generates the frame, not only the colors, fonts but also the
, , images, etc of the frame.
This is an example of a struts page "decorated" with XkinsForms (this is
a fragment of registration.jsp from struts example)

<%@ taglib uri="/WEB-INF/xkins-forms.tld" prefix="form" %>
...
...





  

  
  

  


  




  




  




  


  




  

  


  

  
   
  

  




...
...

You can try it with Struts demo and see how the page looks different in
each skin. You should deploy in your webapp skins/forms directory that
comes with xkins bundle, among xkins-forms.properties and
xkins-forms-definition.xml files.

If you need further detail, please let me know.

Cheers
Guillermo.


-Original Message-
From: shankarr [mailto:[EMAIL PROTECTED] 
Sent: Jueves, 13 de Mayo de 2004 04:52 a.m.
To: Struts Users Mailing List
Subject: skins with Struts-Tiles framework


Hello!

I have an application build with Struts-Tiles framework.
Now, I want to have multiple skin option for usrs to choose.

I try xkins but seem it replace Tiles , which is no good to me else lot 
of changes.
I try struts-layout but that is GPL and we cannot use that for 
commerical reasons.

please provide help.

*Richie*

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]



JSTL Core equivalent of ?

2004-05-13 Thread John Moore
I'm trying to switch over to using JSTL where possible. I've done the 
 replacements, where parameters and scoped objects are 
concerned. I want now to find the JSTL replacement for , where the key is an entry in 
ApplicationResources.properties (i.e., a properties file in the /classes 
directory). It is, I'm sure, obvious, but not, alas, to me today.

John

--
=
John Moore -Norwich, UK-[EMAIL PROTECTED]
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Declarative Exception handling

2004-05-13 Thread Ashutosh Satyam
Hi,
 In my struts configuration file, I have declared a global exception as 
 mentioned below.

 

 

 I'm using the default ExceptionHandler.

 The idea behind defining this global exception was not to show
 any kind of exception on the browser.
 
 This works fine. But now I'm not able to track the reason for the 
 failure. Tell me approach so that I can see the stack trace in the
 log file / system console. Currently, I'm not able to see any
 exceptions coming on the console.

 Is it a must to sub class the ExceptionHandler to achieve this?


 Regards,
 Ashutosh.


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



Html:link and save form

2004-05-13 Thread Heligon Sandra
I have a form with a htlm:link 



I need to add submit on the onclick to have changes of the form.

If I don't make submit the state of the form is not saved.

Is it a bug ?

Sandra


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



DispatchAction with Images

2004-05-13 Thread Mittack

When a Button is clicked I currently use JavaScript to set a flag in a formbean 
which the Action Class then uses to determine which button I pressed. 
Implementing in this fashion has caused numerous nested ifs in the Action Class.

So that we could seperate the code into seperate functions I was looking into 
using DispatchAction. ( http://husted.com/struts/tips/002.html ) However as the 
buttons are images I am unable to use Dispatch Action as clicking on a image 
does not submit the form.

I have also looked at the workaround on JGuru ( 
http://www.jguru.com/faq/view.jsp?EID=893423 ) for using Images but 
implementing this way still results in nested if's in the Action class.

Any suggestions?





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



  1   2   >