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

Beginner question: form bean executing but action class not

2004-02-10 Thread Gregg Williams
Hi,

I have gotten my first extremely simple (2 web pages) Struts application 
working and am slowly adding features to it. In first page, you enter data 
into a form and click the submit button. This takes you to the second page, 
which displays the data from the form; and clicking the submit button on 
this page takes you back to the first page--very simple.

My problem is that for the first page (entryPage.jsp), its form bean, 
EntryForm.java seems to be executing, but the corresponding action class, 
EntryAction.java does not. I have checked two very good books and have 
checked my code against sample code, but i can't figure out what's different.

Below, I've listed the struts-config.xml and EntryAction.java files. I know 
I must be overlooking something incredibly simple. Thanks for your help.



   "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>





















package sample;

import java.io.*;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.DynaActionForm;
import org.apache.struts.util.MessageResources;
public class EntryAction extends org.apache.struts.action.Action {

// Global Forwards
public static final String GLOBAL_FORWARD_begin = "begin";
// Local Forwards
private static final String FORWARD_displayPage = "displayPage";
public EntryAction() {
System.out.println ("EntryAction: Reached constructor method");
}
public ActionForward execute(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) throws Exception {
// TODO: Write method body
return mapping.findForward(FORWARD_displayPage);
}
}

* end *



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


RE: [Tiles Beginner Question] Href & Tile Definitions

2003-06-09 Thread Trieu, Danny
Here is how you should do it:


  
  


...


..
  


Your.jsp




-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 08, 2003 5:07 PM
To: [EMAIL PROTECTED]
Subject: [Tiles Beginner Question] Href & Tile Definitions


I've successfully got tiles up and running... I do understand how i can use 
a tile definition as a struts forward for my actions but i'm looking to 
redirect to a tile definition using a href link. E.g.

I have the following tile definition:







I have tried the following but it doesn't work (i.e. passing the tile id as 
a parameter to the ForwardAction):





I guess what i'm really asking is there a predefined Action which will take 
my tile Id and forward to this view


Its not that i'm lazy as i could write one if i need too but this would mean

that i have to create a global forward for any tiles i want to access using 
a href and then pass the global id to a temporary action in order to view my

definition which sounds like a very round about way to achieve this.

Any ideas guys??

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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


This message and any attachments are for the intended recipient(s) only and may 
contain privileged, confidential and/or proprietary information about Downey Savings 
or its customers, which Downey Savings does not intend to disclose to the public. If 
you received this message by mistake, please notify the sender by reply e-mail and 
delete the message and attachments.

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



Re: [Tiles Beginner Question] Href & Tile Definitions

2003-06-09 Thread Sandeep Takhar
sorry I accidently hit  on the last reply and it
sent the email somehow (some weird combination of
keystrokes).

What I wanted to finish was the action...

 
   
 

this probably doesn't answer your question the way you
want is my guess.  

you can always call this from another action



sandeep
--- Pat Quinn <[EMAIL PROTECTED]> wrote:
> I've successfully got tiles up and running... I do
> understand how i can use 
> a tile definition as a struts forward for my
> actions but i'm looking to 
> redirect to a tile definition using a href link.
> E.g.
> 
> I have the following tile definition:
> 
> 
>   
>   
> 
> 
> 
> I have tried the following but it doesn't work (i.e.
> passing the tile id as 
> a parameter to the ForwardAction):
> 
>parameter="my.home"
>   scope="request"
>
> type="org.apache.struts.actions.ForwardAction"
>   validate="false">
> 
> 
> 
> I guess what i'm really asking is there a predefined
> Action which will take 
> my tile Id and forward to this view
> 
> 
> Its not that i'm lazy as i could write one if i need
> too but this would mean 
> that i have to create a global forward for any tiles
> i want to access using 
> a href and then pass the global id to a temporary
> action in order to view my 
> definition which sounds like a very round about way
> to achieve this.
> 
> Any ideas guys??
> 
>
_
> MSN 8 with e-mail virus protection service: 2 months
> FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: [Tiles Beginner Question] Href & Tile Definitions

2003-06-09 Thread Sandeep Takhar
I think you don't want to create an action to handle
the tiles reference right?

If not, then you can simply create a global action
that forwards to "display" say..

 
 




--- Pat Quinn <[EMAIL PROTECTED]> wrote:
> I've successfully got tiles up and running... I do
> understand how i can use 
> a tile definition as a struts forward for my
> actions but i'm looking to 
> redirect to a tile definition using a href link.
> E.g.
> 
> I have the following tile definition:
> 
> 
>   
>   
> 
> 
> 
> I have tried the following but it doesn't work (i.e.
> passing the tile id as 
> a parameter to the ForwardAction):
> 
>parameter="my.home"
>   scope="request"
>
> type="org.apache.struts.actions.ForwardAction"
>   validate="false">
> 
> 
> 
> I guess what i'm really asking is there a predefined
> Action which will take 
> my tile Id and forward to this view
> 
> 
> Its not that i'm lazy as i could write one if i need
> too but this would mean 
> that i have to create a global forward for any tiles
> i want to access using 
> a href and then pass the global id to a temporary
> action in order to view my 
> definition which sounds like a very round about way
> to achieve this.
> 
> Any ideas guys??
> 
>
_
> MSN 8 with e-mail virus protection service: 2 months
> FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



[Tiles Beginner Question] Href & Tile Definitions

2003-06-08 Thread Pat Quinn
I've successfully got tiles up and running... I do understand how i can use 
a tile definition as a struts forward for my actions but i'm looking to 
redirect to a tile definition using a href link. E.g.

I have the following tile definition:





I have tried the following but it doesn't work (i.e. passing the tile id as 
a parameter to the ForwardAction):



I guess what i'm really asking is there a predefined Action which will take 
my tile Id and forward to this view

Its not that i'm lazy as i could write one if i need too but this would mean 
that i have to create a global forward for any tiles i want to access using 
a href and then pass the global id to a temporary action in order to view my 
definition which sounds like a very round about way to achieve this.

Any ideas guys??

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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



Beginner question

2003-03-19 Thread White, Joshua A (CASD, IT)
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]



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: 




Beginner question: pages without forms (simple anchors)

2003-01-15 Thread Swearingen, David W.
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: 




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




Beginner question: Actions for Multi-frame page

2002-01-30 Thread matt lobur

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: 




Beginner question, how to get URL back...

2002-01-20 Thread Alex Paransky

How do I get back the URL with which the page was called?  For example, if
the request looked like this:

http://www.testServer.com/mainPage.jsp?arg=2&arg=3

I would like to get back the /mainPage.jsp?arg=2&arg=3 part.  I know I can
call request.getRequestURI() and concat that with request.getQueryString(),
but I was hoping that there would be a more elegant (tag/bean) solution to
do this.

Thanks.

-AP_
www: http://www.alexparansky.com


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




Beginner Question :How to use Ant with struts ?

2001-11-20 Thread Lily Zou


  Hi, there

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 !

  Lily



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


Beginner question

2001-03-26 Thread Scott Fitzgerald



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