RE: can anyone help me address this issue

2004-03-11 Thread Mu Mike
I really need to get some idea about this issue, any suggestions?

ThanksRegards


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: can anyone help me address this issue
Date: Thu, 11 Mar 2004 05:12:16 +
I m using javascript doing dhtml, now  I have a table, every time 
a user changes the width of a specific column(by draging the border 
line), I will save the column index and the new width to variables 
in javascript.Now ,after doing many such changes, I need to submit 
those values saved in the vairables to the server side program by 
submiting a form, which has an action path designing what action 
should be called after it get the submitted value. Now, I m 
wondering how I should define such javasript variables and how I can 
submit these values by submiting a form? I m using struts, is there 
any possibility to implement this idea in struts?

ThanksRegards

_
 MSN Hotmail  http://www.hotmail.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
 MSN Messenger:  http://messenger.msn.com/cn  

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


Re: can anyone help me address this issue

2004-03-11 Thread Niall Pemberton
Its not a struts issue - its a dhtml/javascript issue - maybe you should ask
the question on a dhtml/javascript list.

Niall

- Original Message - 
From: Mu Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 12:16 PM
Subject: RE: can anyone help me address this issue


 I really need to get some idea about this issue, any suggestions?

 ThanksRegards


 From: Mu Mike [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: can anyone help me address this issue
 Date: Thu, 11 Mar 2004 05:12:16 +
 
 I m using javascript doing dhtml, now  I have a table, every time
 a user changes the width of a specific column(by draging the border
 line), I will save the column index and the new width to variables
 in javascript.Now ,after doing many such changes, I need to submit
 those values saved in the vairables to the server side program by
 submiting a form, which has an action path designing what action
 should be called after it get the submitted value. Now, I m
 wondering how I should define such javasript variables and how I can
 submit these values by submiting a form? I m using struts, is there
 any possibility to implement this idea in struts?
 
 ThanksRegards
 
 _
  MSN Hotmail  http://www.hotmail.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
  MSN Messenger:  http://messenger.msn.com/cn


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





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



RE: can anyone help me address this issue

2004-03-11 Thread McCormack, Chris
use onResize on the html element that is clicked to report its new value to a form 
variable. use an onChange for the form to auto submit itself. If you need to hide the 
submission of the form use an IFrame.

messy eugh, javascript is the pits.

Chris

-Original Message-
From: Mu Mike [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 12:16
To: [EMAIL PROTECTED]
Subject: RE: can anyone help me address this issue


I really need to get some idea about this issue, any suggestions?

ThanksRegards


From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: can anyone help me address this issue
Date: Thu, 11 Mar 2004 05:12:16 +

I m using javascript doing dhtml, now  I have a table, every time 
a user changes the width of a specific column(by draging the border 
line), I will save the column index and the new width to variables 
in javascript.Now ,after doing many such changes, I need to submit 
those values saved in the vairables to the server side program by 
submiting a form, which has an action path designing what action 
should be called after it get the submitted value. Now, I m 
wondering how I should define such javasript variables and how I can 
submit these values by submiting a form? I m using struts, is there 
any possibility to implement this idea in struts?

ThanksRegards

_
 MSN Hotmail  http://www.hotmail.com


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


_
 MSN Messenger:  http://messenger.msn.com/cn  


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


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



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



RE: can anyone help me address this issue

2004-03-11 Thread Mu Mike
Sorry,maybe I didnt make my question clear
my question is:
the java script variable is supposed to be an array of such a 
strutcture(although java doesnt have a struture, I just use it here to 
describe my idea,maybe I should use a class instead) ,I d like to know how 
I can submit such a value?

Structure[] javascriptvalue;

Structure{
int colIndex
int newWidth
}
ThanksRegards



From: McCormack, Chris [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: can anyone help me address this issue
Date: Thu, 11 Mar 2004 12:24:43 -
use onResize on the html element that is clicked to report its new value 
to a form variable. use an onChange for the form to auto submit itself. If 
you need to hide the submission of the form use an IFrame.
messy eugh, javascript is the pits.

Chris

-Original Message-
From: Mu Mike [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 12:16
To: [EMAIL PROTECTED]
Subject: RE: can anyone help me address this issue
I really need to get some idea about this issue, any suggestions?

ThanksRegards

From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: can anyone help me address this issue
Date: Thu, 11 Mar 2004 05:12:16 +

I m using javascript doing dhtml, now  I have a table, every time
a user changes the width of a specific column(by draging the border
line), I will save the column index and the new width to variables
in javascript.Now ,after doing many such changes, I need to submit
those values saved in the vairables to the server side program by
submiting a form, which has an action path designing what action
should be called after it get the submitted value. Now, I m
wondering how I should define such javasript variables and how I can
submit these values by submiting a form? I m using struts, is there
any possibility to implement this idea in struts?

ThanksRegards

_
 MSN Hotmail  http://www.hotmail.com


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

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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
 MSN Hotmail  http://www.hotmail.com  

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


RE: can anyone help me address this issue

2004-03-11 Thread Robert Taylor
You can't send data structures over HTTP you can only send strings.

You could set those values as hidden form elements with a naming
convention that would enable your server side code to recognize
the elements in the request and create the appropriate server side
data structure. This is essentially what Chris has suggested.

robert

 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 8:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue


 Sorry,maybe I didnt make my question clear
 my question is:

 the java script variable is supposed to be an array of such a
 strutcture(although java doesnt have a struture, I just use it here to
 describe my idea,maybe I should use a class instead) ,I d like to know how
 I can submit such a value?


 Structure[] javascriptvalue;

 Structure{
  int colIndex
  int newWidth
 }


 ThanksRegards



 From: McCormack, Chris [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue
 Date: Thu, 11 Mar 2004 12:24:43 -
 
 use onResize on the html element that is clicked to report its new value
 to a form variable. use an onChange for the form to auto submit itself. If
 you need to hide the submission of the form use an IFrame.
 
 messy eugh, javascript is the pits.
 
 Chris
 
 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: 11 March 2004 12:16
 To: [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue
 
 
 I really need to get some idea about this issue, any suggestions?
 
 ThanksRegards
 
 
  From: Mu Mike [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: can anyone help me address this issue
  Date: Thu, 11 Mar 2004 05:12:16 +
  
  I m using javascript doing dhtml, now  I have a table, every time
  a user changes the width of a specific column(by draging the border
  line), I will save the column index and the new width to variables
  in javascript.Now ,after doing many such changes, I need to submit
  those values saved in the vairables to the server side program by
  submiting a form, which has an action path designing what action
  should be called after it get the submitted value. Now, I m
  wondering how I should define such javasript variables and how I can
  submit these values by submiting a form? I m using struts, is there
  any possibility to implement this idea in struts?
  
  ThanksRegards
  
  _
   MSN Hotmail  http://www.hotmail.com
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 _
  MSN Messenger:  http://messenger.msn.com/cn
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ***
 This e-mail and its attachments are confidential
 and are intended for the above named recipient
 only. If this has come to you in error, please
 notify the sender immediately and delete this
 e-mail from your system.
 You must take no action based on this, nor must
 you copy or disclose it or any part of its contents
 to any person or organisation.
 Statements and opinions contained in this email may
 not necessarily represent those of Littlewoods.
 Please note that e-mail communications may be monitored.
 The registered office of Littlewoods Limited and its
 subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
 Registered number of Littlewoods Limited is 262152.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
  MSN Hotmail  http://www.hotmail.com


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



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



RE: can anyone help me address this issue

2004-03-11 Thread Michael McGrady
If you want to get really fancy, of course, you can convert binary to 
strings and back.

At 06:23 PM 3/11/2004, you wrote:
You can't send data structures over HTTP you can only send strings.

You could set those values as hidden form elements with a naming
convention that would enable your server side code to recognize
the elements in the request and create the appropriate server side
data structure. This is essentially what Chris has suggested.
robert

 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 8:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue


 Sorry,maybe I didnt make my question clear
 my question is:

 the java script variable is supposed to be an array of such a
 strutcture(although java doesnt have a struture, I just use it here to
 describe my idea,maybe I should use a class instead) ,I d like to know how
 I can submit such a value?


 Structure[] javascriptvalue;

 Structure{
  int colIndex
  int newWidth
 }


 ThanksRegards



 From: McCormack, Chris [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue
 Date: Thu, 11 Mar 2004 12:24:43 -
 
 use onResize on the html element that is clicked to report its new value
 to a form variable. use an onChange for the form to auto submit itself. If
 you need to hide the submission of the form use an IFrame.
 
 messy eugh, javascript is the pits.
 
 Chris
 
 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: 11 March 2004 12:16
 To: [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue
 
 
 I really need to get some idea about this issue, any suggestions?
 
 ThanksRegards
 
 
  From: Mu Mike [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: can anyone help me address this issue
  Date: Thu, 11 Mar 2004 05:12:16 +
  
  I m using javascript doing dhtml, now  I have a table, every time
  a user changes the width of a specific column(by draging the border
  line), I will save the column index and the new width to variables
  in javascript.Now ,after doing many such changes, I need to submit
  those values saved in the vairables to the server side program by
  submiting a form, which has an action path designing what action
  should be called after it get the submitted value. Now, I m
  wondering how I should define such javasript variables and how I can
  submit these values by submiting a form? I m using struts, is there
  any possibility to implement this idea in struts?
  
  ThanksRegards
  
  _
  ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£  http://www.hotmail.com
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 _
 ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ***
 This e-mail and its attachments are confidential
 and are intended for the above named recipient
 only. If this has come to you in error, please
 notify the sender immediately and delete this
 e-mail from your system.
 You must take no action based on this, nor must
 you copy or disclose it or any part of its contents
 to any person or organisation.
 Statements and opinions contained in this email may
 not necessarily represent those of Littlewoods.
 Please note that e-mail communications may be monitored.
 The registered office of Littlewoods Limited and its
 subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
 Registered number of Littlewoods Limited is 262152.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£  http://www.hotmail.com


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

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


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


RE: can anyone help me address this issue

2004-03-11 Thread Andrew Hill
I sometimes have to do things like this. You can only submit strings in the
request, so what you want is a method of representing your information as a
string in a simple way.

In this case it should be quite easy as its just an array of a simple
structure of two ints so Id probably just have two delimiters, one for the
values in the structure, and one for the structures, so for example I might
submit the lot in a hidden field as something like:

1,32;2,48;3,10;4,50


Where I use a comma to delimit between the colIndex and newWidth values, and
a semicolon to seperate each instance of the structure. You can use any old
char as a delimiter so long as it wont be confused with the values. Since
these are ints and not strings life is easy in this case!

Over on the server side you have some code that parses this string to
reconstitute the values into some kind of java classes. You may even want to
do it in your action forms setter or getter - where you pass the string when
it is set and have a (differently named) getter that can return it as the
equivelent Structure[]

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Friday, 12 March 2004 10:24
To: Struts Users Mailing List
Subject: RE: can anyone help me address this issue


You can't send data structures over HTTP you can only send strings.

You could set those values as hidden form elements with a naming
convention that would enable your server side code to recognize
the elements in the request and create the appropriate server side
data structure. This is essentially what Chris has suggested.

robert

 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 11, 2004 8:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue


 Sorry,maybe I didnt make my question clear
 my question is:

 the java script variable is supposed to be an array of such a
 strutcture(although java doesnt have a struture, I just use it here to
 describe my idea,maybe I should use a class instead) ,I d like to know how
 I can submit such a value?


 Structure[] javascriptvalue;

 Structure{
  int colIndex
  int newWidth
 }


 ThanksRegards



 From: McCormack, Chris [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue
 Date: Thu, 11 Mar 2004 12:24:43 -
 
 use onResize on the html element that is clicked to report its new value
 to a form variable. use an onChange for the form to auto submit itself. If
 you need to hide the submission of the form use an IFrame.
 
 messy eugh, javascript is the pits.
 
 Chris
 
 -Original Message-
 From: Mu Mike [mailto:[EMAIL PROTECTED]
 Sent: 11 March 2004 12:16
 To: [EMAIL PROTECTED]
 Subject: RE: can anyone help me address this issue
 
 
 I really need to get some idea about this issue, any suggestions?
 
 ThanksRegards
 
 
  From: Mu Mike [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: can anyone help me address this issue
  Date: Thu, 11 Mar 2004 05:12:16 +
  
  I m using javascript doing dhtml, now  I have a table, every time
  a user changes the width of a specific column(by draging the border
  line), I will save the column index and the new width to variables
  in javascript.Now ,after doing many such changes, I need to submit
  those values saved in the vairables to the server side program by
  submiting a form, which has an action path designing what action
  should be called after it get the submitted value. Now, I m
  wondering how I should define such javasript variables and how I can
  submit these values by submiting a form? I m using struts, is there
  any possibility to implement this idea in struts?
  
  ThanksRegards
  
  _
   MSN Hotmail  http://www.hotmail.com
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 _
  MSN Messenger:  http://messenger.msn.com/cn
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 ***
 This e-mail and its attachments are confidential
 and are intended for the above named recipient
 only. If this has come to you in error, please
 notify the sender immediately and delete this
 e-mail from your system.
 You must take no action based on this, nor must
 you copy or disclose it or any part of its contents
 to any person or organisation.
 Statements and opinions contained in this email may
 not necessarily represent those of Littlewoods.
 Please note that e-mail communications may be monitored

can anyone help me address this issue

2004-03-10 Thread Mu Mike
I m using javascript doing dhtml, now  I have a table, every time a user 
changes the width of a specific column(by draging the border line), I will 
save the column index and the new width to variables in javascript.Now 
,after doing many such changes, I need to submit those values saved in the 
vairables to the server side program by submiting a form, which has an 
action path designing what action should be called after it get the 
submitted value. Now, I m wondering how I should define such javasript 
variables and how I can submit these values by submiting a form? I m using 
struts, is there any possibility to implement this idea in struts?

ThanksRegards

_
 MSN Hotmail  http://www.hotmail.com  

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


Can anyone help me out with this

2003-02-04 Thread jmattucci

This is driving me crazy. Originally in my index.jsp I had logic:forward
name=welcome/
and the page was never forwarded to welcome.do. I changed my tag to
logic:redirect name=welcome/
and the page was sent to welcome.do, but the page was blank. In my console
window I get
the message RequestProcessor-Processing a GET for path /welcome and no
other errors.
If I try the same web app in Netscape I get an error window with the
message The document contained no data What am I missing or doing wrong?


struts-config
!-- === Global Forward Definitions --

global-forwards
forward
name=welcome
path=/welcome.do/
/global-forwards

!-- === Action Mapping Definitions --

action-mappings
   action
path=/welcome
type=binary.solutions.BinaryAction/
/action-mappings

/struts-config
---




%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/

%--

Redirect default requests to Welcome action.

--%


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




*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you
*



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




Can anyone help me out with this

2003-02-04 Thread jmattucci

This is driving me crazy. Originally in my index.jsp I had logic:forward
name=welcome/
and the page was never forwarded to welcome.do. I changed my tag to
logic:redirect name=welcome/
and the page was sent to welcome.do, but the page was blank. In my console
window I get
the message RequestProcessor-Processing a GET for path /welcome and no
other errors.
If I try the same web app in Netscape I get an error window with the
message The document contained no data What am I missing or doing wrong?


struts-config
!-- === Global Forward Definitions --

global-forwards
forward
name=welcome
path=/welcome.do/
/global-forwards

!-- === Action Mapping Definitions --

action-mappings
   action
path=/welcome
type=binary.solutions.BinaryAction/
/action-mappings

/struts-config
---




%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/

%--

Redirect default requests to Welcome action.

--%


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





*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you
*



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




RE: Can anyone help me out with this

2003-02-04 Thread Jarnot Voytek Contr AU HQ/SC
what does binary.solutions.BinaryAction do?  post the code.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:08 AM
 To: Struts Users Mailing List
 Subject: Can anyone help me out with this
 
 
 
 This is driving me crazy. Originally in my index.jsp I had 
 logic:forward
 name=welcome/
 and the page was never forwarded to welcome.do. I changed my tag to
 logic:redirect name=welcome/
 and the page was sent to welcome.do, but the page was blank. 
 In my console
 window I get
 the message RequestProcessor-Processing a GET for path /welcome and no
 other errors.
 If I try the same web app in Netscape I get an error window with the
 message The document contained no data What am I missing or 
 doing wrong?
 
 
 struts-config
 !-- === Global Forward 
 Definitions --
 
 global-forwards
 forward
 name=welcome
 path=/welcome.do/
 /global-forwards
 
 !-- === Action Mapping 
 Definitions --
 
 action-mappings
action
 path=/welcome
 type=binary.solutions.BinaryAction/
 /action-mappings
 
 /struts-config
 --
 -
 
 
 
 
 %@ taglib uri=/tags/struts-logic prefix=logic %
 logic:forward name=welcome/
 
 %--
 
 Redirect default requests to Welcome action.
 
 --%
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 **
 **
 *
 
 This message is intended for the use of the individual or 
 entity to which
 it is addressed and may contain information that is confidential and
 privileged and exempt from disclosure under applicable law.  
 If the reader
 of this message is not the intended recipient, you are hereby 
 notified that
 any dissemination, distribution, or copying of this communication is
 strictly prohibited.  If you have received this communication 
 in error,
 please contact the sender immediately and delete it from your system.
 Thank you
 **
 **
 *
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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




RE: Can anyone help me out with this

2003-02-04 Thread jmattucci

package binary.solutions;

import javax.servlet.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;

public final class BinaryAction extends Action
{
  public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest
request, HttpServletResponse response) throws Exception
  {
 HitModel hm = new HitModel();
 hm.incrementHit();

 request.setAttribute(Constants.HIT_KEY, hm);
 //forward control to the specied URI
 return (mapping.findForward(Welcome));
  }
}


package binary.solutions;

import java.sql.*;

public final class HitModel
{
   private Connection conn;  public HitModel()
   {
try
{
  Class.forName(com.mysql.jdbc.Driver).newInstance();
  conn = DriverManager.getConnection
(jdbc:mysql://localhost/hittable);
}
catch(Exception exception)
  {

}
   }public synchronized void incrementHit()
{
  try
  {
Statement stmt = conn.createStatement();
  ResultSet rs = stmt.executeQuery(SELECT * FROM HITTABLE);

  rs.next();
  int hitCounter = rs.getInt(HIT);

  stmt.executeQuery(UPDATE HITTABLE SET HIT = +
String.valueOf(hitCounter));
  }
  catch(Exception e)
  {
e.printStackTrace();
  }

}

}


   
  
  Jarnot Voytek Contr  
  
  AU HQ/SC   To:   'Struts Users Mailing 
List' 
  Voytek.Jarnot@MAXW [EMAIL PROTECTED] 
  
  ELL.AF.MILcc:   
  
 Subject:  RE: Can anyone help me out 
with this  
  02/04/2003 12:15 PM  
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  




what does binary.solutions.BinaryAction do?  post the code.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:08 AM
 To: Struts Users Mailing List
 Subject: Can anyone help me out with this



 This is driving me crazy. Originally in my index.jsp I had
 logic:forward
 name=welcome/
 and the page was never forwarded to welcome.do. I changed my tag to
 logic:redirect name=welcome/
 and the page was sent to welcome.do, but the page was blank.
 In my console
 window I get
 the message RequestProcessor-Processing a GET for path /welcome and no
 other errors.
 If I try the same web app in Netscape I get an error window with the
 message The document contained no data What am I missing or
 doing wrong?


 struts-config
 !-- === Global Forward
 Definitions --

 global-forwards
 forward
 name=welcome
 path=/welcome.do/
 /global-forwards

 !-- === Action Mapping
 Definitions --

 action-mappings
action
 path=/welcome
 type=binary.solutions.BinaryAction/
 /action-mappings

 /struts-config
 --
 -




 %@ taglib uri=/tags/struts-logic prefix=logic %
 logic:forward name=welcome/

 %--

 Redirect default requests to Welcome action.

 --%


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




 **
 **
 *

 This message is intended for the use of the individual or
 entity to which
 it is addressed and may contain information that is confidential and
 privileged and exempt from disclosure under applicable law.
 If the reader
 of this message is not the intended recipient, you are hereby
 notified that
 any dissemination, distribution, or copying of this communication is
 strictly

RE: Can anyone help me out with this

2003-02-04 Thread Jarnot Voytek Contr AU HQ/SC
you're returning mapping.findForward(Welcome) but there is no forward
named Welcome.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:33 AM
 To: Struts Users Mailing List
 Subject: RE: Can anyone help me out with this
 
 
 
 package binary.solutions;
 
 import javax.servlet.*;
 import javax.servlet.http.*;
 import org.apache.struts.action.*;
 
 public final class BinaryAction extends Action
 {
   public ActionForward execute(ActionMapping mapping, 
 ActionForm form,
 HttpServletRequest
 request, HttpServletResponse response) throws Exception
   {
  HitModel hm = new HitModel();
  hm.incrementHit();
 
  request.setAttribute(Constants.HIT_KEY, hm);
  //forward control to the specied URI
  return (mapping.findForward(Welcome));
   }
 }
 
 
 package binary.solutions;
 
 import java.sql.*;
 
 public final class HitModel
 {
private Connection conn;  public HitModel()
{
 try
 {
   Class.forName(com.mysql.jdbc.Driver).newInstance();
   conn = DriverManager.getConnection
 (jdbc:mysql://localhost/hittable);
 }
 catch(Exception exception)
   {
 
 }
}public synchronized void incrementHit()
 {
   try
   {
 Statement stmt = conn.createStatement();
   ResultSet rs = stmt.executeQuery(SELECT * FROM HITTABLE);
 
   rs.next();
   int hitCounter = rs.getInt(HIT);
 
   stmt.executeQuery(UPDATE HITTABLE SET HIT = +
 String.valueOf(hitCounter));
   }
   catch(Exception e)
   {
 e.printStackTrace();
   }
 
 }
 
 }
 
 
   

   Jarnot Voytek Contr 

   AU HQ/SC   To:   
 'Struts Users Mailing List' 
   Voytek.Jarnot@MAXW 
 [EMAIL PROTECTED]   
   ELL.AF.MILcc:  

  Subject:  
 RE: Can anyone help me out with this  
   02/04/2003 12:15 PM 

   Please respond to   

   Struts Users   

   Mailing List   

   

   

 
 
 
 
 what does binary.solutions.BinaryAction do?  post the code.
 
 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 04, 2003 11:08 AM
  To: Struts Users Mailing List
  Subject: Can anyone help me out with this
 
 
 
  This is driving me crazy. Originally in my index.jsp I had
  logic:forward
  name=welcome/
  and the page was never forwarded to welcome.do. I changed my tag to
  logic:redirect name=welcome/
  and the page was sent to welcome.do, but the page was blank.
  In my console
  window I get
  the message RequestProcessor-Processing a GET for path 
 /welcome and no
  other errors.
  If I try the same web app in Netscape I get an error window with the
  message The document contained no data What am I missing or
  doing wrong?
 
 
  struts-config
  !-- === Global Forward
  Definitions --
 
  global-forwards
  forward
  name=welcome
  path=/welcome.do/
  /global-forwards
 
  !-- === Action Mapping
  Definitions --
 
  action-mappings
 action
  path=/welcome
  type=binary.solutions.BinaryAction/
  /action-mappings
 
  /struts-config
  --
  -
 
 
 
 
  %@ taglib uri=/tags/struts-logic prefix=logic %
  logic:forward name=welcome/
 
  %--
 
  Redirect default requests to Welcome action.
 
  --%
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

RE: Can anyone help me out with this

2003-02-04 Thread jmattucci

So if I changed my global forward name = welcome to name = Welcome
it should work? Sorry I think I tried that already



   
  
  Jarnot Voytek Contr  
  
  AU HQ/SC   To:   'Struts Users Mailing 
List' 
  Voytek.Jarnot@MAXW [EMAIL PROTECTED] 
  
  ELL.AF.MILcc:   
  
 Subject:  RE: Can anyone help me out 
with this  
  02/04/2003 12:36 PM  
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  




you're returning mapping.findForward(Welcome) but there is no forward
named Welcome.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:33 AM
 To: Struts Users Mailing List
 Subject: RE: Can anyone help me out with this



 package binary.solutions;

 import javax.servlet.*;
 import javax.servlet.http.*;
 import org.apache.struts.action.*;

 public final class BinaryAction extends Action
 {
   public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest
 request, HttpServletResponse response) throws Exception
   {
  HitModel hm = new HitModel();
  hm.incrementHit();

  request.setAttribute(Constants.HIT_KEY, hm);
  //forward control to the specied URI
  return (mapping.findForward(Welcome));
   }
 }


 package binary.solutions;

 import java.sql.*;

 public final class HitModel
 {
private Connection conn;  public HitModel()
{
 try
 {
   Class.forName(com.mysql.jdbc.Driver).newInstance();
   conn = DriverManager.getConnection
 (jdbc:mysql://localhost/hittable);
 }
 catch(Exception exception)
   {

 }
}public synchronized void incrementHit()
 {
   try
   {
 Statement stmt = conn.createStatement();
   ResultSet rs = stmt.executeQuery(SELECT * FROM HITTABLE);

   rs.next();
   int hitCounter = rs.getInt(HIT);

   stmt.executeQuery(UPDATE HITTABLE SET HIT = +
 String.valueOf(hitCounter));
   }
   catch(Exception e)
   {
 e.printStackTrace();
   }

 }

 }




   Jarnot Voytek Contr

   AU HQ/SC   To:
 'Struts Users Mailing List'
   Voytek.Jarnot@MAXW
 [EMAIL PROTECTED]
   ELL.AF.MILcc:

  Subject:
 RE: Can anyone help me out with this
   02/04/2003 12:15 PM

   Please respond to

   Struts Users

   Mailing List









 what does binary.solutions.BinaryAction do?  post the code.

 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 04, 2003 11:08 AM
  To: Struts Users Mailing List
  Subject: Can anyone help me out with this
 
 
 
  This is driving me crazy. Originally in my index.jsp I had
  logic:forward
  name=welcome/
  and the page was never forwarded to welcome.do. I changed my tag to
  logic:redirect name=welcome/
  and the page was sent to welcome.do, but the page was blank.
  In my console
  window I get
  the message RequestProcessor-Processing a GET for path
 /welcome and no
  other errors.
  If I try the same web app in Netscape I get an error window with the
  message The document contained no data What am I missing or
  doing wrong?
 
 
  struts-config
  !-- === Global Forward
  Definitions --
 
  global-forwards
  forward
  name=welcome
  path=/welcome.do/
  /global-forwards
 
  !-- === Action Mapping
  Definitions --
 
  action-mappings
 action
  path=/welcome

RE: Can anyone help me out with this

2003-02-04 Thread Jarnot Voytek Contr AU HQ/SC
I think you're missing the point of how this all works.  Here's what I
understand to be the theory behind what you're trying to achieve:

index.jsp [forwards to] BinaryAction [forwards to] 

the question marks are where you're getting lost.  Typically your action
definition would look like this:

action path=/welcome type=binary.solutions.BinaryAction
forward name= path=/hello.jsp/
/action

So from your action you would return a findForward(...) which points to a
jsp which is a forward local to that particular action (in most cases, and I
assume this is what you're after).

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:46 AM
 To: Struts Users Mailing List
 Subject: RE: Can anyone help me out with this
 
 
 
 So if I changed my global forward name = welcome to name = Welcome
 it should work? Sorry I think I tried that already
 
 
 
   

   Jarnot Voytek Contr 

   AU HQ/SC   To:   
 'Struts Users Mailing List' 
   Voytek.Jarnot@MAXW 
 [EMAIL PROTECTED]   
   ELL.AF.MILcc:  

  Subject:  
 RE: Can anyone help me out with this  
   02/04/2003 12:36 PM 

   Please respond to   

   Struts Users   

   Mailing List   

   

   

 
 
 
 
 you're returning mapping.findForward(Welcome) but there is 
 no forward
 named Welcome.
 
 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 04, 2003 11:33 AM
  To: Struts Users Mailing List
  Subject: RE: Can anyone help me out with this
 
 
 
  package binary.solutions;
 
  import javax.servlet.*;
  import javax.servlet.http.*;
  import org.apache.struts.action.*;
 
  public final class BinaryAction extends Action
  {
public ActionForward execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest
  request, HttpServletResponse response) throws Exception
{
   HitModel hm = new HitModel();
   hm.incrementHit();
 
   request.setAttribute(Constants.HIT_KEY, hm);
   //forward control to the specied URI
   return (mapping.findForward(Welcome));
}
  }
 
 
  package binary.solutions;
 
  import java.sql.*;
 
  public final class HitModel
  {
 private Connection conn;  public HitModel()
 {
  try
  {
Class.forName(com.mysql.jdbc.Driver).newInstance();
conn = DriverManager.getConnection
  (jdbc:mysql://localhost/hittable);
  }
  catch(Exception exception)
{
 
  }
 }public synchronized void incrementHit()
  {
try
{
  Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(SELECT * FROM 
 HITTABLE);
 
rs.next();
int hitCounter = rs.getInt(HIT);
 
stmt.executeQuery(UPDATE HITTABLE SET HIT = +
  String.valueOf(hitCounter));
}
catch(Exception e)
{
  e.printStackTrace();
}
 
  }
 
  }
 
 
 
 
Jarnot Voytek Contr
 
AU HQ/SC   To:
  'Struts Users Mailing List'
Voytek.Jarnot@MAXW
  [EMAIL PROTECTED]
ELL.AF.MILcc:
 
   Subject:
  RE: Can anyone help me out with this
02/04/2003 12:15 PM
 
Please respond to
 
Struts Users
 
Mailing List
 
 
 
 
 
 
 
 
 
  what does binary.solutions.BinaryAction do?  post the code.
 
  --
  Voytek Jarnot
  Quidquid latine dictum sit, altum viditur.
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: Can anyone help me out with this

2003-02-04 Thread jmattucci

thank you so much. You have cleared things up.



   
  
  Jarnot Voytek Contr  
  
  AU HQ/SC   To:   'Struts Users Mailing 
List' 
  Voytek.Jarnot@MAXW [EMAIL PROTECTED] 
  
  ELL.AF.MILcc:   
  
 Subject:  RE: Can anyone help me out 
with this  
  02/04/2003 12:51 PM  
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  




I think you're missing the point of how this all works.  Here's what I
understand to be the theory behind what you're trying to achieve:

 index.jsp [forwards to] BinaryAction [forwards to] 

the question marks are where you're getting lost.  Typically your action
definition would look like this:

action path=/welcome type=binary.solutions.BinaryAction
 forward name= path=/hello.jsp/
/action

So from your action you would return a findForward(...) which points to a
jsp which is a forward local to that particular action (in most cases, and
I
assume this is what you're after).

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:46 AM
 To: Struts Users Mailing List
 Subject: RE: Can anyone help me out with this



 So if I changed my global forward name = welcome to name = Welcome
 it should work? Sorry I think I tried that already





   Jarnot Voytek Contr

   AU HQ/SC   To:
 'Struts Users Mailing List'
   Voytek.Jarnot@MAXW
 [EMAIL PROTECTED]
   ELL.AF.MILcc:

  Subject:
 RE: Can anyone help me out with this
   02/04/2003 12:36 PM

   Please respond to

   Struts Users

   Mailing List









 you're returning mapping.findForward(Welcome) but there is
 no forward
 named Welcome.

 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 04, 2003 11:33 AM
  To: Struts Users Mailing List
  Subject: RE: Can anyone help me out with this
 
 
 
  package binary.solutions;
 
  import javax.servlet.*;
  import javax.servlet.http.*;
  import org.apache.struts.action.*;
 
  public final class BinaryAction extends Action
  {
public ActionForward execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest
  request, HttpServletResponse response) throws Exception
{
   HitModel hm = new HitModel();
   hm.incrementHit();
 
   request.setAttribute(Constants.HIT_KEY, hm);
   //forward control to the specied URI
   return (mapping.findForward(Welcome));
}
  }
 
 
  package binary.solutions;
 
  import java.sql.*;
 
  public final class HitModel
  {
 private Connection conn;  public HitModel()
 {
  try
  {
Class.forName(com.mysql.jdbc.Driver).newInstance();
conn = DriverManager.getConnection
  (jdbc:mysql://localhost/hittable);
  }
  catch(Exception exception)
{
 
  }
 }public synchronized void incrementHit()
  {
try
{
  Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(SELECT * FROM
 HITTABLE);
 
rs.next();
int hitCounter = rs.getInt(HIT);
 
stmt.executeQuery(UPDATE HITTABLE SET HIT = +
  String.valueOf(hitCounter));
}
catch(Exception e)
{
  e.printStackTrace();
}
 
  }
 
  }
 
 
 
 
Jarnot Voytek Contr
 
AU HQ/SC   To:
  'Struts Users Mailing List'
Voytek.Jarnot@MAXW
  [EMAIL PROTECTED]
ELL.AF.MIL

Can anyone help me out with this

2003-02-03 Thread jmattucci

When I attempt to forward to welcome.do the page remains at index.jsp
and I get
the following error. Can anyone shed some light on the matter? Im really
stuck.
Thank you for all for you time
--



2003-02-01 16:28:00 StandardHost[localhost]: ContainerBase.removeChild:
stop:
LifecycleException:  Container StandardContext[/struttest] has not been
started
 at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

 at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)

 at
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:420)



--



struts-config
!-- === Global Forward Definitions --

global-forwards
forward
name=welcome
path=/welcome.do/
/global-forwards

!-- === Action Mapping Definitions --

action-mappings
   action
path=/welcome
type=binary.solutions.BinaryAction/
/action-mappings

/struts-config
---



%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/

%--

Redirect default requests to Welcome action.

--%






*


This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you
*




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



*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you
*



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




Re: Can anyone help me out with this

2003-02-03 Thread Ashish Kulkarni
Hi,
Which app server are u using,
if u are using tomcat
check if the application has started
http://localhost:8080/manager/list

I dont know , but I may be wrong
--- [EMAIL PROTECTED] wrote:
 
 When I attempt to forward to welcome.do the page
 remains at index.jsp
 and I get
 the following error. Can anyone shed some light on
 the matter? Im really
 stuck.
 Thank you for all for you time

--
 
 
 
 2003-02-01 16:28:00 StandardHost[localhost]:
 ContainerBase.removeChild:
 stop:
 LifecycleException:  Container
 StandardContext[/struttest] has not been
 started
  at

org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 
  at

org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
 
  at

org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:420)
 
 
 

--
 
 
 
 struts-config
 !-- === Global
 Forward Definitions --
 
 global-forwards
 forward
 name=welcome
 path=/welcome.do/
 /global-forwards
 
 !-- === Action
 Mapping Definitions --
 
 action-mappings
action
 path=/welcome
 type=binary.solutions.BinaryAction/
 /action-mappings
 
 /struts-config

---
 
 
 
 %@ taglib uri=/tags/struts-logic prefix=logic
 %
 logic:forward name=welcome/
 
 %--
 
 Redirect default requests to Welcome action.
 
 --%
 
 
 
 
 
 

*
 
 
 This message is intended for the use of the
 individual or entity to which
 it is addressed and may contain information that is
 confidential and
 privileged and exempt from disclosure under
 applicable law.  If the reader
 of this message is not the intended recipient, you
 are hereby notified that
 any dissemination, distribution, or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error,
 please contact the sender immediately and delete it
 from your system.
 Thank you

*
 
 
 
 

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

*
 
 This message is intended for the use of the
 individual or entity to which
 it is addressed and may contain information that is
 confidential and
 privileged and exempt from disclosure under
 applicable law.  If the reader
 of this message is not the intended recipient, you
 are hereby notified that
 any dissemination, distribution, or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error,
 please contact the sender immediately and delete it
 from your system.
 Thank you

*
 
 
 

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Can anyone help me out with this

2003-02-03 Thread jmattucci

Im using tomcat 4.1.8 and I checked and the app
is running. Im trying to connect to a database to
register the number of hits my page is getting.
Could that be causing the problems? And what
does LifecycleException mean?



   

  Ashish Kulkarni  

  kulkarni_ash1312To:   Struts Users Mailing List 

  @yahoo.com   [EMAIL PROTECTED]   

   cc: 

  02/03/2003 03:31 Subject:  Re: Can anyone help me out 
with this  
  PM   

  Please respond to

  Struts Users

  Mailing List

   

   





Hi,
Which app server are u using,
if u are using tomcat
check if the application has started
http://localhost:8080/manager/list

I dont know , but I may be wrong
--- [EMAIL PROTECTED] wrote:

 When I attempt to forward to welcome.do the page
 remains at index.jsp
 and I get
 the following error. Can anyone shed some light on
 the matter? Im really
 stuck.
 Thank you for all for you time

--




 2003-02-01 16:28:00 StandardHost[localhost]:
 ContainerBase.removeChild:
 stop:
 LifecycleException:  Container
 StandardContext[/struttest] has not been
 started
  at

org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

  at

org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)

  at

org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:420)





--




 struts-config
 !-- === Global
 Forward Definitions --

 global-forwards
 forward
 name=welcome
 path=/welcome.do/
 /global-forwards

 !-- === Action
 Mapping Definitions --

 action-mappings
action
 path=/welcome
 type=binary.solutions.BinaryAction/
 /action-mappings

 /struts-config

---




 %@ taglib uri=/tags/struts-logic prefix=logic
 %
 logic:forward name=welcome/

 %--

 Redirect default requests to Welcome action.

 --%







*



 This message is intended for the use of the
 individual or entity to which
 it is addressed and may contain information that is
 confidential and
 privileged and exempt from disclosure under
 applicable law.  If the reader
 of this message is not the intended recipient, you
 are hereby notified that
 any dissemination, distribution, or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error,
 please contact the sender immediately and delete it
 from your system.
 Thank you

*






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




*


 This message is intended for the use of the
 individual or entity to which
 it is addressed and may contain information that is
 confidential and
 privileged and exempt from disclosure under
 applicable law.  If the reader
 of this message is not the intended recipient, you
 are hereby notified that
 any dissemination, distribution, or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error

RE: Can anyone help me out with this

2003-02-03 Thread Brandon Goodin
Did you check your tomcat catalina logs. Sometimes you will find more info
there. I am assuming you are receiving the following error in your browser.
It sounds to me like the particual webapp instance has not been properly
initialized.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 1:18 PM
To: Struts Users Mailing List
Subject: Can anyone help me out with this



When I attempt to forward to welcome.do the page remains at index.jsp
and I get
the following error. Can anyone shed some light on the matter? Im really
stuck.
Thank you for all for you time

--



2003-02-01 16:28:00 StandardHost[localhost]: ContainerBase.removeChild:
stop:
LifecycleException:  Container StandardContext[/struttest] has not been
started
 at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

 at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)

 at
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.ja
va:420)




--



struts-config
!-- === Global Forward Definitions --

global-forwards
forward
name=welcome
path=/welcome.do/
/global-forwards

!-- === Action Mapping Definitions --

action-mappings
   action
path=/welcome
type=binary.solutions.BinaryAction/
/action-mappings

/struts-config

---



%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/

%--

Redirect default requests to Welcome action.

--%








*


This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you


*




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





*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you


*



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



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




RE: Can anyone help me out with this

2003-02-03 Thread jmattucci

Yes I obtained the error below from the catalina log. No error shows up on
the
browser. I type in my url localhost:8080/strutTest and the page is sent to
localhost:8080/strutTest/index.jsp and nothing more happens. I dont
understand
why its not being forwarded to 8080/strutTest/welcome.do




   

  Brandon Goodin 

  [EMAIL PROTECTED]  To:   Struts Users Mailing List   

[EMAIL PROTECTED]   

  02/03/2003 03:58 cc: 

  PM   Subject:  RE: Can anyone help me out 
with this  
  Please respond to

  Struts Users

  Mailing List

   

   





Did you check your tomcat catalina logs. Sometimes you will find more info
there. I am assuming you are receiving the following error in your browser.
It sounds to me like the particual webapp instance has not been properly
initialized.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 1:18 PM
To: Struts Users Mailing List
Subject: Can anyone help me out with this



When I attempt to forward to welcome.do the page remains at index.jsp
and I get
the following error. Can anyone shed some light on the matter? Im really
stuck.
Thank you for all for you time


--



2003-02-01 16:28:00 StandardHost[localhost]: ContainerBase.removeChild:
stop:
LifecycleException:  Container StandardContext[/struttest] has not been
started
 at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)

 at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)

 at
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.ja

va:420)





--



struts-config
!-- === Global Forward Definitions --

global-forwards
forward
name=welcome
path=/welcome.do/
/global-forwards

!-- === Action Mapping Definitions --

action-mappings
   action
path=/welcome
type=binary.solutions.BinaryAction/
/action-mappings

/struts-config


---



%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=welcome/

%--

Redirect default requests to Welcome action.

--%










*


This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under applicable law.  If the reader
of this message is not the intended recipient, you are hereby notified that
any dissemination, distribution, or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please contact the sender immediately and delete it from your system.
Thank you




*




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







*

This message is intended for the use of the individual or entity to which
it is addressed and may contain information that is confidential and
privileged and exempt from disclosure under

Re: Can anyone help me out with this

2003-02-03 Thread Ashish Kulkarni
Hi,
Normally i get a lifecycleexcpetion if the servlet is
not properly intilaized, some times it happens that
jsp work fine, but the servlets dnt work. 
if u have any servlet in your app try  calling that
servlet..
Ashish
--- [EMAIL PROTECTED] wrote:
 
 Im using tomcat 4.1.8 and I checked and the app
 is running. Im trying to connect to a database to
 register the number of hits my page is getting.
 Could that be causing the problems? And what
 does LifecycleException mean?
 
 
 
 
 
  
   Ashish Kulkarni   
 
  
   kulkarni_ash1312To:  
 Struts Users Mailing List   
  
   @yahoo.com  
 [EMAIL PROTECTED]
   
cc:  
 
  
   02/03/2003 03:31
 Subject:  Re: Can anyone help me out with this  

   PM
 
  
   Please respond to 
 
  
   Struts Users 
 
  
   Mailing List 
 
  
 
 
  
 
 
  
 
 
 
 
 Hi,
 Which app server are u using,
 if u are using tomcat
 check if the application has started
 http://localhost:8080/manager/list
 
 I dont know , but I may be wrong
 --- [EMAIL PROTECTED] wrote:
 
  When I attempt to forward to welcome.do the page
  remains at index.jsp
  and I get
  the following error. Can anyone shed some light on
  the matter? Im really
  stuck.
  Thank you for all for you time
 

--
 
 
 
 
  2003-02-01 16:28:00 StandardHost[localhost]:
  ContainerBase.removeChild:
  stop:
  LifecycleException:  Container
  StandardContext[/struttest] has not been
  started
   at
 

org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 
   at
 

org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
 
   at
 

org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:420)
 
 
 
 
 

--
 
 
 
 
  struts-config
  !-- === Global
  Forward Definitions --
 
  global-forwards
  forward
  name=welcome
  path=/welcome.do/
  /global-forwards
 
  !-- === Action
  Mapping Definitions --
 
  action-mappings
 action
  path=/welcome
  type=binary.solutions.BinaryAction/
  /action-mappings
 
  /struts-config
 

---
 
 
 
 
  %@ taglib uri=/tags/struts-logic prefix=logic
  %
  logic:forward name=welcome/
 
  %--
 
  Redirect default requests to Welcome action.
 
  --%
 
 
 
 
 
 
 

*
 
 
 
  This message is intended for the use of the
  individual or entity to which
  it is addressed and may contain information that
 is
  confidential and
  privileged and exempt from disclosure under
  applicable law.  If the reader
  of this message is not the intended recipient, you
  are hereby notified that
  any dissemination, distribution, or copying of
 this
  communication is
  strictly prohibited.  If you have received this
  communication in error,
  please contact the sender immediately and delete
 it
  from your system.
  Thank you
 

*
 
 
 
 
 
 

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

*
 
 
  This message is intended

RE: Can anyone help me out with this

2003-02-03 Thread Ashish Kulkarni
Hi,
one more thing may be try it out
in your jsp 
%@ taglib uri=/tags/struts-logic prefix=logic
%
logic:forward name=welcome.do/




--- [EMAIL PROTECTED] wrote:
 
 Yes I obtained the error below from the catalina
 log. No error shows up on
 the
 browser. I type in my url localhost:8080/strutTest
 and the page is sent to
 localhost:8080/strutTest/index.jsp and nothing more
 happens. I dont
 understand
 why its not being forwarded to
 8080/strutTest/welcome.do
 
 
 
 
 
 
  
   Brandon Goodin  
 
  
   [EMAIL PROTECTED]  To:  
 Struts Users Mailing List 
  

 [EMAIL PROTECTED]
   
   02/03/2003 03:58 cc:  
 
  
   PM  
 Subject:  RE: Can anyone help me out with this  

   Please respond to 
 
  
   Struts Users 
 
  
   Mailing List 
 
  
 
 
  
 
 
  
 
 
 
 
 Did you check your tomcat catalina logs. Sometimes
 you will find more info
 there. I am assuming you are receiving the following
 error in your browser.
 It sounds to me like the particual webapp instance
 has not been properly
 initialized.
 
 Brandon Goodin
 Phase Web and Multimedia
 P (406) 862-2245
 F (406) 862-0354
 [EMAIL PROTECTED]
 http://www.phase.ws
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 03, 2003 1:18 PM
 To: Struts Users Mailing List
 Subject: Can anyone help me out with this
 
 
 
 When I attempt to forward to welcome.do the page
 remains at index.jsp
 and I get
 the following error. Can anyone shed some light on
 the matter? Im really
 stuck.
 Thank you for all for you time


 
 --
 
 
 
 2003-02-01 16:28:00 StandardHost[localhost]:
 ContainerBase.removeChild:
 stop:
 LifecycleException:  Container
 StandardContext[/struttest] has not been
 started
  at

org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 
  at

org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
 
  at

org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.ja
 
 va:420)
 
 
 


 
 --
 
 
 
 struts-config
 !-- === Global
 Forward Definitions --
 
 global-forwards
 forward
 name=welcome
 path=/welcome.do/
 /global-forwards
 
 !-- === Action
 Mapping Definitions --
 
 action-mappings
action
 path=/welcome
 type=binary.solutions.BinaryAction/
 /action-mappings
 
 /struts-config


 
 ---
 
 
 
 %@ taglib uri=/tags/struts-logic prefix=logic
 %
 logic:forward name=welcome/
 
 %--
 
 Redirect default requests to Welcome action.
 
 --%
 
 
 
 
 
 


 


 
 *
 
 
 This message is intended for the use of the
 individual or entity to which
 it is addressed and may contain information that is
 confidential and
 privileged and exempt from disclosure under
 applicable law.  If the reader
 of this message is not the intended recipient, you
 are hereby notified that
 any dissemination, distribution, or copying of this
 communication is
 strictly prohibited.  If you have received this
 communication in error,
 please contact the sender immediately and delete it
 from your system.
 Thank you


 


 
 *
 
 
 
 

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

can anyone help me??

2002-03-13 Thread Vaddiyar, Raghuramudu

Hi,
am new to struts. can anyone help me??
What does the below error message mean???



javax.servlet.ServletException: Cannot find bean user in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002findex_0002ejspindex_jsp_5._jspService(_0002findex_0002ejspindex_jsp_5.
java:692)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


Raghuramudu Vaddiyar 
SIS SEGAINTERSETTLE AG
Front End Development
P.O. Box
CH-8002 Zurich
Phone + 41-1-288-4488
Fax +41-1-288-4428
mailto:[EMAIL PROTECTED]


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




RE: can anyone help me??

2002-03-13 Thread Arik Levin ( Tikal )

I'm not a magician you know, describe, what you are doing.

-Original Message-
From: Vaddiyar, Raghuramudu [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 11:58 AM
To: Struts (E-mail)
Subject: can anyone help me??

Hi,
am new to struts. can anyone help me??
What does the below error message mean???



javax.servlet.ServletException: Cannot find bean user in scope null
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002findex_0002ejspindex_jsp_5._jspService(_0002findex_0002ejspindex_jsp_5.
java:692)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


Raghuramudu Vaddiyar 
SIS SEGAINTERSETTLE AG
Front End Development
P.O. Box
CH-8002 Zurich
Phone + 41-1-288-4488
Fax +41-1-288-4428
mailto:[EMAIL PROTECTED]


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



Re: can anyone help me??

2002-03-13 Thread Konstantina Stamopoulou

Hello,

I had the same exception when I started using Struts. This is caused
probalbly because you have not created the bean . Make sure that you have
created the user bean either from within your Action class
(getServletContext.setAttribute(user, userclass) or from your .jsp file
(jsp:useBean id=user scope=session type=class.User/). Of cource make
sure that your Action class is being called before the jsp is dislayed(that
you have done the right mappings)
Try it and it should work.

Konstantina


- Original Message -
From: Vaddiyar, Raghuramudu [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, March 13, 2002 11:57 AM
Subject: can anyone help me??


 Hi,
 am new to struts. can anyone help me??
 What does the below error message mean???



 javax.servlet.ServletException: Cannot find bean user in scope null
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
 l.java:459)
 at

_0002findex_0002ejspindex_jsp_5._jspService(_0002findex_0002ejspindex_jsp_5.
 java:692)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
 va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:282)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at

org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
 pl.java:222)
 at

org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
 .java:162)
 at

org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
 va:1759)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 2)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:213)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)


 Raghuramudu Vaddiyar
 SIS SEGAINTERSETTLE AG
 Front End Development
 P.O. Box
 CH-8002 Zurich
 Phone + 41-1-288-4488
 Fax +41-1-288-4428
 mailto:[EMAIL PROTECTED]


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




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




RE: can anyone help me??

2002-03-13 Thread Galbreath, Mark

Yes.  Read the following:

http://www.tuxedo.org/~esr/faqs/smart-questions.html

-Original Message-
From: Vaddiyar, Raghuramudu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 4:58 AM

Hi,
am new to struts. can anyone help me??

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




Re: can anyone help me??

2002-03-13 Thread keithBacon

 Cannot find bean user in scope null
This is a bit mis-leading. I think it means you have used 
bean:define or bean:write - a tag where struts searches for the bean. You
haven't specified scope... so struts searches all possible scope
(page,request,session,application)
hope that helps. 



--- Konstantina Stamopoulou [EMAIL PROTECTED] wrote:
 Hello,
 
 I had the same exception when I started using Struts. This is caused
 probalbly because you have not created the bean . Make sure that you have
 created the user bean either from within your Action class
 (getServletContext.setAttribute(user, userclass) or from your .jsp file
 (jsp:useBean id=user scope=session type=class.User/). Of cource make
 sure that your Action class is being called before the jsp is dislayed(that
 you have done the right mappings)
 Try it and it should work.
 
 Konstantina
 
 
 - Original Message -
 From: Vaddiyar, Raghuramudu [EMAIL PROTECTED]
 To: Struts (E-mail) [EMAIL PROTECTED]
 Sent: Wednesday, March 13, 2002 11:57 AM
 Subject: can anyone help me??
 
 
  Hi,
  am new to struts. can anyone help me??
  What does the below error message mean???
 
 
 
  javax.servlet.ServletException: Cannot find bean user in scope null
  at
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
  l.java:459)
  at
 
 _0002findex_0002ejspindex_jsp_5._jspService(_0002findex_0002ejspindex_jsp_5.
  java:692)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
  va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va:282)
  at
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at
  org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
  pl.java:222)
  at
 
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
  .java:162)
  at
 
 org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
  va:1759)
  at
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
  at
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at
  org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
  at
  org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
  at
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
  at
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
  at java.lang.Thread.run(Thread.java:484)
 
 
  Raghuramudu Vaddiyar
  SIS SEGAINTERSETTLE AG
  Front End Development
  P.O. Box
  CH-8002 Zurich
  Phone + 41-1-288-4488
  Fax +41-1-288-4428
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




RE: Can anyone help me how to unsubscribe

2002-02-06 Thread Galbreath, Mark

Welcome to the Hotel California

Mark

-Original Message-
From: Krishnamoorthy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 1:12 AM
To: Struts Users Mailing List
Subject: Can anyone help me how to unsubscribe


Actually I tried in all the possible ways to unsubscribe.
Not only me lots of other guys are tring to do it.but no use ,
could anyone help us to unsubscribe from struts.

Thanks
Kicha


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

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




RE: Can anyone help me how to unsubscribe

2002-02-06 Thread Jim.W.Berg

You can send an email to the following:
[EMAIL PROTECTED]

When you get a response back, make sure that you send a blank reply to the 
address indicated in the message.  If you do not follow the instructions, 
then you will not be unsubscribed.  I successfully unsubscribed last 
Friday and then resubscribed on Monday just to check it out.  I suspect 
that either the second message is not being sent by the subscribers, or 
the second message is not correct.  The former is probably the most 
frequent occurance. 
 Good luck.   Remember Scotty never did trust the transporters.


Jim Berg 
Sr. Software Specialist
PSCI
[EMAIL PROTECTED]




Galbreath, Mark [EMAIL PROTECTED]

06-Feb-2002 08:07
Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

 
 

To: 'Struts Users Mailing List'

cc: 
Subject:RE: Can anyone help me how to unsubscribe


Welcome to the Hotel California

Mark

-Original Message-
From: Krishnamoorthy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 1:12 AM
To: Struts Users Mailing List
Subject: Can anyone help me how to unsubscribe


Actually I tried in all the possible ways to unsubscribe.
Not only me lots of other guys are tring to do it.but no use ,
could anyone help us to unsubscribe from struts.

Thanks
Kicha


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

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






RE: Can anyone help me how to unsubscribe

2002-02-06 Thread jayanta . roy

Hey buddy,

If it's that problem some to unsubscribe, just mark a ban to all messages
sent to Struts Users Mailing List ! That simple...

Till then, hang around and have fun...

Roy.

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, February 06, 2002 6:44 PM
To: Struts Users Mailing List
Subject:RE: Can anyone help me how to unsubscribe

You can send an email to the following:
[EMAIL PROTECTED]

When you get a response back, make sure that you send a blank reply to the 
address indicated in the message.  If you do not follow the instructions, 
then you will not be unsubscribed.  I successfully unsubscribed last 
Friday and then resubscribed on Monday just to check it out.  I suspect 
that either the second message is not being sent by the subscribers, or 
the second message is not correct.  The former is probably the most 
frequent occurance. 
 Good luck.   Remember Scotty never did trust the transporters.


Jim Berg 
Sr. Software Specialist
PSCI
[EMAIL PROTECTED]




Galbreath, Mark [EMAIL PROTECTED]

06-Feb-2002 08:07
Please respond to Struts Users Mailing List 
[EMAIL PROTECTED]

 
 

To: 'Struts Users Mailing List'

cc: 
Subject:RE: Can anyone help me how to unsubscribe


Welcome to the Hotel California

Mark

-Original Message-
From: Krishnamoorthy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 1:12 AM
To: Struts Users Mailing List
Subject: Can anyone help me how to unsubscribe


Actually I tried in all the possible ways to unsubscribe.
Not only me lots of other guys are tring to do it.but no use ,
could anyone help us to unsubscribe from struts.

Thanks
Kicha


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

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




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




Re: Can anyone help me how to unsubscribe

2002-02-06 Thread STEVE WILKINSON

One note, you MUST make the request with the SAME email address to which you 
subscribed.  If you don't you will not be unsubscribed.  FYI when you remember the 
email address that you subscribed and make sure that you make the request from that 
return address it works like a champ.

Obviously, it's a good idea to save the WELCOME message from the mail list.  In case 
you don't have it, here is the Administrative portion of that message that may be of 
some help.

--- Administrative commands for the struts-user list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   [EMAIL PROTECTED]

To remove your address from the list, send a message to:
   [EMAIL PROTECTED]

Send mail to the following for info and FAQ for this list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

Similar addresses exist for the digest list:
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

To get messages 123 through 145 (a maximum of 100 per request), mail:
   [EMAIL PROTECTED]

To get an index with subject and author for messages 123-456 , mail:
   [EMAIL PROTECTED]

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send an empty message to:
   [EMAIL PROTECTED]

The messages do not really need to be empty, but I will ignore
their content. Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example [EMAIL PROTECTED], just add a hyphen and your
address (with '=' instead of '@') after the command word:
[EMAIL PROTECTED]

To stop subscription for this address, mail:
[EMAIL PROTECTED]

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
[EMAIL PROTECTED] Please be patient, my owner is a
lot slower than I am ;-)

--- END: Administrative commands for the struts-user list ---

Hope this helps
Steve
- Original Message -
From: [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 6:20 AM
To: Struts Users Mailing List
Subject: RE: Can anyone help me how to unsubscribe

You can send an email to the following:
[EMAIL PROTECTED]

When you get a response back, make sure that you send a blank reply to the
address indicated in the message.  If you do not follow the instructions,
then you will not be unsubscribed.  I successfully unsubscribed last
Friday and then resubscribed on Monday just to check it out.  I suspect
that either the second message is not being sent by the subscribers, or
the second message is not correct.  The former is probably the most
frequent occurance.
Good luck.   Remember Scotty never did trust the transporters.


Jim Berg
Sr. Software Specialist
PSCI
[EMAIL PROTECTED]




Galbreath, Mark [EMAIL PROTECTED]

06-Feb-2002 08:07
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]




To: 'Struts Users Mailing List'

cc:
Subject:RE: Can anyone help me how to unsubscribe


Welcome to the Hotel California

Mark

-Original Message-
From: Krishnamoorthy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 1:12 AM
To: Struts Users Mailing List
Subject: Can anyone help me how to unsubscribe


Actually I tried in all the possible ways to unsubscribe.
Not only me lots of other guys are tring to do it.but no use ,
could anyone help us to unsubscribe from struts.

Thanks
Kicha


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

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



RE: Can anyone help me how to unsubscribe

2002-02-06 Thread Bill Page

actually it was McCoy.

bill page
[EMAIL PROTECTED]
Digital Garden Software, Inc.
856 US Hwy 206 Bldg B Ste 15
Hillsborough, NJ 08844
908.904.0664



 
 
  Good luck.   Remember Scotty never did trust the transporters.
 
 
 Jim Berg 
 Sr. Software Specialist
 PSCI
 [EMAIL PROTECTED]

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




Can anyone help me how to unsubscribe

2002-02-05 Thread Krishnamoorthy

Actually I tried in all the possible ways to unsubscribe.
Not only me lots of other guys are tring to do it.but no use ,
could anyone help us to unsubscribe from struts.

Thanks
Kicha


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




Re: Can anyone help me how to unsubscribe

2002-02-05 Thread Antony Stace
Kicha

What does sending mail to

[EMAIL PROTECTED]

do?


On Wed, 06 Feb 2002 11:41:54 +0530
Krishnamoorthy [EMAIL PROTECTED] wrote:

 Actually I tried in all the possible ways to unsubscribe.
 Not only me lots of other guys are tring to do it.but no use ,
 could anyone help us to unsubscribe from struts.
 
 Thanks
 Kicha
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


-- 


Cheers

Tony$B!#(B
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Fw: Can anyone help on this?

2001-11-20 Thread Konstantina Stamopoulou

Christoph,
I had exactly the same problem and this was happening because ...- see the
answer from Cedric below.
What I did for my case was to forward the control in the Action class to the
template
(  return (new ActionForward(/company.jsp)); company.jsp is the template).
So you can call the .do file from the directly and you will get the
template.
 I haven't used tiles yet, but I'm working on them.

Konstantina


- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 12:05 PM
Subject: Re: Can anyone help on this?



   I think you can't call an action as template region. The problem come
from JSP
 : you can't do a forward or sendRedirect once you have start written
 something in output. Your action probably do a forward, but as you have
already
 written something in header, sidebar, ..., this cause an exception.

   Try to use Tiles library instead of templates. Think of it as an
extended
 templates library. You don't need to change your pages, just download
tiles.jar
 (or tilesForStruts1.0.jar), and instruct your web server to use
tiles.tld
 instead of struts-template.tld. This is done by adding or changing
following
 line in your web.xml :

   taglib
 taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical
name used
 in your jsp file --!
 taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri
of
 tiles.tld --!
   /taglib


Hope this help,

 Cedric

 Konstantina Stamopoulou wrote:

  Well Tom I think you are right.
  The input I gave you was insufficient so here is all the story.
 
  THE .JSP USING THE TEMPLATE
  template:insert template='/chapterTemplate.jsp'
 template:put name='header' content='/company.html' /
  template:put name='sidebar' content='/sidebar.jsp' /
  template:put name='content' content='/test.do'/
  template:put name='footer' content='/footer.html'/
  /template:insert
 
  THE ERROR
 
  Included servlet error: 500
  Location: /template-dina/company.jsp
  Error Location: /template-dina/test.do
 
  Root cause:
  javax.servlet.jsp.JspException: Servlet Exception
   at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
   at
 
_0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
  y_jsp_4.java:221)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
  va:130)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va:282)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
   at
 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)
 
  I really appreciate your help.
 
  - Original Message -
  From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, November 16, 2001 11:09 AM
  Subject: RE: Can anyone help on this?
 
   Hard to answer this one, isn't it?
  
   First of all, maybe others on the list can get something out of the
root
   cause but are frustrated now because you obviously don't want to show
   it.
  
   Secondly, _how_ do you call the .do file? Showing us a snippet of
your
   page could help narrow down the guessing work.
  
   Thirdly, I don't see any reason why a .do file could not be used in a
   template tag (supposing you mean the insert tag), since the tag asks
   for a URI. But I could be wrong on this one.
  
  
   tomK
  
  
-Original Message-
From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 16 november 2001 9:33
To: Struts Users Mailing List
Subject: Re: Can anyone help on this?
   
   
Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the
control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??
   
Thanx again,
Konstantina
   
   
- Original Message

Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??

Thanx again,
Konstantina


- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?


 look further down the stack trace, starting from the line Root cause.
 This might give you something more to work with ...

 hth,
 tomK

  -Original Message-
  From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
  Sent: donderdag 15 november 2001 12:56
  To: Struts Users Mailing List
  Subject: Can anyone help on this?
 
 
  Hello,
  I'm using a template for my application and for the main
  content I want to display a table from a database.
  When I access the database.do using a URL I get all the data
  correctly.
  When I use this database.do file in the .jsp that uses the
  template I get :
 
  javax.servlet.ServletException: Servlet Exception
  at
  org.apache.jasper.runtime.PageContextImpl.handlePageException(
  PageContextImpl.java:459)
  at
  _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
  0002ejspcompany_jsp_3.java:234)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 
 
  How should I handle this error?
 
  Thanx in advance.
 

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




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




RE: Can anyone help on this?

2001-11-16 Thread Tom Klaasen (TeleRelay)

Hard to answer this one, isn't it?

First of all, maybe others on the list can get something out of the root
cause but are frustrated now because you obviously don't want to show
it.

Secondly, _how_ do you call the .do file? Showing us a snippet of your
page could help narrow down the guessing work.

Thirdly, I don't see any reason why a .do file could not be used in a
template tag (supposing you mean the insert tag), since the tag asks
for a URI. But I could be wrong on this one.


tomK


 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] 
 Sent: vrijdag 16 november 2001 9:33
 To: Struts Users Mailing List
 Subject: Re: Can anyone help on this?
 
 
 Thanx for the advice Tom but I couldn't get much from the error.
 What I did was to to call the .do file and forward the 
 control to the .jsp
 that uses the template.
 Generally, is it illegal to use .do files within a template tag??
 
 Thanx again,
 Konstantina
 
 
 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, November 15, 2001 4:06 PM
 Subject: RE: Can anyone help on this?
 
 
  look further down the stack trace, starting from the line 
 Root cause.
  This might give you something more to work with ...
 
  hth,
  tomK
 
   -Original Message-
   From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
   Sent: donderdag 15 november 2001 12:56
   To: Struts Users Mailing List
   Subject: Can anyone help on this?
  
  
   Hello,
   I'm using a template for my application and for the main
   content I want to display a table from a database.
   When I access the database.do using a URL I get all the data
   correctly.
   When I use this database.do file in the .jsp that uses the
   template I get :
  
   javax.servlet.ServletException: Servlet Exception
   at
   org.apache.jasper.runtime.PageContextImpl.handlePageException(
   PageContextImpl.java:459)
   at
   _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
   0002ejspcompany_jsp_3.java:234)
   at
   
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  
  
   How should I handle this error?
  
   Thanx in advance.
  
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: Can anyone help on this?

2001-11-16 Thread Tom Klaasen (TeleRelay)

Thank you...

Now you can see that there seems a Servlet Exception to be triggered
inside the test.do action. Unfortunately, the exact error message is
hidden by struts.

If you open up the code for org.apache.struts.taglib.template.InsertTag,
and replace line 149 with
throw new JspException(Error calling the specified URI, e);
you should get even more information about the exact origin of the
error.

It's like a walk in a very dark cave with a very small penlight
searching for a very small rock, I know, but that's just the fun of
programming ;-)

hth,
tomK

 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] 
 Sent: vrijdag 16 november 2001 10:25
 To: Struts Users Mailing List
 Subject: Re: Can anyone help on this?
 
 
 Well Tom I think you are right.
 The input I gave you was insufficient so here is all the story.
 
 THE .JSP USING THE TEMPLATE
 template:insert template='/chapterTemplate.jsp'
template:put name='header' content='/company.html' /
 template:put name='sidebar' content='/sidebar.jsp' /
 template:put name='content' content='/test.do'/
 template:put name='footer' content='/footer.html'/
 /template:insert
 
 
 THE ERROR
 
 Included servlet error: 500
 Location: /template-dina/company.jsp
 Error Location: /template-dina/test.do
 
 Root cause:
 javax.servlet.jsp.JspException: Servlet Exception
  at 
 org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag
 .java:149)
  at
 _0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_
 0002ejspcompan
 y_jsp_4.java:221)
  at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service
 (JspServlet.ja
 va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.ja
 va:282)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
 .java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextM
 anager.java:81
 2)
  at 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
  at
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection(HttpC
 onnectionHandler.java:213)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
 t.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
 ol.java:501)
  at java.lang.Thread.run(Thread.java:484)
 
 I really appreciate your help.
 
 
 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, November 16, 2001 11:09 AM
 Subject: RE: Can anyone help on this?
 
 
  Hard to answer this one, isn't it?
 
  First of all, maybe others on the list can get something 
 out of the root
  cause but are frustrated now because you obviously don't 
 want to show
  it.
 
  Secondly, _how_ do you call the .do file? Showing us a 
 snippet of your
  page could help narrow down the guessing work.
 
  Thirdly, I don't see any reason why a .do file could not be 
 used in a
  template tag (supposing you mean the insert tag), since 
 the tag asks
  for a URI. But I could be wrong on this one.
 
 
  tomK
 
 
   -Original Message-
   From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
   Sent: vrijdag 16 november 2001 9:33
   To: Struts Users Mailing List
   Subject: Re: Can anyone help on this?
  
  
   Thanx for the advice Tom but I couldn't get much from the error.
   What I did was to to call the .do file and forward the
   control to the .jsp
   that uses the template.
   Generally, is it illegal to use .do files within a template tag??
  
   Thanx again,
   Konstantina
  
  
   - Original Message -
   From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, November 15, 2001 4:06 PM
   Subject: RE: Can anyone help on this?
  
  
look further down the stack trace, starting from the line
   Root cause.
This might give you something more to work with ...
   
hth,
tomK
   
 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 15 november 2001 12:56
 To: Struts Users Mailing List
 Subject: Can anyone help on this?


 Hello,
 I'm using a template for my application and for the main
 content I want to display a table from a database.
 When I access the database.do using a URL I get all the data
 correctly

Re: Can anyone help on this?

2001-11-16 Thread Cedric Dumoulin


  I think you can't call an action as template region. The problem come from JSP
: you can't do a forward or sendRedirect once you have start written
something in output. Your action probably do a forward, but as you have already
written something in header, sidebar, ..., this cause an exception.

  Try to use Tiles library instead of templates. Think of it as an extended
templates library. You don't need to change your pages, just download tiles.jar
(or tilesForStruts1.0.jar), and instruct your web server to use tiles.tld
instead of struts-template.tld. This is done by adding or changing following
line in your web.xml :

  taglib
taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical name used
in your jsp file --!
taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri of
tiles.tld --!
  /taglib


   Hope this help,

Cedric

Konstantina Stamopoulou wrote:

 Well Tom I think you are right.
 The input I gave you was insufficient so here is all the story.

 THE .JSP USING THE TEMPLATE
 template:insert template='/chapterTemplate.jsp'
template:put name='header' content='/company.html' /
 template:put name='sidebar' content='/sidebar.jsp' /
 template:put name='content' content='/test.do'/
 template:put name='footer' content='/footer.html'/
 /template:insert

 THE ERROR

 Included servlet error: 500
 Location: /template-dina/company.jsp
 Error Location: /template-dina/test.do

 Root cause:
 javax.servlet.jsp.JspException: Servlet Exception
  at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
  at
 _0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
 y_jsp_4.java:221)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
 va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:282)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 2)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
  at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:213)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
  at java.lang.Thread.run(Thread.java:484)

 I really appreciate your help.

 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, November 16, 2001 11:09 AM
 Subject: RE: Can anyone help on this?

  Hard to answer this one, isn't it?
 
  First of all, maybe others on the list can get something out of the root
  cause but are frustrated now because you obviously don't want to show
  it.
 
  Secondly, _how_ do you call the .do file? Showing us a snippet of your
  page could help narrow down the guessing work.
 
  Thirdly, I don't see any reason why a .do file could not be used in a
  template tag (supposing you mean the insert tag), since the tag asks
  for a URI. But I could be wrong on this one.
 
 
  tomK
 
 
   -Original Message-
   From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
   Sent: vrijdag 16 november 2001 9:33
   To: Struts Users Mailing List
   Subject: Re: Can anyone help on this?
  
  
   Thanx for the advice Tom but I couldn't get much from the error.
   What I did was to to call the .do file and forward the
   control to the .jsp
   that uses the template.
   Generally, is it illegal to use .do files within a template tag??
  
   Thanx again,
   Konstantina
  
  
   - Original Message -
   From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, November 15, 2001 4:06 PM
   Subject: RE: Can anyone help on this?
  
  
look further down the stack trace, starting from the line
   Root cause.
This might give you something more to work with ...
   
hth,
tomK
   
 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 15 november 2001 12:56
 To: Struts Users Mailing List
 Subject: Can anyone help on this?


 Hello,
 I'm using a template for my application and for the main
 content I want to display a table from a database.
 When I access

Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Now it makes sence Cedric.
My Action class indeed makes a forward so this must be the problem.
I'll try the tiles lib to see the extra functionality.

Many thanx



- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 12:05 PM
Subject: Re: Can anyone help on this?



   I think you can't call an action as template region. The problem come
from JSP
 : you can't do a forward or sendRedirect once you have start written
 something in output. Your action probably do a forward, but as you have
already
 written something in header, sidebar, ..., this cause an exception.

   Try to use Tiles library instead of templates. Think of it as an
extended
 templates library. You don't need to change your pages, just download
tiles.jar
 (or tilesForStruts1.0.jar), and instruct your web server to use
tiles.tld
 instead of struts-template.tld. This is done by adding or changing
following
 line in your web.xml :

   taglib
 taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical
name used
 in your jsp file --!
 taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri
of
 tiles.tld --!
   /taglib


Hope this help,

 Cedric

 Konstantina Stamopoulou wrote:

  Well Tom I think you are right.
  The input I gave you was insufficient so here is all the story.
 
  THE .JSP USING THE TEMPLATE
  template:insert template='/chapterTemplate.jsp'
 template:put name='header' content='/company.html' /
  template:put name='sidebar' content='/sidebar.jsp' /
  template:put name='content' content='/test.do'/
  template:put name='footer' content='/footer.html'/
  /template:insert
 
  THE ERROR
 
  Included servlet error: 500
  Location: /template-dina/company.jsp
  Error Location: /template-dina/test.do
 
  Root cause:
  javax.servlet.jsp.JspException: Servlet Exception
   at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
   at
 
_0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
  y_jsp_4.java:221)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
  va:130)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va:282)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
   at
 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)
 
  I really appreciate your help.
 
  - Original Message -
  From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, November 16, 2001 11:09 AM
  Subject: RE: Can anyone help on this?
 
   Hard to answer this one, isn't it?
  
   First of all, maybe others on the list can get something out of the
root
   cause but are frustrated now because you obviously don't want to show
   it.
  
   Secondly, _how_ do you call the .do file? Showing us a snippet of
your
   page could help narrow down the guessing work.
  
   Thirdly, I don't see any reason why a .do file could not be used in a
   template tag (supposing you mean the insert tag), since the tag asks
   for a URI. But I could be wrong on this one.
  
  
   tomK
  
  
-Original Message-
From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 16 november 2001 9:33
To: Struts Users Mailing List
Subject: Re: Can anyone help on this?
   
   
Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the
control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??
   
Thanx again,
Konstantina
   
   
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?
   
   
 look further down the stack trace, starting

Re: Can anyone help on this?

2001-11-16 Thread Cedric Dumoulin


  Oops, I forgot something : if you use Tiles to solve your problem, you need to use
Tiles servlet. This is this servlet who do a include rather than a forward after an
insert.

  Cedric

Cedric Dumoulin wrote:

   I think you can't call an action as template region. The problem come from JSP
 : you can't do a forward or sendRedirect once you have start written
 something in output. Your action probably do a forward, but as you have already
 written something in header, sidebar, ..., this cause an exception.

   Try to use Tiles library instead of templates. Think of it as an extended
 templates library. You don't need to change your pages, just download tiles.jar
 (or tilesForStruts1.0.jar), and instruct your web server to use tiles.tld
 instead of struts-template.tld. This is done by adding or changing following
 line in your web.xml :

   taglib
 taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical name used
 in your jsp file --!
 taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri of
 tiles.tld --!
   /taglib

Hope this help,

 Cedric

 Konstantina Stamopoulou wrote:

  Well Tom I think you are right.
  The input I gave you was insufficient so here is all the story.
 
  THE .JSP USING THE TEMPLATE
  template:insert template='/chapterTemplate.jsp'
 template:put name='header' content='/company.html' /
  template:put name='sidebar' content='/sidebar.jsp' /
  template:put name='content' content='/test.do'/
  template:put name='footer' content='/footer.html'/
  /template:insert
 
  THE ERROR
 
  Included servlet error: 500
  Location: /template-dina/company.jsp
  Error Location: /template-dina/test.do
 
  Root cause:
  javax.servlet.jsp.JspException: Servlet Exception
   at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
   at
  _0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
  y_jsp_4.java:221)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
  va:130)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va:282)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
  org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at
  org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
   at
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)
 
  I really appreciate your help.
 
  - Original Message -
  From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, November 16, 2001 11:09 AM
  Subject: RE: Can anyone help on this?
 
   Hard to answer this one, isn't it?
  
   First of all, maybe others on the list can get something out of the root
   cause but are frustrated now because you obviously don't want to show
   it.
  
   Secondly, _how_ do you call the .do file? Showing us a snippet of your
   page could help narrow down the guessing work.
  
   Thirdly, I don't see any reason why a .do file could not be used in a
   template tag (supposing you mean the insert tag), since the tag asks
   for a URI. But I could be wrong on this one.
  
  
   tomK
  
  
-Original Message-
From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 16 november 2001 9:33
To: Struts Users Mailing List
Subject: Re: Can anyone help on this?
   
   
Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the
control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??
   
Thanx again,
Konstantina
   
   
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?
   
   
 look further down the stack trace, starting from the line
Root cause.
 This might give you something more to work with ...

 hth,
 tomK

  -Original Message

Can anyone help on this?

2001-11-15 Thread Konstantina Stamopoulou

Hello,
I'm using a template for my application and for the main content I want to display a 
table from a database.
When I access the database.do using a URL I get all the data correctly.
When I use this database.do file in the .jsp that uses the template I get :

javax.servlet.ServletException: Servlet Exception
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
_0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_0002ejspcompany_jsp_3.java:234)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)


How should I handle this error?

Thanx in advance.



RE: Can anyone help on this?

2001-11-15 Thread Tom Klaasen (TeleRelay)

look further down the stack trace, starting from the line Root cause.
This might give you something more to work with ...

hth,
tomK

 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] 
 Sent: donderdag 15 november 2001 12:56
 To: Struts Users Mailing List
 Subject: Can anyone help on this?
 
 
 Hello,
 I'm using a template for my application and for the main 
 content I want to display a table from a database.
 When I access the database.do using a URL I get all the data 
 correctly.
 When I use this database.do file in the .jsp that uses the 
 template I get :
 
 javax.servlet.ServletException: Servlet Exception
   at 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImpl.java:459)
   at 
 _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
 0002ejspcompany_jsp_3.java:234)
   at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 
 
 How should I handle this error?
 
 Thanx in advance.
 

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




Frustrated, can anyone help?

2001-06-26 Thread Wes Bramhall

Ok... I've tried and tried to figure this out, with some help from this
group, to no avail.  I'm just trying to get the example to run.  I'm going
to try some more.
I'm running JRUN on a Win2k box, so any help either needs to be specific to
JRUN so I can use it, or totally generalized, so I can hopefully figure out
how things relate and go from there.
Attached are my web.xml, struts-config.xml, and
ApplicationResources.properties.  They are all located in C:\Program
Files\Allaire\JRun\servers\default\Struts Example\WEB-INF\
Struts.jar is in C:\Program Files\Allaire\JRun\servers\lib, which is in the
classpath of the JRUN server.


This is the error I get:

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at
allaire.jrun.file.FileServlet.service(../file/FileServlet.java:159)
at
allaire.jrun.servlet.JRunServletPool.service(../servlet/JRunServletPool.java
:90)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


 web.xml
 ApplicationResources.properties
 struts-config.xml


RE: Frustrated, can anyone help?

2001-06-26 Thread Gogineni, Pratima

Can you try moving the application.properties file under web-inf/classes.

Also I remember reading that the strut.jar file should be under struts
example\web-inf\lib
and there were errors when you try to put it into the appserver classpath
...

-Original Message-
From: Wes Bramhall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 9:31 AM
To: '[EMAIL PROTECTED]'
Subject: Frustrated, can anyone help?


Ok... I've tried and tried to figure this out, with some help from this
group, to no avail.  I'm just trying to get the example to run.  I'm going
to try some more.
I'm running JRUN on a Win2k box, so any help either needs to be specific to
JRUN so I can use it, or totally generalized, so I can hopefully figure out
how things relate and go from there.
Attached are my web.xml, struts-config.xml, and
ApplicationResources.properties.  They are all located in C:\Program
Files\Allaire\JRun\servers\default\Struts Example\WEB-INF\
Struts.jar is in C:\Program Files\Allaire\JRun\servers\lib, which is in the
classpath of the JRUN server.


This is the error I get:

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at
allaire.jrun.file.FileServlet.service(../file/FileServlet.java:159)
at
allaire.jrun.servlet.JRunServletPool.service(../servlet/JRunServletPool.java
:90)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)




Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-25 Thread Eda Srinivasareddy Eda
 Hi Smith
Could u please send the javascript code related to back button problem.
Thanks
Eda
 Spencer Smith [EMAIL PROTECTED] wrote: 




That won't work. I solved the problem using javascript. Javascript doesn't cache like JSP pages does, so you can get around this problem using javascript.

If you want, I can send you the code I use.

- Original Message - 
From: Thane Eisener 
To: '[EMAIL PROTECTED]' 
Sent: Thursday, June 07, 2001 10:12 AM
Subject: RE: Can anyone help with solving the "BACK" button problem, in th e browser?

Oops, I guess I should test before I post. It looks like newer browsers don't support this as a META tag only as a header.
I added the following to one of my action classes and the perform() method was called when I pressed 'Back': 
response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
Hope it helps, Thane 
-Original Message- From: Peter Alfors [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: Re: Can anyone help with solving the "BACK" button problem, in th e browser? 
Thane , 
I am using:  META http-equiv="Expires" content="now" in my header, and my action is not re-executed when I use the browser back button. Is there another option I should be using? 
thanks,  Pete 
Thane Eisener wrote: 
   I seem to recall a META tag called something like pragma-no-cache that  you can embed in your page which will force the page to reload (not  just display a snapshot). This should enable handling the situation in  scriptlets or your action class.   -Original Message-  From: Peter Alfors [mailto:[EMAIL PROTECTED]]  Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  Subject: Re: Can anyone help with solving the "BACK" button problem,  in  the browser?   Depending on which browser you use, and the data on the page, the back  button  may cause (or ask) the page to reload.  However, some browsers (like IE) only display a snapshot of what the  last page  rendered to.  Therefore, you cannot use scriptlets or the action class. However,  you are able  to kick-off javascript.  If you can gaurantee that your users will have javascript enabled, you  can write  a simple test to see if this page was already displayed to the user.  You could  check a flag (hidden field) when the page loads. If the flag is true,  then use  the javascript to reload to your desired page.   HTH,  Pete   "Dudley Butt@i-Commerce" wrote:Please help, When the user pushes the back button, I want the page to redirect or  refresh   to a different page, please, any ideas? Thanx guys and gals   Dudley Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!http://personal.mail.yahoo.com/

RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-25 Thread Trieu, Danny



isn't 
the init pram of the Action servlet allow you to set no-cache on every out-going 
response?

like 
this:

 
init-param 
param-namenocache/param-name 
param-valuetrue/param-value 
/init-param

  -Original Message-From: Eda Srinivasareddy Eda 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, June 25, 2001 5:09 
  AMTo: [EMAIL PROTECTED]Subject: Re: Can 
  anyone help with solving the "BACK" button problem, in th e 
  browser?
  Hi Smith 
  Could u please send the javascript code related to back button problem. 
  Thanks 
  Eda 
   Spencer Smith [EMAIL PROTECTED] wrote: 
  



That won't work. I solved the problem 
using javascript. Javascript doesn't cache like JSP pages does, so you 
can get around this problem using javascript.

If you want, I can send you the code I 
use.

  - Original Message - 
  From: 
  Thane Eisener 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, June 07, 2001 10:12 
  AM
  Subject: RE: Can anyone help with 
  solving the "BACK" button problem, in th e browser?
  
  Oops, I guess I should test before I post. It looks like 
  newer browsers don't support this as a META tag only as a 
  header.
  I added the following to one of my action classes and the 
  perform() method was called when I pressed 'Back': 
  response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
  Hope it helps, Thane 
  -Original Message- From: 
  Peter Alfors [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: 
  Re: Can anyone help with solving the "BACK" button problem, in 
  th e browser? 
  Thane , 
  I am using:  
  META http-equiv="Expires" content="now" in 
  my header, and my action is not re-executed when I use the browser 
  back button. Is there another 
  option I should be using? 
  thanks,  
  Pete 
  Thane Eisener wrote: 
 I seem to recall a META tag called something like 
  pragma-no-cache that  you can embed in your 
  page which will force the page to reload (not  
  just display a snapshot). This should enable handling the situation 
  in  scriptlets or your action class. 
-Original 
  Message-  From: Peter Alfors [mailto:[EMAIL PROTECTED]] 
   Sent: Thursday, June 07, 2001 9:52 AM 
   To: [EMAIL PROTECTED]  Subject: Re: Can anyone help with solving the "BACK" button 
  problem,  in  the 
  browser?   
  Dependin! g on which browser you use, and the data on the page, the 
  back  button  may 
  cause (or ask) the page to reload.  However, 
  some browsers (like IE) only display a snapshot of what the 
   last page  rendered 
  to.  Therefore, you cannot use scriptlets or 
  the action class. However,  you are 
  able  to kick-off javascript.  If you can gaurantee that your users will have javascript 
  enabled, you  can write  a simple test to see if this page was already displayed to the 
  user.  You could  
  check a flag (hidden field) when the page loads. If the flag is 
  true,  then use ! 
  ; the javascript to reload to your desired page.   HTH,  Pete   "Dudley Butt@i-Commerce" 
  wrote:
  Please help, When the user pushes the back button, I want the page to 
  redirect or  refresh   to a different page, please, any ideas? Thanx guys and 
  gals   Dudley 
  
  
  
  Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
  only $35 a year!http://personal.mail.yahoo.com/


RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-11 Thread Dudley [EMAIL PROTECTED]

thanx, appreciate the suggestion

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 1:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Can anyone help with solving the BACK button problem, in
th e browser?




On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote:

 yes, but this is a form that is being filled in like a wizard type of
thing,
 i need the form to be session
 any ideas, for an alternative?
 

The alternative approach is to have *all* of the input fields for the
entire wizard included on every page -- but the ones you are not
displaying on the current page would be created with html:hidden instead
of html:text or whatever.

Craig



Re: Can anyone help with solving the BACK button problem, in thebr owser?

2001-06-09 Thread Craig R. McClanahan



On Thu, 7 Jun 2001, Dudley Butt@i-Commerce wrote:

 Please help,
 
 When the user pushes the back button, I want the page to redirect or refresh
 to a different page, please, any ideas?
 
 Thanx guys and gals
 Dudley
 

The server doesn't really get involved in the back button -- any solution
to this would require some sort of JavaScript.

Craig






RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-09 Thread Craig R. McClanahan



On Fri, 8 Jun 2001, Dudley Butt@i-Commerce wrote:

 yes, but this is a form that is being filled in like a wizard type of thing,
 i need the form to be session
 any ideas, for an alternative?
 

The alternative approach is to have *all* of the input fields for the
entire wizard included on every page -- but the ones you are not
displaying on the current page would be created with html:hidden instead
of html:text or whatever.

Craig




RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Dudley [EMAIL PROTECTED]
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?



well, 
this will blow all your socks off.
I got 
something to work, and remaining in line with my "REDUCE THE JAVASCRIPT" 
policy
here 
is what i did...

I just 
plugged some code into my actionhandler to evaluate a state property on my 
actionform. If it was a certain state i either perform usual processing or just 
by pass the processing and show the JSP which gets rebuilt 
anyways...

great!!

 public ActionHandlerResponse 
executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest 
request){

 System.out.println("In " + 
this.getClass()); actionFormObject 
= (Vat201ReturnActionForm)form; 
aRequest = request; ActionErrors 
errors = null; if 
(actionFormObject.getRefreshOption()){ // IF THIS IS TRUE DONT ALLOW 
ANY PROCESSING JUST REBUILD JSP
// 
THIS boolean GETS SETAFTERFIRSTTIME PROCESSING 
 
return new 
ActionHandlerResponse(errors,mapping.findForward("success")); 
} errors = 
doFieldValidation(); if (errors != 
null) { 
actionFormObject.setAction("Edit"); 
return new ActionHandlerResponse(errors, new 
ActionForward(mapping.getInput())); 
} else 
{ errors = 
doReturnUpdate(); 
if (errors == null){

 
return new 
ActionHandlerResponse(errors,mapping.findForward("success")); 
} else 
{ 
actionFormObject.setAction("Edit"); 
return new ActionHandlerResponse(errors, new 
ActionForward(mapping.getInput())); 
} 
} //return new 
ActionHandlerResponse(errors, 
mapping.findForward("mainMenu")); 
}



  -Original Message-From: Spencer Smith 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 07, 2001 7:44 
  PMTo: [EMAIL PROTECTED]Subject: Re: Can 
  anyone help with solving the "BACK" button problem, in th e 
  browser?
  That won't work. I solved the problem using 
  javascript. Javascript doesn't cache like JSP pages does, so you can get 
  around this problem using javascript.
  
  If you want, I can send you the code I 
  use.
  
- Original Message - 
From: 
Thane Eisener 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, June 07, 2001 10:12 
AM
Subject: RE: Can anyone help with 
solving the "BACK" button problem, in th e browser?

Oops, I guess I should test before I post. It looks like 
newer browsers don't support this as a META tag only as a header.
I added the following to one of my action classes and the 
perform() method was called when I pressed 'Back': 
response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
Hope it helps, Thane 
-Original Message----- From: 
    Peter Alfors [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: 
Re: Can anyone help with solving the "BACK" button problem, in 
th e browser? 
Thane , 
I am using:  
META http-equiv="Expires" content="now" in 
my header, and my action is not re-executed when I use the browser 
back button. Is there another 
option I should be using? 
thanks,  
Pete 
Thane Eisener wrote: 
   I seem to recall a META tag called something like 
pragma-no-cache that  you can embed in your page 
which will force the page to reload (not  just 
display a snapshot). This should enable handling the situation in 
 scriptlets or your action class.   -Original Message- 
 From: Peter Alfors [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  
Subject: Re: Can anyone help with solving the "BACK" button problem, 
 in  the browser? 
  Depending on which 
browser you use, and the data on the page, the back  button  may cause (or ask) the page 
to reload.  However, some browsers (like IE) 
only display a snapshot of what the  last 
page  rendered to.  
Therefore, you cannot use scriptlets or the action class. 
However,  you are able  to kick-off javascript.  If you can 
gaurantee that your users will have javascript enabled, you  can write  a simple test to see if 
this page was already displayed to the user.  
You could  check a flag (hidden field) when the 
page loads. If the flag is true,  then 
use  the javascript to reload to your desired 
page.   HTH, 
 Pete   "Dudley Butt@i-Commerce" 
wrote:Please 
help, 
When the user pushes the back button, I want the page to redirect or 
 refresh   to a 
different page, please, any ideas?   
  Thanx guys and gals  
 Dudley 


RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Dudley [EMAIL PROTECTED]
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?



the 
solution i posted means that the user can push the BACK button, but we have full 
control via the actionhandler, as to how much processing we will allow the user 
to perform, simply just by evaluating some previously set 
formproperties
[Dudley Butt@i-Commerce]
-Original 
Message-From: Spencer Smith 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, June 07, 2001 7:44 
PMTo: [EMAIL PROTECTED]Subject: Re: Can 
anyone help with solving the "BACK" button problem, in th e 
browser?

  That won't work. I solved the problem using 
  javascript. Javascript doesn't cache like JSP pages does, so you can get 
  around this problem using javascript.
  
  If you want, I can send you the code I 
  use.
  
- Original Message - 
From: 
Thane Eisener 
To: '[EMAIL PROTECTED]' 

Sent: Thursday, June 07, 2001 10:12 
AM
    Subject: RE: Can anyone help with 
solving the "BACK" button problem, in th e browser?

Oops, I guess I should test before I post. It looks like 
newer browsers don't support this as a META tag only as a header.
I added the following to one of my action classes and the 
perform() method was called when I pressed 'Back': 
response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
Hope it helps, Thane 
-Original Message- From: 
Peter Alfors [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: 
Re: Can anyone help with solving the "BACK" button problem, in 
th e browser? 
Thane , 
I am using:  
META http-equiv="Expires" content="now" in 
my header, and my action is not re-executed when I use the browser 
back button. Is there another 
option I should be using? 
thanks,  
Pete 
Thane Eisener wrote: 
   I seem to recall a META tag called something like 
pragma-no-cache that  you can embed in your page 
which will force the page to reload (not  just 
display a snapshot). This should enable handling the situation in 
 scriptlets or your action class.   -Original Message- 
 From: Peter Alfors [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  
Subject: Re: Can anyone help with solving the "BACK" button problem, 
 in  the browser? 
  Depending on which 
browser you use, and the data on the page, the back  button  may cause (or ask) the page 
to reload.  However, some browsers (like IE) 
only display a snapshot of what the  last 
page  rendered to.  
Therefore, you cannot use scriptlets or the action class. 
However,  you are able  to kick-off javascript.  If you can 
gaurantee that your users will have javascript enabled, you  can write  a simple test to see if 
this page was already displayed to the user.  
You could  check a flag (hidden field) when the 
page loads. If the flag is true,  then 
use  the javascript to reload to your desired 
page.   HTH, 
 Pete   "Dudley Butt@i-Commerce" 
wrote:Please 
help, 
When the user pushes the back button, I want the page to redirect or 
 refresh   to a 
different page, please, any ideas?   
  Thanx guys and gals  
 Dudley 


Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread William Jaynes

Just a comment... Looks like your method of checking the RefreshOption
property will only work if the scope of the ActionForm is session.
That's ok if one doesn't mind the use of resources.

- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 5:34 AM
Subject: RE: Can anyone help with solving the BACK button problem, in
th e browser?


 well, this will blow all your socks off.
 I got something to work, and remaining in line with my REDUCE THE
 JAVASCRIPT policy
 here is what i did...

 I just plugged some code into my actionhandler to evaluate a state
property
 on my actionform. If it was a certain state i either perform usual
 processing or just by pass the processing and show the JSP which gets
 rebuilt anyways...

 great!!

 public ActionHandlerResponse executeAction(ActionMapping mapping,
 ActionForm form, HttpServletRequest request){

 System.out.println(In  + this.getClass());
 actionFormObject = (Vat201ReturnActionForm)form;
 aRequest = request;
 ActionErrors errors = null;
 if (actionFormObject.getRefreshOption()){   // IF THIS IS TRUE
DONT
 ALLOW ANY PROCESSING JUST REBUILD JSP
 // THIS boolean GETS SET AFTER FIRST TIME PROCESSING
 return new
 ActionHandlerResponse(errors,mapping.findForward(success));
 }
 errors = doFieldValidation();
 if (errors != null) {
 actionFormObject.setAction(Edit);
 return new ActionHandlerResponse(errors, new
 ActionForward(mapping.getInput()));
 }
 else {
 errors = doReturnUpdate();
 if (errors == null){

 return new
 ActionHandlerResponse(errors,mapping.findForward(success));
 }
 else {
 actionFormObject.setAction(Edit);
 return new ActionHandlerResponse(errors, new
 ActionForward(mapping.getInput()));
 }
 }
 //return new ActionHandlerResponse(errors,
 mapping.findForward(mainMenu));
 }








Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Jeff Trent

Another approach I would recommend to solve this problem (haven't tried it
though), would be to check the request referer.  If it is an empty string
then the user either clicked refresh or they typed in the URL into the
address field on their browser.


- Original Message -
From: William Jaynes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 7:40 AM
Subject: Re: Can anyone help with solving the BACK button problem, in th e
browser?


 Just a comment... Looks like your method of checking the RefreshOption
 property will only work if the scope of the ActionForm is session.
 That's ok if one doesn't mind the use of resources.

 - Original Message -
 From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 08, 2001 5:34 AM
 Subject: RE: Can anyone help with solving the BACK button problem, in
 th e browser?


  well, this will blow all your socks off.
  I got something to work, and remaining in line with my REDUCE THE
  JAVASCRIPT policy
  here is what i did...
 
  I just plugged some code into my actionhandler to evaluate a state
 property
  on my actionform. If it was a certain state i either perform usual
  processing or just by pass the processing and show the JSP which gets
  rebuilt anyways...
 
  great!!
 
  public ActionHandlerResponse executeAction(ActionMapping mapping,
  ActionForm form, HttpServletRequest request){
 
  System.out.println(In  + this.getClass());
  actionFormObject = (Vat201ReturnActionForm)form;
  aRequest = request;
  ActionErrors errors = null;
  if (actionFormObject.getRefreshOption()){   // IF THIS IS TRUE
 DONT
  ALLOW ANY PROCESSING JUST REBUILD JSP
  // THIS boolean GETS SET AFTER FIRST TIME PROCESSING
  return new
  ActionHandlerResponse(errors,mapping.findForward(success));
  }
  errors = doFieldValidation();
  if (errors != null) {
  actionFormObject.setAction(Edit);
  return new ActionHandlerResponse(errors, new
  ActionForward(mapping.getInput()));
  }
  else {
  errors = doReturnUpdate();
  if (errors == null){
 
  return new
  ActionHandlerResponse(errors,mapping.findForward(success));
  }
  else {
  actionFormObject.setAction(Edit);
  return new ActionHandlerResponse(errors, new
  ActionForward(mapping.getInput()));
  }
  }
  file://return new ActionHandlerResponse(errors,
  mapping.findForward(mainMenu));
  }
 
 
 
 






RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-08 Thread Dudley [EMAIL PROTECTED]

yes, but this is a form that is being filled in like a wizard type of thing,
i need the form to be session
any ideas, for an alternative?


-Original Message-
From: William Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help with solving the BACK button problem, in
th e browser?


Just a comment... Looks like your method of checking the RefreshOption
property will only work if the scope of the ActionForm is session.
That's ok if one doesn't mind the use of resources.

- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 5:34 AM
Subject: RE: Can anyone help with solving the BACK button problem, in
th e browser?


 well, this will blow all your socks off.
 I got something to work, and remaining in line with my REDUCE THE
 JAVASCRIPT policy
 here is what i did...

 I just plugged some code into my actionhandler to evaluate a state
property
 on my actionform. If it was a certain state i either perform usual
 processing or just by pass the processing and show the JSP which gets
 rebuilt anyways...

 great!!

 public ActionHandlerResponse executeAction(ActionMapping mapping,
 ActionForm form, HttpServletRequest request){

 System.out.println(In  + this.getClass());
 actionFormObject = (Vat201ReturnActionForm)form;
 aRequest = request;
 ActionErrors errors = null;
 if (actionFormObject.getRefreshOption()){   // IF THIS IS TRUE
DONT
 ALLOW ANY PROCESSING JUST REBUILD JSP
 // THIS boolean GETS SET AFTER FIRST TIME PROCESSING
 return new
 ActionHandlerResponse(errors,mapping.findForward(success));
 }
 errors = doFieldValidation();
 if (errors != null) {
 actionFormObject.setAction(Edit);
 return new ActionHandlerResponse(errors, new
 ActionForward(mapping.getInput()));
 }
 else {
 errors = doReturnUpdate();
 if (errors == null){

 return new
 ActionHandlerResponse(errors,mapping.findForward(success));
 }
 else {
 actionFormObject.setAction(Edit);
 return new ActionHandlerResponse(errors, new
 ActionForward(mapping.getInput()));
 }
 }
 //return new ActionHandlerResponse(errors,
 mapping.findForward(mainMenu));
 }







Re: Can anyone help with solving the BACK button problem, in the browser?

2001-06-08 Thread Ted Husted

It's not wrong to have a form in the session context, so long as it is
disposed in the normal course; it's just a convenience that you do not
want to overuse. 

Dudley Butt@i-Commerce wrote:
 
 yes, but this is a form that is being filled in like a wizard type of thing,
 i need the form to be session
 any ideas, for an alternative?
 
 -Original Message-
 From: William Jaynes [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 08, 2001 1:40 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Can anyone help with solving the BACK button problem, in
 th e browser?
 
 Just a comment... Looks like your method of checking the RefreshOption
 property will only work if the scope of the ActionForm is session.
 That's ok if one doesn't mind the use of resources.



Can anyone help with solving the BACK button problem, in the browser?

2001-06-07 Thread Dudley [EMAIL PROTECTED]

Please help,

When the user pushes the back button, I want the page to redirect or refresh
to a different page, please, any ideas?

Thanx guys and gals
Dudley



Re: Can anyone help with solving the BACK button problem, in the browser?

2001-06-07 Thread Peter Alfors

Depending on which browser you use, and the data on the page, the back button
may cause (or ask) the page to reload.
However, some browsers (like IE) only display a snapshot of what the last page
rendered to.
Therefore, you cannot use scriptlets or the action class.  However, you are able
to kick-off javascript.
If you can gaurantee that your users will have javascript enabled, you can write
a simple test to see if this page was already displayed to the user.  You could
check a flag (hidden field) when the page loads.  If the flag is true, then use
the javascript to reload to your desired page.

HTH,
Pete

Dudley Butt@i-Commerce wrote:

 Please help,

 When the user pushes the back button, I want the page to redirect or refresh
 to a different page, please, any ideas?

 Thanx guys and gals
 Dudley


begin:vcard 
n:;
x-mozilla-html:FALSE
org:BRIMG SRC=http://www.irista.com/logo/irista.gif;BRBRFONT Color=#80FONT SIZE=2BBringing Vision to Your Supply Chain
adr:;;
version:2.1
end:vcard



RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Thane Eisener
Title: RE: Can anyone help with solving the BACK button problem, in the  browser?





I seem to recall a META tag called something like pragma-no-cache that you can embed in your page which will force the page to reload (not just display a snapshot). This should enable handling the situation in scriptlets or your action class.


-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 9:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help with solving the BACK button problem, in
the browser?



Depending on which browser you use, and the data on the page, the back button
may cause (or ask) the page to reload.
However, some browsers (like IE) only display a snapshot of what the last page
rendered to.
Therefore, you cannot use scriptlets or the action class. However, you are able
to kick-off javascript.
If you can gaurantee that your users will have javascript enabled, you can write
a simple test to see if this page was already displayed to the user. You could
check a flag (hidden field) when the page loads. If the flag is true, then use
the javascript to reload to your desired page.


HTH,
 Pete


Dudley Butt@i-Commerce wrote:


 Please help,

 When the user pushes the back button, I want the page to redirect or refresh
 to a different page, please, any ideas?

 Thanx guys and gals
 Dudley





RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Thane Eisener
Title: RE: Can anyone help with solving the BACK button problem, in th e  browser?





Try putting both of the following in the HEAD element of your page. Please let us know if it works.
META NAME=Pragma CONTENT=no-cache
META NAME=Cache-Control CONTENT=no-cache


From the HTTP1.1 spec:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.32
14.32 Pragma
The Pragma general-header field is used to include implementation- specific directives that might apply to any recipient along the request/response chain. All pragma directives specify optional behavior from the viewpoint of the protocol; however, some systems MAY require that behavior be consistent with the directives. 

 Pragma = Pragma : 1#pragma-directive
 pragma-directive = no-cache | extension-pragma
 extension-pragma = token [ = ( token | quoted-string ) ]


When the no-cache directive is present in a request message, an application SHOULD forward the request toward the origin server even if it has a cached copy of what is being requested. This pragma directive has the same semantics as the no-cache cache-directive (see section 14.9) and is defined here for backward compatibility with HTTP/1.0. Clients SHOULD include both header fields when a no-cache request is sent to a server not known to be HTTP/1.1 compliant. 

Pragma directives MUST be passed through by a proxy or gateway application, regardless of their significance to that application, since the directives might be applicable to all recipients along the request/response chain. It is not possible to specify a pragma for a specific recipient; however, any pragma directive not relevant to a recipient SHOULD be ignored by that recipient. 

HTTP/1.1 caches SHOULD treat Pragma: no-cache as if the client had sent Cache-Control: no-cache. No new Pragma directives will be defined in HTTP. 

 Note: because the meaning of Pragma: no-cache as a response
 header field is not actually specified, it does not provide a
 reliable replacement for Cache-Control: no-cache in a response



-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help with solving the BACK button problem, in
th e browser?



Thane ,


I am using:
 META http-equiv=Expires content=now
in my header, and my action is not re-executed when I use the browser
back button.
Is there another option I should be using?


thanks,
 Pete



Thane Eisener wrote:




 I seem to recall a META tag called something like pragma-no-cache that
 you can embed in your page which will force the page to reload (not
 just display a snapshot). This should enable handling the situation in
 scriptlets or your action class.

 -Original Message-
 From: Peter Alfors [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 9:52 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Can anyone help with solving the BACK button problem,
 in
 the browser?

 Depending on which browser you use, and the data on the page, the back
 button
 may cause (or ask) the page to reload.
 However, some browsers (like IE) only display a snapshot of what the
 last page
 rendered to.
 Therefore, you cannot use scriptlets or the action class. However,
 you are able
 to kick-off javascript.
 If you can gaurantee that your users will have javascript enabled, you
 can write
 a simple test to see if this page was already displayed to the user.
 You could
 check a flag (hidden field) when the page loads. If the flag is true,
 then use
 the javascript to reload to your desired page.

 HTH,
 Pete

 Dudley Butt@i-Commerce wrote:

  Please help,
 
  When the user pushes the back button, I want the page to redirect or
 refresh
  to a different page, please, any ideas?
 
  Thanx guys and gals
  Dudley





RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Thane Eisener
Title: RE: Can anyone help with solving the BACK button problem, in th e  browser?





Oops, I guess I should test before I post. It looks like newer browsers don't support this as a META tag only as a header.

I added the following to one of my action classes and the perform() method was called when I pressed 'Back':


response.addHeader(Pragma,no-cache);
response.addHeader(Cache-control,no-cache);


Hope it helps,
Thane


-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Can anyone help with solving the BACK button problem, in
th e browser?



Thane ,


I am using:
 META http-equiv=Expires content=now
in my header, and my action is not re-executed when I use the browser
back button.
Is there another option I should be using?


thanks,
 Pete



Thane Eisener wrote:




 I seem to recall a META tag called something like pragma-no-cache that
 you can embed in your page which will force the page to reload (not
 just display a snapshot). This should enable handling the situation in
 scriptlets or your action class.

 -Original Message-
 From: Peter Alfors [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 9:52 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Can anyone help with solving the BACK button problem,
 in
 the browser?

 Depending on which browser you use, and the data on the page, the back
 button
 may cause (or ask) the page to reload.
 However, some browsers (like IE) only display a snapshot of what the
 last page
 rendered to.
 Therefore, you cannot use scriptlets or the action class. However,
 you are able
 to kick-off javascript.
 If you can gaurantee that your users will have javascript enabled, you
 can write
 a simple test to see if this page was already displayed to the user.
 You could
 check a flag (hidden field) when the page loads. If the flag is true,
 then use
 the javascript to reload to your desired page.

 HTH,
 Pete

 Dudley Butt@i-Commerce wrote:

  Please help,
 
  When the user pushes the back button, I want the page to redirect or
 refresh
  to a different page, please, any ideas?
 
  Thanx guys and gals
  Dudley





Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Peter Alfors

Looks like you can also set the Servlet init param nocache to true,
and struts will automatically set the response headers for you.

Thanks,
Pete

Thane Eisener wrote:



 Oops, I guess I should test before I post. It looks like newer
 browsers don't support this as a META tag only as a header.

 I added the following to one of my action classes and the perform()
 method was called when I pressed 'Back':

 response.addHeader(Pragma,no-cache);
 response.addHeader(Cache-control,no-cache);

 Hope it helps,
 Thane

 -Original Message-
 From: Peter Alfors [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 07, 2001 11:35 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Can anyone help with solving the BACK button problem,
 in
 th e browser?

 Thane ,

 I am using:
 META http-equiv=Expires content=now
 in my header, and my action is not re-executed when I use the browser
 back button.
 Is there another option I should be using?

 thanks,
 Pete

 Thane Eisener wrote:

 
 
  I seem to recall a META tag called something like pragma-no-cache
 that
  you can embed in your page which will force the page to reload (not
  just display a snapshot). This should enable handling the situation
 in
  scriptlets or your action class.
 
  -Original Message-
  From: Peter Alfors [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 07, 2001 9:52 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Can anyone help with solving the BACK button problem,

  in
  the browser?
 
  Depending on which browser you use, and the data on the page, the
 back
  button
  may cause (or ask) the page to reload.
  However, some browsers (like IE) only display a snapshot of what the

  last page
  rendered to.
  Therefore, you cannot use scriptlets or the action class.  However,
  you are able
  to kick-off javascript.
  If you can gaurantee that your users will have javascript enabled,
 you
  can write
  a simple test to see if this page was already displayed to the user.

  You could
  check a flag (hidden field) when the page loads.  If the flag is
 true,
  then use
  the javascript to reload to your desired page.
 
  HTH,
  Pete
 
  Dudley Butt@i-Commerce wrote:
 
   Please help,
  
   When the user pushes the back button, I want the page to redirect
 or
  refresh
   to a different page, please, any ideas?
  
   Thanx guys and gals
   Dudley




Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Spencer Smith
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?



That won't work. I solved the problem using 
javascript. Javascript doesn't cache like JSP pages does, so you can get 
around this problem using javascript.

If you want, I can send you the code I 
use.

  - Original Message - 
  From: 
  Thane Eisener 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, June 07, 2001 10:12 
  AM
  Subject: RE: Can anyone help with solving 
  the "BACK" button problem, in th e browser?
  
  Oops, I guess I should test before I post. It looks like newer 
  browsers don't support this as a META tag only as a header.
  I added the following to one of my action classes and the 
  perform() method was called when I pressed 'Back': 
  response.addHeader("Pragma","no-cache"); response.addHeader("Cache-control","no-cache"); 
  Hope it helps, Thane 
  -Original Message- From: Peter 
  Alfors [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, June 07, 2001 11:35 AM To: [EMAIL PROTECTED] Subject: Re: 
  Can anyone help with solving the "BACK" button problem, in th e browser? 
  Thane , 
  I am using:  
  META http-equiv="Expires" content="now" in my 
  header, and my action is not re-executed when I use the browser 
  back button. Is there another option 
  I should be using? 
  thanks,  Pete 
  
  Thane Eisener wrote: 
 
  I seem to recall a META tag called something like pragma-no-cache that 
   you can embed in your page which will force the page to 
  reload (not  just display a snapshot). This should 
  enable handling the situation in  scriptlets or 
  your action class.   
  -Original Message-  From: Peter Alfors [mailto:[EMAIL PROTECTED]] 
   Sent: Thursday, June 07, 2001 9:52 AM  To: [EMAIL PROTECTED]  
  Subject: Re: Can anyone help with solving the "BACK" button problem, 
   in  the browser? 
Depending on which browser 
  you use, and the data on the page, the back  
  button  may cause (or ask) the page to 
  reload.  However, some browsers (like IE) only 
  display a snapshot of what the  last page 
   rendered to.  Therefore, you 
  cannot use scriptlets or the action class. However,  you are able  to kick-off 
  javascript.  If you can gaurantee that your users 
  will have javascript enabled, you  can 
  write  a simple test to see if this page was 
  already displayed to the user.  You could 
   check a flag (hidden field) when the page loads. 
  If the flag is true,  then use  the javascript to reload to your desired page.   HTH,  Pete  
   "Dudley Butt@i-Commerce" wrote:Please help, When the user pushes the 
  back button, I want the page to redirect or  
  refresh   to a different page, please, any 
  ideas? 
  Thanx guys and gals   Dudley