Re: Design question about ActionForm's validate method

2002-02-08 Thread Jonathan Gibbons


Hi Ted,

I was implementing this and noticed a problem in V1.0.1

1.  Struts config is as below

action   path=/str/adminsessionview_srchpost
  type=com.db.eqpcs.mercstruts.struts.AdminSessionViewSrchAction
  name=adminsessionviewSrchForm
  scope=request
  input=/jsp/adminsessionviewsrch.jsp
  validate=true
forward name=display_row path=/str/adminsessionview_maintget.do/
/action

action   path=/str/adminsessionview_maintget
  type=org.apache.struts.actions.ForwardAction
  parameter=/jsp/adminsessionview.jsp
  name=adminsessionviewForm
  scope=request
  validate=false /

2. The code for AdminSessionViewSrchAction does the following:

AdminSessionViewForm form_obj = 
sess_bean.maintainStrutSearchAdminSessionViewForm(params);
request.setAttribute(adminsessionviewForm, form_obj);
// Now want to forward to the correct jsp, including the params
return (mapping.findForward(display_row));

3. OK, so we are seeing an action setting up the form for the following page, and that 
following page is being accessed via an ForwardAction, validate false.

Well, it doesn't work.   The prepopulated form does not display, all the fields have 
been reset to nothing.

4.  Is this a bug, or is this a problem with my config?  If display_row simlpy 
redirects to the jsp page directly then it works fine.

Jonathan




 Message History 



From: Ted Husted [EMAIL PROTECTED] on 06/02/2002 18:47 EST

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:  Re: Design question about ActionForm's validate method


In 1.0.x, it is often suggested that each link at least be represented
by an ActionForward. This centralizes control over the hyperlinks in the
Struts Config, which yields a number of benefits.

In Struts 1.1, now the Nightly Build, support has been added for
multiple Struts configuration files. In order for this feature to work,
any request for a presentation page that uses elements from the
configuration file (ActionForms, forwards, mappings) must be routed
through the controller. This allows the controller to make the
appropriate configuration available for a given page.

This is becoming a common pattern, since the Velocity support, and I
believe the X2 servlet, also need you to do the same thing for the same
reason. The controller needs to touch the request to prepare it for the
presentation layer.

Many other features in advanced applications, including security,
logging, and screen definitins, are easier to implement when everything
passes through the controller.

In a strict MVC implementation, the controller is responsible for
interacting with the user. It then follows that all requests from the
user should flow through the controller. Some of us had been counting
the ActionForwards as flowing through the controller, but as the
framework expands, and more services are being plugged in, passing the
actual request through the controller becomes more and more desirable,
until it's really not worth making the occasional exception any more.

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


Alex Paransky wrote:

 So do you mean, all pages go through the Action?  Even those which are not
 forms and for display purposes only?  Could you shed some light as to why
 this is preferred?

 Thanks.

 -AP_
 http://www.alexparansky.com

 -Original Message-
 From: Ted Husted [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 05, 2002 2:02 PM
 To: Struts Users Mailing List
 Subject: Re: Design question about ActionForm's validate method

 The best practice now is to use ActionMappings for everything, so that
 the reqeust passes through the controller.

 This buys you several important capabilities that become important as
 applications grow. Not the least of which is the new support for
 multiple applications in the Nightly Build.

 The ActionMapping has a validate property that you can use to turn off
 validation when the mapping is used to initialize a new form. So,
 typically, you will have an ActionMapping for each circumstance.

 action
 path=/item/Add
 type=org.apache.struts.actions.ForwardAction
 parameter=/pages/item/Form.jsp
 name=itemForm
 scope=request
 validate=false
 /action

action
 path=/item/Store
 type=org.apache.gavel.item.http.Store
 name=itemForm
 scope=request
 validate=true
 input=/pages/item/Form.jsp
 

Poolman query

2002-02-08 Thread Jerome Josephraj

Hi,

Sorry about this out of topic query. But looks like this is the
only place where I can get some help on Poolman.

I am struggling in setting up poolman to run in silverstream
server. 

All I try to do is, set up a simple poolman configuration just
to access a database in my local server. I am not   using   any JNDI
name.

Configuration Details :

Silver stream version : Silver Stream 3.7.3
Database: Sybase adaptive server
anywhere 6.0
Poolman version   : 2.1


My poolman.xml looks like this 

  datasource

dbnameCBSData/dbname
driverjdbs:poolman://localhost:80/CBSData/driver


usernametest/username
passwordtest/password

minimumSize0/minimumSize
maximumSize10/maximumSize

logFile/home/poolman/logs/testdb.log/logFile

  /datasource


The following is the snippet of the code


try {
// load the PoolMan JDBC Driver
Class.forName(com.codestudio.sql.PoolMan).newInstance();
} catch (Exception ex) {
System.out.println(Could Not Find the PoolMan Driver. 
Is poolman.jar in your CLASSPATH?);
}

Connection con = null;
try {

// establish a Connection to the database with 
con = DriverManager.getConnection(jdbc:poolman://CBSData);

// Use the Connection to create Statements and do JDBC work
Statement stm = con.createStatement();

} catch (SQLException sqle) { sqle.printStackTrace(); }
finally {
try { con.close(); } catch (SQLException csqle) {}
}


I get NullPointer exception asa I reach the point where I try to
load the JDBC driver.

Hope the provided information will do. Any help is greatly
appreciated.



TIA,

Jerome.
  _  

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. 

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




RE: redirect html:errors to popup window

2002-02-08 Thread Steve Earl

Well,

A slightly different way that we've tried here (I've been scrapping with a
similar issue for a few days now) was to set a 'Window-target' inside the
header on the HttpResponse object when you're within your action class.

Add the following code to your Action class once you've figured out that you
do have some action errors to display

httpResponse.setAttribute(Window-target, name_of_a_frame);


Under Netscape this causes the page identified by your struts-config file to
be loaded in the target window/frame you've specified. Probably not quite as
flexible as Sean's suggestion but it does seem to work. Unfortunately, it
doesn't work for IE5 (as the Window-target meta tag seems to be Netscape
specific).

More depressing for me is that it doesn't work within Mozilla either, and
that's what my client usesso back to the drawing board.

__ 
Steve Earl

InfoGain Limited, 23-25 Marlow Road, Maidenhead, Berkshire SL6 7AA, UK
email: [EMAIL PROTECTED]
Tel: +44 (0)1628 580 600 
Fax: +44 (0)1628 580 610
Mobile: +44 (0)779 026 3645

Disclaimer:  Neither this e-mail nor any attachment places any legal or
contractual obligations on InfoGain Limited. Any reproduction, disclosure or
dissemination beyond the intended addressees is strictly prohibited save for
the legitimate business purposes of InfoGain Limited and its clients or
partners.
__ 


-Original Message-
From: Sean Willson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 2:06 AM
To: Struts Users Mailing List
Subject: Re: redirect html:errors to popup window


redirect html:errors to popup windowThe only way I think you could do this
is via JavaScript ... you could use this tag set:

logic:messagesPresent ... /logic:messagesPresent

to determine if there are errors, if so open a popup window, save the handle
... and then within this tag:

html:messages id=error.../html:messages

append to that window the error messages. The JavaScript isn't that hard but
that is honestly the only way I think you could do it. It would look
something like this:

logic:messagesPresent 
script
var newWindow = open window here with the size and controls you want
html:messages id=error
append to the window the contents of 'bean:write name=error
filter=false/'
/html:messages
/script
/logic:messagesPresent

Anyone have any other ideas.

Sean

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:47 PM
Subject: redirect html:errors to popup window

Any suggestions on how to redirect html:errors/ output to a popup window
rather than the page that the form is located on?
Thanks, Jim Canter
--
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]




Struts scalability?

2002-02-08 Thread Kenneth Ljunggren


I got an assignment from my boss the other day to write some sentences
regarding how well Struts is suited for systems with high scalability
requiorements
compare to if you would code a MVC solution yourself using model 2.

I myself worked in a project were we implemented an own MVC
Model 2 solution that was were flexible and easy to config. When
comparing this
to Struts, it looks like struts is just another very flexible and
configurable
MVC model 2  framework so I don't see any scalability problems without
prototyping and digging deep into the design, which time I don't have
for it.

Anyone that have used Struts in any systems that required very high
scalability?

Br Kenneth Ljunggren





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




Re: Struts scalability?

2002-02-08 Thread Mark Woon

Kenneth Ljunggren wrote:

 Anyone that have used Struts in any systems that required very high
 scalability?

See http://husted.com/struts/resources/performant.htm.

Also search the mailing list archive, there was a thread a while back listing
sites that were using Struts (subject was Things that use Struts), although it
descend into a debate over beer...  Go figure.

-Mark


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




Re: ActionErrors

2002-02-08 Thread Keith Bacon

Hi Steve,
For the ActionErrors collection, get() returns an iterator which will return 
ActionError objects,
not sure but hopefully their toString() will give the message you want. yuk!

Much better to use html:errors tag to display them!
I see the 'errors' tag only gets the collection from the request.
Hava you got a good reason for having the errors in the session? 
Keith.

--- Steve Earl [EMAIL PROTECTED] wrote:
 Hi,
 
 Can anyone give me a quick tip on how to store and subsequently display an
 ActionErrors object in session scope rather than within the request.
 
 At the moment my Action class copies the ActionErrors from the request to
 the session with:
 sess.setAttribute(org.apache.struts.action.ERROR,
   
 request.getAttribute(org.apache.struts.action.ERROR));
 
 And I then try to access this from within my jsp with:
   logic:present name=org.apache.struts.action.ERROR
 scope=session
   bean:write name=org.apache.struts.action.ERROR
 scope=session /'
   /logic:present
 
 Unfortunately the output I get on the page is:
   org.apache.struts.action.ActionErrors@2b3d53' 
 
 which seems to be the reference to the ActionErrors object rather than the
 text of an individual error contained within it.
 
 thanks in advance for any help
 
 regards,
 steve
 
 
 __ 
 Steve Earl
 
 InfoGain Limited
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: SSL + URL rewriting problem

2002-02-08 Thread Galbreath, Mark

Port 443 is the default Secure Sockets Layer port, so it is going to the URL
you passed.

Mark

-Original Message-
From: Nathan Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 7:00 PM
To: [EMAIL PROTECTED]
Subject: Re: SSL + URL rewriting problem


I have a bit more information if anyone is interested in helping me with
this issue..

I found out that the HttpUtils.getRequestURL().  If I make a JSP with the
following scriptlet:

%= HttpUtils.getRequestURL(request) %

I get this:

http://hostname:443/webapp/page.jsp

when the actual request URL was:

https://hostname/webapp/page.jsp

Any ideas appreciated.

Nathan Anderson
--
Sent via jApache.org

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

2002-02-08 Thread Steve Earl

Hi Keith,

Ta for the response. The reason I'm having to put the ActionErrors object
onto the session is because the site I'm developing is using frames.
Basically, we have an input search window and a results window below it. The
only way I've been able to make this work is by putting the search form,
results form (if any) and errors (again, if any) onto the session when the
search is submitted. My action class then forwards back to the parent window
of the two frames and the jsp for the search and results/errors drag the
data from the session to rebuild the windows.

This was all working fine without putting errors onto the session when I
could use the meta-equiv tag Window-target to target the output jsp
(containing either errors or a set of results) to the results window.
Unfortunately this only seems to work within Netscape and not Mozilla or
IE

What I've done at present is clone the html:errors tag (and associated
class) to create an identical one which checks session scope rather than
request scope. It's nearly working (isn't that always the way!!) -
unfortunately I'm getting some null values coming out around the errors
which I don't yet understand - see below:
null
* Please pick an arrival city you muppet
* Please enter a fare
* Please pick a departure city
null

If I can sort this out (must be coming from the tag class somewhere) then I
think that may solve my problem.

However, if anyone knows a cleaner way of doing this (without hacking the
struts taglibs) then please let  me know!!

regards,
steve

__ 
Steve Earl

InfoGain Limited




-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 11:37 AM
To: Struts Users Mailing List
Subject: Re: ActionErrors


Hi Steve,
For the ActionErrors collection, get() returns an iterator which will return
ActionError objects,
not sure but hopefully their toString() will give the message you want. yuk!

Much better to use html:errors tag to display them!
I see the 'errors' tag only gets the collection from the request.
Hava you got a good reason for having the errors in the session? 
Keith.

--- Steve Earl [EMAIL PROTECTED] wrote:
 Hi,
 
 Can anyone give me a quick tip on how to store and subsequently display an
 ActionErrors object in session scope rather than within the request.
 
 At the moment my Action class copies the ActionErrors from the request to
 the session with:
 sess.setAttribute(org.apache.struts.action.ERROR,
   
 request.getAttribute(org.apache.struts.action.ERROR));
 
 And I then try to access this from within my jsp with:
   logic:present name=org.apache.struts.action.ERROR
 scope=session
   bean:write name=org.apache.struts.action.ERROR
 scope=session /'
   /logic:present
 
 Unfortunately the output I get on the page is:
   org.apache.struts.action.ActionErrors@2b3d53' 
 
 which seems to be the reference to the ActionErrors object rather than the
 text of an individual error contained within it.
 
 thanks in advance for any help
 
 regards,
 steve
 
 
 __ 
 Steve Earl
 
 InfoGain Limited
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.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]




Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-08 Thread Keith Bacon

It will indeed be called.
Ted posted advice on how to deal with this a few weeks ago - try to find it in the 
archives.
Basically reset() needs to know which form was submitted so it can reset only the 
fields on it.
Keith.

--- Antony Stace [EMAIL PROTECTED] wrote:
 Hi Rick
 
 Thank you very much for the reply.
 
 On Thu, 07 Feb 2002 13:17:45 -0700
 Rick Holland [EMAIL PROTECTED] wrote:
 
  Did you know that the ControllerServlet calls reset on a form before
  populating it
  from the request? If your form reset method clears the instvars it may
  be the problem.
 
 If this is the case, does this mean that any form which is set to session scope in 
the
 struts-config.xml
 file will have its reset() method called each time it is used by an action?Ie, If I 
have
 
actionpath=/test1
   type=TestAction 
   scope=session
   name=messageForm 
   parameter=add
/action
actionpath=/test2
   type=TestAction 
   scope=session
   name=messageForm 
   parameter=del
/action
 
 And /test1 is called, the user enters data into the form and the data is saved in the
 messageForm bean which is saved.  Later, the user
 calls /test2, will the reset method in messageForm be called?
 
 
 Cheers
 
 Tony
 
 
 
 
 
  
  Antony Stace wrote:
  
  Hi Chuck
  
  I just tried having the first actions scope set to scope=session and the second 
actions
 scope set to scope=session 
  and still the Vector data is still disapearing.  I actually, for a test, set 
another field in
 ActionForm in the first action to a
  test value, I didn't have this set on the form anywhere where the user could 
change this
 value, then in the
  second action I tried to access this data, but it was not there - it too was 
gone.  Somehow a
 new form is being created
  and the scope=session is not happening.
  Any ideas anyone?
  
  Cheers
  
  Tony
  
  
  On Fri, 01 Feb 2002 07:51:12 -0500
  Chuck Cavaness [EMAIL PROTECTED] wrote:
  
  That's sort of what I was saying. In the second action, the one that is called 
after the
 user sees the form data and makes some choices, does the scope equal to request or 
session? If
 you have both of these actions defined as session scope, then I don't believe a new 
ActionForm
 would be created during the second action. If the mapping is session, then an 
ActionForm will be
 looked for in the session, which should have been put there on the previous action 
(along with
 the Vector data in it still).
  
  However, if the second action is defined as request and the first one is 
session, then yes
 the user entered data would make it to the new ActionForm and the Vector data would 
be gone
 because one would be recycled.
  
  Obviously, this is all a guess. I hope it helps somehow.
  
  Chuck
  --
  Sent via jApache.org
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
  
  
  
  -- 
  
  --
  - Rick Holland   OO/Distributed Systems Consultant
  - ObjectAge Inc.
  - [EMAIL PROTECTED]
  Logic is a wreath of pretty flowers, that smell bad
  --
  
  
  
 
 
 -- 
 
 
 Cheers
 
 Tony¡£
 -
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




mycgiserver

2002-02-08 Thread Martin Farrell

Hi
I dont know if anyone else out there uses mycgiserver.com, but i notice it
runs struts -
struts.jar
1.0 BETA 1
Jakarta Struts
(The Apache Software Foundation)
The problem is that i cannot see how to deploy a struts app on this
framework because you cannot deploy a war file, and all servlets run off
servlet. 
i'll have a hack this weekend - but was hoping someone could advise me on
usings struts with this service?
cheers

Martin




** For great Emap magazine subscription  gift offers visit 
http://www.emapmagazines.co.uk **


The information in this email is intended only for the addressee(s) named above.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient of this message any disclosure, copying, 
distribution or any action taken in reliance on it is prohibited and may be unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are free from 
viruses or other defects and accept no liability for any losses resulting from 
infected email transmissions.

Please note that any views expressed in this email may be those of the originator 
and do not necessarily reflect those of this organisation.



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




RE: Redirect to a jsp page

2002-02-08 Thread Keith Bacon

Struts gives you an excellent implementation of the standard solution to this problem.
Search archives for token.

http://www.mail-archive.com/struts-user%40jakarta.apache.org/


http://www.mail-archive.com/struts-user@jakarta.apache.org/msg22452.html
is a good explanation I found after a quick look - there may be better.
Keith.


--- Galbreath, Mark [EMAIL PROTECTED] wrote:
 You cannot keep a user from pressing the back button on the browser
 (without breaking the user's fingers), but you can prevent a resubmit by
 testing a session attribute flag you set at the first submit.
 
 Mark
 
 -Original Message-
 From: Joanna Chan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 4:37 PM
 To: [EMAIL PROTECTED]
 Subject: Redirect to a jsp page
 
 
 Hello
 
 How do I redirect to a jsp page in struts without allowing the user to press
 the back key in browser. I want to maintain transactional control so that
 the user cannot press back key to re-enter somethinig that is already
 submitted.
 
 Thanks
 Joanna
 
 
 --
 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]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: ActionErrors

2002-02-08 Thread Mark Woon

Steve Earl wrote:

 It's nearly working (isn't that always the way!!) -
 unfortunately I'm getting some null values coming out around the errors
 which I don't yet understand - see below:
 null
 * Please pick an arrival city you muppet
 * Please enter a fare
 * Please pick a departure city
 null

You're not defining errors.header and errors.footer in
your ApplicationResources.properties file.

-Mark


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




Weird garbage collection problem

2002-02-08 Thread Jim Downing

Hi,
I'm trying to deploy a pretty simple struts app but I'm having problems with garbage 
collection. Usually the garbage collection runs in the order of 10ms, but every so 
often it takes 4.5 seconds. Obviously this is slowing my jsps down unnacceptably.

My VM is running on Debian Woody and is this version: -
java version 1.3.1
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.3.1-FCS)
Java HotSpot(TM) Client VM (build Blackdown-1.3.1-FCS, mixed mode)

The garbage collections all reclaim around the same amount of memory and I've tried 
playing with some of the memory and gc options, but still get the same behaviour. 

My guess is that either a finalizer somewhere is blocking somehow, or that my jvm is 
screwy. Has anyone else come across this behaviour?

cheers,
jim

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




RE: ActionErrors

2002-02-08 Thread Keith Bacon

Thanks Steve,
You've given another good reason not to use frames!
I like your error messages! (calling user a muppet!). 
K.
PS I tried to look up your companies web site (www.Infogain.co.uk) but no such server?
(because I'm looking for struts work in the UK soon)

--- Steve Earl [EMAIL PROTECTED] wrote:
 Hi Keith,
 
 Ta for the response. The reason I'm having to put the ActionErrors object
 onto the session is because the site I'm developing is using frames.
 Basically, we have an input search window and a results window below it. The
 only way I've been able to make this work is by putting the search form,
 results form (if any) and errors (again, if any) onto the session when the
 search is submitted. My action class then forwards back to the parent window
 of the two frames and the jsp for the search and results/errors drag the
 data from the session to rebuild the windows.
 
 This was all working fine without putting errors onto the session when I
 could use the meta-equiv tag Window-target to target the output jsp
 (containing either errors or a set of results) to the results window.
 Unfortunately this only seems to work within Netscape and not Mozilla or
 IE
 
 What I've done at present is clone the html:errors tag (and associated
 class) to create an identical one which checks session scope rather than
 request scope. It's nearly working (isn't that always the way!!) -
 unfortunately I'm getting some null values coming out around the errors
 which I don't yet understand - see below:
 null
 * Please pick an arrival city you muppet
 * Please enter a fare
 * Please pick a departure city
 null
 
 If I can sort this out (must be coming from the tag class somewhere) then I
 think that may solve my problem.
 
 However, if anyone knows a cleaner way of doing this (without hacking the
 struts taglibs) then please let  me know!!
 
 regards,
 steve
 
 __ 
 Steve Earl
 
 InfoGain Limited
 
 
 
 
 -Original Message-
 From: Keith Bacon [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 11:37 AM
 To: Struts Users Mailing List
 Subject: Re: ActionErrors
 
 
 Hi Steve,
 For the ActionErrors collection, get() returns an iterator which will return
 ActionError objects,
 not sure but hopefully their toString() will give the message you want. yuk!
 
 Much better to use html:errors tag to display them!
 I see the 'errors' tag only gets the collection from the request.
 Hava you got a good reason for having the errors in the session? 
 Keith.
 
 --- Steve Earl [EMAIL PROTECTED] wrote:
  Hi,
  
  Can anyone give me a quick tip on how to store and subsequently display an
  ActionErrors object in session scope rather than within the request.
  
  At the moment my Action class copies the ActionErrors from the request to
  the session with:
  sess.setAttribute(org.apache.struts.action.ERROR,
  
  request.getAttribute(org.apache.struts.action.ERROR));
  
  And I then try to access this from within my jsp with:
  logic:present name=org.apache.struts.action.ERROR
  scope=session
  bean:write name=org.apache.struts.action.ERROR
  scope=session /'
  /logic:present
  
  Unfortunately the output I get on the page is:
  org.apache.struts.action.ActionErrors@2b3d53' 
  
  which seems to be the reference to the ActionErrors object rather than the
  text of an individual error contained within it.
  
  thanks in advance for any help
  
  regards,
  steve
  
  
  __ 
  Steve Earl
  
  InfoGain Limited
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.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]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




[Off-topic]Transaction Management

2002-02-08 Thread João Paulo G. Batistella

Hi.
I would like to know how do you manage transactions when you are using Tomcat
JSP/Servlet engine??
Is there any free solution??

Thanks,
JP


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




Validation of a FormBean used in multiple pages

2002-02-08 Thread cool dude

Hi Guys,
   I'm a newbee to struts  so I'm filled with
questions (some of them are outrightly stupid at times
:) ... herez one of the problems that I'm facing. The
struts User Guide suggests that a form that spans
across multiple pages should be submitted to the same
form bean. This will lead to a situation where the
same form bean's validate() will have to cater for
multiple forms. How can I do this gracefully? I know I
can pass a hidden variable in each othe forms which
would tell me which form was submitted but this looks
cumbersome to me. My form bean validate() will be
cluttered with if-then-else statements. Is there any
better way that struts provides so that we can handle
this situation more gracefully. 

I remember seeing something on similar lines for the
Action subclasses, wherein one action class is
handling multiple pages  we want different methods to
handle this. This can be taken care of by using
DispatchAction  that solution looks pretty clean-cut.
Something on the similar lines would be really kewl
...

Thanx in advance,
VD.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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




Upload Example Application - BeanUtils.populate exception

2002-02-08 Thread Gilles Hooghe

This question has certainly already been asked but I'm kind of new to this framework.

My problem is that when I post my form from the upload.jsp page I get this exception.

javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


Any idea ?


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




Need help to build/find a pager with struts

2002-02-08 Thread Dirk Storck

Can someone tell me where I can find or how I can build a pager with struts
?

Thanks!!

All Comments are welcome !

___

Bitte beachten Sie unsere neue Adresse

Dirk Storck, Dipl.-Ing. (FH) t e c m a t h   A G
 Content Management Systems Division
Telefon 0631 303-5290   Europaallee 10, 67657 Kaiserslautern
Telefax 0631 303-5209 http://www.tecmath.com





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




[Off Topic] Using Struts with WebSphere Studio ApplicationDeveloper 4.0

2002-02-08 Thread MARK NICHOLS

Hello,

I am new to struts development (I've only been lurking in the list for
5 days) and I noticed some members seem to be using IBM products, or at
least have familiarity with them. I realize that my questions about
getting struts installed and working with WSAD 4.0 are not germane to
the group as a whole. However, if some kind soul on the list, who has
been down this path before, would e-mail me directly I do have some
questions about getting the example application installed and running,
as well as installing and using the documentation WAR.

best regards,

/\/\ark


___
- mark h. nichols
- par-ti-tion Software
- mark at partitionsoftware dot com (always)
- dhsv022 at dhs dot state dot il dot us (currently)

Ooo. They've got the Internet on computers now. - Homer Simpson 

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




actions and business logic

2002-02-08 Thread Mike Dewhirst

I wanted to clarify something.

We are in the design stages of our project and have to make a decision what
role do Actions play in the framework.

We are using JRF for the database tier, and Struts for presentation one.

I want to get a clear-cut answer to decide how much business logic (such as
preparing data - determined by permissions, busines rules, etc.) we have in
the Actions. My understanding (from previous Struts projects) is that
Actions are mainly for processing the request and passing parameters onto
business logic classes. 

You may, for instance, get a request asking you do create a new business
object. The object may require checking of rules, permissions, look-ups,
etc. It is my understanding that this should be done in a separate, context
independent business object class.

Is this correct, or is it ok (in less complex projects) to have most
business logic in the Action class?

Many thanks in advance for advise!

Mike Dewhirst


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=




RE: bean write tag's format

2002-02-08 Thread Knoll, Zach

I had the same problem as you. It seems they updated their online
documentation on the bean tags for stuff in the new release. If you download
a nightly build you should see the formatting functionality in the write
tag. 

-Original Message-
From: Louis Leung [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 2:17 PM
To: Struts Users Mailing List
Subject: bean write tag's format


Anyone used bean:write tag's format attribute before ??

I looked at the struts-bean.tld, and found that this attribute is not
defined by the write tag.

Furthermore, I downloaded struts source, and found that it is not even
implemented.

But this said is supported on Struts' homepage under taglib
documentation.

Am I missing something obvious ??


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


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


www.sothebys.com
**


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




Having problems with bean-factory extension

2002-02-08 Thread Dirk Storck

Hi,

I have downloaded the bean-factory of
http://www.sura.com.ru/~gonza/bean-factory/ and copied the sample war to
webapps. I have edited struts-config.xml, so it uses a database in mysql.
If I click on Array and Parameter  I get the following exception:
Error: 500
Location: /struts-bean-factory-sample/sample.jsp
Internal Servlet Error:
javax.servlet.ServletException: Cannot find bean list in scope page
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002fsample_0002ejspsample_jsp_1._jspService(_0002fsample_0002ejspsample_js
p_1.java:358)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1758)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

If I click on Pager I get an empty page

The Link Slide works but thats the onlyone.

CAN someone tell me what went wrong?

Many Thanks for your advice!
___

Bitte beachten Sie unsere neue Adresse

Dirk Storck, Dipl.-Ing. (FH) t e c m a t h   A G
 Content Management Systems Division
Telefon 0631 303-5290   Europaallee 10, 67657 Kaiserslautern
Telefax 0631 303-5209 http://www.tecmath.com





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




Initializer servlet?

2002-02-08 Thread Mark Woon

Hello.

I've seen a few posts about initializer servlets that basically does
whatever setup/housekeeping work needs to be done for the application.
How do you guarantee that this servlet will run before anything
else?  Is this something you can define within your servlet container?
If so, does anyone know how you'd do this with Tomcat?

Thanks,
-Mark


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




Re: Antwort: How to go about??

2002-02-08 Thread christian_weiler


Sorry - I do not own a soft copy!
anyway  good luck,
Chris.


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




Re: actions and business logic

2002-02-08 Thread Jay sissom

We also use JRF  Struts.  We try never to put any business logic in the
action object.  Action objects call boundary objects and the boundary
objects call business logic controller objects.  All business logic goes
into the controller objects.  As you can see, we build our applications
based on the Rational Unified Process.

If there is any logic in an application that would need to be done no
matter what user interface we used (web, client/server, etc), that logic
goes into the controller object.  The boundary objects are interfaces
between Struts and the business logic.  Business Logic Controllers don't
know what a form object is because that is Struts specific.  The boundary
object converts data from the controllers into form objects and form
objects back into native data.

By building the app this way, changes in business logic don't require 
changes to the UI and changes in the UI don't require changes to the 
business logic.

All the action objects do is call the boundary objects as needed to get or 
update data and prepare form beans for the JSP's that view the data.

In this message, a controller object is NOT the C in MVC.  MVC is all user 
interface code.  Our controllers are business logic code.  See Rational's 
web site for more information on the Rational Unified Process.

Jay

On Fri, 8 Feb 2002, Mike Dewhirst wrote:

 I wanted to clarify something.
 
 We are in the design stages of our project and have to make a decision what
 role do Actions play in the framework.
 
 We are using JRF for the database tier, and Struts for presentation one.
 
 I want to get a clear-cut answer to decide how much business logic (such as
 preparing data - determined by permissions, busines rules, etc.) we have in
 the Actions. My understanding (from previous Struts projects) is that
 Actions are mainly for processing the request and passing parameters onto
 business logic classes. 
 
 You may, for instance, get a request asking you do create a new business
 object. The object may require checking of rules, permissions, look-ups,
 etc. It is my understanding that this should be done in a separate, context
 independent business object class.
 
 Is this correct, or is it ok (in less complex projects) to have most
 business logic in the Action class?
 
 Many thanks in advance for advise!
 
 Mike Dewhirst
 
 
 =**
 
 If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.
 
 If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.
 
 Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of 
the UCLES Group unless otherwise specifically stated.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses although this does not guarantee 
that this email is virus free.
 
 **=
 
 


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




RE: Initializer servlet?

2002-02-08 Thread Brian Richards

The 2.3 Servlet API has Lifecyle Events.  You just have to use the
listener tag in your web.xml to specify a class that implements the
ServletContextListener interface.  There is an explanation at

http://developer.java.sun.com/developer/technicalArticles/Servlets/servl
etapi2.3/

under the Lifecyle Events section.  I've use this a few times in
Tomcat 4 with no problems.  

Bsr


-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 08, 2002 9:21 AM
To: Struts Users Mailing List
Subject: Initializer servlet?


Hello.

I've seen a few posts about initializer servlets that basically does
whatever setup/housekeeping work needs to be done for the application.
How do you guarantee that this servlet will run before anything else?
Is this something you can define within your servlet container? If so,
does anyone know how you'd do this with Tomcat?

Thanks,
-Mark


--
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: bean write tag's format

2002-02-08 Thread Jay sissom

This has been very confusing for our users.  The documentation on the web 
site doesn't match the released version.  Would it be possible to have 
documentation for the release seperate from documentation for the nightly 
versions?  It seems like it is going to be a very long time before 1.1 
comes out so we're using 1.0.1 and the documentation doesn't always match.

Thanks
Jay

On Fri, 8 Feb 2002, Knoll, Zach wrote:

 I had the same problem as you. It seems they updated their online
 documentation on the bean tags for stuff in the new release. If you download
 a nightly build you should see the formatting functionality in the write
 tag. 
 
 -Original Message-
 From: Louis Leung [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 2:17 PM
 To: Struts Users Mailing List
 Subject: bean write tag's format
 
 
 Anyone used bean:write tag's format attribute before ??
 
 I looked at the struts-bean.tld, and found that this attribute is not
 defined by the write tag.
 
 Furthermore, I downloaded struts source, and found that it is not even
 implemented.
 
 But this said is supported on Struts' homepage under taglib
 documentation.
 
 Am I missing something obvious ??
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the postmaster at [EMAIL PROTECTED]
 
 
 www.sothebys.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]




Re: Initializer servlet?

2002-02-08 Thread Jay sissom

In the web.xml file, you can give each servlet a loading order.  Just make 
sure your initilizing servlet has a lower number than the struts action 
servlet.

Jay

On Fri, 8 Feb 2002, Mark Woon wrote:

 Hello.
 
 I've seen a few posts about initializer servlets that basically does
 whatever setup/housekeeping work needs to be done for the application.
 How do you guarantee that this servlet will run before anything
 else?  Is this something you can define within your servlet container?
 If so, does anyone know how you'd do this with Tomcat?
 
 Thanks,
 -Mark
 
 
 --
 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: actions and business logic

2002-02-08 Thread Jerome Josephraj

Mike,

It's better to keep all your business logic in a separate layer
say Business Services layer which is independent of your action layer.
This helps you in decoupling actions and business rules.

Ideally checking for rules, permissions should go in Business
services layer but it's good to have these in a separate objects and
access these objects in appropriate places in Business layer. This gives
the flexibility of adding/removing permissions, roles at it's own
convenience.

Hope all your lookups, permission roles are in a database. This
will greatly help in skiving any future business rules changes as most
of the time these rules are capricious and arbitrary (At least in the
project which I am working on)

Cheers,

Jerome.

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 08 February 2002 14:09
To: 'Struts Users Mailing List'
Subject: actions and business logic


I wanted to clarify something.

We are in the design stages of our project and have to make a decision
what
role do Actions play in the framework.

We are using JRF for the database tier, and Struts for presentation one.

I want to get a clear-cut answer to decide how much business logic (such
as
preparing data - determined by permissions, busines rules, etc.) we have
in
the Actions. My understanding (from previous Struts projects) is that
Actions are mainly for processing the request and passing parameters
onto
business logic classes. 

You may, for instance, get a request asking you do create a new business
object. The object may require checking of rules, permissions, look-ups,
etc. It is my understanding that this should be done in a separate,
context
independent business object class.

Is this correct, or is it ok (in less complex projects) to have most
business logic in the Action class?

Many thanks in advance for advise!

Mike Dewhirst


=**

If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby
notified that any dissemination or copying of this communication and its
attachments is strictly prohibited.

If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using
the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group
does not accept legal responsibility for the contents of this message.
Any views or opinions presented are solely those of the author and do
not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

**=
  _  

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. 

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




logic:equal tag problem

2002-02-08 Thread Philippe Hodapp / 1genia

I would like a parameter in the value of the equal tag. Is this possible :
logic:equal name=categorieitem property=noCat value=

i try value=%out.println(var)% but this don't work.


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




Re: actions and business logic

2002-02-08 Thread christian_weiler


Hi!

In my opinion:

The Action-objects should handle the workflow, second level validation,
security, ... and so on. It makes things much more complicated when you mix
up workflow with business logic. So usually I try to use a facade pattern
(see design pattern book from gang of 4) for getting a high level
abstraction of my business logic and a central access point for my action
layer! Additionally reusability and maintenance is also an important
factor. By means of a facade pattern you are more fexible if you have to
change the business logic. And if there is no bl in your action classes it
is easier to change the workflow!

Chris.









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




bean:write .... filter =true and HTML question

2002-02-08 Thread Jeff_Mychasiw



Greetings:
 I apologize as this is not direct Struts question.
Background:
I am using Struts in our current Application.  The time is not right for me to
introduce the controller at this time but with any new changes I use as many of
the logic tags and bean tags as I can.Just by using these tags I have
cleaned up much of my pages because our app started small, got big and is all
scriplets.

Usage:
 We have many screens that our users will input notes about the clients that
they manage.  When we view these notes in read-only format, (ie: direct to page,
not a control) I use the bean write tag with filter turned on (default)  to weed
out damaging characters.

Problem:
 Some users will take notes from MS word and cut and paste into the text
area control.   This will result in certain characters being encoded on form
submit such as  encoded to #8220;   and so on. These code end up in the
database.   If use struts filter, I will get #8220; on the page because itself
is encoded.

If I turn filtering off, the page will render with the supported character.
The Struts filter is only doing it's job.   How do I prevent the characters from
being sent to the data base that way?

Do I have to Decode before I send them to the database?
Should I be looking into the the form attributes such as char set and enc-type?

Thanks

too busy to think..



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




RE: [Off Topic] Using Struts with WebSphere Studio Application Developer 4.0

2002-02-08 Thread ltorrence

I haven't actually done it but I remember seeing a post to the WSAD
newsgroup saying that you had to use the struts source (not the jar files)
to get it running in WSAD.

-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:08 AM
To: [EMAIL PROTECTED]
Subject: [Off Topic] Using Struts with WebSphere Studio Application
Developer 4.0


Hello,

I am new to struts development (I've only been lurking in the list for
5 days) and I noticed some members seem to be using IBM products, or at
least have familiarity with them. I realize that my questions about
getting struts installed and working with WSAD 4.0 are not germane to
the group as a whole. However, if some kind soul on the list, who has
been down this path before, would e-mail me directly I do have some
questions about getting the example application installed and running,
as well as installing and using the documentation WAR.

best regards,

/\/\ark


___
- mark h. nichols
- par-ti-tion Software
- mark at partitionsoftware dot com (always)
- dhsv022 at dhs dot state dot il dot us (currently)

Ooo. They've got the Internet on computers now. - Homer Simpson 

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



RE: [Off Topic] Using Struts with WebSphere Studio Application De veloper 4.0

2002-02-08 Thread Kevin . Melberger

Not true...all you need to do is put the struts.jar file in the web
application's WEB-INF/lib directory. This will resolve the runtime
reference. If you want to debug Struts, then you need to have a Struts
project with the source code. The Struts.WAR should be added to the
application's EAR. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:13 AM
To: [EMAIL PROTECTED]
Subject: RE: [Off Topic] Using Struts with WebSphere Studio Application
De veloper 4.0


I haven't actually done it but I remember seeing a post to the WSAD
newsgroup saying that you had to use the struts source (not the jar files)
to get it running in WSAD.

-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:08 AM
To: [EMAIL PROTECTED]
Subject: [Off Topic] Using Struts with WebSphere Studio Application
Developer 4.0


Hello,

I am new to struts development (I've only been lurking in the list for
5 days) and I noticed some members seem to be using IBM products, or at
least have familiarity with them. I realize that my questions about
getting struts installed and working with WSAD 4.0 are not germane to
the group as a whole. However, if some kind soul on the list, who has
been down this path before, would e-mail me directly I do have some
questions about getting the example application installed and running,
as well as installing and using the documentation WAR.

best regards,

/\/\ark


___
- mark h. nichols
- par-ti-tion Software
- mark at partitionsoftware dot com (always)
- dhsv022 at dhs dot state dot il dot us (currently)

Ooo. They've got the Internet on computers now. - Homer Simpson 

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




Dynamic resources

2002-02-08 Thread Jim Crossley

Is it possible to dynamically set the resource.properties file?

I'm thinking that would be a clever way to customize a user's look and
feel.  We have a portal application that, for example, displays
different images depending on who's logged in.  It would be nice if
the JSP pages could always reference the same pageKey, yet that key
may return a different property for each user.

Am I barking up the wrong tree?

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




Using JavaScript in the JSP Pages

2002-02-08 Thread Satish Jeejula

Hello All,

I am using JavaScript to validate credit card number field in the JSP page.
Using /html:form tag for the form in JSP page.

The form is getting submitted even though the credit card is not validated.
How I can prevent this from happening.

Thanks,
Satish 

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




Controller and security

2002-02-08 Thread Mike Dewhirst

We are trying to come with a good security model in conjunction with Struts.

I was thinking of calling a business class method to check the user's
permission for the requested mapping from within the Controller, but I'm
sure custom-modifying source code of a generic frame work is not exactly
best-practice.

Any suggestions?

PS Thanks to those who did for the advice with actions and business logic!


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

**=




RE: Using JavaScript in the JSP Pages

2002-02-08 Thread Mattos, John

Satish,

Are you just using garden variety client side JavaScript for validation,
calling a method in the onSubmit of your form tag? If so..

return false;

in your JS method will prevent the form from being submitted. 

An alternative you might consider is to check out the Struts Validator
http://home.earthlink.net/~dwinterfeldt/ (or even just using the Form Bean's
validate() method for validation) so you're leveraging the power of Struts.

Hope it helps

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014

-Original Message-
From: Satish Jeejula [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:39 AM
To: '[EMAIL PROTECTED]'
Subject: Using JavaScript in the JSP Pages


Hello All,

I am using JavaScript to validate credit card number field in the JSP page.
Using /html:form tag for the form in JSP page.

The form is getting submitted even though the credit card is not validated.
How I can prevent this from happening.

Thanks,
Satish 

--
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: Controller and security

2002-02-08 Thread John M. Corro

If you're rolling your own security management, I'd speak favorably for
using the proxy pattern.

Take for example a simple user management areaCRUD operations on various
users (get list of users, get user profile, add/edit/delete, etc).  I used
basically two classes to house the interactions w/ the database - a Factory
class for returning User and User-related objects (ie User Roles, etc) and a
Manager class for handling User persistance (ie add/edit/delete).

The methods within these classes were exposed to the rest of the application
via a SecurityHandler class.  Then if you wanted to say, get a listing of
Users...you'd instantiate this UserHandler object (passing into the
constructor your own User object which was persisted in the session) and
call 'userHandler.getUserList()'.  The UserHandler would examine the User
object which was passed to it at instantiation and examine the roles
associated w/ the User to see whether it would throw a SecurityException or
return the listing of Users.

I'd advocate this pattern because you can decouple the biz logic (from the
Factory and Manager classses) and security logic (in the Handler class) from
the application flow (Struts).


- Original Message -
From: Mike Dewhirst [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 9:44 AM
Subject: Controller and security


 We are trying to come with a good security model in conjunction with
Struts.

 I was thinking of calling a business class method to check the user's
 permission for the requested mapping from within the Controller, but I'm
 sure custom-modifying source code of a generic frame work is not exactly
 best-practice.

 Any suggestions?

 PS Thanks to those who did for the advice with actions and business
logic!


 =**

 If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby notified
that any dissemination or copying of this communication and its attachments
is strictly prohibited.

 If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using the
reply facility on e-mail.

 Internet communications are not secure and therefore the UCLES Group does
not accept legal responsibility for the contents of this message.  Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the UCLES Group unless otherwise specifically stated.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

 **=




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




RE: Controller and security

2002-02-08 Thread David Larson

extend the controlling servlet, like...

public class YourCustomServlet extends
org.apache.struts.action.ActionServlet {

...then override those methods you desire to customize the response on.
You'll need to update the Web.xml file to initialize your customized
controller instead of the default controlling servlet.

hth,

dave

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:44 AM
To: 'Struts Users Mailing List'
Subject: Controller and security


We are trying to come with a good security model in conjunction with
Struts.

I was thinking of calling a business class method to check the user's
permission for the requested mapping from within the Controller, but I'm
sure custom-modifying source code of a generic frame work is not exactly
best-practice.

Any suggestions?

PS Thanks to those who did for the advice with actions and business
logic!


=**

If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby
notified that any dissemination or copying of this communication and its
attachments is strictly prohibited.

If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using
the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group
does not accept legal responsibility for the contents of this message.
Any views or opinions presented are solely those of the author and do
not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

**=



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




RE: Struts scalability?

2002-02-08 Thread Galbreath, Mark

Define high.

Mark

-Original Message-
From: Kenneth Ljunggren [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 4:21 AM

Anyone that have used Struts in any systems that required very high
scalability?

Br Kenneth Ljunggren

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




WAS 3.5 Struts and Debugging

2002-02-08 Thread Patrick Logé

I've installed Struts on Websphere 3.5.4 (W2K). It works pretty well.
I just wondered why I often have unhandled exception when trying some codes

Example
---
Error 500
...
com.ibm.servlet.engine.webapp.UncaughtServletException: 
Server caught unhandled exception from servlet [jsp11]: null
...
javax.servlet.jsp.JspException: 
com.ibm.servlet.engine.webapp.UncaughtServletException: 
Server caught unhandled exception from servlet [jsp11]: null
at javax.servlet.jsp.JspException.init(JspException.java:73)
at 
org.apache.struts.webapp.example.CheckLogonTag.doEndTag(CheckLogonTag.java:188)
at _mainMenu_jsp_0._jspService(_mainMenu_jsp_0.java:93)
...

Did I miss something, some misplaced ressourcebundle, path, other ?



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




Re: SSL + URL rewriting problem

2002-02-08 Thread Max Cooper

Mark,

Please tell Netscape's cookie subsystem! I know they are essentially the
same, but Netscape doesn't view them that way and won't send cookies set by
https://hostname to https://hostname:443 so it does turn out to be a problem
anyway. It would be ideal if the web/app server would not mess with the URL
as long as you don't need to switch ports.

-Max

- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 3:45 AM
Subject: RE: SSL + URL rewriting problem


 Port 443 is the default Secure Sockets Layer port, so it is going to the
URL
 you passed.

 Mark

 -Original Message-
 From: Nathan Anderson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 7:00 PM
 To: [EMAIL PROTECTED]
 Subject: Re: SSL + URL rewriting problem


 I have a bit more information if anyone is interested in helping me with
 this issue..

 I found out that the HttpUtils.getRequestURL().  If I make a JSP with the
 following scriptlet:

 %= HttpUtils.getRequestURL(request) %

 I get this:

 http://hostname:443/webapp/page.jsp

 when the actual request URL was:

 https://hostname/webapp/page.jsp

 Any ideas appreciated.

 Nathan Anderson
 --
 Sent via jApache.org

 --
 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: Initializer servlet?

2002-02-08 Thread Galbreath, Mark

Specify it in the load-on-startup tag in web.xml (not sure about the exact
tag syntax).

Mark

-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:21 AM

I've seen a few posts about initializer servlets that basically does
whatever setup/housekeeping work needs to be done for the application.
How do you guarantee that this servlet will run before anything
else?  Is this something you can define within your servlet container?
If so, does anyone know how you'd do this with Tomcat?

Thanks,
-Mark

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




RE: [Off Topic] Using Struts with WebSphere Studio Application De veloper 4.0

2002-02-08 Thread Walter De Wit

There is a redbook from IBM describing this issue:
Websphere 4 Application development Handbook
url:
http://publib-b.boulder.ibm.com/Redbooks.nsf/9445fa5b416f6e32852569ae006bb65
f/55c2a771edaeb36c88256a45005df84b?OpenDocumentHighlight=0,wasad
chapter 12
From this page you can download the PDF version (6MB)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 8 februari 2002 16:09
To: [EMAIL PROTECTED]
Subject: RE: [Off Topic] Using Struts with WebSphere Studio Application
De veloper 4.0


Not true...all you need to do is put the struts.jar file in the web
application's WEB-INF/lib directory. This will resolve the runtime
reference. If you want to debug Struts, then you need to have a Struts
project with the source code. The Struts.WAR should be added to the
application's EAR. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:13 AM
To: [EMAIL PROTECTED]
Subject: RE: [Off Topic] Using Struts with WebSphere Studio Application
De veloper 4.0


I haven't actually done it but I remember seeing a post to the WSAD
newsgroup saying that you had to use the struts source (not the jar files)
to get it running in WSAD.

-Original Message-
From: MARK NICHOLS [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:08 AM
To: [EMAIL PROTECTED]
Subject: [Off Topic] Using Struts with WebSphere Studio Application
Developer 4.0


Hello,

I am new to struts development (I've only been lurking in the list for
5 days) and I noticed some members seem to be using IBM products, or at
least have familiarity with them. I realize that my questions about
getting struts installed and working with WSAD 4.0 are not germane to
the group as a whole. However, if some kind soul on the list, who has
been down this path before, would e-mail me directly I do have some
questions about getting the example application installed and running,
as well as installing and using the documentation WAR.

best regards,

/\/\ark


___
- mark h. nichols
- par-ti-tion Software
- mark at partitionsoftware dot com (always)
- dhsv022 at dhs dot state dot il dot us (currently)

Ooo. They've got the Internet on computers now. - Homer Simpson 

--
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: actions and business logic

2002-02-08 Thread Keith Bacon

I agree.
Is it worthwhile adding a facade layer if you only have 1 or 2 different user 
interfaces? I can
see the value if a change to business logic requires dozens of GUI changes. Also if 
you are
writing a UI for a part of a complex system it's a way of the owners of the system 
presenting you
with a restricted/simplified interface.

For workflow some people seem to want to specify it with tags on the jsp, but I prefer 
(as you
say) to do it in the action class. The jsp page is concerned with display/capturing 
data job not
where it's going to or coming from.

These insights into how othe people things are fascinating  valuable - more please!
Keith.

--- [EMAIL PROTECTED] wrote:
 
 Hi!
 
 In my opinion:
 
 The Action-objects should handle the workflow, second level validation,
 security, ... and so on. It makes things much more complicated when you mix
 up workflow with business logic. So usually I try to use a facade pattern
 (see design pattern book from gang of 4) for getting a high level
 abstraction of my business logic and a central access point for my action
 layer! Additionally reusability and maintenance is also an important
 factor. By means of a facade pattern you are more fexible if you have to
 change the business logic. And if there is no bl in your action classes it
 is easier to change the workflow!
 
 Chris.
 
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: [Off-topic]Transaction Management

2002-02-08 Thread Keith Bacon

Use a database that manages transactions, store all data on it, then only the database 
is involved
in transactions. The container is irrelevant. I'm not sure if you can get a 'proper' 
DB free.

With J2EE you can store data in sessions, container managed storage  multiple 
database servers
etc  have the whole lot managed in 1 almighty multi-product transaction. Heaven for 
techies, hell
for managers!
Keith.


--- João Paulo G. Batistella [EMAIL PROTECTED] wrote:
 Hi.
 I would like to know how do you manage transactions when you are using Tomcat
 JSP/Servlet engine??
 Is there any free solution??
 
 Thanks,
 JP
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: Need help to build/find a pager with struts

2002-02-08 Thread Keith Bacon

Marks in his feisty friday mood!

--- Galbreath, Mark [EMAIL PROTECTED] wrote:
 STFW
 
 Mark
 
 -Original Message-
 From: Dirk Storck [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 8:38 AM
 
 Can someone tell me where I can find or how I can build a pager with struts
 ?
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Antwort: RE: Controller and security

2002-02-08 Thread christian_weiler


The book 'JSP Professional' recommends to put the security stuff into
processMapping()-method of the controller respectively ActionServlet (after
inheriting).

Wouldn't it be a good idea to integrate a kind of callback mechanism into
the controller? So functions which make sense to do them at a central point
could be integrated easily!?

bye for this week,
Chris.


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




Re: [Off-topic]Transaction Management

2002-02-08 Thread Dan Moore

On Feb 8, Keith Bacon wrote:

 Use a database that manages transactions, store all data on it, then only the 
database is involved
 in transactions. The container is irrelevant. I'm not sure if you can get a 'proper' 
DB free.

Open source dbs:

Postgresql has transactions, foreign keys, etc:
www.postgresql.org

Mysql is fast, but no transactions (yet):
www.mysql.org

And you may want to check out http://www.skippingdot.net/2002/02/01, which
is the first of a three part comparison of Open Source Databases.

Dan


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




RE: Need help to build/find a pager with struts

2002-02-08 Thread Galbreath, Mark

:-)~

Just got through reading
http://www.tuxedo.org/~esr/faqs/smart-questions.html

Mark

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 11:55 AM

Marks in his feisty friday mood!

--- Galbreath, Mark [EMAIL PROTECTED] wrote:
 STFW
 
 Mark
 
 -Original Message-
 From: Dirk Storck [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 8:38 AM
 
 Can someone tell me where I can find or how I can build a pager with
struts
 ?

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




Re: bean:write .... filter =true and HTML question

2002-02-08 Thread Keith Bacon

Not an answer Jeff, just another related issue which I've been postponing.
When user types data into a html:textarea they can use new line chars.
If I display it in a web page as free text the new lines are ignored. So I want to be 
able to
optionally convert new lines to br /  probably multiple spaces to nbsp; other 
stuff too.
ie. I need a component for handling incoming  outgoing text, I'm sure the spec for 
the perfect
product is very fiddly.
Hopefully some-one has it already.

--- [EMAIL PROTECTED] wrote:
 
 
 Greetings:
  I apologize as this is not direct Struts question.
 Background:
 I am using Struts in our current Application.  The time is not right for me to
 introduce the controller at this time but with any new changes I use as many of
 the logic tags and bean tags as I can.Just by using these tags I have
 cleaned up much of my pages because our app started small, got big and is all
 scriplets.
 
 Usage:
  We have many screens that our users will input notes about the clients that
 they manage.  When we view these notes in read-only format, (ie: direct to page,
 not a control) I use the bean write tag with filter turned on (default)  to weed
 out damaging characters.
 
 Problem:
  Some users will take notes from MS word and cut and paste into the text
 area control.   This will result in certain characters being encoded on form
 submit such as  encoded to “   and so on. These code end up in the
 database.   If use struts filter, I will get “ on the page because itself
 is encoded.
 
 If I turn filtering off, the page will render with the supported character.
 The Struts filter is only doing it's job.   How do I prevent the characters from
 being sent to the data base that way?
 
 Do I have to Decode before I send them to the database?
 Should I be looking into the the form attributes such as char set and enc-type?
 
 Thanks
 
 too busy to think..
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: Initializer servlet?

2002-02-08 Thread Thinh Doan

try:

   servlet
 servlet-nameInitialization/servlet-name
 servlet-classcom.yourcompany.InitializationServlet/servlet-class
 load-on-startup2/load-on-startup
   /servlet

Thinh

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:38 AM
To: 'Struts Users Mailing List'
Subject: RE: Initializer servlet?


Specify it in the load-on-startup tag in web.xml (not sure about the exact
tag syntax).

Mark

-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:21 AM

I've seen a few posts about initializer servlets that basically does
whatever setup/housekeeping work needs to be done for the application.
How do you guarantee that this servlet will run before anything
else?  Is this something you can define within your servlet container?
If so, does anyone know how you'd do this with Tomcat?

Thanks,
-Mark

--
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: Initializer Servlet?

2002-02-08 Thread Mattos, John

Also, make sure the number in the load-on-startup2/load-on-startup tag
is lower than the Action Servlet so it loads first...

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014

-Original Message-
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:01 PM
To: Struts Users Mailing List
Subject: RE: Initializer servlet?


try:

   servlet
 servlet-nameInitialization/servlet-name
 servlet-classcom.yourcompany.InitializationServlet/servlet-class
 load-on-startup2/load-on-startup
   /servlet

Thinh

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:38 AM
To: 'Struts Users Mailing List'
Subject: RE: Initializer servlet?


Specify it in the load-on-startup tag in web.xml (not sure about the exact
tag syntax).

Mark

-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 9:21 AM

I've seen a few posts about initializer servlets that basically does
whatever setup/housekeeping work needs to be done for the application.
How do you guarantee that this servlet will run before anything
else?  Is this something you can define within your servlet container?
If so, does anyone know how you'd do this with Tomcat?

Thanks,
-Mark

--
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: Controller and security

2002-02-08 Thread Jin Bal

You could dispense with changing/extending the controller by creating an
abstract action layer that defines a new abstract method such as
performAction() which returns an actionforward obj like perform() .

Your perform method in the abstract class then carries out the validaton if
it is ok it call the abstract method. Otherwise it forwards to an error page
(or anywhere)

Your secure actions extend from your abstract authentication action and
implement the abstract method with your processing etc.

The benefits of this are:
 that you can specify additional parameters in you abstract method eg a db
connection from your pool or authenticated user object.  Of course you still
pass the struts stuff down to the abstract method as well (request response
mapping etc).

You can manage the db connection(if you pass one down) and exception
handling in extensions of this class  from the abstract class with try catch
finally etc with out having to repeat code in every action class

Also it means that you can leave the controller servlet alone - this sits on
top of strut controller/actions

eg:

public abstract class secureAction extends action {

public actionforward perform(req,res,etc...)
try
// carry out validation/authentication
if valid
return performAction(req,res etc PLUS any other objs you need/want
in subclass implementations ie db connection);

else
KICK USER OUT
catch throwable
log exception; forward to errorpage
rollback db connection (there is one
finally
release resources etc
}
//NEW ABSTRACT METHOD
public abstract actionforward performAction(req,res etc PLUS any other objs
you need/want in subclass implementations);
}

public class SecureExtensionAction extends secureAction {

//implementation of abstract method
public ActionForward performaction(params inherited from superclass)throws
throwable {

do processing withou having to manage resources this is taken care of by
superclass

}
}

HTH!

Jin


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




RE: [Off Topic] Using Struts with WebSphere Studio Application De veloper 4.0

2002-02-08 Thread Sanjay Choudhary

Hi,

I have successfully installed and run couple of
examples, including example from struts on WSAD 4.0. 

Tell me how may I help you.

-Sanjay
--- [EMAIL PROTECTED] wrote:
 I haven't actually done it but I remember seeing a
 post to the WSAD
 newsgroup saying that you had to use the struts
 source (not the jar files)
 to get it running in WSAD.
 
 -Original Message-
 From: MARK NICHOLS [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 9:08 AM
 To: [EMAIL PROTECTED]
 Subject: [Off Topic] Using Struts with WebSphere
 Studio Application
 Developer 4.0
 
 
 Hello,
 
 I am new to struts development (I've only been
 lurking in the list for
 5 days) and I noticed some members seem to be using
 IBM products, or at
 least have familiarity with them. I realize that my
 questions about
 getting struts installed and working with WSAD 4.0
 are not germane to
 the group as a whole. However, if some kind soul on
 the list, who has
 been down this path before, would e-mail me directly
 I do have some
 questions about getting the example application
 installed and running,
 as well as installing and using the documentation
 WAR.
 
 best regards,
 
 /\/\ark
 
 
 ___
 - mark h. nichols
 - par-ti-tion Software
 - mark at partitionsoftware dot com (always)
 - dhsv022 at dhs dot state dot il dot us (currently)
 
 Ooo. They've got the Internet on computers now. -
 Homer Simpson 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: bean:write .... filter =true and HTML question

2002-02-08 Thread Jeff_Mychasiw



Thanks for the reply, though you did get my hopes up for an elegant solution :-)

With regard to your issue, we had a similar situation with the newline plus we
had old data that  used a pipe '|' to indicate a new line. so we put this ugly
bit of code in a big hurry
just before release.  You might find it amusing...
 for(int i=0;iin.length();i++){
testChar = in.charAt(i);
String newLine = br;

if( (i+1)  in.length()){
nextChar = in.charAt(i+1);
}else{
nextChar = in.charAt(i);
}

if(((testChar == 13 )  (nextChar == 10)) || (testChar == 13 )){
temp.append(newLine);
}else if(testChar == '|'){
temp.append(newLine);
}else{
temp.append(testChar);
}
}
return temp.toString();

I never feel good about Band-Aid code.

I guess I am ok with translating things just before output to the page, but I'm
not sure I want to have to check every character before I send it to the data
base.

This is the first major Java web project that I am on ( as well as the other
team members) and with this problem I just feel that I am missing something very
 simple and fundamental.

let us know if find the perfect solution!
Good luck !




Keith Bacon [EMAIL PROTECTED] on 02/08/2002 11:03:17 AM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:  Re: bean:write  filter =true and HTML question


Not an answer Jeff, just another related issue which I've been postponing.
When user types data into a html:textarea they can use new line chars.
If I display it in a web page as free text the new lines are ignored. So I want
to be able to
optionally convert new lines to br /  probably multiple spaces to nbsp;
other stuff too.
ie. I need a component for handling incoming  outgoing text, I'm sure the spec
for the perfect
product is very fiddly.
Hopefully some-one has it already.

--- [EMAIL PROTECTED] wrote:


 Greetings:
  I apologize as this is not direct Struts question.
 Background:
 I am using Struts in our current Application.  The time is not right for me to
 introduce the controller at this time but with any new changes I use as many
of
 the logic tags and bean tags as I can.Just by using these tags I have
 cleaned up much of my pages because our app started small, got big and is all
 scriplets.

 Usage:
  We have many screens that our users will input notes about the clients
that
 they manage.  When we view these notes in read-only format, (ie: direct to
page,
 not a control) I use the bean write tag with filter turned on (default)  to
weed
 out damaging characters.

 Problem:
  Some users will take notes from MS word and cut and paste into the text
 area control.   This will result in certain characters being encoded on form
 submit such as  encoded to 


?   and so on. These code end up in the
 database.   If use struts filter, I will get ? on the page because itself
 is encoded.

 If I turn filtering off, the page will render with the supported character.
 The Struts filter is only doing it's job.   How do I prevent the characters
from
 being sent to the data base that way?

 Do I have to Decode before I send them to the database?
 Should I be looking into the the form attributes such as char set and
enc-type?

 Thanks

 too busy to think..



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



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.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]


Re: Friday Mood

2002-02-08 Thread Pete Carapetyan

As much as I enjoy the levity, there are times when I feel a tiny bit abused with
the more overtly social posts.

Not that my delete key doesn't work, just that if one is seeking social
encounter, the best place to do that may be in another forum.

my2c.

Galbreath, Mark wrote:

 I wish I could Struts (reference to stay on-topic) down to the local Irish
 pub right now for a pint or two of Guinness!  That would better my mood!

 -Original Message-
 From: Keith Bacon [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 11:55 AM

 Marks in his feisty friday mood!

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

--
Pete Carapetyan
http://datafundamentals.com
Java Development Services

Open standards technology for commercial profitability



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




Re: RE: Controller and security

2002-02-08 Thread Chuck Cavaness

I've seen this solution work very well. When you extend the ActionServlet, you can 
override the processPreprocess method to determine if the user has the neccessary 
permissions, if the user has a valid session, etc... long before ever getting to the 
Action class (If you're using the 1.1 version, then the processPreprocess method is 
in the RequestProcessor now).

With this approach, you don't need to check if the session is valid in the Action 
classes. Another problem that this solution helps out with is say a user has logged in 
and has let the session time out while looking at a page. If the user then clicks a 
button like an update or something, control may go into the ActionForm before making 
it to the Action instance. What's going to happen if the ActionForm attempts to use 
the session (which has timed out). By putting the check in the front controller, 
you're able to save checking for a valid session in the ActionForm and/or Action 
classes. 

Chuck
--
Sent via jApache.org

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




Re: logic:equal tag problem

2002-02-08 Thread Keith Bacon


maybe try value=%= var%

--- Philippe Hodapp / 1genia [EMAIL PROTECTED] wrote:
 I would like a parameter in the value of the equal tag. Is this possible :
 logic:equal name=categorieitem property=noCat value=
 
 i try value=%out.println(var)% but this don't work.
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Article about Struts and XSLT

2002-02-08 Thread Craig R. McClanahan

An interesting approach to using XSLT and XML to create the user interface
for Struts based applications ...

  http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html

Ted, could you please add this to the resources page?

Craig



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




RE: Friday Mood

2002-02-08 Thread Galbreath, Mark

Only happens on Friday afternoons, Pete.  Relax.

Mark

-Original Message-
From: Pete Carapetyan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 12:35 PM
To: Struts Users Mailing List
Subject: Re: Friday Mood


As much as I enjoy the levity, there are times when I feel a tiny bit abused
with
the more overtly social posts.

Not that my delete key doesn't work, just that if one is seeking social
encounter, the best place to do that may be in another forum.

my2c.

Galbreath, Mark wrote:

 I wish I could Struts (reference to stay on-topic) down to the local Irish
 pub right now for a pint or two of Guinness!  That would better my mood!

 -Original Message-
 From: Keith Bacon [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 11:55 AM

 Marks in his feisty friday mood!

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

--
Pete Carapetyan
http://datafundamentals.com
Java Development Services

Open standards technology for commercial profitability



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

2002-02-08 Thread Pete Carapetyan

That's OK, my delete key is ready. Just wouldn't be right for me to let it go
third week without just a slight protest. But you are right, I should relax.

Galbreath, Mark wrote:

 Only happens on Friday afternoons, Pete.  Relax.

 Mark

 -Original Message-
 From: Pete Carapetyan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 12:35 PM
 To: Struts Users Mailing List
 Subject: Re: Friday Mood

 As much as I enjoy the levity, there are times when I feel a tiny bit abused
 with
 the more overtly social posts.

 Not that my delete key doesn't work, just that if one is seeking social
 encounter, the best place to do that may be in another forum.

 my2c.

 Galbreath, Mark wrote:

  I wish I could Struts (reference to stay on-topic) down to the local Irish
  pub right now for a pint or two of Guinness!  That would better my mood!
 
  -Original Message-
  From: Keith Bacon [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 08, 2002 11:55 AM
 
  Marks in his feisty friday mood!
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 Pete Carapetyan
 http://datafundamentals.com
 Java Development Services

 Open standards technology for commercial profitability

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

--
Pete Carapetyan
http://datafundamentals.com
Java Development Services

Open standards technology for commercial profitability



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




Struts application deployment problem

2002-02-08 Thread Stillwell, Christopher

We have successfully installed a Struts application in WebSphere 3.5.3 on an
NT box, but when we try to deploy to one on a Unix box we get the following
exception.  The Jaxp 1.0.1 jaxp.jar and parser.jar are in the servlets
directory, just as they were on NT.  Now the other difference is that there
are other web apps deployed within the Unix WebSphere installation.  It
seems that this is another *%#(@^ case of XML incompatibilities.  Any ideas
as to what to look for or how to resolve?  

Thanks,

Chris Stillwell

Root Error-1: java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.SAXParserFactoryImpl 
 at java.lang.Throwable.fillInStackTrace(Native Method) 
 at java.lang.Throwable.fillInStackTrace(Compiled Code) 
 at java.lang.Throwable.init(Compiled Code) 
 at java.lang.Error.init(Error.java:50) 
 at
javax.xml.parsers.FactoryConfigurationError.init(FactoryConfigurationError
.java:108) 
 at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:150) 
 at org.apache.struts.digester.Digester.getParser(Digester.java:275) 
 at org.apache.struts.digester.Digester.parse(Digester.java:755) 
 at org.apache.struts.action.ActionServlet.initMapping(Compiled Code) 
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466) 
 at com.bht.it.vista.servlet.VistaActionController.init(Unknown Source) 
 at javax.servlet.GenericServlet.init(GenericServlet.java:258) 
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:622) 
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:136) 
 at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:244) 
 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:102) 
 at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:295) 
 at javax.servlet.GenericServlet.init(GenericServlet.java:258) 
 at com.ibm.servlet.engine.webapp.ServletManager.addServlet(Compiled
Code) 
 at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(Compiled
Code) 
 at
com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(Compi
led Code) 
 at com.ibm.servlet.engine.webapp.WebApp.getServletReference(Compiled
Code) 
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(Comp
iled Code) 
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.init(Compiled
Code) 
 at com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(Compiled
Code) 
 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled Code)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67) 
 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compiled
Code) 
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compiled
Code) 
 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(Co
mpiled Code) 
 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Compiled
Code) 
 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(Com
piled Code) 
 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(Compiled Code) 
 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(Compiled Code) 
 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(Compiled Code) 
 at java.lang.Thread.run(Thread.java:479) 

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




RE: actions and business logic

2002-02-08 Thread Cheng, Sophia

Hi Mike, 
I saw one good example in Chapter8(Data Access Patterns) of
Professional JSP Site Design.
This example has very clear design on using action object, business logic
object, data access object, and the entity object. 
You can download the code in 
http://www.wrox.com/ACON10.asp?WROXEMPTOKEN=34282Z8saK1uBNIvHOfBhvowLQtype=
order=1subject=0

Hopefully this can help you somehow.

Regards,
Sophia

-Original Message-
From: Jerome Josephraj [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 6:40 AM
To: Struts Users Mailing List
Subject: RE: actions and business logic


Mike,

It's better to keep all your business logic in a separate layer
say Business Services layer which is independent of your action layer.
This helps you in decoupling actions and business rules.

Ideally checking for rules, permissions should go in Business
services layer but it's good to have these in a separate objects and
access these objects in appropriate places in Business layer. This gives
the flexibility of adding/removing permissions, roles at it's own
convenience.

Hope all your lookups, permission roles are in a database. This
will greatly help in skiving any future business rules changes as most
of the time these rules are capricious and arbitrary (At least in the
project which I am working on)

Cheers,

Jerome.

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 08 February 2002 14:09
To: 'Struts Users Mailing List'
Subject: actions and business logic


I wanted to clarify something.

We are in the design stages of our project and have to make a decision
what
role do Actions play in the framework.

We are using JRF for the database tier, and Struts for presentation one.

I want to get a clear-cut answer to decide how much business logic (such
as
preparing data - determined by permissions, busines rules, etc.) we have
in
the Actions. My understanding (from previous Struts projects) is that
Actions are mainly for processing the request and passing parameters
onto
business logic classes. 

You may, for instance, get a request asking you do create a new business
object. The object may require checking of rules, permissions, look-ups,
etc. It is my understanding that this should be done in a separate,
context
independent business object class.

Is this correct, or is it ok (in less complex projects) to have most
business logic in the Action class?

Many thanks in advance for advise!

Mike Dewhirst


=**

If you are not the intended recipient, employee or agent responsible for
delivering the message to the intended recipient, you are hereby
notified that any dissemination or copying of this communication and its
attachments is strictly prohibited.

If you have received this communication and its attachments in error,
please return the original message and attachments to the sender using
the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group
does not accept legal responsibility for the contents of this message.
Any views or opinions presented are solely those of the author and do
not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not
guarantee that this email is virus free.

**=
  _  

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. 

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




Question on Nesting iterate tags

2002-02-08 Thread SUPRIYA MISRA

How do you nest two iterate tags


slogic:iterate id=actHour  name=currentForm   type= fal.ActivityHour  
property=actHourArray  .
   slogic:iterate id=actHour1  name=currentForm 
   type=fal.LocationHrs   property=actHour.selected
   /slogic:iterate
/slogic:iterate

Both Collections are Arrays.
Array 1 contains a bunch of Strings and and Array 2. Array 2 contains a 
bunch of Strings. I will have to use text boxes to update for which i plan 
to use the indexed tags.

Any Help would be appreciated. Any links alsp would be helpful

Thanks

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




unable to get property when text field is disabled

2002-02-08 Thread Cheng, Sophia

Hi there,
I am trying to get some property value in my SaveEditAction object.
I can get the correct property value from ActionForm when my text
field is editable in editForm.jsp , like
  html:text property=departmentId size=3/

However, if I change it to be uneditable, like
   html:text property=departmentId disabled=true size=3/
or  
bean:write name=departmentForm property=departmentId/

Then, I faile to get the departmentId.

Thus, I need to use hidden tag to store departmentId, like
html:hidden property=departmentId/
Then, I need to get departmentId from request instead of from the
ActionForm.

Is there some other way to handle it?

Regards,
Sophia

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




RE: unable to get property when text field is disabled

2002-02-08 Thread Pedone, Tim

Disabled text fields are not posted to the server per the HTTP spec so
Struts can't see it as a parmeter. You'll either have to use a hidden field
or put the value in session scope.


Tim
-Original Message-
From: Cheng, Sophia [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 11:28 AM
To: 'Struts Users Mailing List' (E-mail)
Subject: unable to get property when text field is disabled


Hi there,
I am trying to get some property value in my SaveEditAction object.
I can get the correct property value from ActionForm when my text
field is editable in editForm.jsp , like
  html:text property=departmentId size=3/

However, if I change it to be uneditable, like
   html:text property=departmentId disabled=true size=3/
or  
bean:write name=departmentForm property=departmentId/

Then, I faile to get the departmentId.

Thus, I need to use hidden tag to store departmentId, like
html:hidden property=departmentId/
Then, I need to get departmentId from request instead of from the
ActionForm.

Is there some other way to handle it?

Regards,
Sophia

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




Validator Servlet Exception

2002-02-08 Thread Robert D. Morse

I have a working development environment with:
JBuilder 6 Enterprise
Tomcat 4.0.1
Struts nightly
Torque nightly

I have now added the Struts Validator, and at startup under JBuilder 6, I
get:

javax.servlet.ServletException:  Wrapper cannot find servlet class
org.apache.struts.action.ValidatorServlet or a class it depends on.

I've modified the web.xml according to the docs, and copied the regular
expression, commons-validator.jar and struts-validator.jar in /WEB-INF/lib.
I've also copied them to the /jakarta-tomcat-4.0.1/lib directory just in
case.  I know that this is something obvious, but I can't seem to find it.
Any hints or suggestions?  Thanks.


---
Robert D. Morse
[EMAIL PROTECTED]
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A


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




Acton without a Form

2002-02-08 Thread Will Jaynes

Seems like I should know this, but I don't.

I have an action that has no need of a form. How do I specify the action 
tag in the struts-config.xml file. If I leave out the name attribute I 
get errors.

Thanks, Will


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




Re: bean write tag's format

2002-02-08 Thread Mark Woon

Jay sissom wrote:

 This has been very confusing for our users.  The documentation on the web
 site doesn't match the released version.  Would it be possible to have
 documentation for the release seperate from documentation for the nightly
 versions?  It seems like it is going to be a very long time before 1.1
 comes out so we're using 1.0.1 and the documentation doesn't always match.

There are two different Javadoc links off the Struts homepage.  If you want the
1.0 Javadoc API, use http://jakarta.apache.org/struts/api-1.0/index.html instead
of http://jakarta.apache.org/struts/api/index.html.

-Mark


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




RE: Poolman query

2002-02-08 Thread Todd G. Nist

Hello Jerome,

Here is how we use poolman to obtain a connection to the datasource.

Hope this helps.

Regards,
Todd G. Nist

// Code from www.husted.com scaffold project

import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;

import com.codestudio.sql.PoolMan;


public final class ConnectionPool {

/**
 * An exception message to throw if datasource is null.
 */
public static final String DATASOURCE_ERROR = Connection pool  +
not available. Check your poolman.xml config, and be sure  +
you are using a valid dbname parameter (use dbname, not jndiName);

/**
 * Returns a JDBC connection from a connection pool or other
 * resource, to be used and closed promptly.
 * p
 * @returns JDBC connection from resource layer.
 * @exception SQLException on SQL or other errors. May wrap other
 * exceptions depending on implementation. Will not return null.
 */
public static final Connection getConnection(String dataSource) throws
SQLException {
DataSource ds = PoolMan.findDataSource(dataSource);
if (ds==null)
throw new SQLException(DATASOURCE_ERROR);
return(ds.getConnection());
}
}

Poolman.xml

!--?xml version=1.0 encoding=UTF-8?--
poolman
  management-modelocal/management-mode

   datasource
  dbnamesample/dbname
  jndiNamejndiSample/jndiName
  drivercom.sybase.jdbc2.jdbc.SybDriver/driver
  urljdbc:sybase:Tds:localhost:2638/url
  !--next 2 should be in code for production for security --
  usernamedba/username
  passwordsql/password

  minimumSize5/minimumSize
  maximumSize10/maximumSize
  connectionTimeout600/connectionTimeout
  shrinkBy5/shrinkBy
  logFiled:\poolman.log/logFile
  debuggingtrue/debugging
  /datasource
/poolman

// call to ConnectionPool.class to get a connection
connection = ConnectionPool.getConnection(jndiSample);

-Original Message-
From: Jerome Josephraj [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 3:59 AM
To: Struts Users Mailing List
Subject: Poolman query


Hi,

Sorry about this out of topic query. But looks like this is the
only place where I can get some help on Poolman.

I am struggling in setting up poolman to run in silverstream
server.

All I try to do is, set up a simple poolman configuration just
to access a database in my local server. I am not   using   any JNDI
name.

Configuration Details :

Silver stream version : Silver Stream 3.7.3
Database: Sybase adaptive server
anywhere 6.0
Poolman version   : 2.1


My poolman.xml looks like this

  datasource

dbnameCBSData/dbname
driverjdbs:poolman://localhost:80/CBSData/driver


usernametest/username
passwordtest/password

minimumSize0/minimumSize
maximumSize10/maximumSize

logFile/home/poolman/logs/testdb.log/logFile

  /datasource


The following is the snippet of the code


try {
// load the PoolMan JDBC Driver
Class.forName(com.codestudio.sql.PoolMan).newInstance();
} catch (Exception ex) {
System.out.println(Could Not Find the PoolMan Driver. 
Is poolman.jar in your CLASSPATH?);
}

Connection con = null;
try {

// establish a Connection to the database with
con = DriverManager.getConnection(jdbc:poolman://CBSData);

// Use the Connection to create Statements and do JDBC work
Statement stm = con.createStatement();

} catch (SQLException sqle) { sqle.printStackTrace(); }
finally {
try { con.close(); } catch (SQLException csqle) {}
}


I get NullPointer exception asa I reach the point where I try to
load the JDBC driver.

Hope the provided information will do. Any help is greatly
appreciated.



TIA,

Jerome.
  _

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.

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




Can nested beans be arrays in Struts1.0?

2002-02-08 Thread kothapallibc

Hi all,
I'm a newbie to Struts. I'm trying with 1.0 release.

My FormBean is follows...

public class MonkeyForm extends ActionForm  {
private Monkey[] monkey = new Monkey[5];
public Monkey[] getMonkey() {  return this.monkey;  }
public void setMonkey(Monkey monkey[]) {this.monkey = monkey;}
}

public class Monkey{
private String name;
private String age;
//Get and set methods are here
}

Assuming that I don't want to use Struts tab libraries, how should be 
the field names in HTML? Am I right to have them like this?

input type=text name=monkey[0].name 
input type=text name=monkey[0].age 
input type=text name=monkey[1].name
input type=text name=monkey[1].age

Somehow, these values are not populated in the form bean.
Do I have to specify Monkey bean anywhere in struts-config? 

It works with simple arrays and when the nested bean is not an array, 
but it doesn't if the nested bean is an array. Am I doing something 
wrong?

Regards,
Choudary.


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




Re: Using JavaScript in the JSP Pages

2002-02-08 Thread Mark Woon

Also check if you actually set validate=true in the appropriate action tag.


Mattos, John wrote:

 Satish,

 Are you just using garden variety client side JavaScript for validation,
 calling a method in the onSubmit of your form tag? If so..

 return false;

 in your JS method will prevent the form from being submitted.

 An alternative you might consider is to check out the Struts Validator
 http://home.earthlink.net/~dwinterfeldt/ (or even just using the Form Bean's
 validate() method for validation) so you're leveraging the power of Struts.

 Hope it helps

 John Mattos
 Sr. Developer and Architect
 iNDEMAND
 345 Hudson St. 16th Floor
 New York, New York
 10014

 -Original Message-
 From: Satish Jeejula [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 08, 2002 10:39 AM
 To: '[EMAIL PROTECTED]'
 Subject: Using JavaScript in the JSP Pages

 Hello All,

 I am using JavaScript to validate credit card number field in the JSP page.
 Using /html:form tag for the form in JSP page.

 The form is getting submitted even though the credit card is not validated.
 How I can prevent this from happening.

 Thanks,
 Satish

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

--
~~Mark Woon~~~
If you're not part of the solution, you're part of the precipitate.





Re: Acton without a Form

2002-02-08 Thread Amir N. Nashat

what are the errors you are getting? i use actions with out forms all the time. 
displaying the errors would be helpful.
 


 [EMAIL PROTECTED] 12:01:39 PM 02/08/02 
Seems like I should know this, but I don't.

I have an action that has no need of a form. How do I specify the action 
tag in the struts-config.xml file. If I leave out the name attribute I 
get errors.

Thanks, Will


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






ActionServlet

2002-02-08 Thread Amir N. Nashat

Can anyone provide any detail as to the debug and detail fields for the ActionServlet 
class? Specifically, any values and what they represent would be helpful.
 
TIA

amir
 
 




Writing Complex Reports and PDF

2002-02-08 Thread Ted Husted

On the topic of interesting developments for a Friday afternoon, here's
a neat new tool that I'm playing with now

http://jasperreports.sourceforge.net/

It shares a number of technologies with Struts, including the
Commons-Digester. Seems promising.

-- 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: Acton without a Form

2002-02-08 Thread Ted Husted

Sadly, the tag does expect that there be some form, even if it's just an
empty ActionForm with no properties. 

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

Will Jaynes wrote:
 
 Seems like I should know this, but I don't.
 
 I have an action that has no need of a form. How do I specify the action
 tag in the struts-config.xml file. If I leave out the name attribute I
 get errors.
 
 Thanks, Will
 
 --
 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: bean write tag's format

2002-02-08 Thread Jay sissom

I had 3 developers complain about the documentation not matching the 1.0.1 
library!  I guess they were clicking in the wrong place!

Sorry for not checking my facts first.

Have a good weekend
Jay

On Fri, 8 Feb 2002, Mark Woon wrote:

 Jay sissom wrote:
 
  This has been very confusing for our users.  The documentation on the web
  site doesn't match the released version.  Would it be possible to have
  documentation for the release seperate from documentation for the nightly
  versions?  It seems like it is going to be a very long time before 1.1
  comes out so we're using 1.0.1 and the documentation doesn't always match.
 
 There are two different Javadoc links off the Struts homepage.  If you want the
 1.0 Javadoc API, use http://jakarta.apache.org/struts/api-1.0/index.html instead
 of http://jakarta.apache.org/struts/api/index.html.
 
 -Mark
 
 
 --
 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: Acton without a Form

2002-02-08 Thread Louis Leung

Strange .. I have the follow in my struts-config.xml, and is working very
well

actionpath=/changeLocale
   type=i18nPrototype.ChangeLocaleAction
  forward name=continue
path=/instructor/createInstructor.do/
/action


Will Jaynes wrote:

 Seems like I should know this, but I don't.

 I have an action that has no need of a form. How do I specify the action
 tag in the struts-config.xml file. If I leave out the name attribute I
 get errors.

 Thanks, Will

 --
 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: Acton without a Form

2002-02-08 Thread Amir N. Nashat

louis,
 
yep...i have something similar and it works fine. 
 


 [EMAIL PROTECTED] 1:26:41 PM 02/08/02 
Strange .. I have the follow in my struts-config.xml, and is working very
well

actionpath=/changeLocale
   type=i18nPrototype.ChangeLocaleAction
  forward name=continue
path=/instructor/createInstructor.do/
/action


Will Jaynes wrote:

 Seems like I should know this, but I don't.

 I have an action that has no need of a form. How do I specify the action
 tag in the struts-config.xml file. If I leave out the name attribute I
 get errors.

 Thanks, Will

 --
 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: Question on Nesting iterate tags

2002-02-08 Thread Aamir Saalam

I am *not* sure if i am addressing this question in specific.

Here's an example of Nested logic:iterate tag's:


%
  String[] array1 = {A1, A2, A3};
  String[] array2 = {B1, B2, B3};
  pageContext.setAttribute(Array1, array1, PageContext.PAGE_SCOPE);
  pageContext.setAttribute(Array2, array2, PageContext.PAGE_SCOPE);
%

logic:iterate id=array1Ele name=Array1
  logic:iterate id=array2Ele name=Array2
bean:write name=array1Ele/ 
bean:write name=array2Ele/ 
  /logic:iterate
/logic:iterate


--aamir

-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 11:16 AM
To: [EMAIL PROTECTED]
Subject: Question on Nesting iterate tags


How do you nest two iterate tags


slogic:iterate id=actHour  name=currentForm   type= fal.ActivityHour  
property=actHourArray  .
   slogic:iterate id=actHour1  name=currentForm 
   type=fal.LocationHrs   property=actHour.selected
   /slogic:iterate
/slogic:iterate

Both Collections are Arrays.
Array 1 contains a bunch of Strings and and Array 2. Array 2 contains a 
bunch of Strings. I will have to use text boxes to update for which i plan 
to use the indexed tags.

Any Help would be appreciated. Any links alsp would be helpful

Thanks

_
Send and receive Hotmail on your mobile device: http://mobile.msn.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]




Re: Acton without a Form

2002-02-08 Thread Mark Woon

Ditto.  I have several action tags without a name.  Docs doesn't specify that
it's required (at least, as of v1.0.1).

Amir N. Nashat wrote:

 louis,

 yep...i have something similar and it works fine.


  [EMAIL PROTECTED] 1:26:41 PM 02/08/02 
 Strange .. I have the follow in my struts-config.xml, and is working very
 well

 actionpath=/changeLocale
type=i18nPrototype.ChangeLocaleAction
   forward name=continue
 path=/instructor/createInstructor.do/
 /action

 Will Jaynes wrote:

  Seems like I should know this, but I don't.
 
  I have an action that has no need of a form. How do I specify the action
  tag in the struts-config.xml file. If I leave out the name attribute I
  get errors.
 
  Thanks, Will
 
  --
  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]

--
~~Mark Woon~~~
If you're not part of the solution, you're part of the precipitate.





RE: Article about Struts and XSLT

2002-02-08 Thread Greg.Reddin

I thought this article was very good, and probably one of the best
approaches I've seen to using XSLT with Struts.  If I was in a situation
where I had to use XSLT, I'd probably take an approach similar to this
one.
 
However, I found the authors' contention that this solution offers a
significant advantage over the standard Struts architecture to be
unconvincing.  They cited several disadvantages to using Struts as-is
that I thought were not valid and little evidence was given to support
them.  They were particularly critical of JSP and the Struts tags, and I
thought this was their weakest argument.  They implied that XSLT is an
easier API to learn than Struts tags, a notiion which I believe is
entirely false.  Most developers I know were able to pick up the Struts
tags by looking at documentation and examples.  The same developers had
to buy a book to learn XSLT.  One might find a different learning curve
among page designers, but I seriously doubt they have a better grasp of
XSLT than JSP.  
 
The authors also failed to mention the fact that the transformation of
the JavaBeans to XML adds a whole new layer of processing to be done.
JSP doesn't have to serialize the beans before it can use them.
 
Again, I thought the authors did an excellent job at presenting a
framework for using XSLT with Struts.  But the article should not have
presented this solution as being in competition with Struts/JSP, in my
opinion.  
 
Greg



winmail.dat
Description: application/ms-tnef

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


Re: Acton without a Form

2002-02-08 Thread Ted Husted

I believe the question is 

How do I use an action with the html:form tag when the mapping does not
specify a form bean. 

The answer is, you can't; the next best thing being to declare an empty,
utility ActionForm to use in this cicumstance. 

Where it comes up is when people want to use html:buttons and what not
to activate hyperlinks or JavaScripts. A html:link would work as well
here, but some people like the look of a button.

Even when URL encoding is not an issue, the Struts buttons can be easier
to localize, et cetera.

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

Mark Woon wrote:
 
 Ditto.  I have several action tags without a name.  Docs doesn't specify that
 it's required (at least, as of v1.0.1).
 
 Amir N. Nashat wrote:
 
  louis,
 
  yep...i have something similar and it works fine.
 
 
   [EMAIL PROTECTED] 1:26:41 PM 02/08/02 
  Strange .. I have the follow in my struts-config.xml, and is working very
  well
 
  actionpath=/changeLocale
 type=i18nPrototype.ChangeLocaleAction
forward name=continue
  path=/instructor/createInstructor.do/
  /action
 
  Will Jaynes wrote:
 
   Seems like I should know this, but I don't.
  
   I have an action that has no need of a form. How do I specify the action
   tag in the struts-config.xml file. If I leave out the name attribute I
   get errors.
  
   Thanks, Will
  
   --
   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]
 
 --
 ~~Mark Woon~~~
 If you're not part of the solution, you're part of the precipitate.

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




Re: Article about Struts and XSLT

2002-02-08 Thread Ted Husted

[EMAIL PROTECTED] wrote:
 Again, I thought the authors did an excellent job at presenting a
 framework for using XSLT with Struts.  But the article should not have
 presented this solution as being in competition with Struts/JSP, in my
 opinion.


Yes, it is imporant to note that this is not an election of remedies.
You can easily use JSP, XSLT, and Velocity Templates, all in the same
Struts application. Each to his own. 


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




Access key.

2002-02-08 Thread Rao, Sarveswara

Hi,

I am new to struts programming. I am using strut Link tags in my jsp page. I
want provide the access key to the links so that user can press
ALt+Accesskey to select the Link and press the Enter key to execute the
Link. It does not seem to work and Link tag does not show up the accesskey
property in the generated HTML code. Can anyone advise me? I would
appreciate the Help.

Thanks
Sarveswara Rao

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




Re: RE: SSL + URL rewriting problem

2002-02-08 Thread Nathan Anderson

The problem is not that it is speaking on port 443, but that it is using http not 
https.  

This is what I think is happening...
1. A request is sent from the client to https://hostname/appname/index.jsp;
2. Apache 1.3.22 recieves this request and verifies the users certificate and keys.
3. Apache querys the modWebApp if it should pass this requst to the warp connector.
4. A _NEW_ unencrypted [http] request is generated by Apache [or the warp connector] 
and sent to the servlet container [Tomcat 4.0.1]
5. The request generated by Apache is not encrypted, so when request.getRequestURL() 
is called, it responds as http, and it adds the port because 443 is not the default 
http port.  So the resulting URL is http://hostname:443/appname/index.jsp;.

The only work around I have found is to only use relative paths in my application 
[i.e. no html:base or html:image tags]

Nathan Anderson
--
Sent via jApache.org

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




what will happen if I have Data Types other than java.lang.String in my formbean - say java.util.date?

2002-02-08 Thread Kevin Wang

I have a formbean which include a field its type is java.util.Date, and I
have two methods to get and set
like these :
Date getMyField() { return dateVar; }
void setMyField(Date date ){ dateVar = date ;}

Now I use html:text to display this field, it displays the Date with the
'-mm-dd' format, I am wondering can I change the format?

Another big issue is I can not submit my form, when I submit my form
exception happens:

java.lang.IllegalArgumentException: argument type mismatch  at
java.lang.reflect.Method.invoke(Native Method)  at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:98
8)  at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:90
4)  at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)at
org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)   at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:772) at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563) at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)at
org.apache.tomcat.core.Handler.service(Handler.java:287)at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)  at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)


I know if I change the getter and setter method to String everything is OK,
but can struts supports java.util.Date in formbean?

thanks in advance
Kevin


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




Re: html:messages Design issue: mixing data and presentation!!!!

2002-02-08 Thread JC

Ah, yes. Nice and smooth! I must really go through the
newer tags properly. Did the same solution with my own
tag, but it would be nicer to use this. Thanks!

/Johannes 

 --- Ted Husted [EMAIL PROTECTED] wrote:
 That was true with the html:errors tag, but not with
 the newer
 html:messages tag. With the messages, tag the
 errors.header and .footer
 are optional, so can do things like this:
 
 logic:messagesPresent
 TABLE width=100%
 TRTD class=message
UL
html:messages id=error
   LIbean:write name=error//LI
/html:messages
/UL
 /TD/TR
 /TABLE
 /logic:messagesPresent
 
 
 JC wrote:
  
  Hi,
  A great thing with Struts is the error validation
  capabilities. However, the use of html:errors/,
 or
  lately html:messages, poses a problem that I
 found
  not to be a very good design (though it is
 slightly
  better in the messages tag).
  
  What I don't like is, in order to get any
 presentation
  formatting on the header and footer, you need to
 enter
  html in the resources and therefore mixing up data
 and
  presentation.
  
  An example where this apply is that we have an
 i18n
  utility where the administrator for each country
 can
  translate all messages from a default language
 into
  their local language and for the messages headers
 and
  footers they have to see the html as well.
  
  Has anyone thought of this before?
  
  /Johannes
  
 

_
  Hitta snörapporter...
  från 500 olika skidorter i Europa
  på http://se.snow.yahoo.com
  
  --
  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]
  

_
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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




Re: html:messages Design issue: mixing data and presentation!!!!

2002-02-08 Thread JC


Well, see the example application regarding the use of
html:errors/ but sse the include directive from the
resource? That wouldn't be too nice either, would it?
See Ted's reply to my question regarding the
logic:messagesPresent tag.

/Johannes

 --- Julius [EMAIL PROTECTED] wrote:
 Why do you have to put the html in the resource file
 for header and footer?
 You can use include directive instead.
 
 - Original Message -
 From: JC [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, February 07, 2002 3:31 AM
 Subject: html:messages Design issue: mixing data
 and presentation
 
 
  Hi,
  A great thing with Struts is the error validation
  capabilities. However, the use of html:errors/,
 or
  lately html:messages, poses a problem that I
 found
  not to be a very good design (though it is
 slightly
  better in the messages tag).
 
  What I don't like is, in order to get any
 presentation
  formatting on the header and footer, you need to
 enter
  html in the resources and therefore mixing up data
 and
  presentation.
 
  An example where this apply is that we have an
 i18n
  utility where the administrator for each country
 can
  translate all messages from a default language
 into
  their local language and for the messages headers
 and
  footers they have to see the html as well.
 
  Has anyone thought of this before?
 
  /Johannes
 
 
 
 

_
  Hitta snörapporter...
  från 500 olika skidorter i Europa
  på http://se.snow.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]
  

_
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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




bug in struts?

2002-02-08 Thread Henrik Chua

Hi!

I am having trouble configuring and using struts.

I am using iPlanet 6.0 for my web server.  
under web applications - edit web applications.
  I set the URI to / only coz i want my web page to appear as
http://domain/logon.jsp
  (if i place /abc on the URI, the page appears to be
http://domain/abc/logon.jsp, which is not what i want)

the problem is here.  
when i use any of the struts tag for reference to my form and document
elements (such as form, link...etc.), 
e.g html:link page=/logon.do 

situation A.  (setting the URI to /)
  the link is translated by struts into a href=//logon.do   which when
clicked goes to http://logon.do instead of http://domain/logon.do
-- the domain is lost and therefore an error occurs... 

on situation B.  (setting the URI to /abc)
  this works fine except that there the abc which i don't like to appear.
  the link is translated to a href=/logon.do which when clicked goes to
http://domain/abc/logon.do
-- the domain and /abc is automatically added when i mouse over them.


I have also experimented on the html:base/ tag.  It seems to have no
effect on the situation.

please help... 

is this a bug in struts? or is this just a misconfiguration.

thanx very very much

henrik




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




Selectively calling the reset method in an ActionForm

2002-02-08 Thread Antony Stace
Hi

I have a ActionForm which I want to use in session scope.  I have a number of different
Actions which use this form.   However I do not always want to reset all the fields in
the ActionForm, it depends on which Action has been called.  What is the best
design approach to selectively reseting the fields in the ActionForm?

-- 


Cheers

Tony$B!#(B
-


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


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


RE: IllegalStateException on

2002-02-08 Thread Jack Frosch

Did you ever get a response on this, or figure out what was causing it?

I'm getting the same thing on a forward and I'm not sure what the cause
is.

Jack

-Original Message-
From: Mauro Mellino [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, January 26, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: IllegalStateException on 


Hi,
I've just started using Tomcat 4.0.1 and I'm getting the following error

every time a jsp page is hit (making log files huge!). As an example, my

index.jsp only contains logic:forward name=logon/ which is producing
the 
error below (this does not happen on weblogic). The application seems to

work, but the errors are still logged. Has anyone experienced this /
found a 
fix?
Thank.
Mauro

2002-01-26 20:39:05 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
java.lang.IllegalStateException
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1
58)
at
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1
76)
at 
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF
actoryImpl.java:198)
at 
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm
pl.java:193)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:106)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


_
Chat with friends online, try MSN Messenger: http://messenger.msn.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]




Re: Question on Nesting iterate tags

2002-02-08 Thread Arron Bates

This appears to be kind of confusing. What you have marked up will loop 
through the second array for each iteration of the first array.

Is this what you're after?...

It's kind of hard to see what it is that you're trying to achieve. Is 
the second array meant to be relative the the first or not?...

Either way, to nest iterators I recommend the nested extension.
http://www.keyboardmonkey.com/struts

To learn about it, go there, to download it also unless you're on a 
nightly build after the middle of January.


Arron.



Aamir Saalam wrote:

I am *not* sure if i am addressing this question in specific.

Here's an example of Nested logic:iterate tag's:


%
  String[] array1 = {A1, A2, A3};
  String[] array2 = {B1, B2, B3};
  pageContext.setAttribute(Array1, array1, PageContext.PAGE_SCOPE);
  pageContext.setAttribute(Array2, array2, PageContext.PAGE_SCOPE);
%

logic:iterate id=array1Ele name=Array1
  logic:iterate id=array2Ele name=Array2
bean:write name=array1Ele/ 
bean:write name=array2Ele/ 
  /logic:iterate
/logic:iterate


--aamir

-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 11:16 AM
To: [EMAIL PROTECTED]
Subject: Question on Nesting iterate tags


How do you nest two iterate tags


slogic:iterate id=actHour  name=currentForm   type= fal.ActivityHour  
property=actHourArray  .
   slogic:iterate id=actHour1  name=currentForm 
   type=fal.LocationHrs   property=actHour.selected
   /slogic:iterate
/slogic:iterate

Both Collections are Arrays.
Array 1 contains a bunch of Strings and and Array 2. Array 2 contains a 
bunch of Strings. I will have to use text boxes to update for which i plan 
to use the indexed tags.

Any Help would be appreciated. Any links alsp would be helpful

Thanks

_
Send and receive Hotmail on your mobile device: http://mobile.msn.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]




Getting current page from the .jsp page

2002-02-08 Thread Alex Paransky

I have the following action define in my struts-config.xml:

action
  path=/foo
  parameter=/foo.jsp
  type=org.apache.struts.actions.ForwardAction
  /

From the browser, user can access /foo.do and the contents of the foo.jsp
are displayed, however, when I try to get the URL information from foo.jsp,
I get foo.jsp not foo.do.  Is there a way to find out which forward action
was called to generate the page?

The reason I am asking, is that in some cases I need to create a returnTo
url for form processing, and I would like to have a generic way of doing
this.

Thanks.
-AP_


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




Re: Question on Nesting iterate tags

2002-02-08 Thread SUPRIYA MISRA

The first Collection is an ArrayList and not String Array. Sorry my mistake. 
I was able to solve the problem.


From: Arron Bates [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Question on Nesting iterate tags
Date: Sat, 09 Feb 2002 12:24:17 +1100

This appears to be kind of confusing. What you have marked up will loop
through the second array for each iteration of the first array.

Is this what you're after?...

It's kind of hard to see what it is that you're trying to achieve. Is
the second array meant to be relative the the first or not?...

Either way, to nest iterators I recommend the nested extension.
http://www.keyboardmonkey.com/struts

To learn about it, go there, to download it also unless you're on a
nightly build after the middle of January.


Arron.



Aamir Saalam wrote:

I am *not* sure if i am addressing this question in specific.

Here's an example of Nested logic:iterate tag's:


%
  String[] array1 = {A1, A2, A3};
  String[] array2 = {B1, B2, B3};
  pageContext.setAttribute(Array1, array1, PageContext.PAGE_SCOPE);
  pageContext.setAttribute(Array2, array2, PageContext.PAGE_SCOPE);
%

logic:iterate id=array1Ele name=Array1
  logic:iterate id=array2Ele name=Array2
bean:write name=array1Ele/
bean:write name=array2Ele/
  /logic:iterate
/logic:iterate


--aamir

-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 11:16 AM
To: [EMAIL PROTECTED]
Subject: Question on Nesting iterate tags


How do you nest two iterate tags


slogic:iterate id=actHour  name=currentForm   type= 
fal.ActivityHour
property=actHourArray  .
   slogic:iterate id=actHour1  name=currentForm 
   type=fal.LocationHrs   property=actHour.selected
   /slogic:iterate
/slogic:iterate

Both Collections are Arrays.
Array 1 contains a bunch of Strings and and Array 2. Array 2 contains a
bunch of Strings. I will have to use text boxes to update for which i plan
to use the indexed tags.

Any Help would be appreciated. Any links alsp would be helpful

Thanks

_
Send and receive Hotmail on your mobile device: http://mobile.msn.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]





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Begin With ??

2002-02-08 Thread shiva prasad

Hi
I am new to Struts. Would anybody tell me how to begin
with?

thanks

shiva.


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: Begin With ??

2002-02-08 Thread Alex Paransky

Read the doc.

-AP_
http://www.alexparansky.com


-Original Message-
From: shiva prasad [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 8:59 PM
To: Struts Users Mailing List
Subject: Begin With ??


Hi
I am new to Struts. Would anybody tell me how to begin
with?

thanks

shiva.


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.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]




RE: Getting current page from the .jsp page

2002-02-08 Thread Alex Paransky

Well, I decided to create my own action and extended from the
org.apache.struts.actions.ForwardAction.  In my own action, I stuff the
request.getServletPath() into a different attribute in the request.  Later,
I am able to get this attribute to determine what was the original requested
URL.

It seems to be working, but I am wondering if this is the best way of doing
this?

-AP_
http://www.alexparansky.com


-Original Message-
From: Alex Paransky [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 6:04 PM
To: Struts Users Mailing List
Subject: Getting current page from the .jsp page


I have the following action define in my struts-config.xml:

action
  path=/foo
  parameter=/foo.jsp
  type=org.apache.struts.actions.ForwardAction
  /

From the browser, user can access /foo.do and the contents of the foo.jsp
are displayed, however, when I try to get the URL information from foo.jsp,
I get foo.jsp not foo.do.  Is there a way to find out which forward action
was called to generate the page?

The reason I am asking, is that in some cases I need to create a returnTo
url for form processing, and I would like to have a generic way of doing
this.

Thanks.
-AP_


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




  1   2   >