RE : Beginner question: form bean executing but action class not

2004-02-12 Thread f f
The easiest way to learn is look at the working
example(and from book of course). Struts comes with
great example. Compare your xml configurations & and
other things(such as tags), with, say struts-example/web-inf/struts-config.xml.

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: Beginner question: form bean executing but action class not

2004-02-11 Thread f f

you don't supply the controller



I hope this helps,

Fredrich

 

 


-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

RE: Beginner Struts

2003-11-04 Thread Ramadoss Chinnakuzhandai


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 5:26 PM
To: Struts Users Mailing List
Subject: Re: Beginner Struts


Ramadoss Chinnakuzhandai wrote:

> Can anybody suggest which is the best book for beginner to
> understand Struts1.1 in a easy approach...?

Programming Jakarta Struts
by Chuck Cavaness

http://www.amazon.com/exec/obidos/tg/detail/-/0596003285/qid=1067898114/sr=8-2/ref=sr_8_2/102-1084108-9634561?v=glance&n=507846

(a search through the mailing list archives
http://www.mail-archive.com/struts-user%40jakarta.apache.org/  also
reveals a lot on this topic).



-- 
Rick


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


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



Re: Beginner Struts

2003-11-03 Thread Rick Reumann
Ramadoss Chinnakuzhandai wrote:

Can anybody suggest which is the best book for beginner to
understand Struts1.1 in a easy approach...?
Programming Jakarta Struts
by Chuck Cavaness
http://www.amazon.com/exec/obidos/tg/detail/-/0596003285/qid=1067898114/sr=8-2/ref=sr_8_2/102-1084108-9634561?v=glance&n=507846

(a search through the mailing list archives
http://www.mail-archive.com/struts-user%40jakarta.apache.org/  also
reveals a lot on this topic).


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


RE: Beginner

2003-07-22 Thread Hajratwala, Nayan (N.)
If the name of the form you are using is "myform", and the property (field) name you 
want to output is "abc" with a value of "xyz", you can do:



This will output

xyz


---
- Nayan Hajratwala
- Chikli Consulting LLC
- http://www.chikli.com


-Original Message-
From: Radu Focseneanu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 11:09 AM
To: [EMAIL PROTECTED]
Subject: Beginner


Hi, 
I'm a struts beginner, haven't read very much about it, but anyway, here is
my question - i suppose not a very difficult one.
I need to know which tag I could use for simply writng out the value of a
certain field in a . More explicite, instead of writing out
, i just need an output that goes: "xyz".
Thanks a lot, Radu.


-
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: Beginner

2003-07-22 Thread Amit Kirdatt
http://jakarta.apache.org/struts/userGuide/index.html

And also here is the tag I am talking about:

http://jakarta.apache.org/struts/userGuide/struts-bean.html

--Amit
 

-Original Message-
From: Radu Focseneanu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 10:09 AM
To: [EMAIL PROTECTED]
Subject: Beginner


Hi, 
I'm a struts beginner, haven't read very much about it, but anyway, here is
my question - i suppose not a very difficult one.
I need to know which tag I could use for simply writng out the value of a
certain field in a . More explicite, instead of writing out
, i just need an output that goes: "xyz".
Thanks a lot, Radu.


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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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



RE: Beginner

2003-07-22 Thread Jarnot Voytek Contr AU HQ/SC
http://jakarta.apache.org/struts/userGuide/struts-html.html

> -Original Message-
> From: Radu Focseneanu [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 22, 2003 10:09 AM
> To: [EMAIL PROTECTED]
> Subject: Beginner
> 
> 
> Hi, 
> I'm a struts beginner, haven't read very much about it, but 
> anyway, here is
> my question - i suppose not a very difficult one.
> I need to know which tag I could use for simply writng out 
> the value of a
> certain field in a . More explicite, instead of writing out
> , i just need an output that 
> goes: "xyz".
> Thanks a lot, Radu.
> 
> 
> -
> 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: Beginner question

2003-03-19 Thread Steve Stair
I sounds like you WANT to do is redirect to a page that, when reloaded,
will just redisplay the item.

So, you should redirect them to a URL that contains the itemId as a
parameter.



--
Steve Stair


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



RE: Beginner question

2003-03-19 Thread Tai Nguyen
Joshua,

The reset method is called BEFORE the form bean is populated from the
request.  Therefore, it is not possible to lose any data from the user's
form post.  So, the basic flow is: create or reuse Form bean > reset >
populate > validate > Action perform or execute > return forward.

Tai

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 10:17 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: Beginner question


This suggestion brings up another question.  To properly set my boolean
values (radio buttons), my reset method sets my booleans to false.

If I leave my form in session, doesn't the controller call the reset method
after every after every request?  If my booleans equal "true", by the time I
get to my "viewIt" action, won't they be reset to false?








-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:07 AM
To: [EMAIL PROTECTED]
Subject: RE: Beginner question


Have you tried putting itemId into session context instead of request
context?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:00 PM
To: Struts Users Mailing List
Subject: Beginner question


I have two struts actions:

"insertIt" - adds an item to the database.  When successful, this
action forwards to the "viewIt" action putting the newly inserted items
itemId into the request.
"viewIt" - views an item by itemId (retrieves itemId from request)

When "insertIt" successfully completes, It forwards to "viewIt" without a
redirect.  As many of you know, if the user then refreshes the page, the
insert action is performed again.

To solve this problem, I changed the redirect attribute to "true".  The
refresh problem disappears.  However, the request variable "itemId" gets
lost because of the redirect.  

I know this is something every struts developer has worked through.  Could
someone suggest a pattern for this type of transaction?  

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


-
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: Beginner question

2003-03-19 Thread Sri Sankaran
I would shy away from chaining actions.

When the user submits a request to add a new item, the action that handles this 
request should 
(a) call the necessary business layer methods that in turn update
the database
(b) load object(s) needed by the next view (JSP) in the request or
session
(c) forward to the JSP

Sri
-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 8:00 AM
To: Struts Users Mailing List
Subject: Beginner question


I have two struts actions:

"insertIt" - adds an item to the database.  When successful, this action 
forwards to the "viewIt" action putting the newly inserted items itemId into the 
request.
"viewIt" - views an item by itemId (retrieves itemId from request)

When "insertIt" successfully completes, It forwards to "viewIt" without a redirect.  
As many of you know, if the user then refreshes the page, the insert action is 
performed again.

To solve this problem, I changed the redirect attribute to "true".  The refresh 
problem disappears.  However, the request variable "itemId" gets lost because of the 
redirect.  

I know this is something every struts developer has worked through.  Could someone 
suggest a pattern for this type of transaction?  

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


-
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: Beginner question

2003-03-19 Thread White, Joshua A (CASD, IT)
This suggestion brings up another question.  To properly set my boolean
values (radio buttons), my reset method sets my booleans to false.

If I leave my form in session, doesn't the controller call the reset method
after every after every request?  If my booleans equal "true", by the time I
get to my "viewIt" action, won't they be reset to false?








-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 8:07 AM
To: [EMAIL PROTECTED]
Subject: RE: Beginner question


Have you tried putting itemId into session context instead of request
context?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:00 PM
To: Struts Users Mailing List
Subject: Beginner question


I have two struts actions:

"insertIt" - adds an item to the database.  When successful, this
action forwards to the "viewIt" action putting the newly inserted items
itemId into the request.
"viewIt" - views an item by itemId (retrieves itemId from request)

When "insertIt" successfully completes, It forwards to "viewIt" without a
redirect.  As many of you know, if the user then refreshes the page, the
insert action is performed again.

To solve this problem, I changed the redirect attribute to "true".  The
refresh problem disappears.  However, the request variable "itemId" gets
lost because of the redirect.  

I know this is something every struts developer has worked through.  Could
someone suggest a pattern for this type of transaction?  

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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



RE: Beginner question

2003-03-19 Thread Mick . Knutson
Have you tried putting itemId into session context instead of request context?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 2:00 PM
To: Struts Users Mailing List
Subject: Beginner question


I have two struts actions:

"insertIt" - adds an item to the database.  When successful, this
action forwards to the "viewIt" action putting the newly inserted items
itemId into the request.
"viewIt" - views an item by itemId (retrieves itemId from request)

When "insertIt" successfully completes, It forwards to "viewIt" without a
redirect.  As many of you know, if the user then refreshes the page, the
insert action is performed again.

To solve this problem, I changed the redirect attribute to "true".  The
refresh problem disappears.  However, the request variable "itemId" gets
lost because of the redirect.  

I know this is something every struts developer has worked through.  Could
someone suggest a pattern for this type of transaction?  

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: Beginner Tiles Problem

2003-03-06 Thread Cedric Dumoulin


Kuzminski, Nicolas wrote:

Besides, any one knows if it's posible to have an url association with tiles definitions, as we have with actions and, for example, /*.do urls? 
It would be great to have, let's say, /*.def requests

 You can post an enhancement request in bugzilla ;-)

  Cedric

Saludos, Nicolas.

-Original Message-
From: Kuzminski, Nicolas 
Sent: Martes, 04 de Marzo de 2003 17:30
To: Struts Users Mailing List
Subject: RE: Beginner Tiles Problem

The problem is, you can't use a definition as a plain forward. It does not work as a url. Try this instead:


 
 
   

(those two forwards are required, don't know why)

And redefine the forward:

   

So now you have a real url that points to a definition: /go.do?def=anydef.

Saludos, Nicolas.

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Martes, 04 de Marzo de 2003 17:28
To: [EMAIL PROTECTED]
Subject: Beginner Tiles Problem
I have successfully set up tiles using a tiles-def.xml file.  In this file,
I have set up a definition for "my.default".
I have been successfully able to view this layout by inserting the following
code into a jsp:
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-tiles" prefix="tiles"%>

Again, this works fine.  I have been attempting to declare a global forward
mapping for the same layout:
   
   
   
I have inserted the following code into a jsp file to test the forwards:
<%@ taglib uri="struts-logic" prefix="logic"%>

When I hit the page containing this code, Tomcat gives me a 404 ("The
requested resource (/myapp/my.default) is not available.").  Whats happening
here?  

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.

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



"AVISO DE CONFIDENCIALIDAD. Este mensaje y la información incluída en él es confidencial y está dirigida únicamente al destinatario. Puede contener información privilegiada, confidencial, amparada por el secreto profesional y/o que no deba ser revelada. Si Usted ha recibido este mail por error, por favor comuníquenoslo inmediatamente via e-mail y tenga la amabilidad de eliminarlo de su sistema. Queda notificado que no deberá copiar este mensaje ni utilizar, divulgar, publicar o distribuir su contenido de modo alguno. Todo mensaje enviado a esta dirección de correo electrónico puede ser sujeto a inspección por alguien distinto de su receptor originario. Muchas gracias.

CONFIDENTIALITY NOTICE. The information contained in this message may be privileged and confidential and protected from disclosure. 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 notify us immediately by replying to this message and then delete it from your computer. All e-mail sent to this address will be received by the Meridian Financial S.A and/or Providian Bank S.A corporate e-mail system and is subject to archiving and review by someone other than the recipient. 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: Beginner Tiles Problem

2003-03-04 Thread White, Joshua A (CASD, IT)
Hmm,

I got the idea from Chuck Cavaness's book (Programming Jakarta Struts).  On
page 347, he does this.  Perhaps the book is wrong.  Does Chuck frequent
this list?

Joshua



-Original Message-
From: Kuzminski, Nicolas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 3:33 PM
To: Struts Users Mailing List
Subject: RE: Beginner Tiles Problem


Besides, any one knows if it's posible to have an url association with tiles
definitions, as we have with actions and, for example, /*.do urls? 
It would be great to have, let's say, /*.def requests

Saludos, Nicolas.

-Original Message-
From: Kuzminski, Nicolas 
Sent: Martes, 04 de Marzo de 2003 17:30
To: Struts Users Mailing List
Subject: RE: Beginner Tiles Problem


The problem is, you can't use a definition as a plain forward. It does not
work as a url. Try this instead:

 
  
  


(those two forwards are required, don't know why)

And redefine the forward:



So now you have a real url that points to a definition: /go.do?def=anydef.

Saludos, Nicolas.


-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Martes, 04 de Marzo de 2003 17:28
To: [EMAIL PROTECTED]
Subject: Beginner Tiles Problem


I have successfully set up tiles using a tiles-def.xml file.  In this file,
I have set up a definition for "my.default".

I have been successfully able to view this layout by inserting the following
code into a jsp:
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-tiles" prefix="tiles"%>


Again, this works fine.  I have been attempting to declare a global forward
mapping for the same layout:




I have inserted the following code into a jsp file to test the forwards:
<%@ taglib uri="struts-logic" prefix="logic"%>


When I hit the page containing this code, Tomcat gives me a 404 ("The
requested resource (/myapp/my.default) is not available.").  Whats happening
here?  

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


-
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: Beginner Tiles Problem

2003-03-04 Thread Kuzminski, Nicolas
Besides, any one knows if it's posible to have an url association with tiles 
definitions, as we have with actions and, for example, /*.do urls? 
It would be great to have, let's say, /*.def requests

Saludos, Nicolas.

-Original Message-
From: Kuzminski, Nicolas 
Sent: Martes, 04 de Marzo de 2003 17:30
To: Struts Users Mailing List
Subject: RE: Beginner Tiles Problem


The problem is, you can't use a definition as a plain forward. It does not work as a 
url. Try this instead:

 
  
  


(those two forwards are required, don't know why)

And redefine the forward:



So now you have a real url that points to a definition: /go.do?def=anydef.

Saludos, Nicolas.


-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Martes, 04 de Marzo de 2003 17:28
To: [EMAIL PROTECTED]
Subject: Beginner Tiles Problem


I have successfully set up tiles using a tiles-def.xml file.  In this file,
I have set up a definition for "my.default".

I have been successfully able to view this layout by inserting the following
code into a jsp:
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-tiles" prefix="tiles"%>


Again, this works fine.  I have been attempting to declare a global forward
mapping for the same layout:




I have inserted the following code into a jsp file to test the forwards:
<%@ taglib uri="struts-logic" prefix="logic"%>


When I hit the page containing this code, Tomcat gives me a 404 ("The
requested resource (/myapp/my.default) is not available.").  Whats happening
here?  

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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

"AVISO DE CONFIDENCIALIDAD. Este mensaje y la información incluída en él es 
confidencial y está dirigida únicamente al destinatario. Puede contener información 
privilegiada, confidencial, amparada por el secreto profesional y/o que no deba ser 
revelada. Si Usted ha recibido este mail por error, por favor comuníquenoslo 
inmediatamente via e-mail y tenga la amabilidad de eliminarlo de su sistema. Queda 
notificado que no deberá copiar este mensaje ni utilizar, divulgar, publicar o 
distribuir su contenido de modo alguno. Todo mensaje enviado a esta dirección de 
correo electrónico puede ser sujeto a inspección por alguien distinto de su receptor 
originario. Muchas gracias.
 
CONFIDENTIALITY NOTICE. The information contained in this message may be privileged 
and confidential and protected from disclosure. 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 notify us immediately by replying to this message and 
then delete it from your computer. All e-mail sent to this address will be received by 
the Meridian Financial S.A and/or Providian Bank S.A corporate e-mail system and is 
subject to archiving and review by someone other than the recipient. Thank you"
 


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

RE: Beginner Tiles Problem

2003-03-04 Thread Kuzminski, Nicolas
The problem is, you can't use a definition as a plain forward. It does not work as a 
url. Try this instead:

 
  
  


(those two forwards are required, don't know why)

And redefine the forward:



So now you have a real url that points to a definition: /go.do?def=anydef.

Saludos, Nicolas.


-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]
Sent: Martes, 04 de Marzo de 2003 17:28
To: [EMAIL PROTECTED]
Subject: Beginner Tiles Problem


I have successfully set up tiles using a tiles-def.xml file.  In this file,
I have set up a definition for "my.default".

I have been successfully able to view this layout by inserting the following
code into a jsp:
<%@ taglib uri="struts-html" prefix="html"%>
<%@ taglib uri="struts-bean" prefix="bean"%>
<%@ taglib uri="struts-tiles" prefix="tiles"%>


Again, this works fine.  I have been attempting to declare a global forward
mapping for the same layout:




I have inserted the following code into a jsp file to test the forwards:
<%@ taglib uri="struts-logic" prefix="logic"%>


When I hit the page containing this code, Tomcat gives me a 404 ("The
requested resource (/myapp/my.default) is not available.").  Whats happening
here?  

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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

"AVISO DE CONFIDENCIALIDAD. Este mensaje y la información incluída en él es 
confidencial y está dirigida únicamente al destinatario. Puede contener información 
privilegiada, confidencial, amparada por el secreto profesional y/o que no deba ser 
revelada. Si Usted ha recibido este mail por error, por favor comuníquenoslo 
inmediatamente via e-mail y tenga la amabilidad de eliminarlo de su sistema. Queda 
notificado que no deberá copiar este mensaje ni utilizar, divulgar, publicar o 
distribuir su contenido de modo alguno. Todo mensaje enviado a esta dirección de 
correo electrónico puede ser sujeto a inspección por alguien distinto de su receptor 
originario. Muchas gracias.
 
CONFIDENTIALITY NOTICE. The information contained in this message may be privileged 
and confidential and protected from disclosure. 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 notify us immediately by replying to this message and 
then delete it from your computer. All e-mail sent to this address will be received by 
the Meridian Financial S.A and/or Providian Bank S.A corporate e-mail system and is 
subject to archiving and review by someone other than the recipient. Thank you"
 


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

Re: Beginner question: pages without forms (simple anchors)

2003-01-15 Thread Nicolas De Loof
You can use struts framework without formbean, without validation, without
error handling ...

But doing so, struts will be a less powerfull framework.

You can begin with just a mapping, an Action that does what you want and a
JSP.

Adding a formbean will allow you see that Struts maintains data from HTML to
Action. You should add validation and error handling, and you will have your
first struts example, manipulating your datas with just one formBean /
action.

create JSP <->
view JSP   <->
update JSP <->  FormBean  <-> Action ( <-> Database ? )

Nico.


> Am just starting with the framework.  Have done my homework, reading
> O'Reilly book and other tutorials online, and surprisingly I don't see
this
> question addressed anywhere.  My question is pretty straightforward: when
I
> simply have an anchor (link) on a page, not a form submit, what's the
> minimum amount of configuration I need to do for that case?  I.e., I'm
> assuming I don't need an ActionForm since there is no form...?  Is there
> anything else in the process I can skip doing to simplify these cases?
>
> Note: I do have an "action" and a "forward" (Success) defined.
>
> Thanks,
> David
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: beginner help

2002-12-09 Thread Jeff Born
I've been working on a Struts tutorial for my office for a couple of months
now.  I assume programming knowledge, but no Struts knowledge.  Basic idea is
to move a JSP based web site to a Struts based web site, and then give step
by step instructions on how to get there.

Use the following link to get to the tutorial.
http://j2eestudygroup.classactweb.com/archive/10-14-2002/

Scroll to the bottom of the page and you should see the link to the pdf.  All
supporting war files are listed there also.

Other tutorial can be found at the following address and come at all levels
of understanding: http://jakarta.apache.org/struts/resources/tutorials.html

Good luck,

jb

-Original Message-
From: David Rothschadl [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 9:49 AM
To: Struts User Mailing List
Subject: begginer help



An addition to my help for a beginner question..A complete example of an
index.jsp used within the struts framework would be so helpful to me and my
colleagues. It seems that all that I have been able to find so far are
snippets of code


Remember:
Peace, Love & Understanding
Always

David R

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beginner ClassNotFoundException

2002-10-09 Thread Eddie Bush

... update to (at least) 4.0.5, if you can at all :-) there was a 
security/bug-fix to 4.0.4 (resulting in 4.0.5).  Note that 4.1.10 is no 
longer the "current" release for the 4.1-series Tomcat either -- 4.1.12 
is.  It had the same security vulnerability and ... there were some 
"minor tweaks" put in :-)  (The speed difference between the 4.0 and 4.1 
series is ... *good* - and I hear TC 5 is going to be even faster!  Look 
out, Resin!)

Packages are the way to go ;-)

Glad you got it working :-)

Carlos Henrique Righetto Moreira wrote:

>Now it works and I've made two things at same time. Put my classes in
>packages and updated Tomcat to 4.0.4 (the other was 3.3). Maybe just put the
>classes in packages is the solution.
>
>Thank you all!
>
>Regards,
>Carlos
>
-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beginner ClassNotFoundException

2002-10-09 Thread Carlos Henrique Righetto Moreira

Now it works and I've made two things at same time. Put my classes in
packages and updated Tomcat to 4.0.4 (the other was 3.3). Maybe just put the
classes in packages is the solution.

Thank you all!

Regards,
Carlos

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 5:05 PM
Subject: Re: Beginner ClassNotFoundException


> Try putting them into packages :-) they really should be anyway.  at
> least make one package (carlos) and put everything in that.  Some things
> are getting to where they ignore the default package nowadays.
>
> Carlos Henrique Righetto Moreira wrote:
>
> >I got it, but the classes directory is in the classpath
> >(D:\tomcat\webapps\myproject\WEB-INF\classes). And I don't have classes
in
> >packages.
> >
> >I'm forgetting something, newbie stuff I guess.
> >
> >Regards
> >Carlos
> >
> --
> Eddie Bush
>
>
>
>
> --
> 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: Beginner ClassNotFoundException

2002-10-09 Thread Eddie Bush

Try putting them into packages :-) they really should be anyway.  at 
least make one package (carlos) and put everything in that.  Some things 
are getting to where they ignore the default package nowadays.

Carlos Henrique Righetto Moreira wrote:

>I got it, but the classes directory is in the classpath
>(D:\tomcat\webapps\myproject\WEB-INF\classes). And I don't have classes in
>packages.
>
>I'm forgetting something, newbie stuff I guess.
>
>Regards
>Carlos
>
-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beginner ClassNotFoundException

2002-10-09 Thread Craig R. McClanahan



On Wed, 9 Oct 2002, Carlos Henrique Righetto Moreira wrote:

> Date: Wed, 9 Oct 2002 16:04:31 -0300
> From: Carlos Henrique Righetto Moreira <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: Beginner ClassNotFoundException
>
> I got it, but the classes directory is in the classpath
> (D:\tomcat\webapps\myproject\WEB-INF\classes). And I don't have classes in
> packages.
>

Trying to use unpackaged classes is fraught with problems, particularly in
JDK 1.4.1 and later.  I would definitely recommend you put your classes in
packages, as described in the Java language tutorials.

> I'm forgetting something, newbie stuff I guess.
>
> Regards
> Carlos

Craig


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




Re: Beginner ClassNotFoundException

2002-10-09 Thread Carlos Henrique Righetto Moreira

I got it, but the classes directory is in the classpath
(D:\tomcat\webapps\myproject\WEB-INF\classes). And I don't have classes in
packages.

I'm forgetting something, newbie stuff I guess.

Regards
Carlos

- Original Message -
From: "Sri Sankaran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 12:04 PM
Subject: RE: Beginner ClassNotFoundException


> This list is for all struts users, beginners alike.
>
> Your problem could be because
>
> * your class LoginForm isn't in the classpath -- is it in WEB-INF/classes
or WEB-INF/lib either as a .class or in a jar.  If you correct it
accordingly
> * your class LoginForm is actually in a package so that the fully
qualified name is really com.foo.bar.LoginForm and not just LoginForm.  In
this case, update your struts-config.xml to reflect the correct name of the
form bean
>
> Sri
>
> -Original Message-
> From: Carlos Henrique Righetto Moreira [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 10:13 AM
> To: [EMAIL PROTECTED]
> Subject: Beginner ClassNotFoundException
>
>
> This list can help beginners? :) If not, sorry to bother!
>
> In all examples I tested, everything works properly. Now, my first own
test doesn't work. There's only one Action class (LoginAction) and one Form
class
> (LoginForm) compiled ok in the classes directory. struts-config.xml is
configured properly (I guess).
>
> This is the error:
>
> javax.servlet.ServletException: Exception creating bean of class
LoginForm:
> java.lang.ClassNotFoundException: LoginForm
>
> Thanks in advance!
>
> Regards,
> Carlos
>
>
> --
> 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: Beginner ClassNotFoundException

2002-10-09 Thread Sri Sankaran

This list is for all struts users, beginners alike.

Your problem could be because 

* your class LoginForm isn't in the classpath -- is it in WEB-INF/classes or 
WEB-INF/lib either as a .class or in a jar.  If you correct it accordingly
* your class LoginForm is actually in a package so that the fully qualified name is 
really com.foo.bar.LoginForm and not just LoginForm.  In this case, update your 
struts-config.xml to reflect the correct name of the form bean

Sri

-Original Message-
From: Carlos Henrique Righetto Moreira [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 09, 2002 10:13 AM
To: [EMAIL PROTECTED]
Subject: Beginner ClassNotFoundException


This list can help beginners? :) If not, sorry to bother!

In all examples I tested, everything works properly. Now, my first own test doesn't 
work. There's only one Action class (LoginAction) and one Form class
(LoginForm) compiled ok in the classes directory. struts-config.xml is configured 
properly (I guess).

This is the error:

javax.servlet.ServletException: Exception creating bean of class LoginForm:
java.lang.ClassNotFoundException: LoginForm

Thanks in advance!

Regards,
Carlos


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beginner questions

2002-02-05 Thread Ted Husted

Just instantiate the bean, place it the request under a known name, and
then use that same name on the other side. 

 ResultBean result = new ResultBean();

// ...

 request.setAttribute("RESULT",result);


mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 20, 2002 8:47 AM
> To: Struts Users Mailing List
> Subject: Re: Beginner questions
> 
> The Struts bean tags do not require the useBean read tape, and it is
> rare for a Struts application to ever need to do this :)
> 
> Struts is designed to encourage architectures based on the MVC paradigm.
> Generally, we recommend that all the beans be created and properties set
> by an Action object (org.apache.struts.Action) before forwarding control
> the presentation page. The page should just be outputing data, and
> shouldn't to do any additional processing. That's the Action's job :)
> 
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Building Java web applications with Struts.
> -- Tel +1 585 737-3463.
> -- Web http://www.husted.com/struts/
> 
> Ronan-Yann LORIN wrote:
> >
> > Hi all,
> >
> > Excuse me if those questions looks stupid, I've seeked the documentation
> but
> > couldn't find the answer.
> >
> > 1) How do I write the following lines with struts:
> > 
> > 
> > I tried to create the bean the following way without success:
> > 
> > and how to set all it's properties from parameters?
> >
> > 2) How do I set a bean's property from an other bean property? (something
> > like "logonForm.username = argv.utilisateur")
> >
> > Thanks in advance for your help
> > Ronan-Yann Lorin
> > Banque AGF
> > Direction des Opérations, Service Informatique
> > tél : 01 44 86 27 99
> > fax : 0 811 013 002
> > mél : [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]>

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

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




RE: Beginner questions

2002-02-05 Thread Michael Hedgpeth

Could someone you give me a simple example of a bean being declared in the
Action class that IS NOT an ActionForm and then accessed in the JSP
 tag?  The ActionForm maintenance seems to be pretty
straight-forward, but I'm dealing with plenty of objects that don't directly
relate to forms (such as summary data) that I would like to pull up in the
Action class and set so the  can access it (in a report
format).

Thanks,
Michael Hedgpeth

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 20, 2002 8:47 AM
To: Struts Users Mailing List
Subject: Re: Beginner questions


The Struts bean tags do not require the useBean read tape, and it is
rare for a Struts application to ever need to do this :) 

Struts is designed to encourage architectures based on the MVC paradigm.
Generally, we recommend that all the beans be created and properties set
by an Action object (org.apache.struts.Action) before forwarding control
the presentation page. The page should just be outputing data, and
shouldn't to do any additional processing. That's the Action's job :)

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Ronan-Yann LORIN wrote:
> 
> Hi all,
> 
> Excuse me if those questions looks stupid, I've seeked the documentation
but
> couldn't find the answer.
> 
> 1) How do I write the following lines with struts:
> 
> 
> I tried to create the bean the following way without success:
> 
> and how to set all it's properties from parameters?
> 
> 2) How do I set a bean's property from an other bean property? (something
> like "logonForm.username = argv.utilisateur")
> 
> Thanks in advance for your help
> Ronan-Yann Lorin
> Banque AGF
> Direction des Opérations, Service Informatique
> tél : 01 44 86 27 99
> fax : 0 811 013 002
> mél : [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: Beginner question: Actions for Multi-frame page

2002-01-30 Thread Lacerda, Wellington (AFIS)

Better said, some sort of script (or applet? brrr) activated by that.

Wellington

-Original Message-
From: Lacerda, Wellington (AFIS) 
Sent: Wednesday, January 30, 2002 7:15 PM
To: 'Struts Users Mailing List'
Subject: RE: Beginner question: Actions for Multi-frame page


Matt,

Due to the fact that the HTTP protocol is stateless, once the other frames
in your page are loaded, the only way to refresh them after the submission
of your form is through some javascript that is activated by the resulting
page of the submission in the frame that has changed. This is above Struts.

Wellington

-Original Message-
From: matt lobur [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 7:08 PM
To: Struts Users Mailing List
Subject: Beginner question: Actions for Multi-frame page


Hello all, My name is Matt Lobur and i am new to the
STRUTS framework.

My question involves submition of a form in a multiple
frame page.  If i sumbit a form in 1 frame but the
information submitted will effect many of the frames
in my page, how would I refesh the other pages because
the information they display has just been changed? 


thanks,

Matt Lobur

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
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: Beginner question: Actions for Multi-frame page

2002-01-30 Thread Lacerda, Wellington (AFIS)

Matt,

Due to the fact that the HTTP protocol is stateless, once the other frames
in your page are loaded, the only way to refresh them after the submission
of your form is through some javascript that is activated by the resulting
page of the submission in the frame that has changed. This is above Struts.

Wellington

-Original Message-
From: matt lobur [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 7:08 PM
To: Struts Users Mailing List
Subject: Beginner question: Actions for Multi-frame page


Hello all, My name is Matt Lobur and i am new to the
STRUTS framework.

My question involves submition of a form in a multiple
frame page.  If i sumbit a form in 1 frame but the
information submitted will effect many of the frames
in my page, how would I refesh the other pages because
the information they display has just been changed? 


thanks,

Matt Lobur

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beginner questions

2002-01-20 Thread Ted Husted

The Struts bean tags do not require the useBean read tape, and it is
rare for a Struts application to ever need to do this :) 

Struts is designed to encourage architectures based on the MVC paradigm.
Generally, we recommend that all the beans be created and properties set
by an Action object (org.apache.struts.Action) before forwarding control
the presentation page. The page should just be outputing data, and
shouldn't to do any additional processing. That's the Action's job :)

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Ronan-Yann LORIN wrote:
> 
> Hi all,
> 
> Excuse me if those questions looks stupid, I've seeked the documentation but
> couldn't find the answer.
> 
> 1) How do I write the following lines with struts:
> 
> 
> I tried to create the bean the following way without success:
> 
> and how to set all it's properties from parameters?
> 
> 2) How do I set a bean's property from an other bean property? (something
> like "logonForm.username = argv.utilisateur")
> 
> Thanks in advance for your help
> Ronan-Yann Lorin
> Banque AGF
> Direction des Opérations, Service Informatique
> tél : 01 44 86 27 99
> fax : 0 811 013 002
> mél : [EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beginner Question :How to use Ant with struts ?

2001-11-20 Thread Joey Gibson

On Tue, 20 Nov 2001 09:37:06 -0500, Lily Zou <[EMAIL PROTECTED]> wrote:

||| I am new to struts. I am currently using apache-tomcat-cocoon framework
||| with ant and preparing swithing to apache-tomcat-struts.We now use ant to
||| build and deploy applications.  I wonder if anybody could tell me how to use
||| ant to do the similiar build for struts ?  And how to implement struts with
||| Apache and tomcat ? Any suggestion  is welcome !

Using Struts with Ant is no different than using any other library with
Ant. You just need to add the struts.jar to your classpath for compilation,
and then make sure the struts jars are in your WEB-INF/lib, and the struts
taglib tld files are in your WEB-INF. Ant has the  task that will help
with both of those.

Joey

-- Sun Certified Java2 Programmer
-- My Pocket Smalltalk Stuff: www.joeygibson.com/st
--
-- "We thought about killin' him, but we kinda 
--  hated to go that far" - Briscoe Darling


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Beginner question

2001-03-26 Thread Chen Sherman

Hi,
I tried to build struts from the source, I got the
following error, would anybody give me some thoughts?
Thanks,

-Sherman

=== error message 

C:\selfProject\tomcat\jakarta-struts\build.xml:178:
java.lang.NoClassDefFoundError:
javax/xml/transform/Source
--- Nested Exception ---
java.lang.NoClassDefFoundError:
javax/xml/transform/Source
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.tools.ant.taskdefs.XSLTProcess.setProcessor(XSLTProcess.ja
va:229)
at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:13
7)
at
org.apache.tools.ant.Target.execute(Target.java:153)
at
org.apache.tools.ant.Project.runTarget(Project.java:898)
at
org.apache.tools.ant.Project.executeTarget(Project.java:536)
at
org.apache.tools.ant.Project.executeTargets(Project.java:510)
at
org.apache.tools.ant.Main.runBuild(Main.java:421)
at
org.apache.tools.ant.Main.main(Main.java:149)

Total time: 7 seconds
= end of error message ==

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



RE: Beginner question

2001-03-26 Thread Scott Fitzgerald



Hello yet 
again,
 
Here is exactly 
what the console echoes:
 
Including all 
jars in "C:\tomcat"\lib in your CLASSPATH.
 
Using 
CLASSPATH: 
"C:\tomcat"\classes;
C:\tomcat\lib\ANT.JAR;
C:\tomcat\lib\JAXP.JAR;
C:\tomcat\lib\SERVLET.JAR;
C:\tomcat\lib\PARSER.JAR;
C:\tomcat\lib\WEBSER~1.JAR;
C:\tomcat\lib\JASPER.JAR;
"C:\jdk1.3"\lib\tools.jar
 
In my 
autoexec.bat, JAVA_HOME and TOMCAT_HOME are the last things set(if this even 
matters). Does the above look acceptable or should adjustments be made? Thanks 
again.
 
Scott 
Fitzgerald
 
 


RE: Beginner question

2001-03-26 Thread Maring, Steve



OK.  That's kewl, but is Tomcat using your environmental 
CLASSPATH?  Tomcat sets up it's own classpath stuff.  Look closely at 
the CLASSPATH that Tomcat echos to the console on startup and visit your 
tomcat.sh or tomcat.bat for adjustments.  I, personally, like to have my 
environmental classpath precede the stuff that Tomcat wants to 
add.

  -Original Message-From: Scott Fitzgerald 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, March 26, 2001 9:19 
  AMTo: [EMAIL PROTECTED]Subject: RE: 
  Beginner question
  Hello 
  again,
   
  Thank you for 
  your quick reply. I appended my classpath like this: set 
  path="C:\jdk1.3\lib\tools.jar";%PATH%; where C:\jdk1.3 is my JAVA_HOME. I 
  restarted my computer and tried again but got the same error. I would 
  appreciate any extra suggestions.
   
  Thank 
  you,
   
  Scott 
  Fitzgerald


RE: Beginner question

2001-03-26 Thread Scott Fitzgerald



Hello 
again,
 
Thank you for 
your quick reply. I appended my classpath like this: set 
path="C:\jdk1.3\lib\tools.jar";%PATH%; where C:\jdk1.3 is my JAVA_HOME. I 
restarted my computer and tried again but got the same error. I would appreciate 
any extra suggestions.
 
Thank 
you,
 
Scott 
Fitzgerald


RE: Beginner question

2001-03-26 Thread Maring, Steve



You 
either need to use JDK1.3 or include /lib/tools.jar in the 
classpath of the servlet container.  I'm surprised that the Tomcat startup 
scripts did not do this for you.

  -Original Message-From: Scott Fitzgerald 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, March 26, 2001 
  8:07 AMTo: [EMAIL PROTECTED]Subject: 
  Beginner question
  Hello 
  everyone,
   
  I have been trying to run the 
  examples that come with the latest version of Struts on Tomcat. However, when 
  I point my browser at the example I get an internal servlet error (500) which 
  offers this bit of information: javax.servlet.ServletException: sun/tools/javac/Main. It then tells me that the root cause of this is: java.lang.NoClassDefFoundError: sun/tools/javac/MainCan anyone please offer some guidance.
   
  Thank 
you,
   
  Scott 
  Fitzgerald