Redirect out of to external web page

2003-11-26 Thread Ventin, Vince
Can a Struts action be used to forward a user to an external page?  The
example below does not work.

What is wrong with this?  


action path=/SystemLogoff type=SystemLogoffAction
  set-property property=releasemode value=Stateless/
  forward name=success path=https://company.com/oblogout.cgi;
redirect=true/  
/action


Thanks,

Vince Ventin



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



RE: Redirect out of to external web page

2003-11-26 Thread Ventin, Vince
Never mind.   I figured it out.

Vince Ventin



-Original Message-
From: Ventin, Vince 
Sent: Wednesday, November 26, 2003 12:20 PM
To: [EMAIL PROTECTED]
Subject: Redirect out of to external web page


Can a Struts action be used to forward a user to an external page?  The
example below does not work.

What is wrong with this?  


action path=/SystemLogoff type=SystemLogoffAction
  set-property property=releasemode value=Stateless/
  forward name=success path=https://company.com/oblogout.cgi;
redirect=true/  
/action


Thanks,

Vince Ventin



-
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: Converting to Struts, where to put Servlet init() code?

2003-10-15 Thread Ventin, Vince
The approach I am using for WSSO is to extend the RequestProcessor class
and override the processPreprocess() method.  This is recommended in the
book Programming Jakarta Struts by Chuck Cavaness, published by
O'Reilly, p 112.

If you put a debug statement in it you will find that it gets executed
before the Action code and a form is displayed.


Vince Ventin



-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: Converting to Struts, where to put Servlet init() code?



I'm converting an existing webapp to Struts.  I have some code in a
Servlet init() method, and I don't immediately see where I should put
it.  This is an authentication/authorization webapp, and the code in
question sets up an authentication handler object to be used by every
subsequent request.

What's guaranteed to get executed before the Action code?  (I'm almost
thinking Filter, and to put the object in Application scope, but I'm not
sure yet.)

Any advice?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

-
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: When to build/re-deploy?

2003-10-09 Thread Ventin, Vince
It is possible to change the XML files on the server to do quick testing
but you should let the deploy handle any updates on the server.  This
will mean getting into the habit of code/build/deploy for each change
you do.

I don't use Tomcat but there may be parameters that get set to determine
when the server looks for updated files.  Sometimes these are optional
to improve the performance of the server.

Vince Ventin



-Original Message-
From: Andy Engle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2003 9:33 AM
To: [EMAIL PROTECTED]
Subject: When to build/re-deploy?


Greetings.

I am working on my first Struts app, and I have a question about when to
build.  I am doing my development work in Netbeans, and I am building my
project with ant.  My question is this: after I make changes to an XML
file (or files), is it necessary to rebuild?  Also, is it necessary to
re-deploy the application, or does Tomcat check the updated XML files
(such as validation.xml, for example) without the need to re-deploy?  Do
I need to re-build and re-deploy after every minor change?

Thanks for your help!


Regards,
Andy


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


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



Losing images on redisplay of page.

2003-10-04 Thread Ventin, Vince
I am somewhat new to Struts/Web development and I have what I think
should be a basic question to answer.  I hope to get enough information
that will help me to debug this issue.

The application that I have built is based on the Struts Blank.   I am
using Oracle's UIX for my pages (I have this question into Oracle also).


When the application starts it begins with index.jsp (defined in
web.xml).  This page forwards to the global welcome action.  The global
welcome action opens the /pages/welcome.uix page.  At this point the
page is displaying, with all images,  as I would expect.  The images are
off the web root in images/.

The page contains a link which goes to the /ComeBack2 action which is
supposed to simply redisplay the page.  The page returns but an image
that is supposed to be displayed cannot be found.  I thought the context
may have been fouled up and tried to change the reference to ../ or move
the image to the root and use / but nothing works.

Does anyone have any suggestions as to what is happening or how I would
go about debugging this?  As you can see I am using the standard Struts
ForwardAction.  Is there a way that I can identify the problem by
extending the Struts ForwardAction class and, if so, what values should
I be looking at?

  global-forwards
!-- Default forward to Welcome action --
!-- Demonstrates using index.jsp to forward --
forward name=welcome  path=/Welcome.do/
  /global-forwards
   
  action-mappings
!-- Default Welcome action --
!-- Forwards to Welcome.jsp --
action path=/Welcome 
type=org.apache.struts.actions.ForwardAction
parameter=/pages/welcome.uix/
action path=/ComeBack2
type=org.apache.struts.actions.ForwardAction
parameter=/pages/welcome.uix?TabSet=Processes/
  /action-mappings


Any help you can give will be appreciated.

Thanks,

Vince Ventin


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



RE: books and tutorials

2003-09-30 Thread Ventin, Vince
A couple of good books:

Programming Jakarta Struts by Chuck Cavaness - published by  O'Reilly
Struts in Action by Ted Husted - published by Manning

(No one book has everything you will need but these two have been
helpful to me.)

Also go to the Struts site:  http://jakarta.apache.org/struts/

Read, download, work the tutorials, experiment, ..., try to have fun ...

Vince Ventin


-Original Message-
From: Carlos Llona [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 30, 2003 10:07 AM
To: [EMAIL PROTECTED]
Subject: books and tutorials


Hello

Im new in Struts but its very interesting,but I dont find goob books 
or tutorials to download, please if anyone knows links send me plz

byte


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



RequestProcessor - appConfig deprecated

2003-09-26 Thread Ventin, Vince
I am following an example in the book Programming Jakarta Struts by
Chuck Cavaness, published by O'Reilly press.

The example is on page 227 and uses the statement:
ForwardConfig config = appConfig.findForwardConfig(Unauthorized);

When I compile I am warned that the appConfig variable in
RequestProcessor class has been deprecated.

I found that the ApplicationConfig module is renamed to ModuleConfig in
Struts 1.1 Beta 3
http://www.jsn-server3.com/struts-documentation/userGuide/release-notes-
1.1-b3.html

My question is:  How do I obtain the ForwardConfig?  Do I use
ModuleConfig?

Vince Ventin



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