Re: Dynamic Attributes

2001-07-16 Thread Matthias Bauer

Hi Roshan,

as far as I know there is currently no such thing as dynamic form attributes, 
since you need a form bean associated with the action mapping.

If you have a limited number of properties you can put them all in the form bean 
and use only those currently needed. If this is not flexible enough, you have to 
go without the struts support in this respect.

I had to do this myself in my current project. What I came up with is: I have an 
object (stored in the user's session) which contains attribute objects that know 
how to populate themselves from the request. So what I do is: For each attribute 
object I call the method setValueFromRequest(). They can now look for the right 
value(s) in the request and set their internal value(s) as appropriate (and do 
error checks as well).

I think someone is working on dynamic properties to include it in the struts 
framework, though I am not sure.

--- Matthias



Roshan Paiva wrote:

> Hi Everyone...
> 
> I have a jsp page which dynamically populates fields ( eg: at one instance
> there may be 5 edit boxes and at another instance there may be 3 edit boxes
> and a date picker etc. ) The number of fields and there types are not
> static. We have currently implemented this without the strut framework
> usings Vectors and Collection objects. 
> 
> We are now in the process of restructuring the app using struts.. How are we
> to create the ActionForm as the number of properties and their types are
> dynamic.
> 
> Any answers?
> 
> Thanks in advance...
> 
> Kind Regards
> Roshan
> 






Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:Mikkel Bruun <[EMAIL PROTECTED]>
Recipients:"'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Subject:  TEST Message WAS: re: quick question : form

Message from Mikkel Bruun <[EMAIL PROTECTED]> was quarantined because
it contained banned content.




TEST Message WAS: re: quick question : form

2001-07-16 Thread Mikkel Bruun



he 
could at least had written it in the subject... ;-)

  -Oprindelig meddelelse-Fra: Jeff Trent 
  [mailto:[EMAIL PROTECTED]]Sendt: 16 July 2001 
  20:51Til: [EMAIL PROTECTED]Emne: Re: quick 
  question : form
  Test message ... please ignore.
  
- Original Message - 
From: 
Jeff 
Trent 
To: [EMAIL PROTECTED] 

Sent: Monday, July 16, 2001 2:46 
PM
Subject: Re: quick question : 
form

This is a test message, please 
ignore.

  - Original Message - 
  From: 
  Rama 
  KrishnA 
  To: [EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] 
  Sent: Monday, July 16, 2001 2:34 
  PM
  Subject: Re: quicK question : 
  form
  
  Thanks much Melissa. But, i want to know 
  why it does like this, when i call the reset manually.
   
  rama.
  
- Original Message - 
From: 
MelissA Rabin 
To: [EMAIL PROTECTED] 

Sent: Monday, July 16, 2001 11:19 
AM
Subject: RE: quicK question : 
form

Hi Rama.  One quick & dirty way to solve your 
problem is to add "success" as a string to the request object in 
the perform method of your action class, and add a 
" line in your 
struts-config file (which will return you to the page you posted 
the initial request).  Add some jsp code to check if the request 
attribute is null, which it will be when you first load the 
page. After the request is posted and your action class adds the 
string to the request (if all goes well), it should finish up by 
returning you to your original jsp where you will now see your "success" 
status message (e.g. <%= 
request.getAttribute("status")%>
 
I hope this helps
 
Melissa
Web Engineer

  -Original Message-From: Rama KrishnA 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 
  2:07 PMTo: 
  [EMAIL PROTECTED]Subject: quick questioN : 
  form
  hi all,
   
  i have a form and when i submit it i 
  perform some action and i forward it to the same form, but with a 
  message "success". now
   
  - i want to reset all the fields (set 
  to default value)
  - the url after submission is still 
  xxx.yy?action="save", where as i want the action to 
  be"create"
   
   
  i tried calling reset method before 
  forwarding, it clears all the fields but doesn't show message 
  "success" and the url is still ?action="save"
   
   
  can anyone help me??
   
  thanks,
  rama.
   
   


SV: Installation on Netscape 4.1

2001-07-16 Thread Mikkel Bruun

I spend a couple of days last week trying to do the same...

never got it working

I was close at some point though...

had the taglibs running OR the servlet (gave me xml validation errors
thoguh)...couldnt have both at the same time ;-)

please tell if you get it running...im on a prject that has to run on 4.1,
and so far i have had to dismiss struts on this one...

Mikkel

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sendt: 16 July 2001 17:53
Til: [EMAIL PROTECTED]
Emne: Installation on Netscape 4.1


Hello everyone and thank you in advance for reading and replying to my
question.

I am trying to install Struts to work with iPlanet 4.1.  It does not
support web application archives WAR. Does anyone have this installation
process documented or knows how to do it and could document it?

I would appreciate any help.

Thank you,

Dmitri Furman



Re: How do I shape this application to match Struts?

2001-07-16 Thread Pan Li

Ted,thanks a lot.

So your suggestion is to use an ActionForm as an
"view" of all database tables.So how would I resove
these problems?

1.When use JSP to input data.
If the JSP has an input field named "foo" and the
ActionForm has a property named "foo",Struts will fill
the property "foo" with the value of input filed "foo"
(If I'm not wrong).
But my ActionForm will not has a property "foo".

2.Validation
It seems that validation will be much harder.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



indexed property iteration

2001-07-16 Thread Ramakrishna Reddy Kandula


How do I achieve indexed property access dynamically ?

The following doesn't work.


<%
   TestForm testForm = (TestForm) session.getAttribute("testForm");
   int i = 0;
   for (i=0; i < testForm.getNames().length; i++) {
%>
   Text: 
<%
   }
%>
   Go


It says,
javax.servlet.ServletException: Invalid indexed property 'names[i]'

Thanks,
ramky




Multiple html:text with the same property name

2001-07-16 Thread Michael Skariah

Hello all,
Can anyone tell me if I can have multiple html:text tags with the same
property name in a single JSP file. If yes, how can I map these tags with
the same name to a single attribute in the ActionForm class. Can I have
something like an attribute which is an array in the ActionForm class that
represents the html:text tags??
Thanks in advance,
-Michael.


 winmail.dat


Re: using with javascript

2001-07-16 Thread Rama Krishna



you can use target="_blank" .
 
 

  - Original Message - 
  From: 
  Syd 
  Naveen 
  To: [EMAIL PROTECTED] 
  Sent: Monday, July 16, 2001 4:36 PM
  Subject: RE: using  with 
  javascript
  
  its opening it twice bcoz ur giving a page link and also 
  opening the page thro java script window.open method. syd 
  -Original Message- From: 
  Melissa Rabin [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, July 16, 2001 8:12 AM To: Struts-User Subject: using 
   with javascript 
  Hello all.  Simple question:  is there a way to use 
  JavaScript in the html:link tag so that the url pops 
  open in a new window?  At the moment, using 
  something like: http://myLink..." > "window.open("http://myLink...")> is 
  opening the page twice...once in the original window, 
  and once again in the new window. 
  Any suggestions? 
  Melissa Rabin Web Engineer 



RE: using with javascript

2001-07-16 Thread Syd Naveen
Title: RE: using  with javascript






its opening it twice bcoz ur giving a page link and also opening the page thro java script window.open method.

syd


-Original Message-

From: Melissa Rabin [mailto:[EMAIL PROTECTED]]

Sent: Monday, July 16, 2001 8:12 AM

To: Struts-User

Subject: using  with javascript



Hello all.  Simple question:  is there a way to use JavaScript in the

html:link tag so that the url pops open in a new window?  At the moment,

using something like:

http://myLink..." >

"window.open("http://myLink...")> is opening the page twice...once in the

original window, and once again in the new window.


Any suggestions?


Melissa Rabin

Web Engineer





Nested Attributes on Collections

2001-07-16 Thread Mark Ragan



It appears, or at 
least I've read that struts allows nested attribute specifications in the 
tag properties, such as property="user.name.last".  Is this only when the nesting 
is in the form class?
 
Is it possible to 
specify nested collections in another class.  For example, suppose class 
Container(instance container) has two Collections(listA and listB).  
Is there any way to specify one of those list in the collection parameter of an 
html:options tag, such as collection="container.listA"?  Or alternately, is 
there a way to specify that the collection should be a 
method?
 
thanks for your 
help, Mark


URL mapping

2001-07-16 Thread Chris Callaghan

Hey all,

I want to be able to map a URL to certain JSPs which may or may not have 
an action involved with them e.g
map /logon to logon.jsp which also has as action also called logon
also /tour to tour.jsp which has no associated action.

How can I do this with struts?

Cheers
Chris




Stuts behind a firewall.

2001-07-16 Thread Grant Davies

Hi,

I'm trying to test our first struts app with weblogic and our web.xml file
goes out to sun for the DTD to validate the web.xml file

We are behind a firewall that uses a proxy on port 8080 for http requests,
but our proxy requires us to login every time a new HTTP session is invoked.

Is there anyone who can help me configure our stuts for this?  I know this
may be more of a JAVA question that stuts, but I've been lucky enough
to use relaxed firewalls in the past.

Is it simpler just to remove the DTD url from the web.xml so it does not get
validated?

Thanks
Grant Davies
Insolutions Inc.




Re: thread problems?

2001-07-16 Thread Rama Krishna



hmmm.

is it like in one session you can have multiple instances of the bean, with
different values???

if not,
 instead of static, use session variable.
you can make your method synchronized and inside that set/get the session
variable and make it required that any action would check for this static
variable first before doing anything else.
in this way at any instance only one action will be setting/getting the
values and another action will get the new value.




- Original Message -
From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 1:44 PM
Subject: RE: thread problems?


> No I cant have a static variable - there could be more than one instance
of
> the bean each with a different number of values.
>
> -Original Message-
> From: Rama Krishna [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: thread problems?
>
>
> may be you can have some static variable pointing to the no. of values and
> check this before you construct your bean. if you think two threads access
> this to update this then it can be synchronized. this variable need not be
> in the same class.
>
>
>
>
> - Original Message -
> From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 16, 2001 1:21 PM
> Subject: RE: thread problems?
>
>
> > I just put in an error message saying you are asking for something that
> > doesnt exist - I never really expected to see this scenario when I put
in
> > this message. The arrayIndexOutofBounds happens if I dont catch htis
case.
> >
> > Let me put it this way: I am displaying values 1-10 in a page. I post an
> > action that changes the number of values to be displayed to 5 so a new
> bean
> > with just five values is manufactured and put in the session - in the
> > meanwhile the second click is forwarded by the actionservlet through the
> > requestUtils to the BeanUtil to look for the accessors and mutators for
> > values 1-10 but we have now have only 5 values in the bean so this is an
> > error condition.
> >
> > The properties object sent to the BeanUtil seems to be sent from the old
> > form bean which had 10 values but the new form bean has only 5 values
> >
> > -Original Message-
> > From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 16, 2001 11:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: thread problems?
> >
> >
> > It sounds like you are throwing an Exception of some
> > sort from you ActionForm?  Is that right?  The
> > ActionForm should just be a container to hold the
> > values from the form.
> >
> > David
> >
> > --- "Gogineni, Pratima" <[EMAIL PROTECTED]>
> > wrote:
> > > Hi,
> > >
> > > I have been fighting with the following situation
> > > and would appreciate any
> > > ideas/suggestions.
> > >
> > > I have a session scoped form bean "FBean", a jsp
> > > page that displays it
> > > "dispFBean" & an action FBeanAction.
> > >
> > > I have inserted transactional tokens to take care of
> > > duplicate posting.
> > >
> > > After changing a value in dispFBean, an enter or/and
> > > a click work fine &
> > > they do the same thing ie. call FBeanAction.
> > >
> > > when the 2 events are done in rapid succession - one
> > > event executes fine
> > > while the other event throws an exception because it
> > > is trying to access
> > > row#5 where as the previous action changed the
> > > number of rows to 4.
> > > Unfortunately the transactional tokens cant take
> > > care of this since this
> > > error is being thrown in BeanUtils.populate before
> > > it ever reaches an
> > > FBeanAction instance.
> > >
> > > I also tried declaring the jsp page threadsafe to
> > > check if that is the
> > > problem.
> > >
> > > Also note that the FBeanAction replaces FBean with a
> > > new Instance of FBean.
> > >
> > > Thanks
> > > Pratima
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> >
>



RE: thread problems?

2001-07-16 Thread Gogineni, Pratima

No I cant have a static variable - there could be more than one instance of
the bean each with a different number of values.

-Original Message-
From: Rama Krishna [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: Re: thread problems?


may be you can have some static variable pointing to the no. of values and
check this before you construct your bean. if you think two threads access
this to update this then it can be synchronized. this variable need not be
in the same class.




- Original Message -
From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 1:21 PM
Subject: RE: thread problems?


> I just put in an error message saying you are asking for something that
> doesnt exist - I never really expected to see this scenario when I put in
> this message. The arrayIndexOutofBounds happens if I dont catch htis case.
>
> Let me put it this way: I am displaying values 1-10 in a page. I post an
> action that changes the number of values to be displayed to 5 so a new
bean
> with just five values is manufactured and put in the session - in the
> meanwhile the second click is forwarded by the actionservlet through the
> requestUtils to the BeanUtil to look for the accessors and mutators for
> values 1-10 but we have now have only 5 values in the bean so this is an
> error condition.
>
> The properties object sent to the BeanUtil seems to be sent from the old
> form bean which had 10 values but the new form bean has only 5 values
>
> -Original Message-
> From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 11:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: thread problems?
>
>
> It sounds like you are throwing an Exception of some
> sort from you ActionForm?  Is that right?  The
> ActionForm should just be a container to hold the
> values from the form.
>
> David
>
> --- "Gogineni, Pratima" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I have been fighting with the following situation
> > and would appreciate any
> > ideas/suggestions.
> >
> > I have a session scoped form bean "FBean", a jsp
> > page that displays it
> > "dispFBean" & an action FBeanAction.
> >
> > I have inserted transactional tokens to take care of
> > duplicate posting.
> >
> > After changing a value in dispFBean, an enter or/and
> > a click work fine &
> > they do the same thing ie. call FBeanAction.
> >
> > when the 2 events are done in rapid succession - one
> > event executes fine
> > while the other event throws an exception because it
> > is trying to access
> > row#5 where as the previous action changed the
> > number of rows to 4.
> > Unfortunately the transactional tokens cant take
> > care of this since this
> > error is being thrown in BeanUtils.populate before
> > it ever reaches an
> > FBeanAction instance.
> >
> > I also tried declaring the jsp page threadsafe to
> > check if that is the
> > problem.
> >
> > Also note that the FBeanAction replaces FBean with a
> > new Instance of FBean.
> >
> > Thanks
> > Pratima
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>



Re: thread problems?

2001-07-16 Thread Rama Krishna

may be you can have some static variable pointing to the no. of values and
check this before you construct your bean. if you think two threads access
this to update this then it can be synchronized. this variable need not be
in the same class.




- Original Message -
From: "Gogineni, Pratima" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 1:21 PM
Subject: RE: thread problems?


> I just put in an error message saying you are asking for something that
> doesnt exist - I never really expected to see this scenario when I put in
> this message. The arrayIndexOutofBounds happens if I dont catch htis case.
>
> Let me put it this way: I am displaying values 1-10 in a page. I post an
> action that changes the number of values to be displayed to 5 so a new
bean
> with just five values is manufactured and put in the session - in the
> meanwhile the second click is forwarded by the actionservlet through the
> requestUtils to the BeanUtil to look for the accessors and mutators for
> values 1-10 but we have now have only 5 values in the bean so this is an
> error condition.
>
> The properties object sent to the BeanUtil seems to be sent from the old
> form bean which had 10 values but the new form bean has only 5 values
>
> -Original Message-
> From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 11:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: thread problems?
>
>
> It sounds like you are throwing an Exception of some
> sort from you ActionForm?  Is that right?  The
> ActionForm should just be a container to hold the
> values from the form.
>
> David
>
> --- "Gogineni, Pratima" <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I have been fighting with the following situation
> > and would appreciate any
> > ideas/suggestions.
> >
> > I have a session scoped form bean "FBean", a jsp
> > page that displays it
> > "dispFBean" & an action FBeanAction.
> >
> > I have inserted transactional tokens to take care of
> > duplicate posting.
> >
> > After changing a value in dispFBean, an enter or/and
> > a click work fine &
> > they do the same thing ie. call FBeanAction.
> >
> > when the 2 events are done in rapid succession - one
> > event executes fine
> > while the other event throws an exception because it
> > is trying to access
> > row#5 where as the previous action changed the
> > number of rows to 4.
> > Unfortunately the transactional tokens cant take
> > care of this since this
> > error is being thrown in BeanUtils.populate before
> > it ever reaches an
> > FBeanAction instance.
> >
> > I also tried declaring the jsp page threadsafe to
> > check if that is the
> > problem.
> >
> > Also note that the FBeanAction replaces FBean with a
> > new Instance of FBean.
> >
> > Thanks
> > Pratima
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>



RE: thread problems?

2001-07-16 Thread Gogineni, Pratima

Hi,

Thanks for your reply - but there doesnt seem to be a lock. The problem is
that the actionservlet is getting a request based on an old form bean but in
the meantime a new form bean is put into the session.

Also I decided to check if declaring the page thread safe (singlethreaded)
would solve the problem, it doesnt.

Pratima

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: thread problems?


I have been through this before. Its more like 2 client requests in
succession/ The session seems to be locked at some point in time and the
other request keeps on waiting for ever. Once I made the underlying servlet
implement single thread model it went away. Iam not sure about it in a
struts environment but this is a well known case. 

But experts advise against single thread model usage(A different topic
anyway..)

The Jguru page had the same problem in the very beginning (They use jsp's).
But they somehow unlocked the session  and made it attend the second request
too. As a consequence every bit  of jsp content appeared twice on the page.

later
pathangi r



-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 1:44 PM
To: '[EMAIL PROTECTED]'
Subject: thread problems?


Hi,

I have been fighting with the following situation and would appreciate any
ideas/suggestions.

I have a session scoped form bean "FBean", a jsp page that displays it
"dispFBean" & an action FBeanAction.

I have inserted transactional tokens to take care of duplicate posting. 

After changing a value in dispFBean, an enter or/and a click work fine &
they do the same thing ie. call FBeanAction.

when the 2 events are done in rapid succession - one event executes fine
while the other event throws an exception because it is trying to access
row#5 where as the previous action changed the number of rows to 4.
Unfortunately the transactional tokens cant take care of this since this
error is being thrown in BeanUtils.populate before it ever reaches an
FBeanAction instance.

I also tried declaring the jsp page threadsafe to check if that is the
problem. 

Also note that the FBeanAction replaces FBean with a new Instance of FBean.

Thanks
Pratima



RE: thread problems?

2001-07-16 Thread Gogineni, Pratima

I just put in an error message saying you are asking for something that
doesnt exist - I never really expected to see this scenario when I put in
this message. The arrayIndexOutofBounds happens if I dont catch htis case. 

Let me put it this way: I am displaying values 1-10 in a page. I post an
action that changes the number of values to be displayed to 5 so a new bean
with just five values is manufactured and put in the session - in the
meanwhile the second click is forwarded by the actionservlet through the
requestUtils to the BeanUtil to look for the accessors and mutators for
values 1-10 but we have now have only 5 values in the bean so this is an
error condition. 

The properties object sent to the BeanUtil seems to be sent from the old
form bean which had 10 values but the new form bean has only 5 values

-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: thread problems?


It sounds like you are throwing an Exception of some
sort from you ActionForm?  Is that right?  The
ActionForm should just be a container to hold the
values from the form.

David

--- "Gogineni, Pratima" <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I have been fighting with the following situation
> and would appreciate any
> ideas/suggestions.
> 
> I have a session scoped form bean "FBean", a jsp
> page that displays it
> "dispFBean" & an action FBeanAction.
> 
> I have inserted transactional tokens to take care of
> duplicate posting. 
> 
> After changing a value in dispFBean, an enter or/and
> a click work fine &
> they do the same thing ie. call FBeanAction.
> 
> when the 2 events are done in rapid succession - one
> event executes fine
> while the other event throws an exception because it
> is trying to access
> row#5 where as the previous action changed the
> number of rows to 4.
> Unfortunately the transactional tokens cant take
> care of this since this
> error is being thrown in BeanUtils.populate before
> it ever reaches an
> FBeanAction instance.
> 
> I also tried declaring the jsp page threadsafe to
> check if that is the
> problem. 
> 
> Also note that the FBeanAction replaces FBean with a
> new Instance of FBean.
> 
> Thanks
> Pratima


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Apache/Struts URL Rewriting

2001-07-16 Thread Jason Rosenblum


I have an entire application that I wrote using Struts and Weblogic 5.1 SP8. I now 
need to run this app on top of Apache but I've run into a serious problem - URL 
Rewriting. Our Apache server forwards requests to Weblogic but it changes the url so 
accessing a URL like: localhost:8080/psr/index.do becomes 
localhost:8080/psr/index/0.html. Accessing the front door of the application on Apache 
then requires just changing the URL, but as soon as I submit a form, the application 
crashes because it's submitting my Actions as *.do instead of //0.html.

Is there any easy way to restructure my URLs using struts-config.xml or ActionMapping 
class?

~Jason



RE: thread problems?

2001-07-16 Thread Pathangi, Rao H.

I have been through this before. Its more like 2 client requests in
succession/ The session seems to be locked at some point in time and the
other request keeps on waiting for ever. Once I made the underlying servlet
implement single thread model it went away. Iam not sure about it in a
struts environment but this is a well known case. 

But experts advise against single thread model usage(A different topic
anyway..)

The Jguru page had the same problem in the very beginning (They use jsp's).
But they somehow unlocked the session  and made it attend the second request
too. As a consequence every bit  of jsp content appeared twice on the page.

later
pathangi r



-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 1:44 PM
To: '[EMAIL PROTECTED]'
Subject: thread problems?


Hi,

I have been fighting with the following situation and would appreciate any
ideas/suggestions.

I have a session scoped form bean "FBean", a jsp page that displays it
"dispFBean" & an action FBeanAction.

I have inserted transactional tokens to take care of duplicate posting. 

After changing a value in dispFBean, an enter or/and a click work fine &
they do the same thing ie. call FBeanAction.

when the 2 events are done in rapid succession - one event executes fine
while the other event throws an exception because it is trying to access
row#5 where as the previous action changed the number of rows to 4.
Unfortunately the transactional tokens cant take care of this since this
error is being thrown in BeanUtils.populate before it ever reaches an
FBeanAction instance.

I also tried declaring the jsp page threadsafe to check if that is the
problem. 

Also note that the FBeanAction replaces FBean with a new Instance of FBean.

Thanks
Pratima



Re: Java-related question: thread safe ActionClasses

2001-07-16 Thread David Winterfeldt

If you call a static method that doesn't access any
external variables that are maintaining state, it will
be safe to call from a thread.  Just like the perform
method in your Action class should be thread safe
since it can be used by multiple threads.  

The general consensus is that it is good to separate
your business logic from being aware of the web layer.

David

--- Holger Wiechert <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I've got a question about an issue to the thread
> safe execution.
> The whole setup was made in order to have a business
> logic triggered by
> struts, that still can retrieve information from its
> environment -- here Struts -- without
> having explicit knowledge of it. In short, the
> processing is like this:
> 
> a) the ActionObject gets the business object
> b) calls the business method on the business object
> including 
> -the HttpServletRequest just received in the perform
> call, and
> -a reference to itself 
> c) the business object now uses this reference to
> retrieve from this object 
>some information about the business objects
> environment. Thus, the business object
>calls the ActionObject (without knowing, that it
> is a struts Action) and hands in
>the HttpServletRequest (as an java.lang.Object).
> d) the ActionObject uses the HttpServletRequest to
> get the desired information
>(like request.getParameter()) and returns the
> result back to the business object.
> 
> Basically, I want to know, if I can use a static
> method (no static fields) within the ActionObject
> for performing the environment lookup thread safe.
> 
> Sounds a little complicated, doesn't it? Well, to
> those who have the time to get involved.
> It's actually not that difficult.
> 
> The class structure in my struts app is like the
> following:
> 
> -Class MyActionClass: extends ...struts.Action
> implements myClasses.Environment
> 
> -Interface myClasses.Environment has (let's say)
> just one method: 
> public boolean isPropertySet(Object helperObject)
> 
> -Class DoSomeStuffRq is a class that contains 
> a)translated form data, and 
> b) an java.lang.Object reference to store the
> HttpServletRequest 
> (which the MyActionObject just has recieved in its
> perform method).
> 
> -Class MyBusinessClass:
> doSomeBusinessStuff(DoSomeStuffRq stuffInfo,
> Environment env)
> 
> The Environment interface is there in order to
> decouple Struts from the business logic - giving
> the chance to reuse the MyBusinessClass when not
> using Struts anymore (well, I hope I don't have to,
> but still).
> 
> So finer grained, the actions are:
> 
> 1) Let the MyActionClass get the businessObject (of
> type MyBusinessClass),
> 2) MyActionClass calls the method
> businessObject.doSomeBusinessStuff(stuffInfo, this);
> 
> ["this" is of type Environment]
> 
> 3) in order to process the business actions, the
> BusinessObject has to 
> retrieve a boolean value from it's (unknown)
> environment. So it calls
> the isPropertySet from the Environment interface
> (which has the MyActionClass implementation):
> 
> public StuffResponse
> doSomeBusinessStuff(DoSomeStuffRq stuffInfo,
> Environment env)
> {
>   boolean importantProperty =
>
environment.isPropertySet(stuffInfo.getObjectReference());
>   ...
> }
> 
> where stuffInfo.getObjectReference() gives the above
> mentioned HttpServletRequest reference as a
> java.lang.Object.
> 
> 4) the rest is quite obvious: myActionObject does a
> cast of the java.lang.Object to the
> HttpServletRequest 
> and gets a request parameter. Then, it returns a
> boolean value depending on that request parameter.
> 
> Well, there's lots to argue about in the whole
> scenario. 
> Questions like: does it make sense to do all that
> stuff to decouple business logic and Struts; is
> there
> a better way of passing the parameters between the
> objects, shall the MyActionClass handle the lookup,
> when all I need is a HttpServletRequest and so on. 
> But the simple question I'm interested in is: Can I
> have the MyActionClass' method 
> public boolean isPropertySet(Object helperObject) 
> being static?
> 
> I think, I can, because:
> As long as I don't use any class members in the
> MyActionClass, the thread safety shall be 
> given -- no matter if the method is static or not.
> Is that true?
> Well it's more a java related question, but I think
> there are some people here, who are interested
> in this issue too.
> 
> Thanks in advance for your time,
> Holger
> 
> 
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: template tag hides custom taglib exceptions

2001-07-16 Thread Jason Te Whau

Yeah this is a problem with WebLogic, it doesn't propogate tag exceptions.
Fortunately the struts tags store the actual exception in the request object
under the key org.apache.struts.action.Action.EXCEPTION_KEY, which you can
retrieve using the call:
... (Throwable)
request.getAttribute(org.apache.struts.action.Action.EXCEPTION_KEY);

Generally you do this call on a common error page, that all of your JSPs
redirect to via the errorPage directive.

HTH

-Original Message-
From: Mark Takacs [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: template tag hides custom taglib exceptions


Summary:

our custom taglib exceptions are being masked from the Jsp errorPages by
our usage of the struts template taglibs. Is there a way we can
percolate our exceptions to the JSP error pages?

Details

We're running using WebLogic 6.0 on Linux.

We've been using struts for about six months now and are reasonably
pleased with it. However, using the template tags masks the exceptions
thrown by our custom taglibs. It's not a big problem for our developers,
since we can look at the server logs to get the full stack traces.
However, the error handlers we show via our web GUI are useless for our
QA to base bug reports on.

For instance, we have a mapping in struts-config.xml like

http://jakarta.apache.org/struts/template";
 %>







Basic.jsp is also straightforward, simply placing the template elements
on the page. Here's a snippet.





and then we've got your typical login.jsp page with a few custom taglibs
of our own design. The problem occurs when we get an exception in our
taglibs. The Expection is thrown within our taglibs , but the JSP
ErrorPages show

Exception found onErrorPage

javax.servlet.ServletException: runtime failure in custom tag 'get'
at jsp_servlet._templates._basic._jspService(_basic.java:196)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 

RootCause() is

javax.servlet.jsp.JspException
at
org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
at jsp_servlet._templates._basic._jspService(_basic.java:18)
 .

The Offending line in basic.jsp is the insertion of the "login.jsp" page
with our custom taglib which has thrown an exception. Yet JspException
doesn't define a getRootCause() call, so our tablib exception (usually a
runtime one) is completely masked from our QA team via the GUI. The
server logging we have in place clearly shows the Exception (in this
case a SQL connection problem), but we can't get that information up to
our exception page..

Is there a solution to this problem? I've heard that future JSP specs
allow for nested/hierachical Exceptions in JspException. Until then,
does anyone have suggestions or current practices of how you handle
expections that are masked by other taglibs?


-tak





RE:PROBLEM SOLVED : set-property and form-bean tag in struts-config.xml ??

2001-07-16 Thread Xavier Brunel

OK, I found a way to solve my problem (see the problem below)

I make my ListeActionFormBean' methods static and imported this class in my
UserListAction to be able to access to the desired property.
Then I set the similar property to my UserListForm and this is OK !!
It's not clean at all so i am waiting for an other idea .

Bye

Xavier Brunel

-Message d'origine-
De : Xavier Brunel [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 16 juillet 2001 20:27
À : [EMAIL PROTECTED]
Objet : RE: CORRECTION : set-property and form-bean tag in
struts-config.xml ??


Ok guys, looking at the Struts starting messages I saw this :

Set org.apache.struts.action.ActionFormBean property numberOfElement to 4

So I understand that Struts try to set the property "numberOfElement" of
ActionFormBean, property which does not exist in ActionFormBean  so it
does not work

So I extends ActionFormBean in a class ListActionFormBean adding the
property "numberOfElement"
_
public class ListeActionFormBean extends ActionFormBean{
private int numberOfElement;

  public void setNumberOfElement(int _numberOfElement){
numberOfElement=_numberOfElement;
}

  public int getNumberOfElement(){
return numberOfElement;
}
}
___

Then I modify struts-config.xml with the new reference to ListActionFormBean
for UserListForm:





The rest of my code did not change

When I start Struts I now get the following message :

New com.profileup.struts.formbean.ListActionFormBean
Set com.profileup.struts.formbean.ListActionFormBean properties
Set com.profileup.struts.formbean.ListActionFormBean property
numberOfElement to 4

But I am unable to get back this property to assign it to my UserListForm
!!
How do you make that possible ???
I presume that it is in the action class associed to the UserListForm
(UserListAction), but which command can I use ??

Thanks for Help

Xavier



-Message d'origine-
De : Xavier Brunel [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 16 juillet 2001 20:03
À : 'Struts-User
Objet : set-property and form-bean tag in struts-config.xml ??


Hi all,

I am using Struts since a couple of months and i face a problem with the
 tab in the  tag in struts-config.xml

I understood that the  could be used to initialize parameters
of JavaBeans (see struts-config.dtd).

But in fact this doesn't work in my case:

I am building an Application System and a Administration System using
Struts,Apache and Tomcat.
I have a "UserListForm" in my Administration System, which is a "ActionForm"
listing all the users registered in my Application System.
This UserListeForm is linked, through action-mapping,with a JSP Page
UserList.jsp, who is just displaying the list.
I would like to give to the Administrators the possibility to fix the
maximum number of element in the list, and giving them the possibility to
view the rest of the list by links "next" and "previous".
This works pretty well if I initialize this number directly in my
application code in UserListeForm.
But when i want to make it fixed through the struts-config.xml, the max
number is never initialized.
Can anybody help me on my problem ???

Here is My Struts-config.xml :




Here is my UserListForm extending the ActionForm to be able to use the
 :

public final class UserListForm extends ActionForm{

  private int numberOfElement;

  public void setNumberOfElement(int _numberOfElement){
numberOfElement=_numberOfElement;
}

  public int getNumberOfElement(){
return numberOfElement;
}
}








RE: Auto html edit box population with HTML:Text

2001-07-16 Thread Jann VanOver

Yes.  That's right.  Only class names (aka bean names) should be
capitalized.

-Original Message-
From: Albert Wong [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 15, 2001 8:21 PM
To: [EMAIL PROTECTED]
Subject: Auto html edit box population with HTML:Text


Hi 

In order to get HTML:Text to autopopulate a HTML edit box from a form
bean automatically, does the "property" have to start with a nonCapital
letter?
For example:  


RE: Annoying Teamtech.com Report to Recipient(s)

2001-07-16 Thread Roman Fail

The quoted content of your original message contains the letter x three
times in a row, which someone's mail server intereprets as
po-rn-o-graphic banned content (I figure that word is probably bad too).
Unfortunately the server sees fit to email the sender of the mail to let
them know they were bad, which in this case is the address of the whole
list.  So everyone gets it, which today has become quite annoying.  
 
Whoever is at Teamtech, let your mail administrator know about this
problem and maybe they can change the mail filter.  

-Original Message- 
From: Jeff Trent 
Sent: Mon 7/16/2001 11:53 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: Report to Recipient(s)



What is this message mean?


- Original Message -
From: "Paladin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 2:46 PM
Subject: Report to Recipient(s)


> Incident Information:-
>
> Originator:"Jeff Trent" <[EMAIL PROTECTED]>
> Recipients:<[EMAIL PROTECTED]>
> Subject:  Re: quick question : form
>
> Message from "Jeff Trent" <[EMAIL PROTECTED]> was
quarantined because
> it contained banned content.
>
>




 winmail.dat


Re: Report to Recipient(s)

2001-07-16 Thread Rama Krishna

his firewall/gateway/mailserver is rejecting mails,cause, they are filtering
the content.



- Original Message -
From: "Jeff Trent" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:53 AM
Subject: Re: Report to Recipient(s)


> What is this message mean?
>
>
> - Original Message -
> From: "Paladin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 16, 2001 2:46 PM
> Subject: Report to Recipient(s)
>
>
> > Incident Information:-
> >
> > Originator:"Jeff Trent" <[EMAIL PROTECTED]>
> > Recipients:<[EMAIL PROTECTED]>
> > Subject:  Re: quick question : form
> >
> > Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined
because
> > it contained banned content.
> >
> >
>
>



RE: Report to Recipient(s)

2001-07-16 Thread Assenza, Chris

Triple-"X" was in the body of the original message that everyone replied to
causing a stream of denied content for Mr. Paladin, whose server then sends
the list its denial.  

Mr. Paladin's server is not very polite to be constantly sending these
messages. :-\

Chris



-Original Message-
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 2:53 PM
To: [EMAIL PROTECTED]
Subject: Re: Report to Recipient(s)


What is this message mean?


- Original Message - 
From: "Paladin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 2:46 PM
Subject: Report to Recipient(s)


> Incident Information:-
> 
> Originator:"Jeff Trent" <[EMAIL PROTECTED]>
> Recipients:<[EMAIL PROTECTED]>
> Subject:  Re: quick question : form
> 
> Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
> it contained banned content.
> 
> 



Re: Report to Recipient(s)

2001-07-16 Thread Jeff Trent

What is this message mean?


- Original Message - 
From: "Paladin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 2:46 PM
Subject: Report to Recipient(s)


> Incident Information:-
> 
> Originator:"Jeff Trent" <[EMAIL PROTECTED]>
> Recipients:<[EMAIL PROTECTED]>
> Subject:  Re: quick question : form
> 
> Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
> it contained banned content.
> 
> 




Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Jeff Trent" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  Re: quick question : form

Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
it contained banned content.




Re: thread problems?

2001-07-16 Thread David Winterfeldt

It sounds like you are throwing an Exception of some
sort from you ActionForm?  Is that right?  The
ActionForm should just be a container to hold the
values from the form.

David

--- "Gogineni, Pratima" <[EMAIL PROTECTED]>
wrote:
> Hi,
> 
> I have been fighting with the following situation
> and would appreciate any
> ideas/suggestions.
> 
> I have a session scoped form bean "FBean", a jsp
> page that displays it
> "dispFBean" & an action FBeanAction.
> 
> I have inserted transactional tokens to take care of
> duplicate posting. 
> 
> After changing a value in dispFBean, an enter or/and
> a click work fine &
> they do the same thing ie. call FBeanAction.
> 
> when the 2 events are done in rapid succession - one
> event executes fine
> while the other event throws an exception because it
> is trying to access
> row#5 where as the previous action changed the
> number of rows to 4.
> Unfortunately the transactional tokens cant take
> care of this since this
> error is being thrown in BeanUtils.populate before
> it ever reaches an
> FBeanAction instance.
> 
> I also tried declaring the jsp page threadsafe to
> check if that is the
> problem. 
> 
> Also note that the FBeanAction replaces FBean with a
> new Instance of FBean.
> 
> Thanks
> Pratima


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



template tag hides custom taglib exceptions

2001-07-16 Thread Mark Takacs

Summary:

our custom taglib exceptions are being masked from the Jsp errorPages by
our usage of the struts template taglibs. Is there a way we can
percolate our exceptions to the JSP error pages?

Details

We're running using WebLogic 6.0 on Linux.

We've been using struts for about six months now and are reasonably
pleased with it. However, using the template tags masks the exceptions
thrown by our custom taglibs. It's not a big problem for our developers,
since we can look at the server logs to get the full stack traces.
However, the error handlers we show via our web GUI are useless for our
QA to base bug reports on.

For instance, we have a mapping in struts-config.xml like

http://jakarta.apache.org/struts/template";
 %>







Basic.jsp is also straightforward, simply placing the template elements
on the page. Here's a snippet.





and then we've got your typical login.jsp page with a few custom taglibs
of our own design. The problem occurs when we get an exception in our
taglibs. The Expection is thrown within our taglibs , but the JSP
ErrorPages show

Exception found onErrorPage

javax.servlet.ServletException: runtime failure in custom tag 'get'
at jsp_servlet._templates._basic._jspService(_basic.java:196)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 

RootCause() is

javax.servlet.jsp.JspException
at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
at jsp_servlet._templates._basic._jspService(_basic.java:18)
 .

The Offending line in basic.jsp is the insertion of the "login.jsp" page
with our custom taglib which has thrown an exception. Yet JspException
doesn't define a getRootCause() call, so our tablib exception (usually a
runtime one) is completely masked from our QA team via the GUI. The
server logging we have in place clearly shows the Exception (in this
case a SQL connection problem), but we can't get that information up to
our exception page..

Is there a solution to this problem? I've heard that future JSP specs
allow for nested/hierachical Exceptions in JspException. Until then,
does anyone have suggestions or current practices of how you handle
expections that are masked by other taglibs?


-tak







Re: quick question : form

2001-07-16 Thread Jeff Trent



Test message ... please ignore.

  - Original Message - 
  From: 
  Jeff 
  Trent 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 16, 2001 2:46 PM
  Subject: Re: quick question : form
  
  This is a test message, please 
  ignore.
  
- Original Message - 
From: 
Rama 
KrishnA 
To: [EMAIL PROTECTED] 
; [EMAIL PROTECTED] 
Sent: Monday, July 16, 2001 2:34 
PM
Subject: Re: quicK question : 
form

Thanks much Melissa. But, i want to know why 
it does like this, when i call the reset manually.
 
rama.

  - Original Message - 
  From: 
  MelissA 
  Rabin 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 16, 2001 11:19 
  AM
  Subject: RE: quicK question : 
  form
  
  Hi Rama.  One quick & dirty way to solve your 
  problem is to add "success" as a string to the request object in the 
  perform method of your action class, and add a " line in your struts-config file (which will 
  return you to the page you posted the initial request).  Add some jsp 
  code to check if the request attribute is null, which it will be when you 
  first load the page. After the request is posted and your action 
  class adds the string to the request (if all goes well), it should finish 
  up by returning you to your original jsp where you will now see your 
  "success" status message (e.g. <%= 
  request.getAttribute("status")%>
   
  I hope this helps
   
  Melissa
  Web Engineer
  
-Original Message-From: Rama KrishnA 
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 
2:07 PMTo: [EMAIL PROTECTED]Subject: 
quick questioN : form
hi all,
 
i have a form and when i submit it i 
perform some action and i forward it to the same form, but with a 
message "success". now
 
- i want to reset all the fields (set to 
default value)
- the url after submission is still 
xxx.yy?action="save", where as i want the action to 
be"create"
 
 
i tried calling reset method before 
forwarding, it clears all the fields but doesn't show message "success" 
and the url is still ?action="save"
 
 
can anyone help me??
 
thanks,
rama.
 
 


Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Jeff Trent" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  Re: quick question : form

Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
it contained banned content.




Re: quick question : form

2001-07-16 Thread Jeff Trent



Test message ... please ignore.

  - Original Message - 
  From: 
  Jeff 
  Trent 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 16, 2001 2:46 PM
  Subject: Re: quick question : form
  
  This is a test message, please 
  ignore.
  
- Original Message - 
From: 
Rama 
KrishnA 
To: [EMAIL PROTECTED] 
; [EMAIL PROTECTED] 
Sent: Monday, July 16, 2001 2:34 
PM
Subject: Re: quicK question : 
form

Thanks much Melissa. But, i want to know why 
it does like this, when i call the reset manually.
 
rama.

  - Original Message - 
  From: 
  MelissA 
  Rabin 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, July 16, 2001 11:19 
  AM
  Subject: RE: quicK question : 
  form
  
  Hi Rama.  One quick & dirty way to solve your 
  problem is to add "success" as a string to the request object in the 
  perform method of your action class, and add a " line in your struts-config file (which will 
  return you to the page you posted the initial request).  Add some jsp 
  code to check if the request attribute is null, which it will be when you 
  first load the page. After the request is posted and your action 
  class adds the string to the request (if all goes well), it should finish 
  up by returning you to your original jsp where you will now see your 
  "success" status message (e.g. <%= 
  request.getAttribute("status")%>
   
  I hope this helps
   
  Melissa
  Web Engineer
  
-Original Message-From: Rama KrishnA 
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 
2:07 PMTo: [EMAIL PROTECTED]Subject: 
quick questioN : form
hi all,
 
i have a form and when i submit it i 
perform some action and i forward it to the same form, but with a 
message "success". now
 
- i want to reset all the fields (set to 
default value)
- the url after submission is still 
xxx.yy?action="save", where as i want the action to 
be"create"
 
 
i tried calling reset method before 
forwarding, it clears all the fields but doesn't show message "success" 
and the url is still ?action="save"
 
 
can anyone help me??
 
thanks,
rama.
 
 


Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Jeff Trent" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  Re: quick question : form

Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
it contained banned content.




Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Jeff Trent" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  Re: quick question : form

Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
it contained banned content.




Re: quick question : form

2001-07-16 Thread Jeff Trent



This is a test message, please ignore.

  - Original Message - 
  From: 
  Rama 
  KrishnA 
  To: [EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] 
  Sent: Monday, July 16, 2001 2:34 PM
  Subject: Re: quicK question : form
  
  Thanks much Melissa. But, i want to know why it 
  does like this, when i call the reset manually.
   
  rama.
  
- Original Message - 
From: 
MelissA 
Rabin 
To: [EMAIL PROTECTED] 

Sent: Monday, July 16, 2001 11:19 
AM
Subject: RE: quicK question : 
form

Hi 
Rama.  One quick & dirty way to solve your problem 
is to add "success" as a string to the request object in the perform 
method of your action class, and add a " line in your struts-config file (which will 
return you to the page you posted the initial request).  Add some jsp 
code to check if the request attribute is null, which it will be when you 
first load the page. After the request is posted and your action class 
adds the string to the request (if all goes well), it should finish up by 
returning you to your original jsp where you will now see your "success" 
status message (e.g. <%= 
request.getAttribute("status")%>
 
I 
hope this helps
 
Melissa
Web Engineer

  -Original Message-From: Rama KrishnA 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 
  PMTo: [EMAIL PROTECTED]Subject: quick 
  questioN : form
  hi all,
   
  i have a form and when i submit it i 
  perform some action and i forward it to the same form, but with a message 
  "success". now
   
  - i want to reset all the fields (set to 
  default value)
  - the url after submission is still 
  xxx.yy?action="save", where as i want the action to 
be"create"
   
   
  i tried calling reset method before 
  forwarding, it clears all the fields but doesn't show message "success" 
  and the url is still ?action="save"
   
   
  can anyone help me??
   
  thanks,
  rama.
   
   


Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Jeff Trent" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  Re: quick question : form

Message from "Jeff Trent" <[EMAIL PROTECTED]> was quarantined because
it contained banned content.




Re: quick question : form

2001-07-16 Thread Jeff Trent



This is a test message, please ignore.

  - Original Message - 
  From: 
  Rama 
  KrishnA 
  To: [EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] 
  Sent: Monday, July 16, 2001 2:34 PM
  Subject: Re: quicK question : form
  
  Thanks much Melissa. But, i want to know why it 
  does like this, when i call the reset manually.
   
  rama.
  
- Original Message - 
From: 
MelissA 
Rabin 
To: [EMAIL PROTECTED] 

Sent: Monday, July 16, 2001 11:19 
AM
Subject: RE: quicK question : 
form

Hi 
Rama.  One quick & dirty way to solve your problem 
is to add "success" as a string to the request object in the perform 
method of your action class, and add a " line in your struts-config file (which will 
return you to the page you posted the initial request).  Add some jsp 
code to check if the request attribute is null, which it will be when you 
first load the page. After the request is posted and your action class 
adds the string to the request (if all goes well), it should finish up by 
returning you to your original jsp where you will now see your "success" 
status message (e.g. <%= 
request.getAttribute("status")%>
 
I 
hope this helps
 
Melissa
Web Engineer

  -Original Message-From: Rama KrishnA 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 
  PMTo: [EMAIL PROTECTED]Subject: quick 
  questioN : form
  hi all,
   
  i have a form and when i submit it i 
  perform some action and i forward it to the same form, but with a message 
  "success". now
   
  - i want to reset all the fields (set to 
  default value)
  - the url after submission is still 
  xxx.yy?action="save", where as i want the action to 
be"create"
   
   
  i tried calling reset method before 
  forwarding, it clears all the fields but doesn't show message "success" 
  and the url is still ?action="save"
   
   
  can anyone help me??
   
  thanks,
  rama.
   
   


Re: quick question : form

2001-07-16 Thread Jeff Trent



This is a test message, please ignore.

  - Original Message - 
  From: 
  Rama 
  KrishnA 
  To: [EMAIL PROTECTED] 
  ; [EMAIL PROTECTED] 
  Sent: Monday, July 16, 2001 2:34 PM
  Subject: Re: quicK question : form
  
  Thanks much Melissa. But, i want to know why it 
  does like this, when i call the reset manually.
   
  rama.
  
- Original Message - 
From: 
MelissA 
Rabin 
To: [EMAIL PROTECTED] 

Sent: Monday, July 16, 2001 11:19 
AM
Subject: RE: quicK question : 
form

Hi 
Rama.  One quick & dirty way to solve your problem 
is to add "success" as a string to the request object in the perform 
method of your action class, and add a " line in your struts-config file (which will 
return you to the page you posted the initial request).  Add some jsp 
code to check if the request attribute is null, which it will be when you 
first load the page. After the request is posted and your action class 
adds the string to the request (if all goes well), it should finish up by 
returning you to your original jsp where you will now see your "success" 
status message (e.g. <%= 
request.getAttribute("status")%>
 
I 
hope this helps
 
Melissa
Web Engineer

  -Original Message-From: Rama KrishnA 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 
  PMTo: [EMAIL PROTECTED]Subject: quick 
  questioN : form
  hi all,
   
  i have a form and when i submit it i 
  perform some action and i forward it to the same form, but with a message 
  "success". now
   
  - i want to reset all the fields (set to 
  default value)
  - the url after submission is still 
  xxx.yy?action="save", where as i want the action to 
be"create"
   
   
  i tried calling reset method before 
  forwarding, it clears all the fields but doesn't show message "success" 
  and the url is still ?action="save"
   
   
  can anyone help me??
   
  thanks,
  rama.
   
   


thread problems?

2001-07-16 Thread Gogineni, Pratima

Hi,

I have been fighting with the following situation and would appreciate any
ideas/suggestions.

I have a session scoped form bean "FBean", a jsp page that displays it
"dispFBean" & an action FBeanAction.

I have inserted transactional tokens to take care of duplicate posting. 

After changing a value in dispFBean, an enter or/and a click work fine &
they do the same thing ie. call FBeanAction.

when the 2 events are done in rapid succession - one event executes fine
while the other event throws an exception because it is trying to access
row#5 where as the previous action changed the number of rows to 4.
Unfortunately the transactional tokens cant take care of this since this
error is being thrown in BeanUtils.populate before it ever reaches an
FBeanAction instance.

I also tried declaring the jsp page threadsafe to check if that is the
problem. 

Also note that the FBeanAction replaces FBean with a new Instance of FBean.

Thanks
Pratima



Error deploying struts in a war file

2001-07-16 Thread B Manikandan

Hi,
   My application which uses struts and EJB was working when the
application was in their directories.]
Now as part of deployment we made EJB jar's and a WAR file having
struts.jar.

But the application gives an exception saying that ActionServlet class
was not found.

What are the steps to be taken to ensure that WAR and EJB JAR in an EAR
will work ?

Mani



The Information contained and transmitted by this E-MAIL is proprietary to 
Wipro Limited and is intended for  use only by the individual or entity to which 
it is addressed, and may contain information that is privileged, confidential or 
exempt from disclosure under applicable law. If this is a forwarded message, 
the content of this E-MAIL may not have been sent with the authority of the 
Company. If you are not the intended recipient, an agent of the intended 
recipient or a  person responsible for delivering the information to the named 
recipient,  you are notified that any use, distribution, transmission, printing, 
copying or dissemination of this information in any way or in any manner is 
strictly prohibited. If you have received this communication in error, please 
delete this mail & notify us immediately at [EMAIL PROTECTED] 




Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Rama Krishna" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject:  Re: quick question : form

Message from "Rama Krishna" <[EMAIL PROTECTED]> was quarantined
because it contained banned content.




Re: quick question : form

2001-07-16 Thread Rama Krishna



Thanks much Melissa. But, i want to know why it 
does like this, when i call the reset manually.
 
rama.

  - Original Message - 
  From: 
  Melissa 
  Rabin 
  To: [EMAIL PROTECTED] 
  Sent: Monday, July 16, 2001 11:19 
AM
  Subject: RE: quick question : form
  
  Hi 
  Rama.  One quick & dirty way to solve your problem is to 
  add "success" as a string to the request object in the perform method of your 
  action class, and add a " 
  line in your struts-config file (which will return you to the page you 
  posted the initial request).  Add some jsp code to check if the request 
  attribute is null, which it will be when you first load the page. After 
  the request is posted and your action class adds the string to the request (if 
  all goes well), it should finish up by returning you to your original jsp 
  where you will now see your "success" status message (e.g. <%= 
  request.getAttribute("status")%>
   
  I 
  hope this helps
   
  Melissa
  Web 
  Engineer
  
-Original Message-From: Rama Krishna 
[mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 
PMTo: [EMAIL PROTECTED]Subject: quick 
question : form
hi all,
 
i have a form and when i submit it i perform 
some action and i forward it to the same form, but with a message "success". 
now
 
- i want to reset all the fields (set to 
default value)
- the url after submission is still 
xxx.yy?action="save", where as i want the action to be"create"
 
 
i tried calling reset method before 
forwarding, it clears all the fields but doesn't show message "success" and 
the url is still ?action="save"
 
 
can anyone help me??
 
thanks,
rama.
 
 


Problem with file upload

2001-07-16 Thread Mustapha Essalihe

Hi,
 I want to use a form to gather some informations from users. To upload a
file i used   tag with necessary code in the action  class to
upload the file (like struts-example). When i included this tag, i found
that some other fields still blank when i check my database even if the user
put some infos in the form, but the file (html files) is successfully
uploaded. When i remove this tag  and change its type in the actionform to
string (instead of formfile), all is ok 
 any help
thanks.
-Original Message-
From: Holger Wiechert [mailto:[EMAIL PROTECTED]]
Sent: 16 juillet, 2001 12:35
To: [EMAIL PROTECTED]
Subject: Java-related question: thread safe ActionClasses


Hi,

I've got a question about an issue to the thread safe execution.
The whole setup was made in order to have a business logic triggered by
struts, that still can retrieve information from its environment -- here
Struts -- without
having explicit knowledge of it. In short, the processing is like this:

a) the ActionObject gets the business object
b) calls the business method on the business object including
-the HttpServletRequest just received in the perform call, and
-a reference to itself
c) the business object now uses this reference to retrieve from this object
   some information about the business objects environment. Thus, the
business object
   calls the ActionObject (without knowing, that it is a struts Action) and
hands in
   the HttpServletRequest (as an java.lang.Object).
d) the ActionObject uses the HttpServletRequest to get the desired
information
   (like request.getParameter()) and returns the result back to the business
object.

Basically, I want to know, if I can use a static method (no static fields)
within the ActionObject
for performing the environment lookup thread safe.

Sounds a little complicated, doesn't it? Well, to those who have the time to
get involved.
It's actually not that difficult.

The class structure in my struts app is like the following:

-Class MyActionClass: extends ...struts.Action implements
myClasses.Environment

-Interface myClasses.Environment has (let's say) just one method:
public boolean isPropertySet(Object helperObject)

-Class DoSomeStuffRq is a class that contains
a)translated form data, and
b) an java.lang.Object reference to store the HttpServletRequest
(which the MyActionObject just has recieved in its perform method).

-Class MyBusinessClass: doSomeBusinessStuff(DoSomeStuffRq stuffInfo,
Environment env)

The Environment interface is there in order to decouple Struts from the
business logic - giving
the chance to reuse the MyBusinessClass when not using Struts anymore (well,
I hope I don't have to, but still).

So finer grained, the actions are:

1) Let the MyActionClass get the businessObject (of type MyBusinessClass),
2) MyActionClass calls the method
businessObject.doSomeBusinessStuff(stuffInfo, this);
["this" is of type Environment]

3) in order to process the business actions, the BusinessObject has to
retrieve a boolean value from it's (unknown) environment. So it calls
the isPropertySet from the Environment interface (which has the
MyActionClass implementation):

public StuffResponse doSomeBusinessStuff(DoSomeStuffRq stuffInfo,
Environment env)
{
boolean importantProperty =
environment.isPropertySet(stuffInfo.getObjectReference());
...
}

where stuffInfo.getObjectReference() gives the above mentioned
HttpServletRequest reference as a java.lang.Object.

4) the rest is quite obvious: myActionObject does a cast of the
java.lang.Object to the HttpServletRequest
and gets a request parameter. Then, it returns a boolean value depending on
that request parameter.

Well, there's lots to argue about in the whole scenario.
Questions like: does it make sense to do all that stuff to decouple business
logic and Struts; is there
a better way of passing the parameters between the objects, shall the
MyActionClass handle the lookup,
when all I need is a HttpServletRequest and so on.
But the simple question I'm interested in is: Can I have the MyActionClass'
method
public boolean isPropertySet(Object helperObject)
being static?

I think, I can, because:
As long as I don't use any class members in the MyActionClass, the thread
safety shall be
given -- no matter if the method is static or not. Is that true?
Well it's more a java related question, but I think there are some people
here, who are interested
in this issue too.

Thanks in advance for your time,
Holger







RE: CORRECTION : set-property and form-bean tag in struts-config.xml ??

2001-07-16 Thread Xavier Brunel

Ok guys, looking at the Struts starting messages I saw this :

Set org.apache.struts.action.ActionFormBean property numberOfElement to 4

So I understand that Struts try to set the property "numberOfElement" of
ActionFormBean, property which does not exist in ActionFormBean  so it
does not work

So I extends ActionFormBean in a class ListActionFormBean adding the
property "numberOfElement"
_
public class ListeActionFormBean extends ActionFormBean{
private int numberOfElement;

  public void setNumberOfElement(int _numberOfElement){
numberOfElement=_numberOfElement;
}

  public int getNumberOfElement(){
return numberOfElement;
}
}
___

Then I modify struts-config.xml with the new reference to ListActionFormBean
for UserListForm:





The rest of my code did not change

When I start Struts I now get the following message :

New com.profileup.struts.formbean.ListActionFormBean
Set com.profileup.struts.formbean.ListActionFormBean properties
Set com.profileup.struts.formbean.ListActionFormBean property
numberOfElement to 4

But I am unable to get back this property to assign it to my UserListForm
!!
How do you make that possible ???
I presume that it is in the action class associed to the UserListForm
(UserListAction), but which command can I use ??

Thanks for Help

Xavier



-Message d'origine-
De : Xavier Brunel [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 16 juillet 2001 20:03
À : 'Struts-User
Objet : set-property and form-bean tag in struts-config.xml ??


Hi all,

I am using Struts since a couple of months and i face a problem with the
 tab in the  tag in struts-config.xml

I understood that the  could be used to initialize parameters
of JavaBeans (see struts-config.dtd).

But in fact this doesn't work in my case:

I am building an Application System and a Administration System using
Struts,Apache and Tomcat.
I have a "UserListForm" in my Administration System, which is a "ActionForm"
listing all the users registered in my Application System.
This UserListeForm is linked, through action-mapping,with a JSP Page
UserList.jsp, who is just displaying the list.
I would like to give to the Administrators the possibility to fix the
maximum number of element in the list, and giving them the possibility to
view the rest of the list by links "next" and "previous".
This works pretty well if I initialize this number directly in my
application code in UserListeForm.
But when i want to make it fixed through the struts-config.xml, the max
number is never initialized.
Can anybody help me on my problem ???

Here is My Struts-config.xml :




Here is my UserListForm extending the ActionForm to be able to use the
 :

public final class UserListForm extends ActionForm{

  private int numberOfElement;

  public void setNumberOfElement(int _numberOfElement){
numberOfElement=_numberOfElement;
}

  public int getNumberOfElement(){
return numberOfElement;
}
}






Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Melissa Rabin" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  RE: quick question : form

Message from "Melissa Rabin" <[EMAIL PROTECTED]> was quarantined
because it contained banned content.




RE: quick question : form

2001-07-16 Thread Melissa Rabin



Hi 
Rama.  One quick & dirty way to solve your problem is to 
add "success" as a string to the request object in the perform method of your 
action class, and add a " line 
in your struts-config file (which will return you to the page you posted 
the initial request).  Add some jsp code to check if the request attribute 
is null, which it will be when you first load the page. After the request 
is posted and your action class adds the string to the request (if all goes 
well), it should finish up by returning you to your original jsp where you will 
now see your "success" status message (e.g. <%= 
request.getAttribute("status")%>
 
I hope 
this helps
 
Melissa
Web 
Engineer

  -Original Message-From: Rama Krishna 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 16, 2001 2:07 
  PMTo: [EMAIL PROTECTED]Subject: quick 
  question : form
  hi all,
   
  i have a form and when i submit it i perform 
  some action and i forward it to the same form, but with a message "success". 
  now
   
  - i want to reset all the fields (set to 
  default value)
  - the url after submission is still 
  xxx.yy?action="save", where as i want the action to be"create"
   
   
  i tried calling reset method before forwarding, 
  it clears all the fields but doesn't show message "success" and the url is 
  still ?action="save"
   
   
  can anyone help me??
   
  thanks,
  rama.
   
   


Problem in template tag

2001-07-16 Thread Boompally, Jayapal

First time template working correctly but when I submit to other same page
it is not showing header, footer, menu it only showing content


please help me
Thanks
Jayapal



Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Rama Krishna" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  quick question : form

Message from "Rama Krishna" <[EMAIL PROTECTED]> was quarantined
because it contained banned content.




quick question : form

2001-07-16 Thread Rama Krishna



hi all,
 
i have a form and when i submit it i perform some 
action and i forward it to the same form, but with a message "success". 
now
 
- i want to reset all the fields (set to default 
value)
- the url after submission is still 
xxx.yy?action="save", where as i want the action to be"create"
 
 
i tried calling reset method before forwarding, 
it clears all the fields but doesn't show message "success" and the url is still 
?action="save"
 
 
can anyone help me??
 
thanks,
rama.
 
 


set-property and form-bean tag in struts-config.xml ??

2001-07-16 Thread Xavier Brunel

Hi all,

I am using Struts since a couple of months and i face a problem with the
 tab in the  tag in struts-config.xml

I understood that the  could be used to initialize parameters
of JavaBeans (see struts-config.dtd).

But in fact this doesn't work in my case:

I am building an Application System and a Administration System using
Struts,Apache and Tomcat.
I have a "UserListForm" in my Administration System, which is a "ActionForm"
listing all the users registered in my Application System.
This UserListeForm is linked, through action-mapping,with a JSP Page
UserList.jsp, who is just displaying the list.
I would like to give to the Administrators the possibility to fix the
maximum number of element in the list, and giving them the possibility to
view the rest of the list by links "next" and "previous".
This works pretty well if I initialize this number directly in my
application code in UserListeForm.
But when i want to make it fixed through the struts-config.xml, the max
number is never initialized.
Can anybody help me on my problem ???

Here is My Struts-config.xml :




Here is my UserListForm extending the ActionForm to be able to use the
 :

public final class UserListForm extends ActionForm{

  private int numberOfElement;

  public void setNumberOfElement(int _numberOfElement){
numberOfElement=_numberOfElement;
}

  public int getNumberOfElement(){
return numberOfElement;
}
}




RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Pathangi, Rao H.

Thanks Melissa I now have a better understanding of the deployment.

pathangi r



-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


I've not yet worked with websphere, so I cannot guess as to why it managed
to work before.  However, if you take a look at the source code for the
blank struts app (provided in the 1.0 zipfile), you'll see that Mr.
McClanahan placed the resource file in the classes dir.  Makes sense -
runtime apps need a web-root-relative place to locate resources, right?  And
the standard (Java Servlet Specification 2.2) is to place these resources in
a common directory called "classes".  Least that's what I've gathered
(http://java.sun.com/j2ee/tutorial/doc/WebComponents3.html is where this
became apparent).

Perhaps not all Java-compliant app servers follow this standard, however...


Let me know how you make out.

Melissa
Web Engineer


-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE


OK.

I will give it a try by placing the resource files under web-inf/classes and
it will be something like web-inf/classes/com.abc.def.ghi.MyResources

But I wonder why it worked in the Websphere Test Environment. I neither had
classes nor the lib folders in web-inf. May be it found the corresponding
properties files with the setting I had.

Thank You 4 your time

regards
pathangi r

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


The Struts User-Guide specifies: "The important thing is for the resource
bundle to be found on the class path for your application. "  So, just like
a call to a struts class in a web-app will need to be referenced under the
WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.  Ant can be told to copy that
file to the classes directory (as it isn't compiled), so that every time you
rebuild your application your
resource file will be copied into the classes dir.

Hope this helps

Melissa
Web Engineer

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE



I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory?

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment u

RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Pathangi, Rao H.

Great! I too think that the WTE figures out once we have the packages in our
workspace and the resource files in  appropriate directories under project
resources.


Thanks
pathangi r


-Original Message-
From: Jain, Shipra [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE


Websphere Test Environment finds the resource file if you have added them to
your Project Resources. 

And for actual web container you need the resource files in web-inf/classes
something like web-inf/classes/com/abc/def/ghi/MyResources.

Shipra Jain

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE


OK.

I will give it a try by placing the resource files under web-inf/classes and
it will be something like web-inf/classes/com.abc.def.ghi.MyResources

But I wonder why it worked in the Websphere Test Environment. I neither had
classes nor the lib folders in web-inf. May be it found the corresponding
properties files with the setting I had. 

Thank You 4 your time

regards
pathangi r

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


The Struts User-Guide specifies: "The important thing is for the resource
bundle to be found on the class path for your application. "  So, just like
a call to a struts class in a web-app will need to be referenced under the
WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.  Ant can be told to copy that
file to the classes directory (as it isn't compiled), so that every time you
rebuild your application your
resource file will be copied into the classes dir.

Hope this helps

Melissa
Web Engineer

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE



I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory?

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request:

RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Jain, Shipra

Websphere Test Environment finds the resource file if you have added them to
your Project Resources. 

And for actual web container you need the resource files in web-inf/classes
something like web-inf/classes/com/abc/def/ghi/MyResources.

Shipra Jain

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE


OK.

I will give it a try by placing the resource files under web-inf/classes and
it will be something like web-inf/classes/com.abc.def.ghi.MyResources

But I wonder why it worked in the Websphere Test Environment. I neither had
classes nor the lib folders in web-inf. May be it found the corresponding
properties files with the setting I had. 

Thank You 4 your time

regards
pathangi r

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


The Struts User-Guide specifies: "The important thing is for the resource
bundle to be found on the class path for your application. "  So, just like
a call to a struts class in a web-app will need to be referenced under the
WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.  Ant can be told to copy that
file to the classes directory (as it isn't compiled), so that every time you
rebuild your application your
resource file will be copied into the classes dir.

Hope this helps

Melissa
Web Engineer

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE



I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory?

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request: > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>



Need help with struts at Apache/Tomcat

2001-07-16 Thread hunkpapa

Hi,
I've done a project with struts.
It works well at my local machine, with tomcat 3.2 (standalone)
I start it with http://localhost:8080/myproject
Then the index.jsp starts.

Now I want to use the project on a webserver.
My ISP has a Cobalt-Server with Apache and Tomcat 3.2

But at this server has a different to my Tomcat.
To execute a Servlet at this machine you must type:
http://host:8080/servlet/myservlet

The index.jsp works when I type
http://host//myproject

but the Servlets doesn't work.

How must I configure the struts to use at this server ?


thx










RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Melissa Rabin

I've not yet worked with websphere, so I cannot guess as to why it managed
to work before.  However, if you take a look at the source code for the
blank struts app (provided in the 1.0 zipfile), you'll see that Mr.
McClanahan placed the resource file in the classes dir.  Makes sense -
runtime apps need a web-root-relative place to locate resources, right?  And
the standard (Java Servlet Specification 2.2) is to place these resources in
a common directory called "classes".  Least that's what I've gathered
(http://java.sun.com/j2ee/tutorial/doc/WebComponents3.html is where this
became apparent).

Perhaps not all Java-compliant app servers follow this standard, however...


Let me know how you make out.

Melissa
Web Engineer


-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE


OK.

I will give it a try by placing the resource files under web-inf/classes and
it will be something like web-inf/classes/com.abc.def.ghi.MyResources

But I wonder why it worked in the Websphere Test Environment. I neither had
classes nor the lib folders in web-inf. May be it found the corresponding
properties files with the setting I had.

Thank You 4 your time

regards
pathangi r

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


The Struts User-Guide specifies: "The important thing is for the resource
bundle to be found on the class path for your application. "  So, just like
a call to a struts class in a web-app will need to be referenced under the
WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.  Ant can be told to copy that
file to the classes directory (as it isn't compiled), so that every time you
rebuild your application your
resource file will be copied into the classes dir.

Hope this helps

Melissa
Web Engineer

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE



I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory?

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the s

RE: Link Tag not supported?

2001-07-16 Thread Siggelkow, Bill

You should only need to provide a relative link as the href attribute of
your link tag.  You can also use the Struts base tag to set the base from
the calling page ...


My Home Page



...

-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:47 PM
To: Struts-User (E-mail)
Subject: Link Tag not supported?


Hi,

I want to create this html using struts tags so I don't have to hard code my
context (LevelSeas) but the html:link tag is for 

Is there a tag to do this or am I going to have to write my own custom tag?

Cheers
Nathan


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Re: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Jon Brisbin

my resources file has always been under the WEB-INF/classes folder, but i
only have this problem with Tomcat 4.0.  Tomcat 3.x works fine.

jb

- Original Message -
From: "Melissa Rabin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 11:47 AM
Subject: RE: Error: org.apache.struts.action.MESSAGE


> The Struts User-Guide specifies: "The important thing is for the resource
> bundle to be found on the class path for your application. "  So, just
like
> a call to a struts class in a web-app will need to be referenced under the
> WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
> directory, you also need to have a root-relative path for any Application
> Resources.  I place mine in the WEB-INF/classes folder as that is
> automatically referenced by my web container.  Ant can be told to copy
that
> file to the classes directory (as it isn't compiled), so that every time
you
> rebuild your application your
> resource file will be copied into the classes dir.
>
> Hope this helps
>
> Melissa
> Web Engineer





RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Pathangi, Rao H.

OK.

I will give it a try by placing the resource files under web-inf/classes and
it will be something like web-inf/classes/com.abc.def.ghi.MyResources

But I wonder why it worked in the Websphere Test Environment. I neither had
classes nor the lib folders in web-inf. May be it found the corresponding
properties files with the setting I had. 

Thank You 4 your time

regards
pathangi r

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


The Struts User-Guide specifies: "The important thing is for the resource
bundle to be found on the class path for your application. "  So, just like
a call to a struts class in a web-app will need to be referenced under the
WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.  Ant can be told to copy that
file to the classes directory (as it isn't compiled), so that every time you
rebuild your application your
resource file will be copied into the classes dir.

Hope this helps

Melissa
Web Engineer

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE



I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory?

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request: > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>




RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Melissa Rabin

The Struts User-Guide specifies: "The important thing is for the resource
bundle to be found on the class path for your application. "  So, just like
a call to a struts class in a web-app will need to be referenced under the
WEB-INF (which is why we place the struts.jar file in the WEB-INF/lib
directory, you also need to have a root-relative path for any Application
Resources.  I place mine in the WEB-INF/classes folder as that is
automatically referenced by my web container.  Ant can be told to copy that
file to the classes directory (as it isn't compiled), so that every time you
rebuild your application your
resource file will be copied into the classes dir.

Hope this helps

Melissa
Web Engineer

-Original Message-
From: Pathangi, Rao H. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error: org.apache.struts.action.MESSAGE



I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory?

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request: > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>





Link Tag not supported?

2001-07-16 Thread Nathan Coast

Hi,

I want to create this html using struts tags so I don't have to hard code my
context (LevelSeas) but the html:link tag is for 

Is there a tag to do this or am I going to have to write my own custom tag?

Cheers
Nathan


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Java-related question: thread safe ActionClasses

2001-07-16 Thread Holger Wiechert

Hi,

I've got a question about an issue to the thread safe execution.
The whole setup was made in order to have a business logic triggered by
struts, that still can retrieve information from its environment -- here Struts -- 
without
having explicit knowledge of it. In short, the processing is like this:

a) the ActionObject gets the business object
b) calls the business method on the business object including 
-the HttpServletRequest just received in the perform call, and
-a reference to itself 
c) the business object now uses this reference to retrieve from this object 
   some information about the business objects environment. Thus, the business object
   calls the ActionObject (without knowing, that it is a struts Action) and hands in
   the HttpServletRequest (as an java.lang.Object).
d) the ActionObject uses the HttpServletRequest to get the desired information
   (like request.getParameter()) and returns the result back to the business object.

Basically, I want to know, if I can use a static method (no static fields) within the 
ActionObject
for performing the environment lookup thread safe.

Sounds a little complicated, doesn't it? Well, to those who have the time to get 
involved.
It's actually not that difficult.

The class structure in my struts app is like the following:

-Class MyActionClass: extends ...struts.Action implements myClasses.Environment

-Interface myClasses.Environment has (let's say) just one method: 
public boolean isPropertySet(Object helperObject)

-Class DoSomeStuffRq is a class that contains 
a)translated form data, and 
b) an java.lang.Object reference to store the HttpServletRequest 
(which the MyActionObject just has recieved in its perform method).

-Class MyBusinessClass: doSomeBusinessStuff(DoSomeStuffRq stuffInfo, Environment env)

The Environment interface is there in order to decouple Struts from the business logic 
- giving
the chance to reuse the MyBusinessClass when not using Struts anymore (well, I hope I 
don't have to, but still).

So finer grained, the actions are:

1) Let the MyActionClass get the businessObject (of type MyBusinessClass),
2) MyActionClass calls the method businessObject.doSomeBusinessStuff(stuffInfo, this); 
["this" is of type Environment]

3) in order to process the business actions, the BusinessObject has to 
retrieve a boolean value from it's (unknown) environment. So it calls
the isPropertySet from the Environment interface (which has the MyActionClass 
implementation):

public StuffResponse doSomeBusinessStuff(DoSomeStuffRq stuffInfo, Environment env)
{
boolean importantProperty = 
environment.isPropertySet(stuffInfo.getObjectReference());
...
}

where stuffInfo.getObjectReference() gives the above mentioned HttpServletRequest 
reference as a java.lang.Object.

4) the rest is quite obvious: myActionObject does a cast of the java.lang.Object to 
the HttpServletRequest 
and gets a request parameter. Then, it returns a boolean value depending on that 
request parameter.

Well, there's lots to argue about in the whole scenario. 
Questions like: does it make sense to do all that stuff to decouple business logic and 
Struts; is there
a better way of passing the parameters between the objects, shall the MyActionClass 
handle the lookup,
when all I need is a HttpServletRequest and so on. 
But the simple question I'm interested in is: Can I have the MyActionClass' method 
public boolean isPropertySet(Object helperObject) 
being static?

I think, I can, because:
As long as I don't use any class members in the MyActionClass, the thread safety shall 
be 
given -- no matter if the method is static or not. Is that true?
Well it's more a java related question, but I think there are some people here, who 
are interested
in this issue too.

Thanks in advance for your time,
Holger






RE: Report to Recipient(s)

2001-07-16 Thread Fletcher, Ken

Paladin - could you please loosen your email filteror maybe disable
the reply to when you get banned content from the struts-user group?

-Original Message-
From: Paladin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: Report to Recipient(s)


Incident Information:-

Originator:"Melissa Rabin" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  RE: Error: org.apache.struts.action.MESSAGE

Message from "Melissa Rabin" <[EMAIL PROTECTED]> was quarantined
because it contained banned content.



RE: Indexed Tags Functionality

2001-07-16 Thread DHarty

Excellent, thanks for the effort.  I had been hoping for a way to do this.

I'll begin working with it, and let you know if I have any comments.

D

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Indexed Tags Functionality




PS  You obviously also need a setParameterList(ArrayList paramList).

Dave





"DHarty" <[EMAIL PROTECTED]> on 07/16/2001 10:26:11
AM

Please respond to [EMAIL PROTECTED]

To:   "Struts User" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Indexed Tags Functionality




I was just reviewing the indexed tags funtionality and it looks like a
valuable addittion.

Before I rebuilt struts however, I had a question regarding the funtionality
with ArrayLists and Vectors.

Essentially, I was wondering if you could use these tags on objects like
Vectors and lists given that you implement the getter funtion using an
indexed parameter.

Using the example from http://husted.com/about/struts/indexed-tags.htm :

 
  ...
  
  ...
 

then in the action class, could you have?

 // an ArrayList of some "parameter" bean that has a "value" property.
 private ArrayList parameterList;

 public ArrayList getParameterList()
 {
  return this.parameterList;
 }

 public parameter getParameter(int index)
 {
  return this.parameterList.get(index)
 }

Thanks

D












Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Pathangi, Rao H." <[EMAIL PROTECTED]>
Recipients:"'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Subject:  RE: Error: org.apache.struts.action.MESSAGE

Message from "Pathangi, Rao H." <[EMAIL PROTECTED]> was quarantined
because it contained banned content.




RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Pathangi, Rao H.


I had the resources file(properties file) in a directory in the servlet
directory along with the classes. Should it be in the web-inf directory as
well? (Iam trying to deploy the app on Websphere 3.5 patch 2. I have earlier
successfully deployed it in the WS Test environment 3.5.3. Iam trying to use
the same settings on WS 3.5 Patch 2)

I guess the classes directory under web-inf is specific to Tom Cat??


Regards
Pathangi RH

-Original Message-
From: Melissa Rabin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: Error: org.apache.struts.action.MESSAGE


Is your Message resource file in the WEB-INF/classes directory? 

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request: > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>




Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Melissa Rabin" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  RE: Error: org.apache.struts.action.MESSAGE

Message from "Melissa Rabin" <[EMAIL PROTECTED]> was quarantined
because it contained banned content.




RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Melissa Rabin

Is your Message resource file in the WEB-INF/classes directory? 

Melissa

-Original Message-
From: Jon Brisbin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE


I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request: > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>





RE: Installation on Netscape 4.1

2001-07-16 Thread Hampton, Paul

I'm not sure, but at a guess it won't work & if it does it will take ages to
get working - try upgrading to iPlanet 6 if possible...

Paul

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 4:53 PM
> To:   [EMAIL PROTECTED]
> Subject:  Installation on Netscape 4.1
> 
> Hello everyone and thank you in advance for reading and replying to my
> question.
> 
> I am trying to install Struts to work with iPlanet 4.1.  It does not
> support web application archives WAR. Does anyone have this installation
> process documented or knows how to do it and could document it?
> 
> I would appreciate any help.
> 
> Thank you,
> 
> Dmitri Furman


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies comprises Prudential Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Personal Investment Authority.  All members of the Egg group
are registered in England and Wales. Registered offices: 142
Holborn Bars, London EC1N 2NH

If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.



Re: Indexed Tags Functionality

2001-07-16 Thread dhay



PS  You obviously also need a setParameterList(ArrayList paramList).

Dave





"DHarty" <[EMAIL PROTECTED]> on 07/16/2001 10:26:11 AM

Please respond to [EMAIL PROTECTED]

To:   "Struts User" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Indexed Tags Functionality




I was just reviewing the indexed tags funtionality and it looks like a
valuable addittion.

Before I rebuilt struts however, I had a question regarding the funtionality
with ArrayLists and Vectors.

Essentially, I was wondering if you could use these tags on objects like
Vectors and lists given that you implement the getter funtion using an
indexed parameter.

Using the example from http://husted.com/about/struts/indexed-tags.htm :

 
  ...
  
  ...
 

then in the action class, could you have?

 // an ArrayList of some "parameter" bean that has a "value" property.
 private ArrayList parameterList;

 public ArrayList getParameterList()
 {
  return this.parameterList;
 }

 public parameter getParameter(int index)
 {
  return this.parameterList.get(index)
 }

Thanks

D












Re: Indexed Tags Functionality

2001-07-16 Thread dhay



Sure can!  That's what I do...

Dave





"DHarty" <[EMAIL PROTECTED]> on 07/16/2001 10:26:11 AM

Please respond to [EMAIL PROTECTED]

To:   "Struts User" <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Indexed Tags Functionality




I was just reviewing the indexed tags funtionality and it looks like a
valuable addittion.

Before I rebuilt struts however, I had a question regarding the funtionality
with ArrayLists and Vectors.

Essentially, I was wondering if you could use these tags on objects like
Vectors and lists given that you implement the getter funtion using an
indexed parameter.

Using the example from http://husted.com/about/struts/indexed-tags.htm :

 
  ...
  
  ...
 

then in the action class, could you have?

 // an ArrayList of some "parameter" bean that has a "value" property.
 private ArrayList parameterList;

 public ArrayList getParameterList()
 {
  return this.parameterList;
 }

 public parameter getParameter(int index)
 {
  return this.parameterList.get(index)
 }

Thanks

D












Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Jon Brisbin" <[EMAIL PROTECTED]>
Recipients:<[EMAIL PROTECTED]>
Subject:  Re: Error: org.apache.struts.action.MESSAGE

Message from "Jon Brisbin" <[EMAIL PROTECTED]> was quarantined because it
contained banned content.




Re: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Jon Brisbin

I also get this error on the struts example app on Tomcat 4.0b5...I've
removed struts.jar from the system classpath as I say mentioned in one
message, but it still seems to be suffering some classloader issues, though
I'm not familiar with Tomcat 4 yet to know for sure.  Everything works fine
with Tomcat 3.x.

Jon Brisbin

- Original Message -
From: "Pathangi, Rao H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 10:52 AM
Subject: Re: Error: org.apache.struts.action.MESSAGE


> Suhas
> I have the  and  set to the proper values but it
> still seems to fail, and yes, Iam using the   tag. Is it
true
> that Websphere 3.5 patch 2 has some issues with struts?
> Regards
> Pathangi RH
>
>
>
> Suhas Replied:.
>
> check if u specified the applicationResourcefile in the web.xml as
>  
>  application 
>  example.applicationResource 
> 
>
> If u using  tag in the Jsp then the application REsources
> should have been loaded before Check that Suhas
>
>
> - Original Message -
> From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
> Subject: Error:
> org.apache.struts.action.MESSAGE
> > Hi
> > > What exactly does this error mean??
> > > I have a JSP (using a few Struts tags) with the action beans working
> with a
> > couple of EJB's. I have successfully deployed it in the Websphere Test
> Environment using VA 3.5.3 I am trying to deploy the same application on
WAS
> 3.5 Patch 2 and I get the > following/well known error when I try to hit
my
> JSP. > > If Iam correct, this has to do with the web.xml,
struts-config.xml
> files and > the addition of the servlets to the servlet container. > >
Error
> 500 > An error has occured while processing >
> request: > Message: Server caught
> unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find
message
> resources under key org.apache.struts.action.MESSAGE > > Could some one
> throw some light on this puhlease > > > Regards > Hemant Pathangi >
>




RE: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Pathangi, Rao H.

Looks like my message got quarantined because of the presence of (triple
X).yyy.com/phase3order.jsp instead of aaa in
 but anyway kindly look at my question.

:)
Pathangi RH

-Original Message-
From: Pathangi, Rao H. 
Sent: Monday, July 16, 2001 10:52 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Re: Error: org.apache.struts.action.MESSAGE


Suhas
I have the  and  set to the proper values but it
still seems to fail, and yes, Iam using the   tag. Is it true
that Websphere 3.5 patch 2 has some issues with struts?
Regards
Pathangi RH



Suhas Replied:.

check if u specified the applicationResourcefile in the web.xml as
  
 application  
 example.applicationResource  
 

If u using  tag in the Jsp then the application REsources
should have been loaded before Check that Suhas 


- Original Message - 
From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
Subject: Error: 
org.apache.struts.action.MESSAGE 
> Hi 
> > What exactly does this error mean?? 
> > I have a JSP (using a few Struts tags) with the action beans working
with a 
> couple of EJB's. I have successfully deployed it in the Websphere Test
Environment using VA 3.5.3 I am trying to deploy the same application on WAS
3.5 Patch 2 and I get the > following/well known error when I try to hit my
JSP. > > If Iam correct, this has to do with the web.xml, struts-config.xml
files and > the addition of the servlets to the servlet container. > > Error
500 > An error has occured while processing >
request: > Message: Server caught
unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find message
resources under key org.apache.struts.action.MESSAGE > > Could some one
throw some light on this puhlease > > > Regards > Hemant Pathangi > 



Installation on Netscape 4.1

2001-07-16 Thread Dmitri . Furman

Hello everyone and thank you in advance for reading and replying to my
question.

I am trying to install Struts to work with iPlanet 4.1.  It does not
support web application archives WAR. Does anyone have this installation
process documented or knows how to do it and could document it?

I would appreciate any help.

Thank you,

Dmitri Furman




Report to Recipient(s)

2001-07-16 Thread Paladin

Incident Information:-

Originator:"Pathangi, Rao H." <[EMAIL PROTECTED]>
Recipients:"'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>, "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
Subject:  Re: Error: org.apache.struts.action.MESSAGE

Message from "Pathangi, Rao H." <[EMAIL PROTECTED]> was quarantined
because it contained banned content.




Re: Error: org.apache.struts.action.MESSAGE

2001-07-16 Thread Pathangi, Rao H.

Suhas
I have the  and  set to the proper values but it
still seems to fail, and yes, Iam using the   tag. Is it true
that Websphere 3.5 patch 2 has some issues with struts?
Regards
Pathangi RH



Suhas Replied:.

check if u specified the applicationResourcefile in the web.xml as
  
 application  
 example.applicationResource  
 

If u using  tag in the Jsp then the application REsources
should have been loaded before Check that Suhas 


- Original Message - 
From: Pathangi, Rao H. <[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:00 PM
Subject: Error: 
org.apache.struts.action.MESSAGE 
> Hi 
> > What exactly does this error mean?? 
> > I have a JSP (using a few Struts tags) with the action beans working
with a 
> couple of EJB's. I have successfully deployed it in the Websphere Test
Environment using VA 3.5.3 I am trying to deploy the same application on WAS
3.5 Patch 2 and I get the > following/well known error when I try to hit my
JSP. > > If Iam correct, this has to do with the web.xml, struts-config.xml
files and > the addition of the servlets to the servlet container. > > Error
500 > An error has occured while processing >
request: > Message: Server caught
unhandled exception from servlet [JSP 1.1 Processor]: > Cannot find message
resources under key org.apache.struts.action.MESSAGE > > Could some one
throw some light on this puhlease > > > Regards > Hemant Pathangi > 




using with javascript

2001-07-16 Thread Melissa Rabin

Hello all.  Simple question:  is there a way to use JavaScript in the
html:link tag so that the url pops open in a new window?  At the moment,
using something like:
http://myLink..."; onClick =
"window.open("http://myLink...";)> is opening the page twice...once in the
original window, and once again in the new window.

Any suggestions?

Melissa Rabin
Web Engineer




Servlet mapping results in incorrect interpretation

2001-07-16 Thread Zeltser, Mark

Hello,

I am trying to add extra servlet under struts framework. I have a link that
suppose to generate excel file. I added the following mapping to my web.xml:

  
  
excelServlet
/servlet/ExcelServlet
  

After this addition, struts stopped working. After some investigation I
noticed that /contextRoot/logon.do is forwarded back to /contextRoot and not
handled by the servlet specified by '*.do' mapping. Everything works fine if
I don't specify this additional mapping.

What could be a problem?

I am running struts 1.0 under tomcat 3.2.1 with jdk1.3

Thanks.


--
This message is intended only for the personal and confidential use of the designated 
recipient(s) named above.  If you are not the intended recipient of this message you 
are hereby notified that any review, dissemination, distribution or copying of this 
message is strictly prohibited.  This communication is for information purposes only 
and should not be regarded as an offer to sell or as a solicitation of an offer to buy 
any financial product, an official confirmation of any transaction, or as an official 
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be secure or 
error-free.  Therefore, we do not represent that this information is complete or 
accurate and it should not be relied upon as such.  All information is subject to 
change without notice.





Indexed Tags Functionality

2001-07-16 Thread DHarty


I was just reviewing the indexed tags funtionality and it looks like a
valuable addittion.

Before I rebuilt struts however, I had a question regarding the funtionality
with ArrayLists and Vectors.

Essentially, I was wondering if you could use these tags on objects like
Vectors and lists given that you implement the getter funtion using an
indexed parameter.

Using the example from http://husted.com/about/struts/indexed-tags.htm :


...

...


then in the action class, could you have?

// an ArrayList of some "parameter" bean that has a "value" property.
private ArrayList parameterList;

public ArrayList getParameterList()
{
return this.parameterList;
}

public parameter getParameter(int index)
{
return this.parameterList.get(index)
}

Thanks

D






Antigen found =*.vcf file

2001-07-16 Thread ANTIGEN_MG01

Antigen for Exchange found Rooms, Christoph ([EMAIL PROTECTED]).vcf
matching =*.vcf file filter.
The file is currently Deleted.  The message, "ActionForm Validation : Date
restriction ?", was
sent from Rooms, Christoph  and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.



ActionForm Validation : Date restriction ?

2001-07-16 Thread Rooms, Christoph
Title: ActionForm Validation : Date restriction ?





Hi,


I have a form : "updateEvent", my ActionForm ("EventForm") only has got a bean ("Event"). 


This Event bean has got one property : "EventDate" : a java.sql.date field.


My problem :


How can I check in my validate method if the user has really filled in a date ? 


Or am I limited to work only with Strings on the level  of a form ?


Thanks !




Christoph Rooms
Technical Account Manager 
SilverStream Software 


tel    +32 2 474 47 17 
fax    +32 2 474 46 95
mobile +32 475 531 529



Learn more about fast and easy developing J2EE applications using the SilverStream Workbench on Thursday July 26th (from 2pm - 5 pm) and Thursday August 23th 

SilverStream eXtend Workbench simplifies and accelerates the creation, assembly, consumption and deployment of J2EE and Web services-based applications with wizards, visual designers, archive-based projects and automatic deployment. 

SilverStream eXtend Workbench also includes integration with your favorite IDE's, deploys to standard J2EE application servers and offers full J2EE, XML, SOAP and WSDL support. 

Click here for the full agenda : www.silverstream.be
 <> 



 Rooms, Christoph ([EMAIL PROTECTED]).vcf


Problem to update with Timestamp

2001-07-16 Thread O . CHANTEREAU

Hi everybody

I Have some problems with my update's request.
In fact, I have two transactions

First --

DBUsr old_user = this.findDBUsrByKey(in_num);
 long l = old_user.jdoGetTimeStamp();
 old_user.setUsrNom(in_nom);
 old_user.setUsrPnom(in_pnom);
 old_user.setUsrLogin(in_login);
 old_user.setUsrPwd(in_passwd);
 out_ok = trans.DBUpdate(old_user);

Second 

public boolean DBUpdate(Object obj) {
Connexion c = new Connexion();
Database  db = c.connect();
try {
  db.begin(); 
  db.update(obj);
  db.commit();
  ok = true;
  db.close();

Message Errors
Erreur Mapping org.exolab.castor.jdo.ObjectModifiedException: Time stamp
mismatched!


Thanks to help me 
Olivier 



bean:define for replacement

2001-07-16 Thread Jerome Jacobsen

The docs on bean:define say that it will unconditionally create or replace
the bean with specified id.  However I get an error if I want to replace.

For example:

  
   ... init stuff
  

  
   ... init stuff
  

  

   ... do stuff with b

  

   ... do stuff with b

When compiling I get an error:

   Tag attempted to define a bean which already exists: b.

What's wrong?

-Jerome



Re: action mapping url and root context

2001-07-16 Thread Joachim Gjesdal

Just found out. The problem is in ATG implementation of
"response.encodeURL(...)".
When request.getContextPath() returns "/myroot" (beginning with a slash), ATG's
version of encodeURL() automatically adds the root
I guess this is not J2EE behavior??

joachim

Joachim Gjesdal wrote:

> Not exactly,  "request.getContextPath()"  returns "/myroot",  but somewhere
> along the way ATG is adding the root one more time...
> Although I could do a workaround with action mappings, this would not work
> since the problem also applies to other tags
> like .
>
> joachim
>
> Ted Husted wrote:
>
> > So are you saying that in response to "request.getContextPath()" ATG
> > returns
> >
> > "/myroot/myroot"
> >
> > If the container is broken, a workaround until it is fixed would be to
> > add the root context to your ActionMappings (and then just take them out
> > again when the issue is resolved).
> >
> > -- Ted Husted, Husted dot Com, Fairport NY USA.
> > -- Custom Software ~ Technical Services.
> > -- Tel 716 737-3463.
> > -- http://www.husted.com/about/struts/
> >
> > Joachim Gjesdal wrote:
> > > protected String getActionMappingURL() {
> > >
> > > HttpServletRequest request =
> > > (HttpServletRequest) pageContext.getRequest();
> > > StringBuffer value = new
> > > StringBuffer(request.getContextPath());
> > >
> > > ()
> > >
> > > }
> > >
> > > Apparently ATG also does this somehow (Tomcat does not). I'm not sure
> > > if the taglib should do this or  the jsp engine?
> > > Its tedious to customize STRUTS taglibs since this is done throughout
> > > the taglibs (i.e also in the   tag).
> > > I've seen references to this problem on this list before, but no
> > > solutions.
> > >
> > > Any ideas would be greatly appreciated.
> > >
> > > thanks,
> > >
> > > joachim



session expire handling use of struts

2001-07-16 Thread Hassan Nadeem

Hi All
Can anyone explain the following scenario use of struts?
I want to redirect the user after session has expired or logout from the
page, basically session expire situation to login page.Also at the same time
user should be prevented from accessing the application using browser back
as well.
Actually we have implemented this situation in the current application
without use of struts. Also I want to know the
support of taglibs for this scenario etc.

Thanks in advance
Hassan



RE: Suggestion on grid implementation

2001-07-16 Thread devon . bowen

> I am relatively new to Struts. Hence I would like to
> invite your suggestions on the following
> implementation:
> 
> In our application, for which we are using Struts, we
> need to implement a table of multiple columns, where 
> 1. the number of rows will be dynamic and fetched from
> the database
> 2. a couple of columns will be editable by the users
> and
> 3. the rest of the columns will be read-only
> 
> Any ideas on how to implement this using Struts ?

Here's how I do it...

In your Action, fetch the data from the database and build an
ActionForm from it. Put this in the session scope like:

overview = new OverviewForm();
  FILL IN INFORMATION HERE
session.setAttribute("overviewForm", overview);

At the end of your Action, forward as usual to the JSP page
to display it. Now this JSP page will contain an 
tag for the next Action. For example:



So when we submit the form, we go to Action "close". We might
find the following in our struts-config.xml file:

  
  

This says that our jsp page must fill out a ActionForm called
"overviewForm". The same name as the ActionForm that we have
already preloaded. So rather than creating a new ActionForm,
JSP finds the one we made and uses it instead. Within the
 you can print out the data from your ActionForm as
you normally would, making some read-only and some input fields.

After filling in the fields that aren't read-only, this
ActionForm is then delivered to our CloseAction as input just
as it would be in any Struts example.

There is one big gotcha, though. The reset() method in the
ActionForm is always called between Actions which means all
your static pre-loaded read-only data will get wiped out. If you
don't want this to happen, you can modify your reset() method
to not do this. For example, the first thing my reset() does is:

if (mapping.getPath().equals("/close"))
return;

So if I'm on my way to the CloseAction, I don't reset anything
because I know I'll need it.

This works for me. Not sure it's the "official" way since I am
also new to struts. If there are better ways, I hope someone
will point them out.

Devon




Dynamic Attributes

2001-07-16 Thread Roshan Paiva

Hi Everyone...

I have a jsp page which dynamically populates fields ( eg: at one instance
there may be 5 edit boxes and at another instance there may be 3 edit boxes
and a date picker etc. ) The number of fields and there types are not
static. We have currently implemented this without the strut framework
usings Vectors and Collection objects. 

We are now in the process of restructuring the app using struts.. How are we
to create the ActionForm as the number of properties and their types are
dynamic.

Any answers?

Thanks in advance...

Kind Regards
Roshan




received in error

2001-07-16 Thread Chamila Jayasuriya

received in error

-Original Message-
From: Hampton, Paul [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 5:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Ant Problem "solved "- Copy of Build.xml File


Ok great, 

Paul

P.s. All the best programmers are from Wales!

> -Original Message-
> From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 12:23 PM
> To:   Hampton, Paul; [EMAIL PROTECTED]
> Subject:  Re: Ant Problem "solved "- Copy of Build.xml File
> 
> Hi, Hampton Paul , Just 2 let you know , i created a simpliar build.
> 1) created a development folder at C:\ development
> 2)created the famous HelloWorld.java file
> 3) copied a basic Ant xml file called "build.xml"
> 4) cd:\ to C:\development > entered ant and the following appeared
> Buildfile : build.xml
> 
> init: [mkdir] Created dir :c\development\build
> 
> BUILD SUCCESSFUL
> 
> Total time : 1 second
> C:\development>ant compile
> Buildfile : buildfile.xml
>  So Thanks alot i will play around at this level 4 now to get the syntax
> concept .
> Cheers all
> 
> "Hampton, Paul" wrote:
> 
> > Chuck,
> > The error that you mentioned was on line 35 of your build file,
> for
> > some reason though word is corrupting the xml & all I get on line 35 is
> > Error! Hyperlink reference not valid.  which I
> assume
> > has been added by word as it attempts to interpret the xml as html.
> Could
> > you open your build.xml up in notepad & copy+paste the entire thing into
> an
> > email to me? - hopefully I'll be able to spot your problem...
> >
> > Paul
> >
> > > -Original Message-
> > > From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, July 16, 2001 10:39 AM
> > > To:   Hampton, Paul
> > > Subject:  Ant Problem - Copy of Build.xml File
> > >
> > >
> > > Cheers 4 taking a peek.
> > > --
> > > The views expressed by the sender of this message don't
> > > necessarily represent those of Brecon Beacons National Park
> > > Authority. This message is intended for the addressee(s) only
> > > and is sent in confidence; if you receive it in error, please can you
> > > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > > mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> > > ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> > >  << File: buildxml.doc >>
> >
> > This private and confidential e-mail has been sent to you by Egg.
> > The Egg group of companies comprises Prudential Banking plc
> > (registered no. 2999842), Egg Financial Products Ltd (registered
> > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> > carries out investment business on behalf of Egg and is regulated
> > by the Personal Investment Authority.  All members of the Egg group
> > are registered in England and Wales. Registered offices: 142
> > Holborn Bars, London EC1N 2NH
> >
> > If you are not the intended recipient of this e-mail and have
> > received it in error, please notify the sender by replying with
> > 'received in error' as the subject and then delete it from your
> > mailbox.
> 
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> 



received in error

2001-07-16 Thread Chamila Jayasuriya


received in error
-Original Message-
From: Hampton, Paul [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 5:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Ant Problem "solved "- Copy of Build.xml File


Ok great, 

Paul

P.s. All the best programmers are from Wales!

> -Original Message-
> From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 12:23 PM
> To:   Hampton, Paul; [EMAIL PROTECTED]
> Subject:  Re: Ant Problem "solved "- Copy of Build.xml File
> 
> Hi, Hampton Paul , Just 2 let you know , i created a simpliar build.
> 1) created a development folder at C:\ development
> 2)created the famous HelloWorld.java file
> 3) copied a basic Ant xml file called "build.xml"
> 4) cd:\ to C:\development > entered ant and the following appeared
> Buildfile : build.xml
> 
> init: [mkdir] Created dir :c\development\build
> 
> BUILD SUCCESSFUL
> 
> Total time : 1 second
> C:\development>ant compile
> Buildfile : buildfile.xml
>  So Thanks alot i will play around at this level 4 now to get the syntax
> concept .
> Cheers all
> 
> "Hampton, Paul" wrote:
> 
> > Chuck,
> > The error that you mentioned was on line 35 of your build file,
> for
> > some reason though word is corrupting the xml & all I get on line 35 is
> > Error! Hyperlink reference not valid.  which I
> assume
> > has been added by word as it attempts to interpret the xml as html.
> Could
> > you open your build.xml up in notepad & copy+paste the entire thing into
> an
> > email to me? - hopefully I'll be able to spot your problem...
> >
> > Paul
> >
> > > -Original Message-
> > > From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, July 16, 2001 10:39 AM
> > > To:   Hampton, Paul
> > > Subject:  Ant Problem - Copy of Build.xml File
> > >
> > >
> > > Cheers 4 taking a peek.
> > > --
> > > The views expressed by the sender of this message don't
> > > necessarily represent those of Brecon Beacons National Park
> > > Authority. This message is intended for the addressee(s) only
> > > and is sent in confidence; if you receive it in error, please can you
> > > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > > mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> > > ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> > >  << File: buildxml.doc >>
> >
> > This private and confidential e-mail has been sent to you by Egg.
> > The Egg group of companies comprises Prudential Banking plc
> > (registered no. 2999842), Egg Financial Products Ltd (registered
> > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> > carries out investment business on behalf of Egg and is regulated
> > by the Personal Investment Authority.  All members of the Egg group
> > are registered in England and Wales. Registered offices: 142
> > Holborn Bars, London EC1N 2NH
> >
> > If you are not the intended recipient of this e-mail and have
> > received it in error, please notify the sender by replying with
> > 'received in error' as the subject and then delete it from your
> > mailbox.
> 
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> 



RE: Ant Problem "solved "- Copy of Build.xml File

2001-07-16 Thread Hampton, Paul

Ok great, 

Paul

P.s. All the best programmers are from Wales!

> -Original Message-
> From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 12:23 PM
> To:   Hampton, Paul; [EMAIL PROTECTED]
> Subject:  Re: Ant Problem "solved "- Copy of Build.xml File
> 
> Hi, Hampton Paul , Just 2 let you know , i created a simpliar build.
> 1) created a development folder at C:\ development
> 2)created the famous HelloWorld.java file
> 3) copied a basic Ant xml file called "build.xml"
> 4) cd:\ to C:\development > entered ant and the following appeared
> Buildfile : build.xml
> 
> init: [mkdir] Created dir :c\development\build
> 
> BUILD SUCCESSFUL
> 
> Total time : 1 second
> C:\development>ant compile
> Buildfile : buildfile.xml
>  So Thanks alot i will play around at this level 4 now to get the syntax
> concept .
> Cheers all
> 
> "Hampton, Paul" wrote:
> 
> > Chuck,
> > The error that you mentioned was on line 35 of your build file,
> for
> > some reason though word is corrupting the xml & all I get on line 35 is
> > Error! Hyperlink reference not valid.  which I
> assume
> > has been added by word as it attempts to interpret the xml as html.
> Could
> > you open your build.xml up in notepad & copy+paste the entire thing into
> an
> > email to me? - hopefully I'll be able to spot your problem...
> >
> > Paul
> >
> > > -Original Message-
> > > From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, July 16, 2001 10:39 AM
> > > To:   Hampton, Paul
> > > Subject:  Ant Problem - Copy of Build.xml File
> > >
> > >
> > > Cheers 4 taking a peek.
> > > --
> > > The views expressed by the sender of this message don't
> > > necessarily represent those of Brecon Beacons National Park
> > > Authority. This message is intended for the addressee(s) only
> > > and is sent in confidence; if you receive it in error, please can you
> > > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > > mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> > > ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> > >  << File: buildxml.doc >>
> >
> > This private and confidential e-mail has been sent to you by Egg.
> > The Egg group of companies comprises Prudential Banking plc
> > (registered no. 2999842), Egg Financial Products Ltd (registered
> > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> > carries out investment business on behalf of Egg and is regulated
> > by the Personal Investment Authority.  All members of the Egg group
> > are registered in England and Wales. Registered offices: 142
> > Holborn Bars, London EC1N 2NH
> >
> > If you are not the intended recipient of this e-mail and have
> > received it in error, please notify the sender by replying with
> > 'received in error' as the subject and then delete it from your
> > mailbox.
> 
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> 



Re: Ant Problem "solved "- Copy of Build.xml File

2001-07-16 Thread Chuck Amadi

Hi, Hampton Paul , Just 2 let you know , i created a simpliar build.
1) created a development folder at C:\ development
2)created the famous HelloWorld.java file
3) copied a basic Ant xml file called "build.xml"
4) cd:\ to C:\development > entered ant and the following appeared
Buildfile : build.xml

init: [mkdir] Created dir :c\development\build

BUILD SUCCESSFUL

Total time : 1 second
C:\development>ant compile
Buildfile : buildfile.xml
 So Thanks alot i will play around at this level 4 now to get the syntax
concept .
Cheers all

"Hampton, Paul" wrote:

> Chuck,
> The error that you mentioned was on line 35 of your build file, for
> some reason though word is corrupting the xml & all I get on line 35 is
> Error! Hyperlink reference not valid.  which I assume
> has been added by word as it attempts to interpret the xml as html. Could
> you open your build.xml up in notepad & copy+paste the entire thing into an
> email to me? - hopefully I'll be able to spot your problem...
>
> Paul
>
> > -Original Message-
> > From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> > Sent: Monday, July 16, 2001 10:39 AM
> > To:   Hampton, Paul
> > Subject:  Ant Problem - Copy of Build.xml File
> >
> >
> > Cheers 4 taking a peek.
> > --
> > The views expressed by the sender of this message don't
> > necessarily represent those of Brecon Beacons National Park
> > Authority. This message is intended for the addressee(s) only
> > and is sent in confidence; if you receive it in error, please can you
> > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> > ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> >  << File: buildxml.doc >>
>
> This private and confidential e-mail has been sent to you by Egg.
> The Egg group of companies comprises Prudential Banking plc
> (registered no. 2999842), Egg Financial Products Ltd (registered
> no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> carries out investment business on behalf of Egg and is regulated
> by the Personal Investment Authority.  All members of the Egg group
> are registered in England and Wales. Registered offices: 142
> Holborn Bars, London EC1N 2NH
>
> If you are not the intended recipient of this e-mail and have
> received it in error, please notify the sender by replying with
> 'received in error' as the subject and then delete it from your
> mailbox.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.





Re: action mapping url and root context

2001-07-16 Thread Joachim Gjesdal

Not exactly,  "request.getContextPath()"  returns "/myroot",  but somewhere
along the way ATG is adding the root one more time...
Although I could do a workaround with action mappings, this would not work
since the problem also applies to other tags
like .

joachim


Ted Husted wrote:

> So are you saying that in response to "request.getContextPath()" ATG
> returns
>
> "/myroot/myroot"
>
> If the container is broken, a workaround until it is fixed would be to
> add the root context to your ActionMappings (and then just take them out
> again when the issue is resolved).
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
> Joachim Gjesdal wrote:
> > protected String getActionMappingURL() {
> >
> > HttpServletRequest request =
> > (HttpServletRequest) pageContext.getRequest();
> > StringBuffer value = new
> > StringBuffer(request.getContextPath());
> >
> > ()
> >
> > }
> >
> > Apparently ATG also does this somehow (Tomcat does not). I'm not sure
> > if the taglib should do this or  the jsp engine?
> > Its tedious to customize STRUTS taglibs since this is done throughout
> > the taglibs (i.e also in the   tag).
> > I've seen references to this problem on this list before, but no
> > solutions.
> >
> > Any ideas would be greatly appreciated.
> >
> > thanks,
> >
> > joachim



Re:

2001-07-16 Thread Ted Husted

I don't see the rest of the form here, and it's not clear why you are
mixing plain HTML and Struts HTML tags in this way. If your ActionForm
has the properties login and id, then you should use the Struts
html:submit and enclosing Struts html:form tags as well.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


Stefan Faist wrote:
> 
> Hi all,
> I want to submit a the parameters sction, login and id. But in my xxxAction
> there are in the parameter list that was submit is no parameter with the
> name login or id, only submit. the fallowing code I have in the JSP file:
> 
> 
> 
> 
> 
> 
> 
> Can somebody help me?
> 
> Stefan



Re: action mapping url and root context

2001-07-16 Thread Ted Husted

So are you saying that in response to "request.getContextPath()" ATG
returns 

"/myroot/myroot"

If the container is broken, a workaround until it is fixed would be to
add the root context to your ActionMappings (and then just take them out
again when the issue is resolved).

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


Joachim Gjesdal wrote:
> protected String getActionMappingURL() {
> 
> HttpServletRequest request =
> (HttpServletRequest) pageContext.getRequest();
> StringBuffer value = new
> StringBuffer(request.getContextPath());
> 
> ()
> 
> }
> 
> Apparently ATG also does this somehow (Tomcat does not). I'm not sure
> if the taglib should do this or  the jsp engine?
> Its tedious to customize STRUTS taglibs since this is done throughout
> the taglibs (i.e also in the   tag).
> I've seen references to this problem on this list before, but no
> solutions.
> 
> Any ideas would be greatly appreciated.
> 
> thanks,
> 
> joachim



Re: Homesite tags

2001-07-16 Thread Ted Husted

It's up on More About Struts now

< http://husted.com/about/struts/resources.htm#extensions >

as "VLT to TLD".

Sabarish Muthumperumal wrote:
> 
> Yo guys!! i need this too!!! pls let me know where i can get this stuff for
> homesite...



Ran another ant( build.xml) new problem - messages -

2001-07-16 Thread Chuck Amadi


Hi again, i have a new build.xml file from the joinstruts.zip & business.zip
.
Anyway from C:\jakarta-tomcat-3.2.2\webapps\bbnpa\business\build.xml:43:
Compile failed ,messages should have been provided.
Any Ideas. Regarding these messages as on line:43: The only thing
is as follows



Cheers Chuck
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
 


RE: Ant Problems still eventhough ani is installed !!

2001-07-16 Thread Hampton, Paul

Chuck,

I'll have a look at the build file that you sent attached to see if I can
spot the problem.

Cheers,

Paul

> -Original Message-
> From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 9:52 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Ant Problems still eventhough ani is installed !!
> 
> Cheers that was what i expected nevertheless when i run the following 
> C:\jakarta-tomcat-3.2.2\webapps\bbnpa> 
> C:\jakarta-tomcat-3.2.2\webapps\bbnpa>ant 
> the first line reads C:\jakarta-tomcat-3.2.2\webapps\bbnpa\build.xml:35:
> taskDef class org.netbeans.xtest.nbMultiTaskDef cannot be found 
> Thus i believe im getting closer any more pointers Cheers Chuck 
> 
> "Hampton, Paul" wrote: 
> 
> Chuck, 
> You should run ant from the location where your build file is, so
> in 
> this case: 
> cd to webapps/bbnpa & then run ant. 
> 
> Paul 
> 
> > -Original Message- 
> > From: Chuck Amadi [SMTP:[EMAIL PROTECTED]] 
> > Sent: Monday, July 16, 2001 9:15 AM 
> > To:   [EMAIL PROTECTED] 
> > Subject:  Ant Problems still eventhough ani is installed !! 
> > 
> > Hi , agian i have just cd (dos-prompt) to
> C:\jakarta-tomcat-3.2.2\>entered 
> > ant as follows 
> > C:\jakarta-tomcat-3.2.2\>ant 
> > BuildFile: build.xml does not eexist 
> > Build Failed 
> > C:\jakarta-tomcat-3.2.2\> 
> > 
> > Thus i placed a build file in my webapps/bbnpa/build.xml/ 
> > A copy of my sample build file is attached. 
> > 
> > -- 
> > The views expressed by the sender of this message don't 
> > necessarily represent those of Brecon Beacons National Park 
> > Authority. This message is intended for the addressee(s) only 
> > and is sent in confidence; if you receive it in error, please can you 
> > let us know (at [EMAIL PROTECTED]) and then destroy all copies. 
> > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn 
> > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. 
> > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion 
> > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn 
> > mewn camgymeriad, a fyddech gystal â rhoi gwybod i 
> > ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi. 
> >   << File: buildxml.doc >> 
> 
> This private and confidential e-mail has been sent to you by Egg. 
> The Egg group of companies comprises Prudential Banking plc 
> (registered no. 2999842), Egg Financial Products Ltd (registered 
> no. 3319027) and Egg Investments Ltd (registered no. 3403963) which 
> carries out investment business on behalf of Egg and is regulated 
> by the Personal Investment Authority.  All members of the Egg group 
> are registered in England and Wales. Registered offices: 142 
> Holborn Bars, London EC1N 2NH 
> 
> If you are not the intended recipient of this e-mail and have 
> received it in error, please notify the sender by replying with 
> 'received in error' as the subject and then delete it from your 
> mailbox.
> 
> -- 
> The views expressed by the sender of this message don't 
> necessarily represent those of Brecon Beacons National Park 
> Authority. This message is intended for the addressee(s) only 
> and is sent in confidence; if you receive it in error, please can you 
> let us know (at [EMAIL PROTECTED]) and then destroy all copies. 
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn 
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. 
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion 
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn 
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i 
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi. 
>  



action mapping url and root context

2001-07-16 Thread Joachim Gjesdal


Some more on root context...
Running struts 1.0 on Atg Dynamo 5.1 w/patch 1.1.p2
The context root (myroot) is added twice when the html is written:
I.e.
 is written as : method="POST" action="/myroot/myroot/myaction.do">
Any variations on "/myaction" or ''/myacion.do" that someone suggested
has no effect.
I looked in the source code for the  tag  and this
is performed:
protected String getActionMappingURL() {
    HttpServletRequest
request =
   
(HttpServletRequest) pageContext.getRequest();
    StringBuffer
value = new StringBuffer(request.getContextPath());
    ()
}
 
Apparently ATG also does this somehow (Tomcat does not). I'm not sure
if the taglib should do this or  the jsp engine?
Its tedious to customize STRUTS taglibs since this is done throughout
the taglibs (i.e also in the   tag).
I've seen references to this problem on this list before, but no solutions.
Any ideas would be greatly appreciated.
thanks,
joachim


Re: Ant Problems still eventhough ani is installed !!

2001-07-16 Thread Chuck Amadi


Cheers that was what i expected nevertheless when i run the following
C:\jakarta-tomcat-3.2.2\webapps\bbnpa>
C:\jakarta-tomcat-3.2.2\webapps\bbnpa>ant
the first line reads C:\jakarta-tomcat-3.2.2\webapps\bbnpa\build.xml:35:
taskDef class org.netbeans.xtest.nbMultiTaskDef cannot be found
Thus i believe im getting closer any more pointers Cheers Chuck
"Hampton, Paul" wrote:
Chuck,
    You should run ant from
the location where your build file is, so in
this case:
cd to webapps/bbnpa & then run ant.
Paul
> -Original Message-
> From: Chuck Amadi [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 9:15 AM
> To:   [EMAIL PROTECTED]
> Subject:  Ant Problems still eventhough
ani is installed !!
>
> Hi , agian i have just cd (dos-prompt) to C:\jakarta-tomcat-3.2.2\>entered
> ant as follows
> C:\jakarta-tomcat-3.2.2\>ant
> BuildFile: build.xml does not eexist
> Build Failed
> C:\jakarta-tomcat-3.2.2\>
>
> Thus i placed a build file in my webapps/bbnpa/build.xml/
> A copy of my sample build file is attached.
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can
you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
>   << File: buildxml.doc >>
This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies comprises Prudential Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Personal Investment Authority.  All members of the Egg
group
are registered in England and Wales. Registered offices: 142
Holborn Bars, London EC1N 2NH
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
 


  1   2   >