indexed checkboxes

2001-10-31 Thread Curt Peterson

Somewhere in the archives I have seen some recent threads about the
indexed attribute of the checkbox tag not working.  I too am having no
luck getting this to work with the 1.0 release.  I did see a reference
in the basehandler class to indexed being available in 1.1 and up
releases.  What is the 1.1 and up release?  Does the October 31, 2001
release work?

Many Thanks,

-Curt


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


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




RE: Forte

2001-10-31 Thread Michael Mok

Lee

I have posted a How-To use Forte with STRUTS on my website.

www.michaelmok.com

Regards

Michael Mok

-Original Message-
From: Lee Torrence [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 1 November 2001 9:23
To: Struts Users Mailing List
Subject: Forte


I just started using Forte 3.0 (migrating from Kawa) and I like it a lot.
One thing puzzles me. When I execute a struts project, the internal Tomcat
server launches, but gives an error message saying "The Tomcat server is not
running correctly".

In the tc_log I get the following messages:

2001-10-31 03:43:14 - ContextManager: Adding context Ctx(  ) 2001-10-31
03:43:15 - ContextManager: Adding context Ctx( /dummyapp ) 2001-10-31
03:43:15 - Ctx(  ): Removing duplicate servlet jsp
jsp(org.netbeans.modules.web.tomcat.JspServlet/null) 2001-10-31 03:43:15 -
Ctx(  ): Removing duplicate *.jsp ->
jsp(org.apache.jasper.servlet.JspServlet/null) 2001-10-31 03:43:57 - Ctx(
/dummyapp ): Removing duplicate servlet jsp
jsp(org.netbeans.modules.web.tomcat.JspServlet/null) 2001-10-31 03:43:57 -
Ctx( /dummyapp ): Removing duplicate *.jsp ->
jsp(org.apache.jasper.servlet.JspServlet/null) 2001-10-31 03:43:57 -
PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-10-31 03:43:57
- PoolTcpConnector: Starting Ajp12ConnectionHandler on 8006 2001-10-31
03:43:58 - Ctx(  ): 400 R( /) null

I don't get this message if I run a non-struts webapp.

Also, a side issue -- is there any way to debug struts apps running in
Tomcat 4.x with Forte?

Thanks for any help...

Lee Torrence



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




reset() in FormBean

2001-10-31 Thread Tolstoy . Patel



When is the reset() method of the FormBean called?  I know the FormBean's
fields are first populated, then it's validate() method is called (if
validate="true" in the struts-config.xml), and then the perform() method of
the associated Action class is called.  -But when is the reset() called?
-If I override the method, do I call a series of set() methods to
default values. -Is it not a good idea to override the method? Should I
leave it at the default behavior? Any help would be much appreciated.
Thanks.  -T-


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




Re: Forte

2001-10-31 Thread Robert Parker

For remote debugging, the Tomcat 4.x startup script (Catalina.sh or
catalina.bat) will take a command line option 'debug'. This will start the
JVM with the correct switches for running the JPDA debugger (see jdk tool
doc for more info). If you look at the start script for catalina, you can
see the port the debugger will be listening on. Thus in the debug menu of
Forte, find the option which says connect to JVM. Just fill out the type
(socket in this case) and the port as specified in your catalina.bat

You should now be able to remotely debug...

regards

Rob

- Original Message -
From: "Lee Torrence" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, November 01, 2001 7:49 AM
Subject: Forte


> I just started using Forte 3.0 (migrating from Kawa) and I like it a lot.
> One thing puzzles me. When I execute a struts project, the internal Tomcat
> server launches, but gives an error message saying "The Tomcat server is
not
> running correctly".
>
> In the tc_log I get the following messages:
>
> 2001-10-31 03:43:14 - ContextManager: Adding context Ctx(  ) 2001-10-31
> 03:43:15 - ContextManager: Adding context Ctx( /dummyapp ) 2001-10-31
> 03:43:15 - Ctx(  ): Removing duplicate servlet jsp
> jsp(org.netbeans.modules.web.tomcat.JspServlet/null) 2001-10-31 03:43:15 -
> Ctx(  ): Removing duplicate *.jsp ->
> jsp(org.apache.jasper.servlet.JspServlet/null) 2001-10-31 03:43:57 - Ctx(
> /dummyapp ): Removing duplicate servlet jsp
> jsp(org.netbeans.modules.web.tomcat.JspServlet/null) 2001-10-31 03:43:57 -
> Ctx( /dummyapp ): Removing duplicate *.jsp ->
> jsp(org.apache.jasper.servlet.JspServlet/null) 2001-10-31 03:43:57 -
> PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-10-31
03:43:57
> - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8006 2001-10-31
> 03:43:58 - Ctx(  ): 400 R( /) null
>
> I don't get this message if I run a non-struts webapp.
>
> Also, a side issue -- is there any way to debug struts apps running in
> Tomcat 4.x with Forte?
>
> Thanks for any help...
>
> Lee Torrence
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Re: Struts Validation question

2001-10-31 Thread David Winterfeldt

It doesn't skip it just like if you define an
html:text on your JSP and the field doesn't exist it
causes an exception.  I don't think it stops
validating though since all exceptions are caught.

David

--- Sandeep Takhar <[EMAIL PROTECTED]> wrote:
> when using the struts validator, what happens if you
> define a validation for a field and the field does
> not
> exist?  Does it skip the field (this is what I would
> like).
> 
> - Sandeep
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




RE: Feedback on Struts Pros and Cons

2001-10-31 Thread Clóvis Yutaka Harada

In MVC nomenclature consider ActionServlet as the controller and Action and
the Validation Framework as controller extensions (I used these names as
class names in old projects before I discover struts), so business dosn´t
fit here. And thinking a little, it isn´t a good idea to put business logic
here (routing and domain validation isn´t business), as these code will be
coupled with struts (and servlet and web).
Because actions decides which commands to execute, decides where to go next
and prepares the environment for jsp view rendering, I think I can call it
"controller extension".


Ted Husted wrote:

This is actually quite good, but I'm a nit-picker ;-)

David Bueche wrote:
> 1. Provides a controller ActionServlet that dispatches requests to the
appropriate business actions (Action subclasses) provided by the application
developer.  All dispatching is defined in an XML file (struts-config.xml).

Personally, I don't consider Action subclasses to be business objects.
Rather, they should be used to invoke business method. They are an
adapter between HTTP and the rest of your application. 

See also Section 2.5 of the User Guide 

http://jakarta.apache.org/struts/userGuide/building_model.html#business_logi
c

"[Arrange] things so that your Action classes (part of the Controller
role, as described below) translate  all required information from the
HTTP request being processed into property setter calls on your business
logic beans ... Such a business logic class can be reused in
environments other than the web application for which they were
initially constructed."



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




Re: Sorting at client side

2001-10-31 Thread Troy Hart

John, your solution is similar to how most people would do it, but it 
wouldn't be client side sorting. The only way you are going to do client 
side sorting would be to use javascript or an applet... Personally, I 
wouldn't recomend client side sorting. 

Raj, are you sure you want to do this on the client side? 

Troy 

John Schroeder writes: 

> Raj, 
> 
> I have implemented this.  I have created an object called Table which holds
> tabular data (typically populated from a ResultSet).  This object has a
> sort() method which takes the column index as a parameter and will sort the
> Table according to that column index. 
> 
> On the JSP side, I have 2 tags:
>  TableTag- iterates over the contents of a table.
>  TableColTag - displays (formats) a particular column (for the row) in the
> table - e.g. displays the cell. 
> 
> For each of the header columns I have used an arrow graphic that is a link
> to an action with a parameter of sort (ascending or descending) and column
> name.  This will sort the table and return it to the JSP. 
> 
> Let me know if this is something that you might want to look at for your own
> use. 
> 
> --John 
> 
>  
> 
>  
> 
> -Original Message-
> From: Rajeshwar Rao V [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 12:05 PM
> To: Struts Users Mailing List
> Subject: Sorting at client side 
> 
> 
> Hi , 
> 
>   We are displaying data in tabular form in a JSP. I want to sort it
> on column name. How can i do it at JSP level?
> we are using "Struts" in our application.Please help if anybody worked on
> same kinda stuff. 
> 
> Thnaks in advance
> raj 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
>  
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail:  
> 
 

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




Re: Form Bean

2001-10-31 Thread Ted Husted

When you create the ActionForm, are you calling setServlet()?

Cameron Ingram wrote:
> 
> Hi all!
> 
>  Ok here is the problem I have a form bean that I create in an action class, I 
>then set the variables in it and then add it to the session.
> This is before the corresponding jsp has been loaded  The jsp is loaded and it 
>appears that the action servlet is then recreating the form bean and re-adding it to 
>the session, thus all of the fields I set are set back to there original values. I 
>overrode the reset method so I know that it's not calling that to clear the 
>variables.  As I understand it the action servlet should check to see if it's in the 
>session before it recreates it. The name I am using to define it in the session is 
>the same name that the struts-config file uses to define the name. Any ideas???
> 
> This is the name that I am using when the 
>form bean is added to the session.
>   type="net.pscu.ndswebutils.EditDeleteUserNdsForm"/>
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: can i invoke two account forms

2001-10-31 Thread Don Saxton

read back in an action where the form matches the saved, and copy the saved
into the new?
which isn't the same as a session scoped form, and requires a scheme to
decide when to copy from saved?

thanks

- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 12:20 PM
Subject: Re: can i invoke two account forms


> Don Saxton wrote:
> > So, what is the sequence in which 'recuperate' a first form makes sense?
>
> I believe the meaing was to save it to the session, and then read it
> back later.
>
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel +1 716 737-3463
> -- http://www.husted.com/struts/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Setter method doesn't work with indexed tag

2001-10-31 Thread dhay



Hi.  You didn't attach your jsp!

How far have you got debugging it?  What shows up in the log?  What about in the
request?

Dave





"L. Yeung" <[EMAIL PROTECTED]> on 10/30/2001 09:40:42
PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   Struts Users Mailing List
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Setter method doesn't work with indexed tag



I jsut attached my code below.

Regards,
L. Yeung
--- [EMAIL PROTECTED] wrote:
>
>
> Hi,
>
> Can you maybe post some more code?
>
> It should work fine.  Usually it turns out to be a
> tiny mistake somewhere.  Have
> you debugged it at all?  What is getting added to
> the request?  Are you using
> your own code, or the example I posted?
>
> Cheers,
>
> Dave
>
>
>
>
>
> "L. Yeung"
> <[EMAIL PROTECTED]> on
> 10/29/2001 10:55:58
> PM
>
> Please respond to "Struts Users Mailing List"
>
>
<[EMAIL PROTECTED]>
>
> To:   Struts Users Mailing List
>
>
<[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: Setter method doesn't work with
> indexed tag
>
>
>
> Still not working. Got any workaround for this?
>
> Regards,
> L. Yeung
>
> --- "L. Yeung" <[EMAIL PROTECTED]> wrote:
> > David, Yea I changed my struts-config from request
> > to
> > session . Still didn't work.
> >
> > Jason, I'm designing a web app for next january
> > production release.
> >
> > --- Jason Chaffee <[EMAIL PROTECTED]> wrote:
> > > Actually, I just filed a bug on this agains
> > > BeanUtils.  There is a bug
> > > when the indexed propery you are trying to set
> is
> > of
> > > the type Array.
> > >
> > >
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, October 29, 2001 10:53 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Setter method doesn't work with
> > indexed
> > > tag
> > >
> > >
> > >
> > >
> > > Hi.  Have you checked what scope your form bean
> is
> > > in?  Try changing it
> > > to
> > > session and see if that helps...
> > >
> > > Dave
> > >
> > >
> > >
> > >
> > >
> > > "L. Yeung"
> > > <[EMAIL PROTECTED]> on
> > > 10/29/2001
> > > 05:48:38
> > > AM
> > >
> > > Please respond to "Struts Users Mailing List"
> > >
> > >
> >
>
<[EMAIL PROTECTED]>
> > >
> > > To:   Struts Users Mailing List
> > >
> > >
> >
>
<[EMAIL PROTECTED]>
> > > cc:(bcc: David Hay/Lex/Lexmark)
> > > Subject:  Setter method doesn't work with
> indexed
> > > tag
> > >
> > >
> > >
> > > I've downloaded the sample from the achive and
> > read
> > > the posts on "setter methods and indexed tag"
> but
> > > find
> > > it vague. I followed the sample and the getter
> > > methods
> > > works fine except the setter methods. I am
> > expecting
> > > the vector to contain values from the form but I
> > got
> > > null values instead.
> > >
> > > public final class EditPOForm extends ActionForm
> {
> > > ..
> > >public void setParameterList(Vector col) {
> > >  this.parameterList = col;
> > >}
> > >
> > > public Vector getParameterList() {
> > >  return parameterList;
> > > }
> > >
> > > public Parameter getParameter(int index) {
> > >  return
> > >
> > > (Parameter)parameterList.elementAt(index);
> > > }
> > > }
> > >
> > > Thanks in advance.
> > > L. Yeung
> > >
> > >
> __
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> >
> 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> >
> 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> >
> 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> >
> 
> > For additional commands, e-mail:
> > 
> >
>
>
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
>
=== message truncated ===


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

 .ZIP File



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







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


Re: Question ?

2001-10-31 Thread Ted Husted

What does the generated HTML in your browser look like. 

When the request goes up to the Action, it really doesn't know whether
it was a password field or not. It should just see
passwordagain=whatever - which would be picked by an setter named
setPasswordagain 

Is the second A capitalized?

Barry Jia wrote:
> 
> Hi, All,
> I have a simple question. In my JSP I want to set two password cell, but in
> my coresponding FormBean's validate method, I can not get passwordagain,
> even I do not set passwordagain in my formbean, it also does not report
> error.
> So I found the second html:password always omited, is it true ?
> 
>  
> 
>  
> 
> 
> Developer ID: 
>   maxlength="20" /> 
> 
> 
> Enter Password : 
>   maxlength="20" redisplay="false"/>
> 
> 
> Enter Password Aaign: : 
>   maxlength="20" redisplay="false"/>
> 
> 
> 
> 
> 
> Barry Jia
> QA Developer, Brightspark Corp.
> Phone: 416-488-1999 x 306
> Email : [EMAIL PROTECTED]
> 20 Eglinton Avenue West, Suite 600
> Toronto, Ontario
> Canada M4R 1K8
> 
> _
> Click to add my contact info to your organizer:
> http://my.infotriever.com/bjia

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

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




Forte

2001-10-31 Thread Lee Torrence

I just started using Forte 3.0 (migrating from Kawa) and I like it a lot.
One thing puzzles me. When I execute a struts project, the internal Tomcat
server launches, but gives an error message saying "The Tomcat server is not
running correctly".

In the tc_log I get the following messages:

2001-10-31 03:43:14 - ContextManager: Adding context Ctx(  ) 2001-10-31
03:43:15 - ContextManager: Adding context Ctx( /dummyapp ) 2001-10-31
03:43:15 - Ctx(  ): Removing duplicate servlet jsp
jsp(org.netbeans.modules.web.tomcat.JspServlet/null) 2001-10-31 03:43:15 -
Ctx(  ): Removing duplicate *.jsp ->
jsp(org.apache.jasper.servlet.JspServlet/null) 2001-10-31 03:43:57 - Ctx(
/dummyapp ): Removing duplicate servlet jsp
jsp(org.netbeans.modules.web.tomcat.JspServlet/null) 2001-10-31 03:43:57 -
Ctx( /dummyapp ): Removing duplicate *.jsp ->
jsp(org.apache.jasper.servlet.JspServlet/null) 2001-10-31 03:43:57 -
PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-10-31 03:43:57
- PoolTcpConnector: Starting Ajp12ConnectionHandler on 8006 2001-10-31
03:43:58 - Ctx(  ): 400 R( /) null

I don't get this message if I run a non-struts webapp.

Also, a side issue -- is there any way to debug struts apps running in
Tomcat 4.x with Forte?

Thanks for any help...

Lee Torrence



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




Re: Form Bean

2001-10-31 Thread Ted Husted

You shouldn't have to override the reset method, the default method does
nothing. 

The ActionController does not recreate a session bean. If one is there
it calls reset, and populates it. If you check the code, you will see
that it is quite careful, and even looks twice to be sure. 

Perhaps there is another bean in request scope that is being accessed
instead.

Generally, you should not have to create the ActionForm beans yourself.
If it is specified in the mapping, the Controller is guaranteed to
create it for you.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Cameron Ingram wrote:
> 
> Hi all!
> 
>  Ok here is the problem I have a form bean that I create in an action class, I 
>then set the variables in it and then add it to the session.
> This is before the corresponding jsp has been loaded  The jsp is loaded and it 
>appears that the action servlet is then recreating the form bean and re-adding it to 
>the session, thus all of the fields I set are set back to there original values. I 
>overrode the reset method so I know that it's not calling that to clear the 
>variables.  As I understand it the action servlet should check to see if it's in the 
>session before it recreates it. The name I am using to define it in the session is 
>the same name that the struts-config file uses to define the name. Any ideas???
> 
> This is the name that I am using when the 
>form bean is added to the session.
>   type="net.pscu.ndswebutils.EditDeleteUserNdsForm"/>
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Question ?

2001-10-31 Thread Barry Jia

Hi, All,
I have a simple question. In my JSP I want to set two password cell, but in
my coresponding FormBean's validate method, I can not get passwordagain,
even I do not set passwordagain in my formbean, it also does not report
error.
So I found the second html:password always omited, is it true ?

 

 


Developer ID: 
  


Enter Password : 
 


Enter Password Aaign: : 
 





Barry Jia
QA Developer, Brightspark Corp.
Phone: 416-488-1999 x 306
Email : [EMAIL PROTECTED]
20 Eglinton Avenue West, Suite 600 
Toronto, Ontario 
Canada M4R 1K8




_
Click to add my contact info to your organizer:
http://my.infotriever.com/bjia



RE: Sorting at client side

2001-10-31 Thread John Schroeder

Raj,

I have implemented this.  I have created an object called Table which holds
tabular data (typically populated from a ResultSet).  This object has a
sort() method which takes the column index as a parameter and will sort the
Table according to that column index.

On the JSP side, I have 2 tags:
 TableTag- iterates over the contents of a table.
 TableColTag - displays (formats) a particular column (for the row) in the
table - e.g. displays the cell.

For each of the header columns I have used an arrow graphic that is a link
to an action with a parameter of sort (ascending or descending) and column
name.  This will sort the table and return it to the JSP.

Let me know if this is something that you might want to look at for your own
use.

--John





-Original Message-
From: Rajeshwar Rao V [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 12:05 PM
To: Struts Users Mailing List
Subject: Sorting at client side


Hi ,

We are displaying data in tabular form in a JSP. I want to sort it
on column name. How can i do it at JSP level?
we are using "Struts" in our application.Please help if anybody worked on
same kinda stuff.

Thnaks in advance
raj

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: can i invoke two account forms

2001-10-31 Thread Ted Husted

Don Saxton wrote:
> So, what is the sequence in which 'recuperate' a first form makes sense?

I believe the meaing was to save it to the session, and then read it
back later.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

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




Re: Feedback on Struts Pros and Cons

2001-10-31 Thread Ted Husted

Anthony Chater wrote:
> I only subscribed to this newsgroup today and the messages are all streaming
> into my mailbox.  I's there a !@#$%%%$#@  newsgroup where on can anser this
> sort of thing using a normal newsgroup reader?

Sadly not. No one has ever volunteered the resources to sponsor Jakarta
newsgroups. 

There is a digest version of the list. See the additional commands
footer for details.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

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




RE: Sorting at client side

2001-10-31 Thread MacKellar, Kimberly

How are you storing the information in the columns?  

Kim

-Original Message-
From: Rajeshwar Rao V [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 2:05 PM
To: Struts Users Mailing List
Subject: Sorting at client side


Hi ,

We are displaying data in tabular form in a JSP. I want to sort it
on column name. How can i do it at JSP level?
we are using "Struts" in our application.Please help if anybody worked on
same kinda stuff.

Thnaks in advance
raj

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Feedback on Struts Pros and Cons

2001-10-31 Thread Ted Husted

This is actually quite good, but I'm a nit-picker ;-)

David Bueche wrote:
> 1. Provides a controller ActionServlet that dispatches requests to the appropriate 
>business actions (Action subclasses) provided by the application developer.  All 
>dispatching is defined in an XML file (struts-config.xml).

Personally, I don't consider Action subclasses to be business objects.
Rather, they should be used to invoke business method. They are an
adapter between HTTP and the rest of your application. 

See also Section 2.5 of the User Guide 

http://jakarta.apache.org/struts/userGuide/building_model.html#business_logic

"[Arrange] things so that your Action classes (part of the Controller
role, as described below) translate  all required information from the
HTTP request being processed into property setter calls on your business
logic beans ... Such a business logic class can be reused in
environments other than the web application for which they were
initially constructed."


> 2. Supports internationalization of messages and prompts.

True. You might specifically mention error messages, since that is the
central role of the i18n features.


> 3. Provides message collections that can be easily displayed in a subsequent 
>JSP/Servlet.

Isn't this really part of 2?

 
> 4. Allows the input (data entry) JSP/Servlet to be specified for each Action 
>subclass, so control can be returned to that JSP/Servlet in the case of an error.

Not exactly. The JSP's specify an ActionMapping. If automatic validation
is used, this mapping should include an input path (URI) to use in the
case of an error. This may or may not be the JSP that submitted the
form.

 
> 5. Provides custom tags to delegate many of the JSPs' HTML commands and Servlets' 
>"println" statements to tag libraries.

The JSP already handle the println part. The custom tags replace
scriptlets, and simplify access to framework resources, like the
localised labels and messages. 
 
> 6. Automates population of the JSP domain object (ActionForm subclass) with input 
>data.

This is also a big part of what the custom tags do.

 
> 7. Allows data entry validation (ActionForm subclass) and business logic (Action 
>subclass) to be decoupled from the presentation JSPs/Servlets.

True, modified by (1).


> 8. Data validation can be turned on or off in web.xml.

Not true. The "validate" switch is really a misnomer, and refers to the
format of the Struts configuration file. Validation can be controlled on
a mapping by mapping basis (as discrete as it gets).

 
 Struts Disadvantages:
> 1. Instead of direct dispatching by controller Servlet(s), dispatching is defined in 
>an XML file, adding a layer of indirection overhead to the architecture.

I would say that the indirection is a good thing, since it decouples
your architechture from physical URIs. The mappings are all logical
URIs, and all the supporting classes and JSPs can be changed without
changing the names used by any of the mappings. 

The mappings actually reduce overhead, since they allow the use of
light-weight actions rather than deploying another servlets for every
task.


> 2. Requires behavior typically factored for commonality in controller Servlet 
>methods to be duplicated in every Action subclass (some common behavior could 
>possibly be delegated to additional classes or components and accessed by each Action 
>subclass).

Not true. Actions are very easy to subclass, and most people do. 


> 3. Struts internationalization is limited to static strings and does not include 
>internationalization of data returned by a business component.

Struts doesn't "limit" internatonalization in any way. Your business
components are free to internationalize data in any way it likes. If you
have another i18n system, the message resource object could be
subclassed to use that instead. The design is based on an interface, so
any backend object could be used. 

The Sstrings are also not static, but "templates" that accept
replacement parameters. To write a message from whole cloth, simply
design a key like 

error.dynamic = {0}

in the Application Resoources.


> 4. Struts internationalization requires an ApplicationResources.properties file, 
>which conflicts with the current Enterprise Java Application Standard of definely 
>properties directly in the web.xml file.

So how does that work when you need to define several hundred properties
for several different locales?


> 5. Presentation of message collections is predefined in tag libraries (although 
>these could be modified for more specialized presentation).

Why is this a disadvantage?

 
> 6. Requires understanding of custom tags and tag libraries, as well as their 
>deployment.  While this may not be a problem for more advanced developers, this will 
>add another layer of complexity for less experienced development and support teams 
>and requiring more intensive EAS involvement.

True. But I don't know if throwing more money into maintaining Scriplets
is a better 

Sorting at client side

2001-10-31 Thread Rajeshwar Rao V

Hi ,

We are displaying data in tabular form in a JSP. I want to sort it
on column name. How can i do it at JSP level?
we are using "Struts" in our application.Please help if anybody worked on
same kinda stuff.

Thnaks in advance
raj

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




HELPPPPPPPPPPPPPPPPPP (fwd)

2001-10-31 Thread Troy Hart

storck writes:
> Could someone HELP me with my previously posted messages 
> Its urgent!

I guess this is the previous message of which you speak... 

storck writes:
> Hi,  
> 
> How can I acces the index of a iterator-tag within a logic-tag ?  
> 
>
>  Index over 0
>   
>   
> 
> THANKS !  
> 

This should work for you: 



 Index over 0
 

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




RE: Struts Vs Expresso 4

2001-10-31 Thread Michael Nash

Dave:

I see Peter has already replied, but just to add a few quick thoughts to his
reply:

> I am curious and I am starting on Struts. I have a query. Since
> Expresso v4
> is incorporating Struts into its framework, does it nesssarily
> mean that it
> is better?

Depends on the Job at hand - as Peter says, "different" is a better word for
sure. Struts concentrates on specific areas of the application development
process, whereas Expresso adds capabilities for database-stored security,
robust relational/object mapping, background job handling and scheduling,
self-tests, log4j integration, and so forth. Struts is a perfect project for
us to integrate with, as the two frameworks we're parallel in design
techniques in the area of UI and presentation, yet with not much overlap.

There's also a collection of other OSS projects built with Expresso that
might be useful to you right away, including eForum (discussion forums),
ePoll (voting/polling), and eSearch (flexible search engine). The UI for
each of those is now Struts-based.

>Expresso has a framework for EJB right?

Not *quite* yet - but very close indeed. Work is actively underway for this.

> Please correct me if I am incorrect.
>

You can find out more at www.jcorporate.com, and the Expresso list serve at
[EMAIL PROTECTED]

Mike
Jcorporate Ltd.


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




Re: can i invoke two account forms

2001-10-31 Thread Don Saxton

easy. An ActionForm is a bean with properties of any type. add two
properties each of  a type extending ActionForm -- so, an actionForm
containing two forms. Sequence: (the usual) -- user request, action populate
forms, user input, user submit, action process, forward any.

So, what is the sequence in which 'recuperate' a first form makes sense?

- Original Message -
From: "storck" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 12:32 AM
Subject: AW: can i invoke two account forms


> Can you give us an example ???
>
> -Ursprüngliche Nachricht-
> Von: Don Saxton [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 30. Oktober 2001 19:39
> An: Struts Users Mailing List
> Betreff: Re: can i invoke two account forms
>
>
> I can imagine an ActionForm containing other ActionForms (or any other
bean)
> and two html forms on one html page. Then everything In what circumstance
> would you 'recuperate' a first form and how would you do it?
> Thanks
>
> - Original Message -
> From: "ALAMI Ahmed - BOR" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 30, 2001 1:23 AM
> Subject: RE: can i invoke two account forms
>
>
> Hello
> U can keep your first fomr in the current session (struts-config)
> and in the submit of the second form, recuperate your first and all is
done
>
> Ahmed ALAMI
> Stagiaire
>
>
> 8, rue Gustave Hertz - 33600 Pessac
> * 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
> * [EMAIL PROTECTED]
>
>
>
> -Message d'origine-
> De : Crisalyn Ramos [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 30 octobre 2001 09:58
> À : Struts Users Mailing List
> Objet : can i invoke two account forms
>
>
> Hi guys. Can I invoke two ActionForms in one Action class?
>
> thanks,
> joy
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Your email was rejected (automatic email filter rule for EXE)

2001-10-31 Thread Frot

Hi,

Your email contained a Executable Attachment. 
I do not accept Executable Attachments.

Regards, 

Frot's Messagebox

P.S. If you think this message is not correct just drop me a line.

P.P.S. This is a generated message


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




Form Bean

2001-10-31 Thread Cameron Ingram

Hi all!

 Ok here is the problem I have a form bean that I create in an action class, I 
then set the variables in it and then add it to the session.
This is before the corresponding jsp has been loaded  The jsp is loaded and it appears 
that the action servlet is then recreating the form bean and re-adding it to the 
session, thus all of the fields I set are set back to there original values. I 
overrode the reset method so I know that it's not calling that to clear the variables. 
 As I understand it the action servlet should check to see if it's in the session 
before it recreates it. The name I am using to define it in the session is the same 
name that the struts-config file uses to define the name. Any ideas???



This is the name that I am using when the 
form bean is added to the session.
  type="net.pscu.ndswebutils.EditDeleteUserNdsForm"/>



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




Re: IBM VisualAge WTE and struts

2001-10-31 Thread SLBrand

Hi Alan,

In the instructions I posted, (see 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16646.html), I 
outline a strategy of replacing the files in the "IBM XML Parser for Java" 
project.  I believed that the instructions are pretty explicit on exactly how 
to do this so if I've missed a step, please let me know and I'll amend the 
instructions. (although a number of people have already followed these 
instructions and told me they work fine).

Since I posted the instructions, Eric Rizzo
 has noted (see 
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16663.html) 
that it might be more beneficial to separate out these files and therefore 
simply remove the .org packages from the "IBM XML Parser for Java" project 
and then import Xerxes into it's own project (presumable called Xerxes?).  I 
have not tried this yet and so can't speak to this effect ... but if I get 
time I'm planning on trying it out since I agree with Eric that this is a 
cleaner way to go.

Here to help,
Stephen :-{)

Stephen Brand
Software Architect
[EMAIL PROTECTED]



RE: reset method of ActionForm bean

2001-10-31 Thread Fuller, Wayne

Make sure you are overridding the ActionForm reset(...) and not just
creating your own.

-Original Message-
From: Antony [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 9:38 AM
To: [EMAIL PROTECTED]
Subject: reset method of ActionForm bean


How should I configure struts-config.xml in order to let ActionServlet call
the reset() method?

It appers that my reset method is never called.





Is something wrong with it?

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




RE: issue

2001-10-31 Thread dhay



Isn't that the same thing?!  The options tag encapsulates iterating through a
collection a creating an option for each one!

Thus the following should do the same thing as your code below:


 


Cheers,

Dave





"Tom Klaasen (TeleRelay)" <[EMAIL PROTECTED]> on
10/31/2001 03:27:58 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: issue



I don't think so:  is for supplying a whole bunch of
options at once, not in an iteration loop.

IMO you should leave the value="" out: it is an attribute that has no
value, so I could see the cause of the error message :-P

So try this:


 
   
 


hth,
tomK


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 30 oktober 2001 18:34
> To: Struts Users Mailing List
> Subject: Re: issue
>
>
>
>
> You need to use the  tag!!  (note, the 's' on the end)
>
> Dave
>
>
>
>
>
> Mahesh Agarwal <[EMAIL PROTECTED]> on
> 10/30/2001
> 08:17:59 AM
>
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  issue
>
>
>
> hi all
>
> Inside the value of the option tag I want to dynamically get
> the value of
> the bean element. If embed the same bean tag inside the value then it
> says "Attribute has no value". The following is the code.
> 
> 
>   property="supplierUser.company.name"/> 
> 
> 
>
> the alternative i used is
>
> 
> 
>  property="supplierUser.company.name"/> ">  property="supplierUser.company.name"/> 
> 
> 
>
> but its giving error
>
> can i help me out
>
> thanks in lot in advance
>
> mahesh
>
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>
>

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








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




RE: Tiles/Orion(Oracle)

2001-10-31 Thread Stephen Gissendaner

Octavio,

I am using tiles with oc4j. 

the only bug issue that I ran into is that if you have an  and you don't pass the item in via the  then from the 
  on all of the tiles tags are ignored! Since you are using a submenu, 
It sounds like you may have this issue. (I am assuming that you can get basic stuff to 
work)

My work around was to have a  in the 
master  and then override it when needed in the extended definitions.

Hope that this helps.


Stephen W. Gissendaner
Senior Application Engineer,
EPL



-Original Message-
From: Otavio C. Decio [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:22 AM
To: Struts Users Mailing List
Subject: Tiles/Orion(Oracle)


Hi all,

Did anybody successfully installed an ran Tiles on Oracle's flavor of Orion? We have a 
new project starting, I wanted to use Tiles but so far I couldn't solve a problem with 
the submenu. If someone got it running, would you please tell me which platform and 
version are you using.

Thanks!!

Otavio


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




Re: DB driven i18n was Feedback on Struts Pros and Cons

2001-10-31 Thread James Holmes

I'm interested in this as well as I was thinking of
developing such a thing by extending the
MessagesResource and MessageResourcesFactory objects.

-james
[EMAIL PROTECTED]
http://www.ejcenter.com/struts/


--- [EMAIL PROTECTED] wrote:
> 
> gR, could you shed some light how you are using a DB
> backend for i18n w/
> struts?  Sounds interesting.
> 
> -Craig
> 
> 
> > 4. Struts internationalization requires an
> ApplicationResources.properties
> file,
> > which conflicts with the current Enterprise Java
> Application Standard of
> definely
> > properties directly in the web.xml file.
> 
> Struts does not use ApplicationResources.properties
> as real properties. The
> file
> is used only as a handy tool for peristing string
> maps. In our projects we
> use
> database backed internationalization with struts.
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: Help geting off list.

2001-10-31 Thread David Bueche

Try subscribing, then unsubscribing.

Just a thought,
-David

>>> [EMAIL PROTECTED] 10/31/01 07:57AM >>>
Hi

Sorry to post here but I have tried numerous times to get off this list
(unsubscribe) but the mailer keeps telling me I am not subscribed, I even
checked the headers of my mail and sent a message directly to the list owner
and I don't get unsubscribed.

It's funny I used ot be on this list, I unsubscribed and then like 4-5 weeks
later I'm back on it with the list having no idea I am getting mail.

LIST OWNER please get me off this list.

Thanks.


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



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




DB driven i18n was Feedback on Struts Pros and Cons

2001-10-31 Thread Craig_Reichenbach


gR, could you shed some light how you are using a DB backend for i18n w/
struts?  Sounds interesting.

-Craig


> 4. Struts internationalization requires an
ApplicationResources.properties
file,
> which conflicts with the current Enterprise Java Application Standard of
definely
> properties directly in the web.xml file.

Struts does not use ApplicationResources.properties as real properties. The
file
is used only as a handy tool for peristing string maps. In our projects we
use
database backed internationalization with struts.



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




Struts Validation question

2001-10-31 Thread Sandeep Takhar

when using the struts validator, what happens if you
define a validation for a field and the field does not
exist?  Does it skip the field (this is what I would
like).

- Sandeep

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Tiles/Orion(Oracle)

2001-10-31 Thread Otavio C. Decio

Hi all,

Did anybody successfully installed an ran Tiles on Oracle's flavor of Orion? We have a 
new project starting, I wanted to use Tiles but so far I couldn't solve a problem with 
the submenu. If someone got it running, would you please tell me which platform and 
version are you using.

Thanks!!

Otavio




Re: IBM VisualAge WTE and struts

2001-10-31 Thread Alan . Owen



I've tried the instructions contained in article
http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocument&SubMast=1
 for getting struts working in VAJ 3.5.2 & 3.53 and have had the following
problems :=

Are  the instructions for VAJ3.5.3 are the same as VAJ4.0 ?
I can't find a version JAXP1.01  for download and  Version 1.1 does not
contain a parser.jar
Has anybody got struts working on VAJ4 using these instructions ?
Are there any additional steps that need to be performed ?

If I use Stephen's instructions
I get the problem that the omg classes already exists in IBM XML Parser
What is the solution to this problem :=
1 Remove the omg classes from the IBM XML Parser project ?
2 Remove the omg classes from the Xeces  project ?

Any help  welcome

Many Thanks

Alan






[EMAIL PROTECTED] on 10/20/2001 02:57:52 AM

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: IBM VisualAge WTE and struts

Hi Hitesh,

I guess you could say that I "missed" some steps ... but I've learned to
modify the .webapp files by hand.  (I provided the strutsexample.webapp
with the directions so you don't _have_ to create one).  I suppose at some
point I should take the 10-20 minutes and learn (and write-up) the steps to
do the conversion as part of these notes.

Sounds like you've already found it but the article that IBM provided that
outlines these steps is available at:

http://www7.software.ibm.com/vad.nsf/Data/Document2558?OpenDocument&SubMast=1


If you get there before me ... please send me your write up so I can add it
to my instructions.  For that matter, if you find anything else in err, or
a "more correct" way to do anything in these instructions, please let me
know.  I'd be happy to learn.

Here to help,
Stephen :-{)

Stephen Brand
Software Architect
[EMAIL PROTECTED]





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




RE: Hashmaps and string keyed properties

2001-10-31 Thread Viral V. Tolat


The bug you mention may be the problem. The property we were accessing was
read-only, i.e., there was only a getter method and no setter method.  We'll
get the nightly build of Common BeanUtils and try it out.

>From an implementation point of view, we may use different implementation of
Map, rather than HashMap, but we want the Map interface functionality.

I'll look at the BeanUtils code and see what we can do in terms of enhancing
MappedPropertyDescriptor.

Does the nightly build of Struts use the nightly build of Common BeanUtils?

Thanks,
Viral



-Original Message-
From: Rey Francois [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 11:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Hashmaps and string keyed properties



Viral,

Could you be more precise on the runtime exception you get?
What you are trying to do should be possible with the Common BeanUtils.
However there is a bug that is fixed only in the nightly build of the
Commons BeanUtils. This bug is about the inability to recognize the
read-only mapped properties in some cases. Perhaps you will resolve your
problem by taking the latest build of the commons BeanUtils
(commons-beanutils.jar).

The second thing you want to do is, if I understand well, the ability to get
the whole map of values, like it is possible in the JDK to get an array of
values for an indexed property using a no-arg getMethod. This is actually
not implemented. However the class MappedPropertyDescriptor in BeanUtils is
implemented in a way that makes it easy to do so. If you feel like it, you
can implement this feature yourself and perhaps submit the code for
inclusion in the BeanUtils. It should be easy to implement, have a look at
how the JDK IndexedPropertyDescriptor is implemented in Java and try to do
the same in MappedPropertyDescriptor. One concern however in implementing
this: is the type Map the best choice as a return value? The problem with
Map is that it does not enforce the use of String as keys. The other problem
was that it forces the use of standard Java collections (for example the JGL
HashMap could not be used). However I cannot think of any better
alternatives than Map...

The third thing you talk about, I'm not sure what. Using the current
convention for nested properties, you could do this:
method(key1).prop2(key2).prop3(key3), but I'm not sure that's what you want.

Hope this helps,

Fr.

-Original Message-
From: Viral V. Tolat [mailto:[EMAIL PROTECTED]]
Sent: 31 October 2001 04:48
To: '[EMAIL PROTECTED]'
Subject: Hashmaps and string keyed properties


Three questions.

First, we're trying to get the following to work with the Struts nightly
build



where SomeForm implements 
String getMethod ( String key ).  
We  get a runtime error in the write tag for this and we can't figure out
why.  Any suggestions?  Do we need the Bean 
Utils with indexed string contributor extension?  But if we take this, does
it merge with the current BeanUtils from 
Commons?

Second, we'd like to be able to access a HashMap directly from the taglibs,
similar to how an Array can be accessed. 
So we'd like to be able to do the same as above except that

HashMap getMethod()

returns a HashMap and doesn't take an argument. 

And lastly, we'd like to be able to nest Hashmaps and then have something
like



where getMethod returns a HashMap but then key1 through key3 index into
successive Hashmaps or other JavaBeans.  
Essentially we'd like to wrap our form beans around a hashmap. We'll then
write code in our action beans to convert the hashmaps to and from Java
business objects.  We just don't see alot of value in creating a FormBean
for every domain object of which we have several hundred.

Thanks.


--
To unsubscribe, e-mail:

For additional commands, e-mail:



The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: reset method of ActionForm bean

2001-10-31 Thread Tom Klaasen (TeleRelay)

http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/Action
Form.html#reset(org.apache.struts.action.ActionMapping,
javax.servlet.http.HttpServletRequest) states: 
"This method is called before the properties are *re*populated
by the controller servlet. " (* by me)

So the reset() method isn't called the first time your form is used,
only the second and following times.

Confused me too the first time I encountered it :-)

hth,
tomK


> -Original Message-
> From: Antony [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 16:38
> To: [EMAIL PROTECTED]
> Subject: reset method of ActionForm bean
> 
> 
> How should I configure struts-config.xml in order to let 
> ActionServlet call the reset() method?
> 
> It appers that my reset method is never called.
> 
>type="com.webCalendar.forms.dateForm"/>
> 
>   type="com.webCalendar.actions.setDateAction"
>  name="dateForm"
>  scope="request"
>  input="/calendar.jsp"
>  validate="false"/>
> 
> Is something wrong with it?
> 

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




reset method of ActionForm bean

2001-10-31 Thread Antony

How should I configure struts-config.xml in order to let ActionServlet call the 
reset() method?

It appers that my reset method is never called.





Is something wrong with it?



Re: problem with i18n

2001-10-31 Thread Scott Atwell

You could try putting the following within the bean:message tag

locale="<%=session.getValue(org.apache.struts.action.Action.LOCALE_KEY)
%>"

Regards,
Scott

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: problem with i18n
>
>
> Hello struts-user,
>
> I have a problem with i18n.
> I have setup in the web.xml file this
> ch.netcetera.webapp.struts.ApplicationResources
> and I added in the ch/netcetera/webapp/struts directory two files:
> ApplicationResources.properties
> ApplicationResources_de-ch.properties
>
> With jsp I look witch language I use and this is OK. But struts us
> ever the ApplicationResources.properties.
>
> <%
>   String lang = request.getHeader("Accept-Language");
>   out.println(lang);
>   boolean headerSuccess = false;
>   if (lang != null){
> if (lang.length() >= 2){
>   session.putValue(org.apache.struts.action.Action.LOCALE_KEY, new
java.util.Locale(lang.substring(0, 2), "") );
>   headerSuccess = true;
> }
>   }
>   if (headerSuccess){
> %><%
>   }
>   else{
> out.println("Header 'Accept-Language' either not found or has no
recognisable value.");
>   }
> %>
>
> This jsp code print me always the string key for index.title in the
> ApplicationResources.properties.
>
> Have someone a answer to that problem?
>
>
> --
> Best regards,
>  rgi  mailto:[EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: problem with i18n

2001-10-31 Thread Marcel Andres

hi, 

1. Did you insert the application (I guess, yes)?
2. Like you, I have also to deal with different languages (de.ch/fr.ch/it.ch/...you 
know what I mean for CH).
I just checked my resource filesmaybe, you have a problem, because you 
named it ApplicationResources_de-ch.properties instead of 
ApplicationResources_de_ch.properties (note the "_" instead of "-").

Cheers, Marcel


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 3:30 PM
To: [EMAIL PROTECTED]
Subject: problem with i18n


Hello struts-user,

I have a problem with i18n.
I have setup in the web.xml file this
ch.netcetera.webapp.struts.ApplicationResources
and I added in the ch/netcetera/webapp/struts directory two files:
ApplicationResources.properties
ApplicationResources_de-ch.properties

With jsp I look witch language I use and this is OK. But struts us
ever the ApplicationResources.properties.

<%
  String lang = request.getHeader("Accept-Language");
  out.println(lang);
  boolean headerSuccess = false;
  if (lang != null){
if (lang.length() >= 2){
  session.putValue(org.apache.struts.action.Action.LOCALE_KEY, new 
java.util.Locale(lang.substring(0, 2), "") );
  headerSuccess = true;
}
  }
  if (headerSuccess){
%><%
  }
  else{
out.println("Header 'Accept-Language' either not found or has no recognisable 
value.");
  }
%>

This jsp code print me always the string key for index.title in the
ApplicationResources.properties.

Have someone a answer to that problem?


-- 
Best regards,
 rgi  mailto:[EMAIL PROTECTED]


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

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




RE: Usage of struts in financial institutions

2001-10-31 Thread Reddin, Greg

Yes.  The company I work for develops software for financial
institutions and we are involved in multiple projects based on Struts.
These products will be installed on the bank's intranet systems.  To my
knowledge we are not developing any Internet apps using Struts, but
there is no technological reason for that.

Greg

> -Original Message-
> From: Loka, Murlidhar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 8:49 AM
> To: '[EMAIL PROTECTED]'
> Subject: Usage of struts in financial institutions
> 
> 
> Is struts framework used in any of the financial firms ?
> 
> We plan to use struts framework and need to know if it has been
> implemented by other financial firms.
> 
> Thanks in advance,
> Murlidhar.
> 
> 
> 
>  1>
> 
> This e-mail and any attachments may contain confidential and 
> privileged information. If you are not the intended 
> recipient, please notify the sender immediately by return 
> e-mail, delete this e-mail and destroy any copies. Any 
> dissemination or use of this information by a person other 
> than the intended recipient is unauthorized and may be 
> illegal. Unless otherwise stated, opinions expressed in this 
> e-mail are those of the author and are not endorsed by the 
> author's employer.
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Usage of struts in financial institutions

2001-10-31 Thread torben.norling

Sure!
Without mentioning the customer in this case I can confirm that Struts 1.0 is beeing 
used by a finacial website.

// Torben

> 
> 
> Is struts framework used in any of the financial firms ?
> 
> We plan to use struts framework and need to know if it has been
> implemented by other financial firms.
> 
> Thanks in advance,
> Murlidhar.
> 
> 
> 
> 1>
> This e-mail and any attachments may contain confidential and privileged information. 
>If you are not the intended recipient, please notify the sender immediately by return 
>e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this 
>information by a person other than the intended recipient is unauthorized and may be 
>illegal. Unless otherwise stated, opinions expressed in this e-mail are those of the 
>author and are not endorsed by the author's employer.
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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




Re: Usage of struts in financial institutions

2001-10-31 Thread Peter Pilgrim


I am developing with Jakarta projects like Struts and Log4J right here at Deutsche 
Bank,
OTC Derivatives IT, London
--
Peter Pilgrim ++44 (0)207-545-9923
  //_\\
"Mathematics is essentially the study of islands of  ===
disparate subjects in a sea of ignorance."   || ! ||
Andrew Wiles _


 Message History 



From: "Loka, Murlidhar" <[EMAIL PROTECTED]> on 31/10/2001 09:48 EST


Is struts framework used in any of the financial firms ?

We plan to use struts framework and need to know if it has been
implemented by other financial firms.




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




RE: problem with i18n

2001-10-31 Thread Anthony Chater

Try ApplicationResources_de_CH.properties

Format is : BasicBundle + _  + languagecode + _ + countryCode

> -Original Message-
> From: rgi [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 3:30 PM
> To:   [EMAIL PROTECTED]
> Subject:  problem with i18n
> 
> Hello struts-user,
> 
> 
> 
> 
> I have a problem with i18n.
> I have setup in the web.xml file this
> ch.netcetera.webapp.struts.ApplicationResources
> and I added in the ch/netcetera/webapp/struts directory two files:
> ApplicationResources.properties
> ApplicationResources_de-ch.properties
> 
> With jsp I look witch language I use and this is OK. But struts us
> ever the ApplicationResources.properties.
> 
> <%
>   String lang = request.getHeader("Accept-Language");
>   out.println(lang);
>   boolean headerSuccess = false;
>   if (lang != null){
> if (lang.length() >= 2){
>   session.putValue(org.apache.struts.action.Action.LOCALE_KEY, new
> java.util.Locale(lang.substring(0, 2), "") );
>   headerSuccess = true;
> }
>   }
>   if (headerSuccess){
> %><%
>   }
>   else{
> out.println("Header 'Accept-Language' either not found or has no
> recognisable value.");
>   }
> %>
> 
> This jsp code print me always the string key for index.title in the
> ApplicationResources.properties.
> 
> Have someone a answer to that problem?
> 
> 
> -- 
> Best regards,
>  rgi  mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

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




Usage of struts in financial institutions

2001-10-31 Thread Loka, Murlidhar

Is struts framework used in any of the financial firms ?

We plan to use struts framework and need to know if it has been
implemented by other financial firms.

Thanks in advance,
Murlidhar.




This e-mail and any attachments may contain confidential and privileged information. 
If you are not the intended recipient, please notify the sender immediately by return 
e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this 
information by a person other than the intended recipient is unauthorized and may be 
illegal. Unless otherwise stated, opinions expressed in this e-mail are those of the 
author and are not endorsed by the author's employer.


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




test

2001-10-31 Thread Barry Jia


test

Barry Jia
QA Developer, Brightspark Corp.
Phone: 416-488-1999 x 306
Email : [EMAIL PROTECTED]
20 Eglinton Avenue West, Suite 600 
Toronto, Ontario 
Canada M4R 1K8




_
Click to add my contact info to your organizer:
http://my.infotriever.com/bjia



problem with i18n

2001-10-31 Thread rgi

Hello struts-user,

I have a problem with i18n.
I have setup in the web.xml file this
ch.netcetera.webapp.struts.ApplicationResources
and I added in the ch/netcetera/webapp/struts directory two files:
ApplicationResources.properties
ApplicationResources_de-ch.properties

With jsp I look witch language I use and this is OK. But struts us
ever the ApplicationResources.properties.

<%
  String lang = request.getHeader("Accept-Language");
  out.println(lang);
  boolean headerSuccess = false;
  if (lang != null){
if (lang.length() >= 2){
  session.putValue(org.apache.struts.action.Action.LOCALE_KEY, new 
java.util.Locale(lang.substring(0, 2), "") );
  headerSuccess = true;
}
  }
  if (headerSuccess){
%><%
  }
  else{
out.println("Header 'Accept-Language' either not found or has no recognisable 
value.");
  }
%>

This jsp code print me always the string key for index.title in the
ApplicationResources.properties.

Have someone a answer to that problem?


-- 
Best regards,
 rgi  mailto:[EMAIL PROTECTED]


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




RE: Feedback on Struts Pros and Cons

2001-10-31 Thread Anthony Chater

Hi,

I've just finished building  a prototype using Struts and talking to EJB
session beans at the back end and can give you a brief sum up of my own
practical experiences 
without answering you point for point :
The chief adavantages are :
simplified  error handling (some) / easy internationalisation / automatic
form handling - think of validation and parameter retrieval / ready-made tag
libraries for code-free JSPs / localisation of all action handling

Incidentally some of the disadvantages you list are trivial : almost every
servlet based framework I've worked with requires at least one class to be
programmed per action.
A Struts tip : think in terms of Actions not pages;   so actions can be
reused by many pages
And.. Data entry validation can be  toggled per JSP (per form actually; you
simply don't implement the validate method if you don't want it!)

Disadvantages are :
- only for JSP / servlets
- a relatively steep learning curve (but thereafter vastly improved
productivity)
- you're bound to the Struts tag libs if you use them (which you should). If
you ditch Struts you can start layouting again -:)
-  (your point )internationalization is limited to static strings


Cheers
Anthony


PS  
I only subscribed to this newsgroup today and the messages are all streaming
into my mailbox.  I's there a !@#$%%%$#@  newsgroup where on can anser this
sort of thing using a normal newsgroup reader?



> -Original Message-
> From: David Bueche [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 2:23 PM
> To:   [EMAIL PROTECTED]
> Subject:  Feedback on Struts Pros and Cons
> 
> All,
> 
> I work with a company that is new to Java and we are evaluating tools for
> a standard J2EE architecture.  One of the Model 2 approaches we are
> looking at is Struts.
> 
> After spending some time evaluating Struts, I have assembled the attached
> list of pros and cons, but would like to get some impartial third party
> feedback.  If anyone sees anything I missed, I would appreciate your
> insights.
> 
> Thanks!
> 
> -David
> 
> --
> 
> Struts Advantages:
> 
> 1. Provides a controller ActionServlet that dispatches requests to the
> appropriate business actions (Action subclasses) provided by the
> application developer.  All dispatching is defined in an XML file
> (struts-config.xml).
> 
> 2. Supports internationalization of messages and prompts.
> 
> 3. Provides message collections that can be easily displayed in a
> subsequent JSP/Servlet.
> 
> 4. Allows the input (data entry) JSP/Servlet to be specified for each
> Action subclass, so control can be returned to that JSP/Servlet in the
> case of an error.
> 
> 5. Provides custom tags to delegate many of the JSPs' HTML commands and
> Servlets' "println" statements to tag libraries.
> 
> 6. Automates population of the JSP domain object (ActionForm subclass)
> with input data.
> 
> 7. Allows data entry validation (ActionForm subclass) and business logic
> (Action subclass) to be decoupled from the presentation JSPs/Servlets.
> 
> 8. Data validation can be turned on or off in web.xml.
> 
> 
> Struts Disadvantages:
> 
> 1. Instead of direct dispatching by controller Servlet(s), dispatching is
> defined in an XML file, adding a layer of indirection overhead to the
> architecture.
> 
> 2. Requires behavior typically factored for commonality in controller
> Servlet methods to be duplicated in every Action subclass (some common
> behavior could possibly be delegated to additional classes or components
> and accessed by each Action subclass).
> 
> 3. Struts internationalization is limited to static strings and does not
> include internationalization of data returned by a business component.
> 
> 4. Struts internationalization requires an ApplicationResources.properties
> file, which conflicts with the current Enterprise Java Application
> Standard of definely properties directly in the web.xml file.
> 
> 5. Presentation of message collections is predefined in tag libraries
> (although these could be modified for more specialized presentation).
> 
> 6. Requires understanding of custom tags and tag libraries, as well as
> their deployment.  While this may not be a problem for more advanced
> developers, this will add another layer of complexity for less experienced
> development and support teams and requiring more intensive EAS
> involvement.
> 
> 7. Delegating much of the presentation layer to custom tags can make the
> final HTML/presentation less clear than HTML placed directly in the
> JSPs/Servlets.
> 
> 8. Data entry validation is toggled on/off on a global basis only (not on
> a per JSP/Servlet basis).
> 
> 9. Requires recompilation and redeployment when data entry validation or
> business component invocation changes.   This is unnecessary if data entry
> validation and business component invocation is performed in a JSP.
> 
> 10. Requires at least one additional class per deployed page: an Action
> subclass to invoke the correspondi

Re: Struts Vs Expresso 4

2001-10-31 Thread Pete Carapetyan

> What is 'webappwriter' - sounds like my kinda software!
>
> Any ideas where I can find out more about it, and when it might be released?

http://webAppWriter.com
is currently providing the Expresso 3.11 or non-Struts version.
It is a crude shadow of it's Struts version, which is still a few weeks
from release, but gives you the basic idea.

It has many benefits of course, but until it is open sourced it is a bit of a
pain to have to use is on someone elses site.

> 
> There's a lot off 'guff' when writing a web app that I really want to avoid
> - I just want to design the business logic and the view, and leave most of
> the rest of it to some framework

That was the basic idea, if you can wait the few weeks for the Struts
version to be available. 


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




Setting bean property with custom tag

2001-10-31 Thread Graham King

   I'm building my first struts App and would appreciate some help with 
the following:

  Currently I have a JSP with the following code:




***
SUMMARY: Essentially I want to be able to replace the above two lines 
with a struts tag where I don't have to give it the class name, because 
my bean is already defined in struts-config hence struts knows the 
class. Is there such a thing or is the above the recommended way ?
  More details follow.
***

View details

  This is in the struts-config as follows:

Bean:
  

Global forward:


Action:
  


  The NameAdminController uses the 'surname' as a key into the db to 
load the details.

  This works fine, but it means I have the name of the class in my 
struts-config and in my JSP. Struts already knows the class for 
'nameForm' so I'm hoping for a tag of the form:
   

  Is there such a thing ?

  There is a  tag but it seems to want my nameForm to be a 
String.

  Many thanks,
  Graham King.


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




Re: Feedback on Struts Pros and Cons

2001-10-31 Thread Gregor Rayman

"David Bueche" <[EMAIL PROTECTED]> wrote:

> Struts Disadvantages:
>
> 1. Instead of direct dispatching by controller Servlet(s), dispatching is
defined
> in an XML file, adding a layer of indirection overhead to the
architecture.

Do you really think, this is an disadvantage?

> 2. Requires behavior typically factored for commonality in controller
Servlet
> methods to be duplicated in every Action subclass (some common behavior
could
> possibly be delegated to additional classes or components and accessed by
each
> Action subclass).

There is still the possibility to subclass ActionServlet and so create own
controller.

> 3. Struts internationalization is limited to static strings and does not
include
> internationalization of data returned by a business component.

A bit can be achieved with the placeholders in constant strings.

> 4. Struts internationalization requires an ApplicationResources.properties
file,
> which conflicts with the current Enterprise Java Application Standard of
definely
> properties directly in the web.xml file.

Struts does not use ApplicationResources.properties as real properties. The
file
is used only as a handy tool for peristing string maps. In our projects we
use
database backed internationalization with struts.

> 5. Presentation of message collections is predefined in tag libraries
(although
> these could be modified for more specialized presentation).
>
> 6. Requires understanding of custom tags and tag libraries, as well as
their
> deployment.  While this may not be a problem for more advanced developers,
this
> will add another layer of complexity for less experienced development and
support
> teams and requiring more intensive EAS involvement.
>
> 7. Delegating much of the presentation layer to custom tags can make the
final
> HTML/presentation less clear than HTML placed directly in the
JSPs/Servlets.

8. Delegating much of the presentation layer to custom tags can become a
performance
problem.

--
gR





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




RE: Struts Vs Expresso 4

2001-10-31 Thread Scriven, Marcos

What is 'webappwriter' - sounds like my kinda software!

Any ideas where I can find out more about it, and when it might be released?

There's a lot off 'guff' when writing a web app that I really want to avoid
- I just want to design the business logic and the view, and leave most of
the rest of it to some framework

Marcos

> -Original Message-
> From: Pete Carapetyan [mailto:[EMAIL PROTECTED]]
> Sent: 31 October 2001 13:26
> To: Struts Users Mailing List
> Subject: Re: Struts Vs Expresso 4
> 
> 
> >  Since Expresso v4 is incorporating Struts into its 
> framework, does it
> > nesssarily mean that it is better?
> 
> No, because ~better~ is a meaningless word. Some people like 
> to use vi or
> notepad, others prefer an IDE. Either one get's the job done.
> 
> Expresso is a relatively heavyweight framework, incorporating 
> tons of features
> such as automated table manipulation, caching, logging, xml 
> automation, testing,
> registration objects, on and on.
> 
> As such, it is perfect for guys like me, who just want to get 
> the work done, but
> a challenge for someone who feels cramped using interfaces 
> not invented on his
> own box, or wishes to use raw J2EE without all the help from 
> the 300 or so
> classes that Expresso provides.
> 
> Using webAppWriter, I can get an app written and deployed in 
> an hour, as opposed
> to the month or so it took me when I was using straight J2EE. 
> This Struts
> version, however, is still not public.
> 
> Even though most of Expresso is optional, there does not 
> appear to be a large
> percentage of developers who use it in that manner.
> 
> Expresso uses mostly Apache modules such as log4j, but the 
> data access objects
> are it's own, and there you will find the biggest time 
> savings for your
> development schedule.
> 
> > Expresso has a framework for EJB right?
> 
> No, but as soon as we get some more contributors active in 
> that area, it should
> be forthcoming. All the pieces are in place...:)
> --
> Pete Carapetyan
> http://datafundamentals.com
> Java Development Services
> 
> Open standards technology for commercial profitability
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




Help geting off list.

2001-10-31 Thread John Bateman

Hi

Sorry to post here but I have tried numerous times to get off this list
(unsubscribe) but the mailer keeps telling me I am not subscribed, I even
checked the headers of my mail and sent a message directly to the list owner
and I don't get unsubscribed.

It's funny I used ot be on this list, I unsubscribed and then like 4-5 weeks
later I'm back on it with the list having no idea I am getting mail.

LIST OWNER please get me off this list.

Thanks.


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




Re: Struts Vs Expresso 4

2001-10-31 Thread Pete Carapetyan

>  Since Expresso v4 is incorporating Struts into its framework, does it
> nesssarily mean that it is better?

No, because ~better~ is a meaningless word. Some people like to use vi or
notepad, others prefer an IDE. Either one get's the job done.

Expresso is a relatively heavyweight framework, incorporating tons of features
such as automated table manipulation, caching, logging, xml automation, testing,
registration objects, on and on.

As such, it is perfect for guys like me, who just want to get the work done, but
a challenge for someone who feels cramped using interfaces not invented on his
own box, or wishes to use raw J2EE without all the help from the 300 or so
classes that Expresso provides.

Using webAppWriter, I can get an app written and deployed in an hour, as opposed
to the month or so it took me when I was using straight J2EE. This Struts
version, however, is still not public.

Even though most of Expresso is optional, there does not appear to be a large
percentage of developers who use it in that manner.

Expresso uses mostly Apache modules such as log4j, but the data access objects
are it's own, and there you will find the biggest time savings for your
development schedule.

> Expresso has a framework for EJB right?

No, but as soon as we get some more contributors active in that area, it should
be forthcoming. All the pieces are in place...:)
--
Pete Carapetyan
http://datafundamentals.com
Java Development Services

Open standards technology for commercial profitability



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




Feedback on Struts Pros and Cons

2001-10-31 Thread David Bueche

All,

I work with a company that is new to Java and we are evaluating tools for a standard 
J2EE architecture.  One of the Model 2 approaches we are looking at is Struts.

After spending some time evaluating Struts, I have assembled the attached list of pros 
and cons, but would like to get some impartial third party feedback.  If anyone sees 
anything I missed, I would appreciate your insights.

Thanks!

-David

--

Struts Advantages:

1. Provides a controller ActionServlet that dispatches requests to the appropriate 
business actions (Action subclasses) provided by the application developer.  All 
dispatching is defined in an XML file (struts-config.xml).

2. Supports internationalization of messages and prompts.

3. Provides message collections that can be easily displayed in a subsequent 
JSP/Servlet.

4. Allows the input (data entry) JSP/Servlet to be specified for each Action subclass, 
so control can be returned to that JSP/Servlet in the case of an error.

5. Provides custom tags to delegate many of the JSPs' HTML commands and Servlets' 
"println" statements to tag libraries.

6. Automates population of the JSP domain object (ActionForm subclass) with input data.

7. Allows data entry validation (ActionForm subclass) and business logic (Action 
subclass) to be decoupled from the presentation JSPs/Servlets.

8. Data validation can be turned on or off in web.xml.


Struts Disadvantages:

1. Instead of direct dispatching by controller Servlet(s), dispatching is defined in 
an XML file, adding a layer of indirection overhead to the architecture.

2. Requires behavior typically factored for commonality in controller Servlet methods 
to be duplicated in every Action subclass (some common behavior could possibly be 
delegated to additional classes or components and accessed by each Action subclass).

3. Struts internationalization is limited to static strings and does not include 
internationalization of data returned by a business component.

4. Struts internationalization requires an ApplicationResources.properties file, which 
conflicts with the current Enterprise Java Application Standard of definely properties 
directly in the web.xml file.

5. Presentation of message collections is predefined in tag libraries (although these 
could be modified for more specialized presentation).

6. Requires understanding of custom tags and tag libraries, as well as their 
deployment.  While this may not be a problem for more advanced developers, this will 
add another layer of complexity for less experienced development and support teams and 
requiring more intensive EAS involvement.

7. Delegating much of the presentation layer to custom tags can make the final 
HTML/presentation less clear than HTML placed directly in the JSPs/Servlets.

8. Data entry validation is toggled on/off on a global basis only (not on a per 
JSP/Servlet basis).

9. Requires recompilation and redeployment when data entry validation or business 
component invocation changes.   This is unnecessary if data entry validation and 
business component invocation is performed in a JSP.

10. Requires at least one additional class per deployed page: an Action subclass to 
invoke the corresponding business component or model behavior and forward control to 
the subsequent JSP/Servlet.  Fewer classes are required if this behavior is performed 
within the controller Servlet.

11. Struts applications, with their Action and ActionForm subclasses and the 
struts-config.xml file, add additional development and deployment complexity that may 
be too difficult for less experienced developers to grasp. 



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




Re: Validation of errors and re-population of request

2001-10-31 Thread Guindzberg, Oscar


> If you find an error during the validate() and fordward to the action, the
> validate() method will be called again before the execution of the
> perform(), because the action will try to validate the form is receiving,
> and you'll be in a loop.
> I 'm experiencing that problem.
> I appreciate if you could help me.
> 
> 
> Re: Validation of errors and re-population of request
> 
> * From: Bill Clinton 
> * Subject: Re: Validation of errors and re-population of request 
> * Date: Fri, 03 Aug 2001 21:37:20 -0700 
> 
> Tim,
> I'm not sure this will work for you, but if it does, it may be the 
> easiest solution.  I am assuming that you have a "failure" forward in 
> the Delete action that sends the user back to the list page.  Instead of 
> mapping this forward to the list page, map it to the list action.  That 
> way, the action errors (or non-struts error message) that you save in 
> the request object will still be there, and it will pick up the vector 
> in the list action before it dispatches to the list page.
> 
> Bill
> 
> Tim Trentham wrote:
> 
> > I'm wondering if there is a "best practice" or standard Struts way of
> > handling repopulation of request attributes needed for a page after an
> > error. 
> > 
> > For instance, I have a list of contacts with a checkbox next to each
> one.
> > The list is generated by the logic:iterate and multibox tags using a
> vector
> > that is placed in the request by the action that forwards to the page
> that
> > displays the list. The user can select contacts from the list and delete
> > them.
> > 
> > If the user clicks the delete button and there are no users checked, my
> > validate method throws them back to the page telling them that they need
> to
> > pick something. Of course, the vector is no longer in the request for
> > display, so you see the error message, but no users.
> > 
> > I did find a two things in past posts, but nothing really promising...
> > 
> > 1)
> > repopulation occurs in the reset method
> >
> 
> > 
> > but this means that you are re-populating the request with the dropdown
> list
> > even if there aren't any errors, which seems like a waste of resources.
> > also, you still have to populate the first time from somewhere else as
> the
> > forms reset() method isn't called until after the first time the page is
> > displayed.
> > 
> > 2)
> > repopulation occurs in validate method
> >
> 
> > 
> > this is what i'm looking at doing, but once again, i have to do it in
> two
> > places: the original action that generates the list in the jsp page and
> then
> > in the validate method of the form if there is an error.
> > 
> > I also have the additional problem of keeping track of which vector to
> > re-generate. I display the contacts in blocks of 25, so if you are on
> the
> > second block of 25 and you click delete with no contacts checked, I need
> to
> > know that I need to re-generate the second block and not the first.
> > 
> > I'm wondering if others have come up with a good way of handling this
> before
> > I go off and reinvent the wheel.
> > 
> > Thanks.
> > 
> > Tim
> > 
> > 
> > Tim Trentham
> > Platform Development
> > @hand Corporation
> > [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> Oscar Guindzberg
> EDS - Interbanking
> Arias 1851
> Capital Federal (1429)
> 
> * 4704-3527
> * [EMAIL PROTECTED]
> 
> 

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




Re: can't understand the struts example documentation

2001-10-31 Thread John Yu

See the description for the 'action' attribute at

 http://jakarta.apache.org/struts/struts-html.html#form


In short, Struts automatically append '.do' to the action attribute 
('/login') of . This is the part the doco hasn't explained in 
details.


At 11:42 am 31-10-2001 +, you wrote:
>Hello
>
>
>
>I am trying to understand Struts. I have read the following part of the
>documentation relating to the Struts example application that comes with the
>v1.0 binary download.
>
>
>
>LogonAction.java
>The initial JSP submits its form to logon.do. If you check the servlet
>mappings in the example's web.xml you will see that requests for *.do files
>are directed to the Struts "action" servlet (an instance of ActionServlet).
>In the example, the ActionServlet refers to struts-config.xml for its own
>mappings (among other things), which is where we find the reference to
>logon.do:
>   type="org.apache.struts.webapp.example.LogonAction" name="logonForm"
>scope="request" input="/logon.jsp" > 
>
>and a form bean to go with the "logonForm" action:
>
> type="org.apache.struts.webapp.example.LogonForm"  />
>
>  In the action mapping, the path property tells the ActionServlet to forward
>a request for logon.do to the LogonAction object. The input property tells
>the LogonAction object where it can pass control to get information from the
>user.
>
>
>
>The problem is as far as I can see, the initial JSP (logon. jsp) does not
>submit its form to logon.do it actually uses /logon and since /login is not
>mapped in the web.xml file I can't work out how the flow control works.
>
>Is this part of the documentation wrong, or I am I missing something?
>
>If you think its wrong, can you tell me how it should read or more
>importantly how the control flow actually works?
>
>Thanks

-- 
John Yu   Scioworks Technologies
e: [EMAIL PROTECTED] w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610

Scioworks Camino - "Rapid WebApp Assembly for Struts"


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




can't understand the struts example documentation

2001-10-31 Thread Forrester, Tom

Hello



I am trying to understand Struts. I have read the following part of the
documentation relating to the Struts example application that comes with the
v1.0 binary download.



LogonAction.java 
The initial JSP submits its form to logon.do. If you check the servlet
mappings in the example's web.xml you will see that requests for *.do files
are directed to the Struts "action" servlet (an instance of ActionServlet).
In the example, the ActionServlet refers to struts-config.xml for its own
mappings (among other things), which is where we find the reference to
logon.do:


and a form bean to go with the "logonForm" action: 

 

 In the action mapping, the path property tells the ActionServlet to forward
a request for logon.do to the LogonAction object. The input property tells
the LogonAction object where it can pass control to get information from the
user.



The problem is as far as I can see, the initial JSP (logon. jsp) does not
submit its form to logon.do it actually uses /logon and since /login is not
mapped in the web.xml file I can't work out how the flow control works. 

Is this part of the documentation wrong, or I am I missing something?

If you think its wrong, can you tell me how it should read or more
importantly how the control flow actually works?

Thanks

Thales Defence Information Systems DISCLAIMER: The information in this
message is confidential and may be legally privileged. It is intended solely
for the addressee.  Access to this message by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, or
distribution of the message, or any action or omission taken by you in
reliance on it, is prohibited and may be unlawful.  Please immediately
contact the sender if you have received this message in error. Thank you.

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




RE: Digester Problem!!!!

2001-10-31 Thread Tom Klaasen (TeleRelay)

I would suggest: consider option 1): you'll really have to do some
things yourself if you want to run this example on a nightly build. You
won't if you just install struts1.0 for looking at the examples, and
then you can learn. And if you want to use some code from the example,
you'll just have to deal with migrating that piece, and not the whole
example.

What other solution do you see? Having someone on the list doing the
migration for you?

hth,
tomK


> -Original Message-
> From: storck [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 12:20
> To: 'Struts Users Mailing List'
> Subject: AW: Digester Problem
> 
> 
> I use Struts nightly build from 22.10.2001: If I import the 
> bean-factory in Visual Age 3.5 I get the following errors
> 
> org.apache.commons.digester.Digester initDigester(int)  2 
> Errors, 0 Warnings
>   The method addRule invoked for type 
> org.apache.commons.digester.Digester with arguments 
> (java.lang.String, 
> org.apache.struts.action.AddBeanRegistrationRule) is not defined
>   The constructor invoked to create 
> org.apache.struts.action.AddBeanRegistrationRule with 
> arguments (org.apache.commons.digester.Digester) is not defined
> 
> -Ursprungliche Nachricht-
> Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 31. Oktober 2001 11:59
> An: Struts Users Mailing List
> Betreff: RE: Digester Problem
> 
> 
> I cannot promise that I can answer your question, but I can tell you
> that anybody who could answer it, can only know that she can answer it
> if you supply the error message(s) you get.
> 
> If you don't understand the previous sentence: CTRL+C CTRL+V 
> is not hard
> to do. Use it to supply information to people who are willing to help.
> 
> tomK
> 
> 
> > -Original Message-
> > From: storck [mailto:[EMAIL PROTECTED]] 
> > Sent: woensdag 31 oktober 2001 11:56
> > To: 'Struts Users Mailing List'
> > Subject: AW: Digester Problem
> > 
> > 
> > But if I replace the packages I get an error that some 
> > methodes are not defined
> > 
> > -Ursprungliche Nachricht-
> > Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 31. Oktober 2001 11:31
> > An: Struts Users Mailing List
> > Betreff: RE: Digester Problem
> > 
> > 
> > 1) Use struts 1.0 for toying around with the example, and 
> if you think
> > you can use it, get the source code, and do a search&replace.
> > 2) Notify the author of the example, and ask whether he wants 
> > to make a
> > struts post-1.0 version.
> > 
> > hth,
> > tomK
> > 
> > 
> > 
> > > -Original Message-
> > > From: storck [mailto:[EMAIL PROTECTED]] 
> > > Sent: woensdag 31 oktober 2001 10:47
> > > To: User Struts (E-Mail)
> > > Subject: Digester Problem
> > > 
> > > 
> > > Hi,
> > > 
> > > I have a greate Problem. I have downloaded an example wich uses
> > > org.apache.struts.digester but the ActionServlet of 
> Struts now uses
> > > org.apache.commons.digester wich seam not to be compatiple. 
> > > The example is
> > > from http://www.sura.ru/~gonza/bean-factory/
> > > 
> > > can someone help me ??
> > > THANKS
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> > >  [EMAIL PROTECTED]>
> > > For 
> > > additional commands, 
> > > e-mail: 
> > > 
> > > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

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




RE: Nested Tags

2001-10-31 Thread Jake Thompson

To answer my own stupidness:



Soled it.

Thanks,
Jake T.

-Original Message-
From: Jake Thompson 
Sent: Tuesday, October 30, 2001 10:59 PM
To: [EMAIL PROTECTED]
Subject: Nested Tags


Hi All,

I have the following within in logic:iterate section of code.

This works:
">

This does not:
"/> I get:
javax.servlet.ServletException: /employee/selectEmployee-body.jsp(32,87) Attribute 
values has no value

Am I doing something wrong, or is this just the way things are.

Any help much appreciated.

Later,
Jake





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





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




AW: Digester Problem!!!!

2001-10-31 Thread storck

I use Struts nightly build from 22.10.2001: If I import the bean-factory in
Visual Age 3.5 I get the following errors

org.apache.commons.digester.Digester initDigester(int)  2 Errors, 0 Warnings
The method addRule invoked for type
org.apache.commons.digester.Digester with arguments (java.lang.String,
org.apache.struts.action.AddBeanRegistrationRule) is not defined
The constructor invoked to create
org.apache.struts.action.AddBeanRegistrationRule with arguments
(org.apache.commons.digester.Digester) is not defined

-Ursprungliche Nachricht-
Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Oktober 2001 11:59
An: Struts Users Mailing List
Betreff: RE: Digester Problem


I cannot promise that I can answer your question, but I can tell you
that anybody who could answer it, can only know that she can answer it
if you supply the error message(s) you get.

If you don't understand the previous sentence: CTRL+C CTRL+V is not hard
to do. Use it to supply information to people who are willing to help.

tomK


> -Original Message-
> From: storck [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 11:56
> To: 'Struts Users Mailing List'
> Subject: AW: Digester Problem
> 
> 
> But if I replace the packages I get an error that some 
> methodes are not defined
> 
> -Ursprungliche Nachricht-
> Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 31. Oktober 2001 11:31
> An: Struts Users Mailing List
> Betreff: RE: Digester Problem
> 
> 
> 1) Use struts 1.0 for toying around with the example, and if you think
> you can use it, get the source code, and do a search&replace.
> 2) Notify the author of the example, and ask whether he wants 
> to make a
> struts post-1.0 version.
> 
> hth,
> tomK
> 
> 
> 
> > -Original Message-
> > From: storck [mailto:[EMAIL PROTECTED]] 
> > Sent: woensdag 31 oktober 2001 10:47
> > To: User Struts (E-Mail)
> > Subject: Digester Problem
> > 
> > 
> > Hi,
> > 
> > I have a greate Problem. I have downloaded an example wich uses
> > org.apache.struts.digester but the ActionServlet of Struts now uses
> > org.apache.commons.digester wich seam not to be compatiple. 
> > The example is
> > from http://www.sura.ru/~gonza/bean-factory/
> > 
> > can someone help me ??
> > THANKS
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


 winmail.dat

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


RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)

You could try to put struts-example.war in your TOMCAT_HOME/webapps
directory, restart, and see whether it works.
If not, there's indeed a problem with your tomcat engine...

hth,
tomK

> -Original Message-
> From: Andrew Kirkland [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 11:56
> To: Struts user mail list
> Subject: RE:redirection
> 
> 
> I have tried all the suggesions and still the same result, i guess my
> container is broke :( Is there anyway to test if struts is installed
> correctly? Thanks for the help
> Andy
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




RE:redirection

2001-10-31 Thread Andrew Kirkland

I have tried all the suggesions and still the same result, i guess my
container is broke :( Is there anyway to test if struts is installed
correctly? Thanks for the help
Andy


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




RE: Nested Tags

2001-10-31 Thread Damian Powell

> Am I doing something wrong, or is this just the way things are.

You're doing something wrong. You can't nest custom tags so a 
inside a  tag is illegal.


---
Damian L Powell
[e] [EMAIL PROTECTED]
[w] http://www.shadow-angel.com

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




RE: Digester Problem!!!!

2001-10-31 Thread Tom Klaasen (TeleRelay)

I cannot promise that I can answer your question, but I can tell you
that anybody who could answer it, can only know that she can answer it
if you supply the error message(s) you get.

If you don't understand the previous sentence: CTRL+C CTRL+V is not hard
to do. Use it to supply information to people who are willing to help.

tomK


> -Original Message-
> From: storck [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 11:56
> To: 'Struts Users Mailing List'
> Subject: AW: Digester Problem
> 
> 
> But if I replace the packages I get an error that some 
> methodes are not defined
> 
> -Ursprungliche Nachricht-
> Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 31. Oktober 2001 11:31
> An: Struts Users Mailing List
> Betreff: RE: Digester Problem
> 
> 
> 1) Use struts 1.0 for toying around with the example, and if you think
> you can use it, get the source code, and do a search&replace.
> 2) Notify the author of the example, and ask whether he wants 
> to make a
> struts post-1.0 version.
> 
> hth,
> tomK
> 
> 
> 
> > -Original Message-
> > From: storck [mailto:[EMAIL PROTECTED]] 
> > Sent: woensdag 31 oktober 2001 10:47
> > To: User Struts (E-Mail)
> > Subject: Digester Problem
> > 
> > 
> > Hi,
> > 
> > I have a greate Problem. I have downloaded an example wich uses
> > org.apache.struts.digester but the ActionServlet of Struts now uses
> > org.apache.commons.digester wich seam not to be compatiple. 
> > The example is
> > from http://www.sura.ru/~gonza/bean-factory/
> > 
> > can someone help me ??
> > THANKS
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

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




dynamic value for radio button inside logic:iterate

2001-10-31 Thread Sanjay Duggal


Hi,
I have a jsp where i'm using the "logic:iterate" tag to iterate over a
collection which has been put into the session by an action class with
the attribute= "collectionx"
On my jsp, I now need to iterate through the collection which has
elements that are objects of the class: SpecialTermsResult(this
bean/class has two String fields: code & description) & display
dynamically generated radio buttons with code & descriptions.The value
attribute of each radio tag should be the same as its code(the property
"code" of the bean SpecialTermsResult). How should I code for that?Is
the following code right?




"/>





  





or should it be coded like this:





 propertyX
 






  




Thanks.
Sanjay

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




AW: Digester Problem!!!!

2001-10-31 Thread storck

But if I replace the packages I get an error that some methodes are not
defined

-Ursprungliche Nachricht-
Von: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Oktober 2001 11:31
An: Struts Users Mailing List
Betreff: RE: Digester Problem


1) Use struts 1.0 for toying around with the example, and if you think
you can use it, get the source code, and do a search&replace.
2) Notify the author of the example, and ask whether he wants to make a
struts post-1.0 version.

hth,
tomK



> -Original Message-
> From: storck [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 10:47
> To: User Struts (E-Mail)
> Subject: Digester Problem
> 
> 
> Hi,
> 
> I have a greate Problem. I have downloaded an example wich uses
> org.apache.struts.digester but the ActionServlet of Struts now uses
> org.apache.commons.digester wich seam not to be compatiple. 
> The example is
> from http://www.sura.ru/~gonza/bean-factory/
> 
> can someone help me ??
> THANKS
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


 winmail.dat

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


RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)

Sorry :-) I mean using THE web.xml FILE IN blank.war as the base... 

Wellington

-Original Message-
From: Lacerda, Wellington (AFIS) 
Sent: Wednesday, October 31, 2001 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: redirection
Importance: High


In JspInsider the web.xml file is created FROM a blank.war file, which I
guess is preset for the tutorial. So, it's not the case to say it is wrong.

But if you aren't using blank.war as the base for your web.xml file and is
trying to set it from scratch, you must set this mapping to the Action
Servlet indeed.

Wellington L.S. da Silva
UN/FAO


-Original Message-
From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:33 AM
To: Struts Users Mailing List
Subject: RE: redirection


That could be the problem indeed.

>From the jspinsider url:
'No changes are required within the Web.xml file.'

This is wrong, as you mentioned.

So Andrew, I'd flame jspinsider ;-)

tomK

> -Original Message-
> From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 11:27
> To: 'Struts Users Mailing List'
> Subject: RE: redirection
> Importance: High
> 
> 
> You configure that in the web.xml deployment descriptor file!
> 
> You MAP the actions and actionForwards in the 
> struts-config.xml, but you must
> map the path or extension modes in the web.xml file! In your case:
> 
>   
> action
> *.do
>   
> 
> (extracted from example application web.xml)
> 
> Wellington L.S. da Silva
> UN/FAO
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: redirection
> 
> 
> Have you configured struts-config.xml properly to recognise logon.do?
> 
> Have you tested that struts is properly installed and is 
> working properly?
> 
> Regards,
> Scott
> - Original Message -
> From: "Andrew Kirkland" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 31, 2001 10:08 AM
> Subject: RE: redirection
> 
> 
> > A .do file is the file extention that i have used for 
> mapping purposes.
> >
> > I have this in my jsp :  action="lesson1/logon.do" focus="user">
> >
> > and then web.xml redirects it and it should then be 
> processed by my java
> > file etc.
> >
> > However I am simply redirected in my browser to logon.do 
> which doesnt
> exist!
> >
> > Andy
> >
> > -Original Message-
> > From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 31, 2001 10:12 AM
> > To: Struts Users Mailing List
> > Subject: Re: redirection
> >
> >
> > "Andrew Kirkland" <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Whenever I write a struts application and try to do 
> anything involving
> an
> > > action mapping, my browser is simply redirected to the 
> corresponding
> *.do
> > > file! Can someone tell me whats wrong? Im using tomcat 3.3.
> >
> > What is a *.do file?
> >
> > --
> > gR
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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


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


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




RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)

In JspInsider the web.xml file is created FROM a blank.war file, which I
guess is preset for the tutorial. So, it's not the case to say it is wrong.

But if you aren't using blank.war as the base for your web.xml file and is
trying to set it from scratch, you must set this mapping to the Action
Servlet indeed.

Wellington L.S. da Silva
UN/FAO


-Original Message-
From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:33 AM
To: Struts Users Mailing List
Subject: RE: redirection


That could be the problem indeed.

>From the jspinsider url:
'No changes are required within the Web.xml file.'

This is wrong, as you mentioned.

So Andrew, I'd flame jspinsider ;-)

tomK

> -Original Message-
> From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 11:27
> To: 'Struts Users Mailing List'
> Subject: RE: redirection
> Importance: High
> 
> 
> You configure that in the web.xml deployment descriptor file!
> 
> You MAP the actions and actionForwards in the 
> struts-config.xml, but you must
> map the path or extension modes in the web.xml file! In your case:
> 
>   
> action
> *.do
>   
> 
> (extracted from example application web.xml)
> 
> Wellington L.S. da Silva
> UN/FAO
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: redirection
> 
> 
> Have you configured struts-config.xml properly to recognise logon.do?
> 
> Have you tested that struts is properly installed and is 
> working properly?
> 
> Regards,
> Scott
> - Original Message -
> From: "Andrew Kirkland" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 31, 2001 10:08 AM
> Subject: RE: redirection
> 
> 
> > A .do file is the file extention that i have used for 
> mapping purposes.
> >
> > I have this in my jsp :  action="lesson1/logon.do" focus="user">
> >
> > and then web.xml redirects it and it should then be 
> processed by my java
> > file etc.
> >
> > However I am simply redirected in my browser to logon.do 
> which doesnt
> exist!
> >
> > Andy
> >
> > -Original Message-
> > From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 31, 2001 10:12 AM
> > To: Struts Users Mailing List
> > Subject: Re: redirection
> >
> >
> > "Andrew Kirkland" <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Whenever I write a struts application and try to do 
> anything involving
> an
> > > action mapping, my browser is simply redirected to the 
> corresponding
> *.do
> > > file! Can someone tell me whats wrong? Im using tomcat 3.3.
> >
> > What is a *.do file?
> >
> > --
> > gR
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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


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




Re: redirection

2001-10-31 Thread Ted Husted

The better syntax in your html:form would be 



where there is something like this in your struts-config.xml




If this is in place, then there must be something wrong with your
installation of Tomcat or your web.xml. 

A setup like this in your application's web.xml 

  
  
action
   
org.apache.struts.action.ActionServlet
<.../>
2
  

  
  
action
*.do
  

tells the container to foward the *.do requests to the Struts
ActionServlet. If it doesn't, then your container is broken.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Andrew Kirkland wrote:
> 
> A .do file is the file extention that i have used for mapping purposes.
> 
> I have this in my jsp : 
> 
> and then web.xml redirects it and it should then be processed by my java
> file etc.
> 
> However I am simply redirected in my browser to logon.do which doesnt exist!
> 
> Andy
>

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




RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)

That could be the problem indeed.

>From the jspinsider url:
'No changes are required within the Web.xml file.'

This is wrong, as you mentioned.

So Andrew, I'd flame jspinsider ;-)

tomK

> -Original Message-
> From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 11:27
> To: 'Struts Users Mailing List'
> Subject: RE: redirection
> Importance: High
> 
> 
> You configure that in the web.xml deployment descriptor file!
> 
> You MAP the actions and actionForwards in the 
> struts-config.xml, but you must
> map the path or extension modes in the web.xml file! In your case:
> 
>   
> action
> *.do
>   
> 
> (extracted from example application web.xml)
> 
> Wellington L.S. da Silva
> UN/FAO
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 11:24 AM
> To: Struts Users Mailing List
> Subject: Re: redirection
> 
> 
> Have you configured struts-config.xml properly to recognise logon.do?
> 
> Have you tested that struts is properly installed and is 
> working properly?
> 
> Regards,
> Scott
> - Original Message -
> From: "Andrew Kirkland" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 31, 2001 10:08 AM
> Subject: RE: redirection
> 
> 
> > A .do file is the file extention that i have used for 
> mapping purposes.
> >
> > I have this in my jsp :  action="lesson1/logon.do" focus="user">
> >
> > and then web.xml redirects it and it should then be 
> processed by my java
> > file etc.
> >
> > However I am simply redirected in my browser to logon.do 
> which doesnt
> exist!
> >
> > Andy
> >
> > -Original Message-
> > From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 31, 2001 10:12 AM
> > To: Struts Users Mailing List
> > Subject: Re: redirection
> >
> >
> > "Andrew Kirkland" <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Whenever I write a struts application and try to do 
> anything involving
> an
> > > action mapping, my browser is simply redirected to the 
> corresponding
> *.do
> > > file! Can someone tell me whats wrong? Im using tomcat 3.3.
> >
> > What is a *.do file?
> >
> > --
> > gR
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Re: redirection

2001-10-31 Thread Gregor Rayman

"Andrew Kirkland" <[EMAIL PROTECTED]> wrote:

> I have this in my jsp : 
>
> and then web.xml redirects it and it should then be processed by my java
> file etc.
>
> However I am simply redirected in my browser to logon.do which doesnt
exist!
>
> Andy

OK, so there actually is NO file logon.do (which is correct). I suppose the
problem might be that in  the attribute action should contain
only the name of the action and not the name of the mapping. So try
action="lesson1/logon" instead on "lesson1/logon.do"

--
gR


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




RE: Digester Problem!!!!

2001-10-31 Thread Tom Klaasen (TeleRelay)

1) Use struts 1.0 for toying around with the example, and if you think
you can use it, get the source code, and do a search&replace.
2) Notify the author of the example, and ask whether he wants to make a
struts post-1.0 version.

hth,
tomK



> -Original Message-
> From: storck [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 10:47
> To: User Struts (E-Mail)
> Subject: Digester Problem
> 
> 
> Hi,
> 
> I have a greate Problem. I have downloaded an example wich uses
> org.apache.struts.digester but the ActionServlet of Struts now uses
> org.apache.commons.digester wich seam not to be compatiple. 
> The example is
> from http://www.sura.ru/~gonza/bean-factory/
> 
> can someone help me ??
> THANKS
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)

You configure that in the web.xml deployment descriptor file!

You MAP the actions and actionForwards in the struts-config.xml, but you must
map the path or extension modes in the web.xml file! In your case:

  
action
*.do
  

(extracted from example application web.xml)

Wellington L.S. da Silva
UN/FAO

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:24 AM
To: Struts Users Mailing List
Subject: Re: redirection


Have you configured struts-config.xml properly to recognise logon.do?

Have you tested that struts is properly installed and is working properly?

Regards,
Scott
- Original Message -
From: "Andrew Kirkland" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 10:08 AM
Subject: RE: redirection


> A .do file is the file extention that i have used for mapping purposes.
>
> I have this in my jsp : 
>
> and then web.xml redirects it and it should then be processed by my java
> file etc.
>
> However I am simply redirected in my browser to logon.do which doesnt
exist!
>
> Andy
>
> -Original Message-
> From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 10:12 AM
> To: Struts Users Mailing List
> Subject: Re: redirection
>
>
> "Andrew Kirkland" <[EMAIL PROTECTED]> wrote:
>
>
> > Whenever I write a struts application and try to do anything involving
an
> > action mapping, my browser is simply redirected to the corresponding
*.do
> > file! Can someone tell me whats wrong? Im using tomcat 3.3.
>
> What is a *.do file?
>
> --
> gR
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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


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




Re: redirection

2001-10-31 Thread Scott Atwell

Have you configured struts-config.xml properly to recognise logon.do?

Have you tested that struts is properly installed and is working properly?

Regards,
Scott
- Original Message -
From: "Andrew Kirkland" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 31, 2001 10:08 AM
Subject: RE: redirection


> A .do file is the file extention that i have used for mapping purposes.
>
> I have this in my jsp : 
>
> and then web.xml redirects it and it should then be processed by my java
> file etc.
>
> However I am simply redirected in my browser to logon.do which doesnt
exist!
>
> Andy
>
> -Original Message-
> From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 10:12 AM
> To: Struts Users Mailing List
> Subject: Re: redirection
>
>
> "Andrew Kirkland" <[EMAIL PROTECTED]> wrote:
>
>
> > Whenever I write a struts application and try to do anything involving
an
> > action mapping, my browser is simply redirected to the corresponding
*.do
> > file! Can someone tell me whats wrong? Im using tomcat 3.3.
>
> What is a *.do file?
>
> --
> gR
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Frames and Action forward Question

2001-10-31 Thread Damian L Powell

> Put something like this inside the form tag;
> 

Try target="_top" instead. This will load the results of the from in the
top level window regardless of any containing frames.


---
Damian L Powell
[e] [EMAIL PROTECTED]
[w] http://www.shadow-angel.com


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




RE: redirection

2001-10-31 Thread Andreas Mack

On Wed, 2001-10-31 at 11:08, Andrew Kirkland wrote:
> A .do file is the file extention that i have used for mapping purposes.
> 
> I have this in my jsp : 
> 
> and then web.xml redirects it and it should then be processed by my java
> file etc.
> 
> However I am simply redirected in my browser to logon.do which doesnt exist!

Struts routes the login.do to the action with the corresponding "path",
in this case "logon". Then the Action is executed. Based on the return
value "mapping.findForward("xxx"), the forward with that "xxx" name of
this action will be called. All this is configured in struts-config.xml.


  
  





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




RE: redirection

2001-10-31 Thread Andrew Kirkland

A .do file is the file extention that i have used for mapping purposes.

I have this in my jsp : 

and then web.xml redirects it and it should then be processed by my java
file etc.

However I am simply redirected in my browser to logon.do which doesnt exist!

Andy

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:12 AM
To: Struts Users Mailing List
Subject: Re: redirection


"Andrew Kirkland" <[EMAIL PROTECTED]> wrote:


> Whenever I write a struts application and try to do anything involving an
> action mapping, my browser is simply redirected to the corresponding *.do
> file! Can someone tell me whats wrong? Im using tomcat 3.3.

What is a *.do file?

--
gR



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: redirection

2001-10-31 Thread Gregor Rayman

"Andrew Kirkland" <[EMAIL PROTECTED]> wrote:


> Whenever I write a struts application and try to do anything involving an
> action mapping, my browser is simply redirected to the corresponding *.do
> file! Can someone tell me whats wrong? Im using tomcat 3.3.

What is a *.do file?

--
gR



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




RE: redirection

2001-10-31 Thread Andrew Kirkland

Whenever I write a struts application and try to do anything
 involving an action mapping, my browser is simply redirected to the
corresponding *.do file! Can someone tell me whats wrong? Im using tomcat
3.3.

This is the example I have been following :
http://www.jspinsider.com/tutorials/jsp/struts/lesson1/l1b_struts.view#top

however, I have tried several examples including pre-coded downloads and
ones ive done myself all with the same problem.

Ive rechecked the instructions for installing struts several times and
cannot see a problem.

Thanks for your help

Andy



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




RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)

Maybe you should show us some code ... Be honest: do you think anybody
can answer this without more information?

I'd be glad to help, but you'll have to put some effort in asking the
question.


tomK


> -Original Message-
> From: Andrew Kirkland [mailto:[EMAIL PROTECTED]] 
> Sent: woensdag 31 oktober 2001 10:22
> To: [EMAIL PROTECTED]
> Subject: redirection
> 
> 
> Whenever I write a struts application and try to do anything 
> involving an
> action mapping, my browser is simply redirected to the 
> corresponding *.do
> file! Can someone tell me whats wrong? Im using tomcat 3.3.
> 
> Thanks
>  Andy
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Digester Problem!!!!

2001-10-31 Thread storck

Hi,

I have a greate Problem. I have downloaded an example wich uses
org.apache.struts.digester but the ActionServlet of Struts now uses
org.apache.commons.digester wich seam not to be compatiple. The example is
from http://www.sura.ru/~gonza/bean-factory/

can someone help me ??
THANKS


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




redirection

2001-10-31 Thread Andrew Kirkland

Whenever I write a struts application and try to do anything involving an
action mapping, my browser is simply redirected to the corresponding *.do
file! Can someone tell me whats wrong? Im using tomcat 3.3.

Thanks
 Andy


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




Struts Vs Expresso 4

2001-10-31 Thread Ho Chin Hwang

Hi,

I am curious and I am starting on Struts. I have a query. Since Expresso v4
is incorporating Struts into its framework, does it nesssarily mean that it
is better? Expresso has a framework for EJB right?

Please correct me if I am incorrect.

Thanks.

Regards,
-Dave



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




Re: Re: Multiple resource files

2001-10-31 Thread torben.norling

Hi,
The ActionServlet loads one resourcefile and stores the information at the 
servletcontext.

One solution is to have your own "Startup-servlet" to load extra resources to the 
servlet context. You can access those later within your application. If you use Tomcat 
4 (Have access to Servlet 2.3 features) you can write a contextlistener instead.

>From Servlet init method:

ServletContext ctx = config.getServletContext();
MessageResourcesFactory myFactory = 
(MessageResourcesFactory)MessageResourcesFactory.createFactory();
MessageResources errMsgs = 
(MessageResources)myFactory.createResources(config.getInitParameter(("errors")));
MessageResources wrnMsgs = 
(MessageResources)myFactory.createResources(config.getInitParameter(("warnings")));

ctx.setAttribute "myapp.errors",errMsgs);
ctx.setAttribute("myapp.warnings",wrnMsgs);

web.xml servlet definition:

  mystartup
  se.bluefish.StartupServlet
  
  errors
  com.bluefish.MyErrorResources
  
  
  warnings
  com.bluefish.MyWarningResources
  
  2


Rgds // Torben

> 
> 
> Not yet. James Holmes is looking into it.
> 
> 
> At 11:47 am 31-10-2001 +0530, you wrote:
> >Hello All,
> >
> >How can I have multiple resource files ?
> >
> >I am trying something like
> >
> >
> >
> >  
> >   application
> >   com.abhi.hello.HelloWorld1Resources
> >  
> >  
> >   application
> >   com.abhi.hello.HelloWorld2Resources
> >  
> >
> >
> >
> >But my jsp pages do not find any of the keys defined in the resources files.
> >If I define only one file and put everything there then everything works
> >fine.
> >
> >regards,
> >Abhishek.
> 
> -- 
> John Yu   Scioworks Technologies
> e: [EMAIL PROTECTED] w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for Struts"
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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