Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Simon Kelly
These are some going full time rates for a London based e-learning company,
for an average of 1880 hrs worked in one year (Five weeks holiday not
included in the figures, but you'd get the same rate).  The company pays OT
on projects that need it, but actually limit the number of hours in a week
that an employee can be in the office. (Something about a work/life balance,
whatver than means :-)

All in US dollars (converted from blighty pounds)

Grade one (Whipping boy) - 30$
Grade two (Code monkey) - 40$
Grade three (Designer) - 55$
Grade four (Architect) - 90$
Grade five (Senior Architect) - 150$

These don't include the options and bonuses (last xmas bonus ranged from
500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly week-day/sat --
2*hourly sun).

Contractor have to pay all the insurance and stuff, so I'd dap about 22-40%
on top of each of these + a little extra if your gonna have to live in an
expensive part of town.

NOTE to the lawer.  It only becomes illegal if it can be proven that we have
set a level of pay *and* have all agreed to follow this level.  If you've
been on here long enough, you'd know *noone* ever agrees about anything!!
=]:0)

Good luck with the job, I hear California is nice this time of year!!

Cheers

Simon


- Original Message -
From: Micael [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts
Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 8:08 AM
Subject: RE: [OT] Contract Work: Going Rate?


 I hope you know that my prior response that the lawyer should be fired was
 not aimed at you, Tammy.  I appreciate your assistance.  I think it is
 really funny, however, that a lawyer would actually associate what we are
 doing with antitrust behavior.  Heck, I feel bigger and better
 now.  LOL!  That lawyer needs to get the tune to match the lyrics.

 At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
   general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux,
   scripting, various databases, etc.).  What would a reasonable request
   be?  Thanks.
 
 First of all, I would caution about asking questions like this on a
 mailing list, as the discussion of hourly rates and stuff came up on
 another list I belong to and the moderators there obtained an opinion
 from a lawyer that discussing pricing in terms of specific dollar
 amounts in a group like this could be deemed price-fixing by the courts,
 which is illegal.
 
 That having been said, one common rule of thumb seems to be to divide
 your annual salary as an employee by 1000, and using that as a starting
 point for figuring out your hourly rate. Obviously you'd need to adjust
 that for your local market, but that's not a bad starting point.
 
 Tammy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the message.
Thank
 you



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




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



Struts Module Arch Q

2003-03-27 Thread Navjot Singh
Hi List,

I want to build some kind of generic login system for my app and I am
thinking on these lines

Request Flow
==
test.jsp - TestAction - login.jsp - LoginAction - test.jsp
 |
 AuthCheck

Problem
==
test.jsp and login.jsp and under **different modules**. When
TestAction.class return ActionForward for login.jsp,
Struts generate an error Action Not Found for /Login.  [ This is action
defined in login.jsp]

Which is genuinely right from Struts perspective as request is till under
test module so
it tried to find **/Login action mapping** from that **test-config.xml**
file.

+ Have someone faced any problem like this before?
+ If you think there is better solution, pls let me know.

+ I am thinking of going RequestDisptacher way on top of Struts
ActionForward. Will that be OK?
   When AuthCheck returns __login failure__ , i can use request disptacher
to forward request to login.jsp.

regards
Navjot Singh


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



Re: Struts Module Arch Q

2003-03-27 Thread Navjot Singh
Hi,

I guess even RequestDisptacher doesn't seem to solve the problem here.
Please reply with whatever comments/ reasons/ suggestions you have.

regards
navjot singh


| Hi List,
|
| I want to build some kind of generic login system for my app and I am
| thinking on these lines
|
| Request Flow
| ==
| test.jsp - TestAction - login.jsp - LoginAction - test.jsp
|  |
|  AuthCheck
|
| Problem
| ==
| test.jsp and login.jsp and under **different modules**. When
| TestAction.class return ActionForward for login.jsp,
| Struts generate an error Action Not Found for /Login.  [ This is action
| defined in login.jsp]
|
| Which is genuinely right from Struts perspective as request is till under
| test module so
| it tried to find **/Login action mapping** from that **test-config.xml**
| file.
|
| + Have someone faced any problem like this before?
| + If you think there is better solution, pls let me know.
|
| + I am thinking of going RequestDisptacher way on top of Struts
| ActionForward. Will that be OK?
|When AuthCheck returns __login failure__ , i can use request disptacher
| to forward request to login.jsp.
|
| regards
| Navjot Singh
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|


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



RE: [OT] Contract Work: Going Rate?

2003-03-27 Thread Andrew Hill
These are USD per HOUR?

Crikey! You could retire after a couple of years on that!
Nah that cant be right. I did a bit under 3000 hours last year, multiply by
30 and convert to local currency adds up to more than Ive earned in my whole
working life (4+ years). A lot more...

Are those fair dinkum rates or are you just having us on?

Five weeks holiday??? OT pay???

Yeh. Thought so. Its a joke. hehe. You had me going there mate!

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 16:08
To: Struts Users Mailing List
Subject: Re: [OT] Contract Work: Going Rate?


These are some going full time rates for a London based e-learning company,
for an average of 1880 hrs worked in one year (Five weeks holiday not
included in the figures, but you'd get the same rate).  The company pays OT
on projects that need it, but actually limit the number of hours in a week
that an employee can be in the office. (Something about a work/life balance,
whatver than means :-)

All in US dollars (converted from blighty pounds)

Grade one (Whipping boy) - 30$
Grade two (Code monkey) - 40$
Grade three (Designer) - 55$
Grade four (Architect) - 90$
Grade five (Senior Architect) - 150$

These don't include the options and bonuses (last xmas bonus ranged from
500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly week-day/sat --
2*hourly sun).

Contractor have to pay all the insurance and stuff, so I'd dap about 22-40%
on top of each of these + a little extra if your gonna have to live in an
expensive part of town.

NOTE to the lawer.  It only becomes illegal if it can be proven that we have
set a level of pay *and* have all agreed to follow this level.  If you've
been on here long enough, you'd know *noone* ever agrees about anything!!
=]:0)

Good luck with the job, I hear California is nice this time of year!!

Cheers

Simon


- Original Message -
From: Micael [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts
Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 8:08 AM
Subject: RE: [OT] Contract Work: Going Rate?


 I hope you know that my prior response that the lawyer should be fired was
 not aimed at you, Tammy.  I appreciate your assistance.  I think it is
 really funny, however, that a lawyer would actually associate what we are
 doing with antitrust behavior.  Heck, I feel bigger and better
 now.  LOL!  That lawyer needs to get the tune to match the lyrics.

 At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
   general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux,
   scripting, various databases, etc.).  What would a reasonable request
   be?  Thanks.
 
 First of all, I would caution about asking questions like this on a
 mailing list, as the discussion of hourly rates and stuff came up on
 another list I belong to and the moderators there obtained an opinion
 from a lawyer that discussing pricing in terms of specific dollar
 amounts in a group like this could be deemed price-fixing by the courts,
 which is illegal.
 
 That having been said, one common rule of thumb seems to be to divide
 your annual salary as an employee by 1000, and using that as a starting
 point for figuring out your hourly rate. Obviously you'd need to adjust
 that for your local market, but that's not a bad starting point.
 
 Tammy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the message.
Thank
 you



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




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


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



RE: How to get the label[] and the value[] both from a select box?

2003-03-27 Thread shirishchandra.sakhare
The scope of your form bean has no impact on the way u write your jsp..
Because all the struts tags have a scope attribute where you can specify the scope...

In this case,
 U have the formBean
Class MyForm{
private List labelValueList = new ArrayList();

//getter and setter
}

In Jsp,
bean:define  id=labelValCollection name=MyForm property=labelValueList/
html:select name=MyForm property=paramNameToSend
html:option value= nbsp;/html:option 
html:options collection=labelValCollection 
property=value labelProperty=label /
/html:select  

Here MyForm is the defination of u r form in Struts COnfig file.
Hope this Helps..

regards,
Shirish


-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 4:35 AM
To: Struts Users Mailing List
Subject: RE: How to get the label[] and the value[] both from a select
box?


How can I do this if I have my form-bean in the session scope and this
form-bean contains the collection?
How will I specify the property in the jsp?

Shilpi

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2003 7:55 PM
To: Struts Users Mailing List
Subject: RE: How to get the label[] and the value[] both from a select box?

Instead of two String[]s build a form-bean with a collection of
LabelValueBeans
(http://jakarta.apache.org/struts/api/org/apache/struts/util/LabelValueBean.
html).  

You can find sample implementations in html-select.jsp which is in the
struts-exercise-taglib application that ships with Struts.

Sri

-Original Message-
From: Jain, Shilpi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 25, 2003 11:34 PM
To: Struts Users Mailing List
Subject: How to get the label[] and the value[] both from a select box?


I am using a multiple select box in my application. I have a problem with
that one. 

For my multiple select box I have 2 separate String[] one representing the
labels of the options and another for value. The problems that I am facing
are following:

1. The html:options tag has property and labelProperty tags associated with
this multiple select list box but when the form is submitted the
corresponding String[] are not updated for the new values in the UI(These
values were changed on the UI using java script). 

 

2. The property of string[] associated with the html:select tag was getting
updated but only for the selected value so I explicitly selected all values
in the list box before submitting the jsp. But this itself had another
problem. The values coming in the select property String[] were that of the
labels in the list box not values!

In my form beans I have setters for both the array and the arrayelement with
the same name but of-course with different arguments

Can anyone help me. This is really really urgent.

 

Thanks

Shilpi

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


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

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


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



RE: jsp editor

2003-03-27 Thread shirishchandra.sakhare
What it means it The jsp editor can offer u syntax help and code completion..in 
addition to syntax highlighting..

for example if u type html: it will give u all the struts html tags available ...also 
if u miss some compulsory attribute, it will alert you..

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 2:41 AM
To: Struts Users Mailing List
Subject: Re: jsp editor



Ashish Kulkarni ([EMAIL PROTECTED]) wrote:

 Hi,
  u may also wana look at macromedia dreamweaver MX, u
 can add any number of taglibs and it works fine, also
 have capability to do visual editing

I have never understood this request at all, I mean, what does it
really mean to have a JSP editor?  You need to deploy the site with
data and includes to see anything.  Sure, maybe it syntax highlights
or helps with the taglibs, but the preview is going to be totally
messed up until it is in the container.

The best way I found to test these things is just to edit and then
view in a local test container.  But most of the design should be
done without jsp tags anyway and those just thrown in at the last
minute to provide dynamic content.

I am interested to hear what a JSP editor really is.  VIM is a JSP
editor if you want something with syntax highlighting.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers don't change their wardrobe too often: there 
are no clothes stores that are open at two o'clock in the morning. 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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


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



Struts internalization problem with mod_jk

2003-03-27 Thread Jean-Baptiste Onofré
Hello all,

i have Apache 1.3.26/Tomcat 4.0.6/Struts 1.0.2/mod_jk 1.3 on Linux Debian.

I have a default internationalization ApplicationResources.properties
and a portugues ApplicationResources_pt.properties.

If i go directly to the tomcat (with URL
http://localhost:8080/mywebapp), the internalization works fine.
But if i go throw mod_jk (with URL http://localhost/mywebapp), only the
default ApplicationResources.properties take care (not
internationalization).

Is anyone have had the same problem ? What's the solution ?

Best regards
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
[EMAIL PROTECTED]

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



Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Simon Kelly
Not a word of a lie Andy.  The senior architect (There can be only one!! ;-)
is on a little under 200K uk pounds, but note this is a *wage* not an hourly
rate he gets that a year plus bonuses, only the gardes 1 and 2 get the OT
and *only* if it is absolutely necessary and I think one of the grade 3s got
it once one mad weekend but that would have been a very special case.  And
remember this is London, not Chiswick (Look it up in a map book, I can't
remeber where it is) and a one bedroom flat can set you back the best part
of 150K+ and that's not in the best bits.

You could probably knock the best part of 40% off outside of London,
although Bristol pay is heading in that direction if you get in the right
company.

Cheers

Simon

- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:32 AM
Subject: RE: [OT] Contract Work: Going Rate?


 These are USD per HOUR?

 Crikey! You could retire after a couple of years on that!
 Nah that cant be right. I did a bit under 3000 hours last year, multiply
by
 30 and convert to local currency adds up to more than Ive earned in my
whole
 working life (4+ years). A lot more...

 Are those fair dinkum rates or are you just having us on?

 Five weeks holiday??? OT pay???

 Yeh. Thought so. Its a joke. hehe. You had me going there mate!

 -Original Message-
 From: Simon Kelly [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 27 March 2003 16:08
 To: Struts Users Mailing List
 Subject: Re: [OT] Contract Work: Going Rate?


 These are some going full time rates for a London based e-learning
company,
 for an average of 1880 hrs worked in one year (Five weeks holiday not
 included in the figures, but you'd get the same rate).  The company pays
OT
 on projects that need it, but actually limit the number of hours in a week
 that an employee can be in the office. (Something about a work/life
balance,
 whatver than means :-)

 All in US dollars (converted from blighty pounds)

 Grade one (Whipping boy) - 30$
 Grade two (Code monkey) - 40$
 Grade three (Designer) - 55$
 Grade four (Architect) - 90$
 Grade five (Senior Architect) - 150$

 These don't include the options and bonuses (last xmas bonus ranged from
 500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly
week-day/sat --
 2*hourly sun).

 Contractor have to pay all the insurance and stuff, so I'd dap about
22-40%
 on top of each of these + a little extra if your gonna have to live in an
 expensive part of town.

 NOTE to the lawer.  It only becomes illegal if it can be proven that we
have
 set a level of pay *and* have all agreed to follow this level.  If you've
 been on here long enough, you'd know *noone* ever agrees about anything!!
 =]:0)

 Good luck with the job, I hear California is nice this time of year!!

 Cheers

 Simon


 - Original Message -
 From: Micael [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts
 Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 8:08 AM
 Subject: RE: [OT] Contract Work: Going Rate?


  I hope you know that my prior response that the lawyer should be fired
was
  not aimed at you, Tammy.  I appreciate your assistance.  I think it is
  really funny, however, that a lawyer would actually associate what we
are
  doing with antitrust behavior.  Heck, I feel bigger and better
  now.  LOL!  That lawyer needs to get the tune to match the lyrics.
 
  At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux,
scripting, various databases, etc.).  What would a reasonable
request
be?  Thanks.
  
  First of all, I would caution about asking questions like this on a
  mailing list, as the discussion of hourly rates and stuff came up on
  another list I belong to and the moderators there obtained an opinion
  from a lawyer that discussing pricing in terms of specific dollar
  amounts in a group like this could be deemed price-fixing by the
courts,
  which is illegal.
  
  That having been said, one common rule of thumb seems to be to divide
  your annual salary as an employee by 1000, and using that as a starting
  point for figuring out your hourly rate. Obviously you'd need to adjust
  that for your local market, but that's not a bad starting point.
  
  Tammy
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  LEGAL NOTICE
 
  This electronic mail  transmission and any accompanying documents
contain
  information belonging to the sender which may be confidential and
legally
  privileged.  This information is intended only for the use of the
  individual or entity to whom this electronic mail transmission was sent
as
  indicated above. If you are not the intended recipient, any disclosure,
  copying, distribution, or action taken in reliance on the 

Arguments

2003-03-27 Thread Joao Batistella
Hi!

I have to convince my boss about using or not Struts in our next project. I
really want to use but I have to explain the arguments.

Anybody knows any document, presentation or anything else that can help me?

Thanks,
João Paulo.

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



Re: Arguments

2003-03-27 Thread Simon Kelly
There is a list of sites (somewhere) that us struts as the framework.  You
could show them those, some where quite impressive.

Just search the archive for sites using struts.

Cheers

Simon


- Original Message -
From: Joao Batistella [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:43 AM
Subject: Arguments


Hi!

I have to convince my boss about using or not Struts in our next project. I
really want to use but I have to explain the arguments.

Anybody knows any document, presentation or anything else that can help me?

Thanks,
João Paulo.

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



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



RE: Arguments

2003-03-27 Thread Joao Batistella
Thanks!
This is good.

But I also have to explain the architecture, the features, drawbacks...

Thanks,
João Paulo.

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 27 de Março de 2003 09:53
To: Struts Users Mailing List
Subject: Re: Arguments


There is a list of sites (somewhere) that us struts as the framework.  You
could show them those, some where quite impressive.

Just search the archive for sites using struts.

Cheers

Simon


- Original Message -
From: Joao Batistella [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:43 AM
Subject: Arguments


Hi!

I have to convince my boss about using or not Struts in our next project. I
really want to use but I have to explain the arguments.

Anybody knows any document, presentation or anything else that can help me?

Thanks,
João Paulo.

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



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

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



Re: Arguments

2003-03-27 Thread Stephen Smithstone
just tell him struts rocks :-)

On Thursday 27 March 2003 9:53 am, Simon Kelly wrote:
 There is a list of sites (somewhere) that us struts as the framework.  You
 could show them those, some where quite impressive.

 Just search the archive for sites using struts.

 Cheers

 Simon


 - Original Message -
 From: Joao Batistella [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 10:43 AM
 Subject: Arguments


 Hi!

 I have to convince my boss about using or not Struts in our next project. I
 really want to use but I have to explain the arguments.

 Anybody knows any document, presentation or anything else that can help me?

 Thanks,
 João Paulo.

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



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


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



Re: Arguments

2003-03-27 Thread Nicolas De Loof
If your boss can read french, be carreful he doesn't find this link:
http://www.application-servers.com/comments.do?reqCode=readCommentssid=2003-03-23-22:17:22

To find good arguments, we have to know what you should use if NOT using struts :
- nothing but J2EE (lots of servlets and JSP build for tour app)
= Struts will help you have your application well builded as using lots of best 
practice or design-patterns
= Struts is a good example for OO developments
= Struts is not a w3 standard, but is becoming ever more popular
= Struts has support from an active community
= Struts has a readable code and can be easily extended if needed

- another framework (?)
= begin a new foo vs Struts thread

- build a framework for internal use
= I've done it as Struts was 0.5 and we cannot use it for political reasons. We 
built our own framework on same
idea (but with less OO design experience) and have to maintain it on old apps today. 
Compared to nowaday Struts 1.1 it
is realy poor and confuse.
= Struts can be easily extended if needed. You can contribute and see your 
extends beeing improved and debugged by
other (formulated this way, it is a good argument for your boss)
= Struts has been build by and with help from java, J2EE and OO design experts 
for 3 years. You're very lucky if
you have such developpers in your team.


Nico.


Hi!

I have to convince my boss about using or not Struts in our next project. I
really want to use but I have to explain the arguments.

Anybody knows any document, presentation or anything else that can help me?

Thanks,
João Paulo.

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


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



Using JSP struts tag logic:iterate

2003-03-27 Thread Jean-Michel Auguste
Hi,
I'm a bit confusing using the jsp struts tag logic:iterate.
Here is my problem.

In my business logic I've created an object (let's call it objA) that contains a 
Hashtable which itself contain a list of objects (objB) . The Hastable object 
(hTable) can be accessed through getter and setter from objA. 
I want now to display as a table the property prop of all objB objects contained 
in the Hashtable hTable (prop is a String  and can be accessed through getter and 
setter from objB. 

Before launching the jsp I've put objA in the HTTP request.

Then I've coded the following  in the Jsp : 

jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

logic:iterate name=objA property=hTable id=objB indexId=ind 
Next element is bean:write name=objB property=prop / [bean:write 
name=ind/]
/logic:iterate 
  
Coding this, I get the following error : 

[Servlet Error]-[No getter method for property prop of bean objB]: 


I tried then to code :

jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

logic:iterate name=objA property=hTable id=objB indexId=ind type=ObjB 
Next element is bean:write name=objB property=prop / [bean:write 
name=ind/]
/logic:iterate 

In this case I get the following error :
  
[Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException: 
java.util.Hashtable$Entry

Can anyone tell me what I am doing wrong please ?

Thanks for your help

Jean-Michel Auguste



Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
You don't need jsp:useBean as struts tags look into scope themself. (usebean create 
a scriptlet variable from a bean)

Your code looks fine. Look at objB code, getter should not be well formed.
- be carreful about uppercase beginig properties
- be carreful not to have mulitple setters with different data types (IFAIK it will 
break javaBean PropertyInfo)
- be carreful getter is public

Nico.



Hi,
I'm a bit confusing using the jsp struts tag logic:iterate.
Here is my problem.

In my business logic I've created an object (let's call it objA) that contains a 
Hashtable which itself contain a list
of objects (objB) . The Hastable object (hTable) can be accessed through getter 
and setter from objA.
I want now to display as a table the property prop of all objB objects contained 
in the Hashtable hTable (prop
is a String  and can be accessed through getter and setter from objB.

Before launching the jsp I've put objA in the HTTP request.

Then I've coded the following  in the Jsp :

jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

logic:iterate name=objA property=hTable id=objB indexId=ind 
Next element is bean:write name=objB property=prop / [bean:write 
name=ind/]
/logic:iterate

Coding this, I get the following error :

[Servlet Error]-[No getter method for property prop of bean objB]:


I tried then to code :

jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

logic:iterate name=objA property=hTable id=objB indexId=ind type=ObjB 
Next element is bean:write name=objB property=prop / [bean:write 
name=ind/]
/logic:iterate

In this case I get the following error :

[Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException: 
java.util.Hashtable$Entry

Can anyone tell me what I am doing wrong please ?

Thanks for your help

Jean-Michel Auguste



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



Form property values

2003-03-27 Thread julian green
I want to be able to do this:

jsp:getProperty name=voipProductForm property=longDescription/

... but without specifying the form name.  Is this possible?

Julian



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


List of available tag libraries

2003-03-27 Thread Thomas . Gaudin
Hi,
Can someone provide me with some links gathering available tag libraries
for Struts ?
I had a look on the ressource page of struts web site but the display tag
lib is missing for example.
thanks,

Thomas



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



Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Jean-Michel Auguste
Thanks for your help Nico,
As you recommend I've checked into my ObjB class and the property prop
looks well formed :

- prop is of type String
- there is only one getter (getProp() ) and one setter (setProp(String p) )
- getProp() is public

As I mentionned in my first append, I used two ways to code the
logic:iterate tag.
I can understand the first error message as there is no mention anywhere of
the type of  objB (as objB is stored as an Object type in the
Hashtable). But I don't understand the second error message (invalid Cast)
as I specify the type for objB.


- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 11:27
Subject: Re: Using JSP struts tag logic:iterate


 You don't need jsp:useBean as struts tags look into scope themself.
(usebean create a scriptlet variable from a bean)

 Your code looks fine. Look at objB code, getter should not be well formed.
 - be carreful about uppercase beginig properties
 - be carreful not to have mulitple setters with different data types
(IFAIK it will break javaBean PropertyInfo)
 - be carreful getter is public

 Nico.



 Hi,
 I'm a bit confusing using the jsp struts tag logic:iterate.
 Here is my problem.

 In my business logic I've created an object (let's call it objA) that
contains a Hashtable which itself contain a list
 of objects (objB) . The Hastable object (hTable) can be accessed
through getter and setter from objA.
 I want now to display as a table the property prop of all objB objects
contained in the Hashtable hTable (prop
 is a String  and can be accessed through getter and setter from objB.

 Before launching the jsp I've put objA in the HTTP request.

 Then I've coded the following  in the Jsp :

 jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

 logic:iterate name=objA property=hTable id=objB indexId=ind 
 Next element is bean:write name=objB property=prop /
[bean:write name=ind/]
 /logic:iterate

 Coding this, I get the following error :

 [Servlet Error]-[No getter method for property prop of bean objB]:


 I tried then to code :

 jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

 logic:iterate name=objA property=hTable id=objB indexId=ind
type=ObjB 
 Next element is bean:write name=objB property=prop /
[bean:write name=ind/]
 /logic:iterate

 In this case I get the following error :

 [Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException:
java.util.Hashtable$Entry

 Can anyone tell me what I am doing wrong please ?

 Thanks for your help

 Jean-Michel Auguste



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


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



RE: List of available tag libraries

2003-03-27 Thread Heligon Sandra
Very good question, personally I have the following links:

-   The Struts-menu library
(http://sourceforge.net/projects/struts-menu)
-   Display:* tag Library (http://edhill.its.uiowa.edu/display-0.8 or
http://sourceforge.net/projects/displaytag/ )
-   The Struts-EL contrib library
(http://www.apache.org/dist/jakarta/struts/binaries)
-   Struts-Layout library (http://struts.application-servers.com/)

perhaps there exists about it of different?





As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 

Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 27 March 2003 11:56
To: Struts Users Mailing List
Subject: List of available tag libraries


Hi,
Can someone provide me with some links gathering available tag libraries
for Struts ?
I had a look on the ressource page of struts web site but the display tag
lib is missing for example.
thanks,

Thomas



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


Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Simon Kelly
DAMN and blast my grade school math!!!

I messed up a couple of the calculations, so from 1 to 5 it is in US dollars
(Rounded up to the nearest dollar) 20, 28, 40, 80, 172.  And the employee
count (roughly); 20( grade 1  2), 4, 3, 1.

And just as a rough guesstimate at the first quater of a liftimes earnings
will be about 400,000 uk pounds in about 16 years for a standard worker (no
uni education) working from 18 years old started work in 1987 (Based on uk
average wage) which is about 14 uk pounds an hour. Senior executive, same
time line (last quater of working life) would be looking at anything from
1.6M to 82.5M+

As you may have guessed, I have nothing to do at the moment (waiting on an
executive decission)  =]:0)

Cheers

Simon


- Original Message -
From: Simon Kelly [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 10:19 AM
Subject: Re: [OT] Contract Work: Going Rate?


 Not a word of a lie Andy.  The senior architect (There can be only one!!
;-)
 is on a little under 200K uk pounds, but note this is a *wage* not an
hourly
 rate he gets that a year plus bonuses, only the gardes 1 and 2 get the OT
 and *only* if it is absolutely necessary and I think one of the grade 3s
got
 it once one mad weekend but that would have been a very special case.  And
 remember this is London, not Chiswick (Look it up in a map book, I can't
 remeber where it is) and a one bedroom flat can set you back the best part
 of 150K+ and that's not in the best bits.

 You could probably knock the best part of 40% off outside of London,
 although Bristol pay is heading in that direction if you get in the right
 company.

 Cheers

 Simon

 - Original Message -
 From: Andrew Hill [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 9:32 AM
 Subject: RE: [OT] Contract Work: Going Rate?


  These are USD per HOUR?
 
  Crikey! You could retire after a couple of years on that!
  Nah that cant be right. I did a bit under 3000 hours last year, multiply
 by
  30 and convert to local currency adds up to more than Ive earned in my
 whole
  working life (4+ years). A lot more...
 
  Are those fair dinkum rates or are you just having us on?
 
  Five weeks holiday??? OT pay???
 
  Yeh. Thought so. Its a joke. hehe. You had me going there mate!
 
  -Original Message-
  From: Simon Kelly [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 27 March 2003 16:08
  To: Struts Users Mailing List
  Subject: Re: [OT] Contract Work: Going Rate?
 
 
  These are some going full time rates for a London based e-learning
 company,
  for an average of 1880 hrs worked in one year (Five weeks holiday not
  included in the figures, but you'd get the same rate).  The company pays
 OT
  on projects that need it, but actually limit the number of hours in a
week
  that an employee can be in the office. (Something about a work/life
 balance,
  whatver than means :-)
 
  All in US dollars (converted from blighty pounds)
 
  Grade one (Whipping boy) - 30$
  Grade two (Code monkey) - 40$
  Grade three (Designer) - 55$
  Grade four (Architect) - 90$
  Grade five (Senior Architect) - 150$
 
  These don't include the options and bonuses (last xmas bonus ranged from
  500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly
 week-day/sat --
  2*hourly sun).
 
  Contractor have to pay all the insurance and stuff, so I'd dap about
 22-40%
  on top of each of these + a little extra if your gonna have to live in
an
  expensive part of town.
 
  NOTE to the lawer.  It only becomes illegal if it can be proven that we
 have
  set a level of pay *and* have all agreed to follow this level.  If
you've
  been on here long enough, you'd know *noone* ever agrees about
anything!!
  =]:0)
 
  Good luck with the job, I hear California is nice this time of year!!
 
  Cheers
 
  Simon
 
 
  - Original Message -
  From: Micael [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED];
'Struts
  Users Mailing List' [EMAIL PROTECTED]
  Sent: Thursday, March 27, 2003 8:08 AM
  Subject: RE: [OT] Contract Work: Going Rate?
 
 
   I hope you know that my prior response that the lawyer should be fired
 was
   not aimed at you, Tammy.  I appreciate your assistance.  I think it is
   really funny, however, that a lawyer would actually associate what we
 are
   doing with antitrust behavior.  Heck, I feel bigger and better
   now.  LOL!  That lawyer needs to get the tune to match the lyrics.
  
   At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
 general landscape well (Tomcat, Struts, Ant, etc., etc., with
Linux,
 scripting, various databases, etc.).  What would a reasonable
 request
 be?  Thanks.
   
   First of all, I would caution about asking questions like this on a
   mailing list, as the discussion of hourly rates and stuff came up on
   another list I belong to and the moderators there obtained an opinion
   from a lawyer that 

Re: [OT] tree control

2003-03-27 Thread Arron Bates
Dan,

Using the Struts nested tags, you can get JSP's to go recursive, allowing all
the freedom in markup that you're used to without having to wade through code
that most tree controls work within.

It's so simple, some sod's even made a tutorial...

  http://keyboardmonkey.com/pilotlight

...the part which says JSP Recursion and TREES!!!. If you want to plug and
play, the milestones of the tutorial's downloadable (minus Struts distro).

If you're running Tomcat 4.1.x, you'll want to put the following jar into the
WEB-INF/lib directory (its in Struts core for the upcoming RC2, but missed the
RC1 boat)...

  http://keyboardmonkey.com/downloads/km-nested-v2.03.jar


Anyways, it should scratch the itch, give it a bash.


Arron.


  
 Folks,
   I am looking into using a tree control in my web app.  I 
 noticed that the tomcat admin app is struts based and uses a 
 control.tld tag library , a 
 org.apache.webapp.admin.TreeControlTestAction class and a 
 org.apache.webapp.admin.SetUpTreeAction class.  Any pointers, docs,
  lessons learned, etc. from anyone adopting a similar tree control 
 for their project? Pardon if this is a repeat...
 
 tia,
 
 Dan McGowan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
YOu can read this on struts-logic doc :

Normally, each object exposed by the iterate tag is an element of the underlying 
collection you are iterating over.
However, if you iterate over a Map, the exposed object is of type Map.Entry that has 
two properties:

key - The key under which this item is stored in the underlying Map.
value - The value that corresponds to this key.

So, you should use :

logic:iterate name=objA property=hTable id=objB indexId=ind type=ObjB 
 Next element is bean:write name=objB property=value.prop /
 [bean:write name=value.ind/]
/logic:iterate

Nico.

 Thanks for your help Nico,
 As you recommend I've checked into my ObjB class and the property prop
 looks well formed :

 - prop is of type String
 - there is only one getter (getProp() ) and one setter (setProp(String p) )
 - getProp() is public

 As I mentionned in my first append, I used two ways to code the
 logic:iterate tag.
 I can understand the first error message as there is no mention anywhere of
 the type of  objB (as objB is stored as an Object type in the
 Hashtable). But I don't understand the second error message (invalid Cast)
 as I specify the type for objB.


 - Original Message -
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 11:27
 Subject: Re: Using JSP struts tag logic:iterate


  You don't need jsp:useBean as struts tags look into scope themself.
 (usebean create a scriptlet variable from a bean)
 
  Your code looks fine. Look at objB code, getter should not be well formed.
  - be carreful about uppercase beginig properties
  - be carreful not to have mulitple setters with different data types
 (IFAIK it will break javaBean PropertyInfo)
  - be carreful getter is public
 
  Nico.
 
 
 
  Hi,
  I'm a bit confusing using the jsp struts tag logic:iterate.
  Here is my problem.
 
  In my business logic I've created an object (let's call it objA) that
 contains a Hashtable which itself contain a list
  of objects (objB) . The Hastable object (hTable) can be accessed
 through getter and setter from objA.
  I want now to display as a table the property prop of all objB objects
 contained in the Hashtable hTable (prop
  is a String  and can be accessed through getter and setter from objB.
 
  Before launching the jsp I've put objA in the HTTP request.
 
  Then I've coded the following  in the Jsp :
 
  jsp:useBean id=objA class=ObjA scope=request/jsp:useBean
 
  logic:iterate name=objA property=hTable id=objB indexId=ind 
  Next element is bean:write name=objB property=prop /
 [bean:write name=ind/]
  /logic:iterate
 
  Coding this, I get the following error :
 
  [Servlet Error]-[No getter method for property prop of bean objB]:
 
 
  I tried then to code :
 
  jsp:useBean id=objA class=ObjA scope=request/jsp:useBean
 
  logic:iterate name=objA property=hTable id=objB indexId=ind
 type=ObjB 
  Next element is bean:write name=objB property=prop /
 [bean:write name=ind/]
  /logic:iterate
 
  In this case I get the following error :
 
  [Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException:
 java.util.Hashtable$Entry
 
  Can anyone tell me what I am doing wrong please ?
 
  Thanks for your help
 
  Jean-Michel Auguste
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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


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



RE: Accessing bean in JSP but w/in java

2003-03-27 Thread Binaghi Mauro
Can you explain me which JSP instructions have you used for, please?
Thanks

Mauro

-Original Message-
From: Scott Seong [mailto:[EMAIL PROTECTED]
Sent: giovedì 13 marzo 2003 3.50
To: Struts Users Mailing List
Subject: Re: Accessing bean in JSP but w/in java


Great!!!  Thanks much :-)

Scott

- Original Message -
From: Dan Tran [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 8:28 PM
Subject: Re: Accessing bean in JSP but w/in java


 your actionForm should be already placed in your session or request object
 based on yours strut config file.

 To access the a field in the field your can accessit using

 yourFormName.yourFieldName if you are using regular java bean

 or yourFormName.map.yourFieldName if you are using DynaForm type class

 See my last few post to see how I access it using JSTL which is really
cool
 and clean

 Good Luck

 -Dan

 - Original Message -
 From: Scott Seong [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 6:21 PM
 Subject: Accessing bean in JSP but w/in java


  Hello,
 
  I have a little problem that I need help from experienced users.
 
  I'm trying to access actionForm value in the JSP inside the java code.
Why
  would I use Java inside the JSP? I needed to derive options values based
 on
  the value I received from the ActionForm. For example,
 
  ActionForm contains a property, today which will contain a string
 value --
  say 20030312. From this value, I need to generate 5 additional
business
  days to be provided in the options pick list. In order to generate
  additional values, I need to assign a reference to a variable. So, how
do
 I
  gain access to the actionForm in the JSP?
 
  Thanks,
  Scott
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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





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


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



Re: Struts Module Arch Q

2003-03-27 Thread Vic Cekvenich
Codeing something that is automatic is a bad practice.

Consider using Container Mnaager Security, that does this fo you.
.V
Navjot Singh wrote:
Hi List,

I want to build some kind of generic login system for my app and I am
thinking on these lines
Request Flow
==
test.jsp - TestAction - login.jsp - LoginAction - test.jsp
 |
 AuthCheck
Problem
==
test.jsp and login.jsp and under **different modules**. When
TestAction.class return ActionForward for login.jsp,
Struts generate an error Action Not Found for /Login.  [ This is action
defined in login.jsp]
Which is genuinely right from Struts perspective as request is till under
test module so
it tried to find **/Login action mapping** from that **test-config.xml**
file.
+ Have someone faced any problem like this before?
+ If you think there is better solution, pls let me know.
+ I am thinking of going RequestDisptacher way on top of Struts
ActionForward. Will that be OK?
   When AuthCheck returns __login failure__ , i can use request disptacher
to forward request to login.jsp.
regards
Navjot Singh


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


Problem with casting resources aquired with bean:define/ tag

2003-03-27 Thread Binaghi Mauro
Hi!
I've some problem with an int property value, read from my ApplicationResources 
file...

This is my TAG in JSP page:
bean:define id=readValue type=int
bean:message key=read.this.property.from.file/
/bean:define

but when I try to use the variable readValue, it seems to be a 'NULL' attribute...
So I've just tryied this one TAG:
bean:define id=readValue type=java.lang.Integer
bean:message key=read.this.property.from.file/
/bean:define

but when I use the method readValue.intValue() to convert this value to an int I 
receive the 
same error as before...

Anybody knows why?
Thx
Mauro

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



RE: Configuring Tiles + Validation + Modules

2003-03-27 Thread Hohlen, John C
Title: RE: Configuring Tiles + Validation + Modules



Nathan, 
 
 For now, I think we're going to just use the multiple 
config file options (new in B3). I was able to bust up ourONE 
struts-config.xml file and get this working in just 1/2 day (it would have been 
less if I wouldn't haveintroduced someXML syntax errors in my new 
config files). In addition, we'll probablybust up our 
application resource file and merge them back togetherduring our ANT build 
process. We have a team of about 12 developers, so these files have become 
a real bottleneck. This approach seems to achieve many of the same 
benefits as modules,without all the additional technical headaches 
(althoughyou need to guard against duplicate action mappings, form bean 
definitions, keys/values across all the collection of files). 
JOHN

  -Original Message- From: Niesen, Nathan 
  [mailto:[EMAIL PROTECTED] Sent: Wed 3/26/2003 4:43 PM [EMAIL PROTECTED]To: Struts-User 
  (E-mail) Cc: Subject: RE: Configuring Tiles + Validation 
  + Modules
  I basically have the same questions. I've been searching the 
  user docs and mailing lists trying to get a handle on 
  what modules were intended to do, what modules can and 
  can't do, and how I can use modules to improve my application framework. It appears to me that the modules feature opened 
  up a whole can-o-design-worms and they're still 
  wiggling. I can't find anything that clearly defines 
  intended usage of modules or the limitations of modules; especially in regards to using "resources" outside of a 
  modules sub-directory. 
  In addition to John's questions, I have the following 
  question: 
  1) How can I use tiles/templates to assemble a page in one 
  module from reusable "components/pages" in one or more 
  other modules? For example: I have pages in modules B, 
  C, and D, that all want to pull in a menu page from my 
  default module as well as a reusable page from module A. 
  Other issues with modules: 
  1) Not all tags (html:img in particular) use the pagePattern 
  or forwardPattern attributes from the controller. If I 
  want to use an image in my header.jsp, the image file 
  has to be physically located in each module or I get a 
  broken link. 
  2) The pagePattern and forwardPattern are defined on the 
  controller which means all tag or forward URLs for the 
  module will be mapped to the same context relative 
  URL. I think it would be more flexible if you simply specified the pattern as part of the URL attribute for the tag or 
  forward. For example: html:img alt="get an image 
  from the default module" page="$P/header.gif"/ and 
  html:img alt="get an image from the current module" page="$M$P/module.gif"/ 
  3) The examples don't effectively demonstrate the effects that 
  the contextRelative, inputForward, pagePattern, and 
  forwardPattern attributes have on the page, forward, 
  action, and href attributes. 
  4) The examples only show how to switch from one 
  self-contained module to another. They don't 
  demonstrate how to combine resources/pages from multiple modules into a single page via either includes or 
  tiles/templates. 
  Thanks, Nathan. 
  -Original Message- From: 
   Hohlen, John C [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, March 26, 2003 8:20 
  AM To: Struts-User 
  (E-mail) Subject: Configuring Tiles + 
  Validation + Modules 
  I'm looking for some help on how to configure the Tiles and 
  Validation Plug-Ins. A lot of the good books 
  (Struts In Action, Programming Jakarta Struts, etc.) 
  and replies to the mailing list address these topics independently, but not collectively. In addition, I took a look 
  at James Holmes "Switching Modules" example, but that 
  focuses on the different ways to switch b/t modules, 
  not on how to configure Modules with Tiles and the Validation frameworks. 
  For discussion purposes, let's assume I have following 3 
  modules (default, modA, modB). Here are my 
  questions: 
  1) If I have a form bean definition used by all 3 modules, 
  does it need to be defined in each of the 3 
  struts-config files, or can I just declare it in the 
  default struts-config? 
  2) Does each modules' struts-config file need the following 
  declaration to use the Validation framework, or can I 
  simply declare this once in the config file for the 
  default module? 
   plug-in 
  className="org.apache.struts.validator.ValidatorPlugIn"  set-property property="pathnames" 
   
  value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml"/  
  /plug-in 
  3) For Tile Definition config files, can all of these just be 
  declared in the default struts-config, or should they 
  be declared in the module struts-config they 
  correspond to (assuming you've divided your Tile definitions by module)? For example: 
   plug-in 
  className="org.apache.struts.tiles.TilesPlugin"   set-property 
  property="definitions-config"  
  value="/WEB-INF/tiles-defs-default.xml,  
  /WEB-INF/tiles-defs-modA.xml,  

RE: [OT] Contract Work: Going Rate?

2003-03-27 Thread Mark Galbreath
Those are typical rates for the DC-Northern VA area

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 3:33 AM
To: Struts Users Mailing List
Subject: RE: [OT] Contract Work: Going Rate?


These are USD per HOUR?

Crikey! You could retire after a couple of years on that!
Nah that cant be right. I did a bit under 3000 hours last year, multiply by
30 and convert to local currency adds up to more than Ive earned in my whole
working life (4+ years). A lot more...

Are those fair dinkum rates or are you just having us on?

Five weeks holiday??? OT pay???

Yeh. Thought so. Its a joke. hehe. You had me going there mate!

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 16:08
To: Struts Users Mailing List
Subject: Re: [OT] Contract Work: Going Rate?


These are some going full time rates for a London based e-learning company,
for an average of 1880 hrs worked in one year (Five weeks holiday not
included in the figures, but you'd get the same rate).  The company pays OT
on projects that need it, but actually limit the number of hours in a week
that an employee can be in the office. (Something about a work/life balance,
whatver than means :-)

All in US dollars (converted from blighty pounds)

Grade one (Whipping boy) - 30$
Grade two (Code monkey) - 40$
Grade three (Designer) - 55$
Grade four (Architect) - 90$
Grade five (Senior Architect) - 150$

These don't include the options and bonuses (last xmas bonus ranged from
500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly week-day/sat --
2*hourly sun).

Contractor have to pay all the insurance and stuff, so I'd dap about 22-40%
on top of each of these + a little extra if your gonna have to live in an
expensive part of town.

NOTE to the lawer.  It only becomes illegal if it can be proven that we have
set a level of pay *and* have all agreed to follow this level.  If you've
been on here long enough, you'd know *noone* ever agrees about anything!!
=]:0)

Good luck with the job, I hear California is nice this time of year!!

Cheers

Simon


- Original Message -
From: Micael [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts
Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 8:08 AM
Subject: RE: [OT] Contract Work: Going Rate?


 I hope you know that my prior response that the lawyer should be fired 
 was not aimed at you, Tammy.  I appreciate your assistance.  I think 
 it is really funny, however, that a lawyer would actually associate 
 what we are doing with antitrust behavior.  Heck, I feel bigger and 
 better now.  LOL!  That lawyer needs to get the tune to match the 
 lyrics.

 At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
   general landscape well (Tomcat, Struts, Ant, etc., etc., with 
   Linux, scripting, various databases, etc.).  What would a 
   reasonable request be?  Thanks.
 
 First of all, I would caution about asking questions like this on a 
 mailing list, as the discussion of hourly rates and stuff came up on 
 another list I belong to and the moderators there obtained an opinion 
 from a lawyer that discussing pricing in terms of specific dollar 
 amounts in a group like this could be deemed price-fixing by the 
 courts, which is illegal.
 
 That having been said, one common rule of thumb seems to be to divide 
 your annual salary as an employee by 1000, and using that as a 
 starting point for figuring out your hourly rate. Obviously you'd 
 need to adjust that for your local market, but that's not a bad 
 starting point.
 
 Tammy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents 
 contain information belonging to the sender which may be confidential 
 and legally privileged.  This information is intended only for the use 
 of the individual or entity to whom this electronic mail transmission 
 was sent as indicated above. If you are not the intended recipient, 
 any disclosure, copying, distribution, or action taken in reliance on 
 the contents of the information contained in this transmission is 
 strictly prohibited.  If you have received this transmission in error, 
 please delete the message.
Thank
 you



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




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


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



-
To 

[could be OT]Using JXPath within struts

2003-03-27 Thread Simon Kelly
Hi all,

Does anyone here use JXPath in their applications?  I'm trying to get a list
of pointers out as one of the help pages sugests, but I can't find the
getPointer method they use?  Anyone one else tryed it?? I though struts any
have used it for getting data out of the xml files, as it'S an apache
product!!

Cheers

Simon



Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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



Identification of a Field Name of a IterateForm in JavaScript

2003-03-27 Thread ashokd
Hi,

I have a doubt regarding identification(in javascript) of field name of Nested 
Iterator.
I have a Nested Iterator form.
In Nested Iterator I am displalying address1 and address2 properties of a 
ValueObject.

I have 5 records.

Property name of the nested iterator is addressList.

If I want to identify the value of  the address1 of the 2 nd row how can I do it?


document.formName.addressList[1].address1.value
or
document.formName.addressList.address[1].value

or any other correct syntax.


Thanks  Regards,
Ashok.D



Re: Struts Module Arch Q

2003-03-27 Thread Navjot Singh
Right now, i am not using EJB. Now, what's the solution?

- Original Message -
From: Vic Cekvenich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 5:32 PM
Subject: Re: Struts Module Arch Q


 Codeing something that is automatic is a bad practice.

 Consider using Container Mnaager Security, that does this fo you.
 .V

 Navjot Singh wrote:
  Hi List,
 
  I want to build some kind of generic login system for my app and I am
  thinking on these lines
 
  Request Flow
  ==
  test.jsp - TestAction - login.jsp - LoginAction - test.jsp
   |
   AuthCheck
 
  Problem
  ==
  test.jsp and login.jsp and under **different modules**. When
  TestAction.class return ActionForward for login.jsp,
  Struts generate an error Action Not Found for /Login.  [ This is
action
  defined in login.jsp]
 
  Which is genuinely right from Struts perspective as request is till
under
  test module so
  it tried to find **/Login action mapping** from that **test-config.xml**
  file.
 
  + Have someone faced any problem like this before?
  + If you think there is better solution, pls let me know.
 
  + I am thinking of going RequestDisptacher way on top of Struts
  ActionForward. Will that be OK?
 When AuthCheck returns __login failure__ , i can use request
disptacher
  to forward request to login.jsp.
 
  regards
  Navjot Singh



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




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



RE: Struts Module Arch Q

2003-03-27 Thread Jack Bakker
You don't need EJB to use container managed security. Look at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

Jack Bakker
 -Original Message-
 From: Navjot Singh [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 9:04 AM
 To: Struts Users Mailing List
 Subject: Re: Struts Module Arch Q


 Right now, i am not using EJB. Now, what's the solution?

 - Original Message -
 From: Vic Cekvenich [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 5:32 PM
 Subject: Re: Struts Module Arch Q


  Codeing something that is automatic is a bad practice.
 
  Consider using Container Mnaager Security, that does this fo you.
  .V
 
  Navjot Singh wrote:
   Hi List,
  
   I want to build some kind of generic login system for my app and I am
   thinking on these lines
  
   Request Flow
   ==
   test.jsp - TestAction - login.jsp - LoginAction - test.jsp
|
AuthCheck
  
   Problem
   ==
   test.jsp and login.jsp and under **different modules**. When
   TestAction.class return ActionForward for login.jsp,
   Struts generate an error Action Not Found for /Login.  [ This is
 action
   defined in login.jsp]
  
   Which is genuinely right from Struts perspective as request is till
 under
   test module so
   it tried to find **/Login action mapping** from that
 **test-config.xml**
   file.
  
   + Have someone faced any problem like this before?
   + If you think there is better solution, pls let me know.
  
   + I am thinking of going RequestDisptacher way on top of Struts
   ActionForward. Will that be OK?
  When AuthCheck returns __login failure__ , i can use request
 disptacher
   to forward request to login.jsp.
  
   regards
   Navjot Singh
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Jean-Michel Auguste
Hi Nicolas,
After some reading, I wrote the following code that works pretty well...

 logic:iterate name=objA property=hTable id=objB 
  Next element is bean:write name=objB property=value.prop /
[bean:write name=objB property=key /]
 /logic:iterate

I don't fully understand how the cast from Object to ObjB is performed but
it works
Thanks for your help.


- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 12:24
Subject: Re: Using JSP struts tag logic:iterate


 YOu can read this on struts-logic doc :

 Normally, each object exposed by the iterate tag is an element of the
underlying collection you are iterating over.
 However, if you iterate over a Map, the exposed object is of type
Map.Entry that has two properties:

 key - The key under which this item is stored in the underlying Map.
 value - The value that corresponds to this key.

 So, you should use :

 logic:iterate name=objA property=hTable id=objB indexId=ind
type=ObjB 
  Next element is bean:write name=objB property=value.prop /
  [bean:write name=value.ind/]
 /logic:iterate

 Nico.

  Thanks for your help Nico,
  As you recommend I've checked into my ObjB class and the property prop
  looks well formed :
 
  - prop is of type String
  - there is only one getter (getProp() ) and one setter (setProp(String
p) )
  - getProp() is public
 
  As I mentionned in my first append, I used two ways to code the
  logic:iterate tag.
  I can understand the first error message as there is no mention anywhere
of
  the type of  objB (as objB is stored as an Object type in the
  Hashtable). But I don't understand the second error message (invalid
Cast)
  as I specify the type for objB.
 
 
  - Original Message -
  From: Nicolas De Loof [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, March 27, 2003 11:27
  Subject: Re: Using JSP struts tag logic:iterate
 
 
   You don't need jsp:useBean as struts tags look into scope themself.
  (usebean create a scriptlet variable from a bean)
  
   Your code looks fine. Look at objB code, getter should not be well
formed.
   - be carreful about uppercase beginig properties
   - be carreful not to have mulitple setters with different data types
  (IFAIK it will break javaBean PropertyInfo)
   - be carreful getter is public
  
   Nico.
  
  
  
   Hi,
   I'm a bit confusing using the jsp struts tag logic:iterate.
   Here is my problem.
  
   In my business logic I've created an object (let's call it objA)
that
  contains a Hashtable which itself contain a list
   of objects (objB) . The Hastable object (hTable) can be accessed
  through getter and setter from objA.
   I want now to display as a table the property prop of all objB
objects
  contained in the Hashtable hTable (prop
   is a String  and can be accessed through getter and setter from
objB.
  
   Before launching the jsp I've put objA in the HTTP request.
  
   Then I've coded the following  in the Jsp :
  
   jsp:useBean id=objA class=ObjA scope=request/jsp:useBean
  
   logic:iterate name=objA property=hTable id=objB indexId=ind 
   Next element is bean:write name=objB property=prop /
  [bean:write name=ind/]
   /logic:iterate
  
   Coding this, I get the following error :
  
   [Servlet Error]-[No getter method for property prop of bean objB]:
  
  
   I tried then to code :
  
   jsp:useBean id=objA class=ObjA scope=request/jsp:useBean
  
   logic:iterate name=objA property=hTable id=objB indexId=ind
  type=ObjB 
   Next element is bean:write name=objB property=prop /
  [bean:write name=ind/]
   /logic:iterate
  
   In this case I get the following error :
  
   [Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException:
  java.util.Hashtable$Entry
  
   Can anyone tell me what I am doing wrong please ?
  
   Thanks for your help
  
   Jean-Michel Auguste
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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


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



Re: how to get a single value from hashtable

2003-03-27 Thread Max Cooper
I am not exactly sure what you are asking. Consider posting a minimal but
complete code (JSP, Java) example to help us understand if the following
info doesn't help:

Hashtable.elements() returns an Enumeration of the values, not the keys. I
believe that logic:iterate will just iterate though the Enumeration of
values.

hash.contains(new String(one)) will return false in your example code,
because there is no map entry with a value of one. I think you mean
hash.containsKey(one), which is much faster and will return true. Read the
API docs:
http://java.sun.com/j2se/1.4.1/docs/api/java/util/Hashtable.html

Also, the newer HashMap class might be faster than Hashtable, since HashMap
is not synchronized.

-Max

- Original Message -
From: shashi_struts [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 10:04 PM
Subject: how to get a single value from hashtable


hi
i am using the struts and jstl in my web application and using the
logic:iterate for iterating the hashtable,arraylist.
I faced the problem at this point:-
i am getting any tag for retrival of only one value from the hashtable that
we are getting through java function.
ex:-
Hashtable hash=new Hashtable();
hash.put(one,first);
hash.put(two,second);
the code i am using in java is
if(hash.contains(new String(one))
String value=hash.get(new String(one))

but i am not getting this using struts or jstl

Please help me
Regards





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



ROOT context

2003-03-27 Thread Thomas CORNET


  Hello everybody,

   I need your opinion about an improbable situation that came into my 
mind. Imagine that :

a) a webapp is in the ROOT context of the server, with a module named 
'test' and an action named 'action' for this module
b) a webapp named 'test' with an action named 'action' for the default module

   If I type in my browser 'http://server/test/action.do', which action is 
supposed to be reached ?? More genreally, how the controller makes the 
difference between a module of the ROOT context and another webapp ??

 Thomas

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


Passing values into action

2003-03-27 Thread Pat Young
What is the best way to pass values into an action?  I
want to do this in order to be able to make my actions
dynamic.  However, I don't want to have to include
these values in the URL.  Is there a way to pass them
in using the action xml element and then use logic in
my JSP to process these?

Pat Young

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
Simply they're is no Cast at all !
Tags use commons-beanUtils. This package uses javaBean standard to get properties from 
objects. In fact they use the
java.beans.PropertyDescriptor class to get property getter and setter, without having 
to know the class used.

Nico.



 Hi Nicolas,
 After some reading, I wrote the following code that works pretty well...

  logic:iterate name=objA property=hTable id=objB 
   Next element is bean:write name=objB property=value.prop /
 [bean:write name=objB property=key /]
  /logic:iterate

 I don't fully understand how the cast from Object to ObjB is performed but
 it works
 Thanks for your help.


 - Original Message -
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 12:24
 Subject: Re: Using JSP struts tag logic:iterate


  YOu can read this on struts-logic doc :
 
  Normally, each object exposed by the iterate tag is an element of the
 underlying collection you are iterating over.
  However, if you iterate over a Map, the exposed object is of type
 Map.Entry that has two properties:
 
  key - The key under which this item is stored in the underlying Map.
  value - The value that corresponds to this key.
 
  So, you should use :
 
  logic:iterate name=objA property=hTable id=objB indexId=ind
 type=ObjB 
   Next element is bean:write name=objB property=value.prop /
   [bean:write name=value.ind/]
  /logic:iterate
 
  Nico.
 
   Thanks for your help Nico,
   As you recommend I've checked into my ObjB class and the property prop
   looks well formed :
  
   - prop is of type String
   - there is only one getter (getProp() ) and one setter (setProp(String
 p) )
   - getProp() is public
  
   As I mentionned in my first append, I used two ways to code the
   logic:iterate tag.
   I can understand the first error message as there is no mention anywhere
 of
   the type of  objB (as objB is stored as an Object type in the
   Hashtable). But I don't understand the second error message (invalid
 Cast)
   as I specify the type for objB.
  
  
   - Original Message -
   From: Nicolas De Loof [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, March 27, 2003 11:27
   Subject: Re: Using JSP struts tag logic:iterate
  
  
You don't need jsp:useBean as struts tags look into scope themself.
   (usebean create a scriptlet variable from a bean)
   
Your code looks fine. Look at objB code, getter should not be well
 formed.
- be carreful about uppercase beginig properties
- be carreful not to have mulitple setters with different data types
   (IFAIK it will break javaBean PropertyInfo)
- be carreful getter is public
   
Nico.
   
   
   
Hi,
I'm a bit confusing using the jsp struts tag logic:iterate.
Here is my problem.
   
In my business logic I've created an object (let's call it objA)
 that
   contains a Hashtable which itself contain a list
of objects (objB) . The Hastable object (hTable) can be accessed
   through getter and setter from objA.
I want now to display as a table the property prop of all objB
 objects
   contained in the Hashtable hTable (prop
is a String  and can be accessed through getter and setter from
 objB.
   
Before launching the jsp I've put objA in the HTTP request.
   
Then I've coded the following  in the Jsp :
   
jsp:useBean id=objA class=ObjA scope=request/jsp:useBean
   
logic:iterate name=objA property=hTable id=objB indexId=ind 
Next element is bean:write name=objB property=prop /
   [bean:write name=ind/]
/logic:iterate
   
Coding this, I get the following error :
   
[Servlet Error]-[No getter method for property prop of bean objB]:
   
   
I tried then to code :
   
jsp:useBean id=objA class=ObjA scope=request/jsp:useBean
   
logic:iterate name=objA property=hTable id=objB indexId=ind
   type=ObjB 
Next element is bean:write name=objB property=prop /
   [bean:write name=ind/]
/logic:iterate
   
In this case I get the following error :
   
[Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException:
   java.util.Hashtable$Entry
   
Can anyone tell me what I am doing wrong please ?
   
Thanks for your help
   
Jean-Michel Auguste
   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Jean-Michel Auguste
Ok, now I understand.
Thanks a lot.

- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 15:43
Subject: Re: Using JSP struts tag logic:iterate


 Simply they're is no Cast at all !
 Tags use commons-beanUtils. This package uses javaBean standard to get
properties from objects. In fact they use the
 java.beans.PropertyDescriptor class to get property getter and setter,
without having to know the class used.

 Nico.



  Hi Nicolas,
  After some reading, I wrote the following code that works pretty well...
 
   logic:iterate name=objA property=hTable id=objB 
Next element is bean:write name=objB property=value.prop /
  [bean:write name=objB property=key /]
   /logic:iterate
 
  I don't fully understand how the cast from Object to ObjB is performed
but
  it works
  Thanks for your help.
 
 
  - Original Message -
  From: Nicolas De Loof [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, March 27, 2003 12:24
  Subject: Re: Using JSP struts tag logic:iterate
 
 
   YOu can read this on struts-logic doc :
  
   Normally, each object exposed by the iterate tag is an element of the
  underlying collection you are iterating over.
   However, if you iterate over a Map, the exposed object is of type
  Map.Entry that has two properties:
  
   key - The key under which this item is stored in the underlying Map.
   value - The value that corresponds to this key.
  
   So, you should use :
  
   logic:iterate name=objA property=hTable id=objB indexId=ind
  type=ObjB 
Next element is bean:write name=objB property=value.prop /
[bean:write name=value.ind/]
   /logic:iterate
  
   Nico.
  
Thanks for your help Nico,
As you recommend I've checked into my ObjB class and the property
prop
looks well formed :
   
- prop is of type String
- there is only one getter (getProp() ) and one setter
(setProp(String
  p) )
- getProp() is public
   
As I mentionned in my first append, I used two ways to code the
logic:iterate tag.
I can understand the first error message as there is no mention
anywhere
  of
the type of  objB (as objB is stored as an Object type in the
Hashtable). But I don't understand the second error message
(invalid
  Cast)
as I specify the type for objB.
   
   
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 11:27
Subject: Re: Using JSP struts tag logic:iterate
   
   
 You don't need jsp:useBean as struts tags look into scope
themself.
(usebean create a scriptlet variable from a bean)

 Your code looks fine. Look at objB code, getter should not be well
  formed.
 - be carreful about uppercase beginig properties
 - be carreful not to have mulitple setters with different data
types
(IFAIK it will break javaBean PropertyInfo)
 - be carreful getter is public

 Nico.



 Hi,
 I'm a bit confusing using the jsp struts tag logic:iterate.
 Here is my problem.

 In my business logic I've created an object (let's call it objA)
  that
contains a Hashtable which itself contain a list
 of objects (objB) . The Hastable object (hTable) can be
accessed
through getter and setter from objA.
 I want now to display as a table the property prop of all objB
  objects
contained in the Hashtable hTable (prop
 is a String  and can be accessed through getter and setter from
  objB.

 Before launching the jsp I've put objA in the HTTP request.

 Then I've coded the following  in the Jsp :

 jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

 logic:iterate name=objA property=hTable id=objB
indexId=ind 
 Next element is bean:write name=objB property=prop /
[bean:write name=ind/]
 /logic:iterate

 Coding this, I get the following error :

 [Servlet Error]-[No getter method for property prop of bean objB]:


 I tried then to code :

 jsp:useBean id=objA class=ObjA scope=request/jsp:useBean

 logic:iterate name=objA property=hTable id=objB
indexId=ind
type=ObjB 
 Next element is bean:write name=objB property=prop /
[bean:write name=ind/]
 /logic:iterate

 In this case I get the following error :

 [Servlet Error]-[JSP 1.2 Processor]: java.lang.ClassCastException:
java.util.Hashtable$Entry

 Can anyone tell me what I am doing wrong please ?

 Thanks for your help

 Jean-Michel Auguste



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

Re: ROOT context

2003-03-27 Thread Ian Hunter
I believe the longest matching URL wins, so the action action of the
test module should get called.

Anyone disagree?

- Original Message -
From: Thomas CORNET [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:35 AM
Subject: ROOT context





Hello everybody,


 I need your opinion about an improbable situation that came into my
 mind. Imagine that :

 a) a webapp is in the ROOT context of the server, with a module named
 'test' and an action named 'action' for this module
 b) a webapp named 'test' with an action named 'action' for the default
module

 If I type in my browser 'http://server/test/action.do', which action
is
 supposed to be reached ?? More genreally, how the controller makes the
 difference between a module of the ROOT context and another webapp ??


   Thomas


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



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



RE: Passing values into action

2003-03-27 Thread Mick . Knutson
Have you looked at DispatchActions?

-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:40 PM
To: [EMAIL PROTECTED]
Subject: Passing values into action


What is the best way to pass values into an action?  I
want to do this in order to be able to make my actions
dynamic.  However, I don't want to have to include
these values in the URL.  Is there a way to pass them
in using the action xml element and then use logic in
my JSP to process these?

Pat Young

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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


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

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

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


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



Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Greg Reddin
The senior architect (There can be only one!! ;-)

Try to tell our people that... :-)

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


Cannot retrieve definition for form bean null - Whats the deal?

2003-03-27 Thread White, Joshua A (CASD, IT)
I have the following code in my struts config:
...
form-bean
name=jumpCenterForm
type=form.JumpCenterForm
/
...

...
action
path=/viewJumpCenter
type=action.ViewJumpCenterAction
scope=request
name=jumpCenterForm
validate=false
input=screen.jumpCenter
forward name=form path=screen.jumpCenter redirect=false
/
/action
...

...
html:form action=insertUser method=POST
...
/html:form

...

When the action viewJumpCenter is called, I receive the following error:
[ServletException in:/WEB-INF/jsp/jumpCenter.jsp] Cannot retrieve definition
for form bean null'

What is happening here?  I have several other forms setup like this that do
not require me to specify the type of form bean in the html:form tag.  What
else could be causing this error?  I put debug statements in the form and
action constructors, they are being created fine.  Any Ideas?

Regards,

Joshua


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


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



RE: Passing values into action

2003-03-27 Thread du Plessis, Corneil C
If you want a generic action that is defined in a few different ways you can
use the parameter in the action mapping.

-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED]
Sent: 27 March, 2003 16:40
To: [EMAIL PROTECTED]
Subject: Passing values into action


What is the best way to pass values into an action?  I
want to do this in order to be able to make my actions
dynamic.  However, I don't want to have to include
these values in the URL.  Is there a way to pass them
in using the action xml element and then use logic in
my JSP to process these?

Pat Young

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



Loading properties from a file and keeping them in session

2003-03-27 Thread Pingili, Madhupal
I am thinking of a mechanism to load properties (name=value pairs) from a
properties file
and store them in an object and finally store that object in session for
using it later in the web application.
Can anyone share their experience doing this kind of tasks?

Thanks
Reddy 

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



Re: Struts Module Arch Q

2003-03-27 Thread Navjot Singh
hi.

i thought it's something similar to CMP ;-)
anyway, thans for the direction. that will definitely help.

-navjot


- Original Message -
From: Jack Bakker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 7:41 PM
Subject: RE: Struts Module Arch Q


 You don't need EJB to use container managed security. Look at:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

 Jack Bakker
  -Original Message-
  From: Navjot Singh [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 27, 2003 9:04 AM
  To: Struts Users Mailing List
  Subject: Re: Struts Module Arch Q
 
 
  Right now, i am not using EJB. Now, what's the solution?
 
  - Original Message -
  From: Vic Cekvenich [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, March 27, 2003 5:32 PM
  Subject: Re: Struts Module Arch Q
 
 
   Codeing something that is automatic is a bad practice.
  
   Consider using Container Mnaager Security, that does this fo you.
   .V
  
   Navjot Singh wrote:
Hi List,
   
I want to build some kind of generic login system for my app and I
am
thinking on these lines
   
Request Flow
==
test.jsp - TestAction - login.jsp - LoginAction - test.jsp
 |
 AuthCheck
   
Problem
==
test.jsp and login.jsp and under **different modules**. When
TestAction.class return ActionForward for login.jsp,
Struts generate an error Action Not Found for /Login.  [ This is
  action
defined in login.jsp]
   
Which is genuinely right from Struts perspective as request is till
  under
test module so
it tried to find **/Login action mapping** from that
  **test-config.xml**
file.
   
+ Have someone faced any problem like this before?
+ If you think there is better solution, pls let me know.
   
+ I am thinking of going RequestDisptacher way on top of Struts
ActionForward. Will that be OK?
   When AuthCheck returns __login failure__ , i can use request
  disptacher
to forward request to login.jsp.
   
regards
Navjot Singh
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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




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



Re: Cannot retrieve definition for form bean null - Whats the deal?

2003-03-27 Thread Nicolas De Loof

I think you don't have defined an action-mapping for path insertUser.

html:form looks for the form-bean name in mappings that comes with the path that is 
set by action attribute. It find
nothing so null is the name of the current bean that it is looking for, and you get 
this exception.


Nico.



 I have the following code in my struts config:
 ...
 form-bean
 name=jumpCenterForm
 type=form.JumpCenterForm
 /
 ...

 ...
 action
 path=/viewJumpCenter
 type=action.ViewJumpCenterAction
 scope=request
 name=jumpCenterForm
 validate=false
 input=screen.jumpCenter
 forward name=form path=screen.jumpCenter redirect=false
 /
 /action
 ...

 ...
 html:form action=insertUser method=POST
 ...
 /html:form

 ...

 When the action viewJumpCenter is called, I receive the following error:
 [ServletException in:/WEB-INF/jsp/jumpCenter.jsp] Cannot retrieve definition
 for form bean null'

 What is happening here?  I have several other forms setup like this that do
 not require me to specify the type of form bean in the html:form tag.  What
 else could be causing this error?  I put debug statements in the form and
 action constructors, they are being created fine.  Any Ideas?

 Regards,

 Joshua


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


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


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



Re: Cannot retrieve definition for form bean null - Whats the deal?

2003-03-27 Thread Jeff Kyser
Any chance of a typo in your

	html:form action=/viewJumpCenter

in your jumpCenter.jsp file?

-jeff

On Thursday, March 27, 2003, at 09:35  AM, White, Joshua A (CASD, IT) 
wrote:

I have the following code in my struts config:
...
form-bean
name=jumpCenterForm
type=form.JumpCenterForm
/
...
...
action
path=/viewJumpCenter
type=action.ViewJumpCenterAction
scope=request
name=jumpCenterForm
validate=false
input=screen.jumpCenter
forward name=form path=screen.jumpCenter 
redirect=false
/
/action
...

...
html:form action=insertUser method=POST
...
/html:form
...

When the action viewJumpCenter is called, I receive the following 
error:
[ServletException in:/WEB-INF/jsp/jumpCenter.jsp] Cannot retrieve 
definition
for form bean null'

What is happening here?  I have several other forms setup like this 
that do
not require me to specify the type of form bean in the html:form tag.  
What
else could be causing this error?  I put debug statements in the form 
and
action constructors, they are being created fine.  Any Ideas?

Regards,

Joshua

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

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


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


Re: Loading properties from a file and keeping them in session

2003-03-27 Thread James Mitchell
On Thu, 2003-03-27 at 10:37, Pingili, Madhupal wrote:
 I am thinking of a mechanism to load properties (name=value pairs) from a
 properties file
 and store them in an object and finally store that object in session for
 using it later in the web application.
 Can anyone share their experience doing this kind of tasks?

I haven't tried that yet, but it sounds like that would be a pretty cool
(and quick) way to run my server out of memory.  Of course that depends
on number of users and a few other factors, but heck, if that's what we
want.

me:mode serious=true/

I wouldn't do that if I were you.  Why would you need a different set of
bundle values for each user?  Besides the obvious memory overhead, what
is it that you are trying to accomplish?

 
 Thanks
 Reddy 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



RE: html:link - help

2003-03-27 Thread Karr, David
You were close to one solution, if you used c:url.  You just didn't
fully read the usage information for this tag.  If you supply a var
attribute, you can specify the name of the page-scoped attribute to set
with the resulting URL string.  You can then reference this in the
href attribute of the html-el:link tag.

 -Original Message-
 From: Ray Madigan [mailto:[EMAIL PROTECTED]
 
 This may be more html related - if so forgive me.
 
 I am working on a project where i have a set of jsp pages that
 i want want to generate a href link to.  I have tried a bunch of
 ways, and nothing but brute force seems to work.
 
 The pages require at least five parameters to be passed to the
 page, retrieved from either a form bean or from the environment
 based upon the context of the use of the jsp.
 
 What i want to know:  Is there a way other then the following to
 pass the parameters.  It seems to me this is not very maintainable?
 
 html-el:link page=/XXX.do?aaa=vvvbbb=wwwccc=xxxddd=yyyeee=zzz
 struts
 /html-el:link
 
 I tried calling a javascript function for omclick, or onmousedown
 setting hidden parameters, I think the event handlers are called
 after the request is sent to the link???, but the parameters are
 not set in the link page.
 
 I have tried using c:url with the param tags, but cannot figure
 out how to get a string to represent the url, the url just appears
 in the page, really ugly?

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



Map Backed Forms and File Upload

2003-03-27 Thread Brandon Goodin
Hey all,

I have a form with a map field called files:

protected HashMap files;

/**
 *
 */
public TestForm() {
this.files = new HashMap();
}

/**
 * @return HashMap
 */
public HashMap getFiles() {
return files;
}

/**
 * Sets the files.
 * @param files The files to set
 */
public void setFiles(HashMap files) {
this.files = files;
}
...
setFiles(HashMap map) {
}

In my form page I use the following input
html:file property=file(thumbnail)/
html:file property=file(fullsize)/

When I retrieve the object associated with the 'thumbnail' or 'fullsize' key
I get a String with the file path of my local computer?

The map does not hold FormFile objects?
I hope thats not true.

Brandon Goodin


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



Re: Tiles - how to handle missing jsp page

2003-03-27 Thread Cedric Dumoulin
 Hi,

aps olute wrote:

Hi,
  How to handle missing jsp pages so one does not get errors?  Not all
these elements have ignore attributes, so how to handle them? Some of
these are in defs.xml and some are in the regular jsp files.
1. on the putlist listed under item value=... links=.../

2. on the putlist  added via  add value=../

 You can handle them when you insert them in the layout:
tiles:insert attribute=.. ignore=true /
My problem is if these were missing at start of tomcat, no exceptions
are displayed, but upon adding the missing jsp -- they get displayed
okay. But now if I delete this jsp file again, NO exception is thrown
but the old image is still displayed even though the jsp is missing
now. Why? (as if the jsp did not get recompiled, I expect recompilation
if there is a missing jsp page).  

 Looks like a container problem: your container doesn't detect the 
deleted jsp, and use the existing generated java code.
 What server do you use ?

   Cedric

I can think of a scenario that in a live environment jsp pages are
moved/removed from a page and it should not throw an exception or
display an older page (if the included page has been removed).
Thanks in advance.
aps
__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Question about how extend the struts LookupDispatchAction ?

2003-03-27 Thread Heligon Sandra

 I have extended the LookupDispatchAction in order to manage several
submit buttons in my JSP.

 I have several JSP pages in my application that have the same look:
 a table with multiple buttons. On each page we find common
buttons (go to, customize, 
 select all/unselect all) and specific buttons. 
 
 I would like to know if I must declare a class
BaseLookupDispatchAction 
(this class will implement common buttons, is it possible ?) and a
x_SpecificLookupAction  for each page that will extend
BaseLookupDispatchAction 
in order to implement the specific buttons.

I am not sure that is possible and the best way to do the thinks.

For the moment I have only one Action that manage submit buttons

public class BaseLookupDispatchAction extends LookupDispatchAction 
{
  
public BaseLookupDispatchAction () 
  {
   
  }
  
  
public ActionForward execute(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception 
  {
  if ( request.getParameter( mapping.getParameter() ) ==
null ) {
return (
mapping.findForward(Constants.s_FAILURE_KEY) );
   } else {
return super.execute( mapping, form, request,
response );
  }   

 protected Map getKeyMethodMap() 
  {
 Map map = new HashMap();
 // Common to several pages
 map.put(button.customise, Customise );
 map.put(button.goId,Go);
 return map;   
  }

   public ActionForward Customise(ActionMapping mapping,
ActionForm form, HttpServletRequest
request, HttpServletResponse response) throws Exception 
   {
 return null;   
   }

   public ActionForward Go(ActionMapping mapping, ActionForm
form, HttpServletRequest
request, HttpServletResponse response) throws Exception 
   {
 return null;   
   }

}

For each page, the content of the method getKeyMethodMap has to be
extended in order to add methods
specific to each page.

thank you in advance for your examples and your help.
Sandra 

  




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 



Re: [Tiles-Definitions] can't find bean in request.

2003-03-27 Thread Cedric Dumoulin
 Hi,

 The definition from the tiles file are stored in the factory.
 You should use the following to insert a definition:
tiles:insert name=admin /
 Check the tag syntax :-)

 Cedric

Joel Wickard wrote:

Here's the first few lines of the root cause of the exception I'm 
getting:

root cause

javax.servlet.ServletException: Error - Tag Insert : No value defined 
for bean 'admin' with property 'null' in scope 'request'.
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:494)
at 
org.apache.jsp.employeeLanding_jsp._jspService(employeeLanding_jsp.java:59)
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Here's my web.xml entries:

 taglib
   taglib-uri/WEB-INF/struts-tiles/taglib-uri
   taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib
Here's my struts-config entries:

 plug-in className=org.apache.struts.tiles.TilesPlugin 
   set-property property=definitions-config 
value=/WEB-INF/tiles-defs.xml /
   set-property property=definitions-debug value=2 /
 /plug-in

Here's my tiles-defs.xml entries:

tiles-definitions
   definition name=admin 
path=/admin/templates/backendMain.jsp   put 
name=page-title value=QuatraData :: Default /
   put name=logo-content value=/logoDefault.jsp /
   put name=menu-layout value=/menuBar.jsp / /definition
/tiles-definitions



Here's the page I'm trying to use the template in:

[EMAIL PROTECTED] contentType=text/html%
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
tiles:insert beanName=admin beanScope=request/

( what I'm trying to do is just have a page that uses all the defaults 
specified in tiles-defs, that's why I have no put tags )

Here's the template itself:

[EMAIL PROTECTED] contentType=text/html%
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
html
head
titletiles:getAsString name=page-title //title
   script language=Javascript
function launchTimeClock(){
   window.open( ./timeclock/timeClock.jsp, puchClock, 
resizeable=no, height=170, width=230);
   }

   /script
/head
body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 
bgcolor=#CC onLoad=launchTimeClock();

table cellspacing=0 cellpadding=0 border=0
tr
td width=300
!-- Logo Content --
   tiles:insert name=logo-content /
/td
td valign=top
tiles:insert name=menu-layout /
/td /tr
/table
/body
/html



Here's the pages that should be inserted:

logoDefault.jsp:

I am a logo

menuBar.jsp:

My Menu Bar



If I don't use definition, if I just use a template and then manually 
use tiles:put, it works fine.

Any help would be great,  I can supply any other requested information.





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


Re: Loading properties from a file and keeping them in session

2003-03-27 Thread Micael
So, you probably would want to do that at application scope, rather than 
session scope?  If you are just storing the properties information, why 
transfer it to an object?  Just put the properties object at application 
level.  But, as James asked, why would you do this?  Why not use a 
database?  If you want speed, just hook in a little standalone hsqldb app, 
which has a really small footprint and would give you all the info you 
needed to put into application (or session) scope?



At 10:56 AM 3/27/03 -0500, you wrote:
On Thu, 2003-03-27 at 10:37, Pingili, Madhupal wrote:
 I am thinking of a mechanism to load properties (name=value pairs) from a
 properties file
 and store them in an object and finally store that object in session for
 using it later in the web application.
 Can anyone share their experience doing this kind of tasks?
I haven't tried that yet, but it sounds like that would be a pretty cool
(and quick) way to run my server out of memory.  Of course that depends
on number of users and a few other factors, but heck, if that's what we
want.
me:mode serious=true/

I wouldn't do that if I were you.  Why would you need a different set of
bundle values for each user?  Besides the obvious memory overhead, what
is it that you are trying to accomplish?

 Thanks
 Reddy

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org


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


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


RE: Loading properties from a file and keeping them in session

2003-03-27 Thread Pingili, Madhupal
These properties file depends on a user selection before I read these
properties in an Action.
There could be as many as 25 such properties files. I just don't want to put
all these properties
in MessageResources properties file. I am using DynaValidatorActionForm to
describe all properties 
in one form and I need to convert the actual field names(coming from EIS) to
this form property names 
in order to take advantage of form validation using validation.xml
configuration.

 -Original Message-
 From: Micael [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 11:07 AM
 To:   Struts Users Mailing List
 Subject:  Re: Loading properties from a file and keeping them in
 session
 
 So, you probably would want to do that at application scope, rather than 
 session scope?  If you are just storing the properties information, why 
 transfer it to an object?  Just put the properties object at application 
 level.  But, as James asked, why would you do this?  Why not use a 
 database?  If you want speed, just hook in a little standalone hsqldb app,
 
 which has a really small footprint and would give you all the info you 
 needed to put into application (or session) scope?
 
 
 
 At 10:56 AM 3/27/03 -0500, you wrote:
 On Thu, 2003-03-27 at 10:37, Pingili, Madhupal wrote:
   I am thinking of a mechanism to load properties (name=value pairs)
 from a
   properties file
   and store them in an object and finally store that object in session
 for
   using it later in the web application.
   Can anyone share their experience doing this kind of tasks?
 
 I haven't tried that yet, but it sounds like that would be a pretty cool
 (and quick) way to run my server out of memory.  Of course that depends
 on number of users and a few other factors, but heck, if that's what we
 want.
 
 me:mode serious=true/
 
 I wouldn't do that if I were you.  Why would you need a different set of
 bundle values for each user?  Besides the obvious memory overhead, what
 is it that you are trying to accomplish?
 
  
   Thanks
   Reddy
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.open-tools.org
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 LEGAL NOTICE
 
 This electronic mail  transmission and any accompanying documents contain 
 information belonging to the sender which may be confidential and legally 
 privileged.  This information is intended only for the use of the 
 individual or entity to whom this electronic mail transmission was sent as
 
 indicated above. If you are not the intended recipient, any disclosure, 
 copying, distribution, or action taken in reliance on the contents of the 
 information contained in this transmission is strictly prohibited.  If you
 
 have received this transmission in error, please delete the message.
 Thank 
 you  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Configuring Tiles + Validation + Modules

2003-03-27 Thread Cedric Dumoulin


Niesen, Nathan wrote:

I basically have the same questions. I've been searching the user docs and
mailing lists trying to get a handle on what modules were intended to do,
what modules can and can't do, and how I can use modules to improve my
application framework. It appears to me that the modules feature opened up a
whole can-o-design-worms and they're still wiggling. I can't find anything
that clearly defines intended usage of modules or the limitations of
modules; especially in regards to using resources outside of a modules
sub-directory.
In addition to John's questions, I have the following question:

1) How can I use tiles/templates to assemble a page in one module from
reusable components/pages in one or more other modules? For example: I
have pages in modules B, C, and D, that all want to pull in a menu page from
my default module as well as a reusable page from module A.
 

 Tiles config file consider the url as absolute to the application. So, 
simply specify the absolute URL of your layout, page or tile.
 The tiles-documentation.war use 3 modules. You can check it for examples.

 Cedric

Other issues with modules:

1) Not all tags (html:img in particular) use the pagePattern or
forwardPattern attributes from the controller. If I want to use an image in
my header.jsp, the image file has to be physically located in each module or
I get a broken link.
2) The pagePattern and forwardPattern are defined on the controller which
means all tag or forward URLs for the module will be mapped to the same
context relative URL. I think it would be more flexible if you simply
specified the pattern as part of the URL attribute for the tag or forward.
For example: html:img alt=get an image from the default module
page=$P/header.gif/ and html:img alt=get an image from the current
module page=$M$P/module.gif/
3) The examples don't effectively demonstrate the effects that the
contextRelative, inputForward, pagePattern, and forwardPattern attributes
have on the page, forward, action, and href attributes.
4) The examples only show how to switch from one self-contained module to
another. They don't demonstrate how to combine resources/pages from multiple
modules into a single page via either includes or tiles/templates.
Thanks, Nathan.

-Original Message-
From: 	Hohlen, John C [mailto:[EMAIL PROTECTED] 
Sent:	Wednesday, March 26, 2003 8:20 AM
To:	Struts-User (E-mail)
Subject:	Configuring Tiles + Validation + Modules

I'm looking for some help on how to configure the Tiles and Validation
Plug-Ins.  A lot of the good books (Struts In Action, Programming Jakarta
Struts, etc.) and replies to the mailing list address these topics
independently, but not collectively.  In addition, I took a look at James
Holmes Switching Modules example, but that focuses on the different ways
to switch b/t modules, not on how to configure Modules with Tiles and the
Validation frameworks. 

For discussion purposes, let's assume I have following 3 modules (default,
modA, modB).  Here are my questions:
1) If I have a form bean definition used by all 3 modules, does it need to
be defined in each of the 3 struts-config files, or can I just declare it in
the default struts-config?
2) Does each modules' struts-config file need the following declaration to
use the Validation framework, or can I simply declare this once in the
config file for the default module?
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames 
 value=/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml/
 /plug-in

3) For Tile Definition config files, can all of these just be declared in
the default struts-config, or should they be declared in the module
struts-config they correspond to (assuming you've divided your Tile
definitions by module)?  For example:
 plug-in className=org.apache.struts.tiles.TilesPlugin 
   set-property property=definitions-config
   value=/WEB-INF/tiles-defs-default.xml,
  /WEB-INF/tiles-defs-modA.xml,  
  /WEB-INF/tiles-defs-modB.xml/
 /plug-in

4) Can I use the default module's application resource file for text common
across modules?  Therefore, preventing me from having to duplicate entries
across modules.  If so, this means Struts always looks in the particular
module's application resource first, then the default module.  But this
doesn't apply for form bean definitions or action mappings, correct?
5) Is the following an acceptable way to configure the application resource
files:
--- struts-config.xml (default) ---
message-resources parameter=Messages 
   null=false/

--- struts-config-modA.xml (default) ---
message-resources parameter=Messages-modA 
   null=false/

--- struts-config-modB.xml (default) ---
message-resources parameter=Messages-modB 
   null=false/

Thanks in advance for your help,

JOHN


Re: Configuring Tiles + Validation + Modules

2003-03-27 Thread Cedric Dumoulin


Hohlen, John C wrote:

I'm looking for some help on how to configure the Tiles and Validation
Plug-Ins.  A lot of the good books (Struts In Action, Programming Jakarta
Struts, etc.) and replies to the mailing list address these topics
independently, but not collectively.  In addition, I took a look at James
Holmes Switching Modules example, but that focuses on the different ways
to switch b/t modules, not on how to configure Modules with Tiles and the
Validation frameworks. 

For discussion purposes, let's assume I have following 3 modules (default,
modA, modB).  Here are my questions:
1) If I have a form bean definition used by all 3 modules, does it need to
be defined in each of the 3 struts-config files, or can I just declare it in
the default struts-config?
 All modules are independent, so you need to declare form bean 
definition in each module. You can have a struts-config file containing 
the common declaration, and use it in each module (with the multi config 
file capability).

2) Does each modules' struts-config file need the following declaration to
use the Validation framework, or can I simply declare this once in the
config file for the default module?
 plug-in className=org.apache.struts.validator.ValidatorPlugIn
   set-property property=pathnames 
 value=/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml/
 /plug-in

 You need it for each module.

3) For Tile Definition config files, can all of these just be declared in
the default struts-config, or should they be declared in the module
struts-config they correspond to (assuming you've divided your Tile
definitions by module)?  For example:
 plug-in className=org.apache.struts.tiles.TilesPlugin 
   set-property property=definitions-config
   value=/WEB-INF/tiles-defs-default.xml,
  /WEB-INF/tiles-defs-modA.xml,  
  /WEB-INF/tiles-defs-modB.xml/
 /plug-in

 You need it for each module. Some module can use different factory, or 
no definition factory at all.

 Cedric

4) Can I use the default module's application resource file for text common
across modules?  Therefore, preventing me from having to duplicate entries
across modules.  If so, this means Struts always looks in the particular
module's application resource first, then the default module.  But this
doesn't apply for form bean definitions or action mappings, correct?
5) Is the following an acceptable way to configure the application resource
files:
--- struts-config.xml (default) ---
message-resources parameter=Messages 
   null=false/

--- struts-config-modA.xml (default) ---
message-resources parameter=Messages-modA 
   null=false/

--- struts-config-modB.xml (default) ---
message-resources parameter=Messages-modB 
   null=false/

Thanks in advance for your help,

JOHN

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



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


Re: Tiles Controller in definitions

2003-03-27 Thread Cedric Dumoulin


Kevin Cramer wrote:

I was playing around with this more and if I include the tile with the
controller directly in the JSP with the tiles:insert definition=
tag then it works.  If I use the tiles:insert name= tag which
refers to an attribute which dynamically defines the definition / JSP
to use then it does not work.
 What is your exact syntax ?

Something like:
tiles:insert name=anAttribute
with anAttribute referencing a definition associated to a controller 
should call the controller.

 Cedric

Can this not be done?  I would prefer to do it the way I am doing
since the tile that is inserted there is specified in a parent tile.
Thanks,
Kevin
On Wed, Mar 26, 2003 at 10:27:23AM -0500, Kevin Cramer wrote:
 

If I put a System.out.println in the perform function, it never shows
up in the logs.  I'm positive it is not being called but I can't
figure out why.  I am using definitions and I saw a post from Cedric
that you need to use tiles:insert to get it working but I am doing
this in my JSP.
Any ideas?

Thanks,
Kevin
On Tue, Mar 25, 2003 at 09:54:16PM -0700, David Graham wrote:
   

Well there's only 1 method in the Controller interface:
http://jakarta.apache.org/struts/api/org/apache/struts/tiles/Controller.html
What happens when you do a System.out... in the controller?

David



 

From: Kevin Cramer [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Tiles Controller in definitions
Date: Tue, 25 Mar 2003 21:50:19 -0500
I'm trying to setup a controller for a Tiles definition.  I follow the
examples I've seen but it appears that the controller class is not
called.  I've seen posts here that indicate that you need to use
tiles:insert to enable the controller but I'm always using that
whenever I include the JSP.  Perhaps my use of tile definitions is
causing problems?  I'm also unsure whether I'm supposed to use the
perform() or execute() on the Controller interface.  The error I get
is that the JSP of the tile with the controller complains that it
cannot find the object that I am doing the putAttribute with.  The
error is on the tiles:importAttribute.
I have the following in my tiles-defs.xml:

definition name=standardPage
  path=/WEB-INF/common/layouts/standardLayout.jsp
  put name=title.key   value=title.notDefined /
  put name=header  value=.standardPage.header /
  put name=content value=NO CONTENT DEFINED /
  put name=leftvalue=/WEB-INF/common/other1.jsp /
  put name=right   value=standardPage.testcontroller /
/definition
definition name=.standardPage.header
  path=/WEB-INF/common/header.jsp
  put name=headerbar  value=standardPage.header.bar/
/definition
definition name=standardPage.header.bar
  path=/WEB-INF/common/bar.jsp
  put name=left  value=NO LEFT DEFINED /
  put name=right value=NO RIGHT DEFINED /
/definition
definition name=standardPage.testcontroller
  path=/WEB-INF/common/testcontroller.jsp
  controllerClass=mytest.TestAction
/definition
Here is the testcontroller.jsp:

%@ taglib uri=/tags/struts-html prefix=html %
%@ taglib uri=/tags/struts-tiles prefix=tiles %
tiles:importAttribute name=TEST/
bean:write name=TEST property=value/
Here is the controller class:

public final class TestAction extends TilesAction implements Controller {
  public static final String TEST_KEY = TEST;
  public ActionForward perform(
  ComponentContext context,
  ActionMapping arg1,
  ActionForm arg2,
  HttpServletRequest arg3,
  HttpServletResponse arg4)
  throws IOException, ServletException {
  perform(context, arg3, arg4, 
getServlet().getServletContext());
  return null;
  }

  public void perform(
  ComponentContext context,
  HttpServletRequest arg1,
  HttpServletResponse arg2,
  ServletContext arg3)
  throws ServletException, IOException {
  MyTestObject test = new MyTestObject(Test Value);
  context.putAttribute(TEST_KEY, test);
  }
  public ActionForward execute(
  ComponentContext context,
  ActionMapping arg1,
  ActionForm arg2,
  HttpServletRequest arg3,
  HttpServletResponse arg4)
  throws Exception {
  perform(context, arg3, arg4, 
getServlet().getServletContext());
  return null;
  }
}

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

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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

Questions concerning Tiles

2003-03-27 Thread COMPAGNON GUILLAUME
Cédric,
is that make sense to define a bean type for printing the today date with
the scope of the application ( in order not to instanciate the Date each
time) ?

Thx!
Guillaume



Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et 
etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique 
est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the message) are confidential and intended solely 
for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for 
the message if altered, changed or falsified.



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



Re: ROOT context

2003-03-27 Thread Craig R. McClanahan


On Thu, 27 Mar 2003, Ian Hunter wrote:

 Date: Thu, 27 Mar 2003 09:58:33 -0500
 From: Ian Hunter [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: ROOT context

 I believe the longest matching URL wins, so the action action of the
 test module should get called.


More precisely, the check for a matching context path is done first, so
this URL will go to the (b) webapp with a context path of /test.

 Anyone disagree?


Craig

 - Original Message -
 From: Thomas CORNET [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 9:35 AM
 Subject: ROOT context


 
 
 
 Hello everybody,
 
 
  I need your opinion about an improbable situation that came into my
  mind. Imagine that :
 
  a) a webapp is in the ROOT context of the server, with a module named
  'test' and an action named 'action' for this module
  b) a webapp named 'test' with an action named 'action' for the default
 module
 
  If I type in my browser 'http://server/test/action.do', which action
 is
  supposed to be reached ?? More genreally, how the controller makes the
  difference between a module of the ROOT context and another webapp ??
 
 
Thomas
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Thomas T. Veldhouse
Are you on your own or with a company (third party consulting)?  Remember
that you have to pay your own social security, insurance, travel costs and
other administrative maintenance.  $75 might be a good place to start.
California expects a higher bill rate too, the cost of living in the Bay
area, in particular, is simply outrageous.

Tom Veldhouse

- Original Message -
From: Micael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 6:28 PM
Subject: [OT] Contract Work: Going Rate?


 I have been offered a contract job and asked what I wanted per hour.  I am
 in Washington state and the client (a web development company) is in
 California.  I am an experienced Java (certified) programmer that knows
the
 general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux,
 scripting, various databases, etc.).  What would a reasonable request
 be?  Thanks.


 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents contain
 information belonging to the sender which may be confidential and legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was sent as
 indicated above. If you are not the intended recipient, any disclosure,
 copying, distribution, or action taken in reliance on the contents of the
 information contained in this transmission is strictly prohibited.  If you
 have received this transmission in error, please delete the message.
Thank you



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




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



Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Thomas T. Veldhouse
Price fixing wouldn't apply to one person. Courts be damned.

Tom Veldhouse

- Original Message - 
From: Tammy Cravit [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 8:49 PM
Subject: RE: [OT] Contract Work: Going Rate?


  general landscape well (Tomcat, Struts, Ant, etc., etc., with Linux, 
  scripting, various databases, etc.).  What would a reasonable request 
  be?  Thanks.
 
 First of all, I would caution about asking questions like this on a
 mailing list, as the discussion of hourly rates and stuff came up on
 another list I belong to and the moderators there obtained an opinion
 from a lawyer that discussing pricing in terms of specific dollar
 amounts in a group like this could be deemed price-fixing by the courts,
 which is illegal.
 
 That having been said, one common rule of thumb seems to be to divide
 your annual salary as an employee by 1000, and using that as a starting
 point for figuring out your hourly rate. Obviously you'd need to adjust
 that for your local market, but that's not a bad starting point.
 
 Tammy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Configuring Tiles + Validation + Modules

2003-03-27 Thread Niesen, Nathan
John,

We use a simple forward suffixing technique that I came up when we started
out with Struts 0.5. Forward suffixing has been very effective for reducing
action mapping explosion for our reusable components. I'm not sure if this
will help in your situation but definitely think it's useful to the
community.

Background:
We have a framework for displaying interactive maps. The framework contains
a number of reusable components (pages) that can be assembled in different
ways depending on the features needed. For example, the user may start out
on a page containing just a map viewer. Then user might then click on a
driving directions link that takes them to another page containing the same
map viewer component along with an address input component and a driving
directions component. We also reuse the action mappings for our HTML map
viewer and our JavaScript map viewer. The map viewer has about 10 - 30
actions depending on configuration: mapInit, mapImage, redraw, click, pan,
zoom, selectAtPoint, zoomToPoint, panToPoint, etc... Every time we added a
new view that used the map viewer component, we had to replicate 10 - 30
actions just to change the forward for the success action. We needed a way
to have multiple success and failure forwards so that we could reuse the
existing action mappings. Since we were developing a framework, we needed
something that was easy to configure and use.

To put this in context, take a look at our demo site:
http://206.144.170.252/cit-framework
Sorry about the IP address URL. If it bothers you, go to our main website
www.objectfx.com and navigate to Products: Product Demos: Web Application
Framework Demos.

Solution:
We decided to add a suffix to the forward name for each view. For example:
successView1, failureView1, successView2, failureView2, etc... This is
accomplished by setting a forwardSuffix request parameter. This is usually
done on an init action for the view. Then we added a getActionForward method
to our Action subclass (I'll call it MyActionBase) that added the suffix to
the forward name. All of our action classes then use this method to append
the suffix to the forward name.

Here are the basics needed to implement this:

Sample struts-config.xml (notice that this retains all the flexibility of
global forwards and chaining and for this example reduces the mappings from
12 to 3):
...
  !-- == Global Forward Definitions ==
--
  global-forwards
forward  name=failure   path=/error.jsp/
forward  name=failureView2  path=/errorView2.jsp/
  /global-forwards

  !-- == Action Mapping Definitions ==
--
  action-mappings

!-- Redraw Map Request --
action   path=/redrawMap
  type=com.ofx.action.redrawMapAction
  forwardname=success   path=defaultView.jsp/
  forwardname=successView1  path=/view1.jsp/
  forwardname=successView2  path=/view2.jsp/
  forwardname=successView3  path=/view3.jsp/
/action

!-- Select At Point and chain to the Redraw Map action --
action   path=/selectAtPoint
  type=com.ofx.action.SelectAtPointAction
  name=selectAtPointActionForm
  forwardname=success   path=/redrawMap.do/
  forwardname=successView1  path=/redrawMap.do/
  forwardname=successView2  path=/redrawMap.do/
  forwardname=successView3  path=/goElsewhere.jsp /
/action

!-- Zoom Out Request --
action   path=/zoomOut
  type=com.ofx.action.zoomOutAction
  name=zoomActionForm
  forwardname=success   path=/defaultView.jsp/
  forwardname=successView1  path=/view1.jsp/
  forwardname=successView2  path=/view2.jsp/
  forwardname=successView3  path=/view3.jsp/
  forwardname=failureView3 path=/errorZoomOutView3.jsp/
/action
...

xxxAction extends MyActionBase
...
   public ActionForward execute(
 ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

  try {
 // process the action...
 return getActionForward(request, mapping, success); // append the
forwardSuffix to the forward name.
  } catch (MyAppException e) {
 return getActionForward(request, mapping, failure); // append the
forwardSuffix to the forward name.
  }
   }
...

MyActionBase extends org.apache.struts.action.Action
...
   /**
* Gets the Struts ActionForward for this request. Takes into account
* any forward suffix values that affect where this request will go.
* All Web App Framework Actions should use this method to determine the
* appropriate action forward. Actions that do not use this method
* will not take forward suffixes into account, and subsequently
* may forward to the wrong action. p
*
* For example, suppose you append forwardSuffix=View1 to a given
  

Imbeding a struts tag in another ?

2003-03-27 Thread Jean-Michel Auguste
Hi,

I'm having the following problem.
I need to display a radio button in a Jsp but the attribute value of this radio 
button must be set with the property of a bean located in the request.
How can I code that using struts tags only ?

I tried the following but does not work.

html:radio property=selection value=bean:write name=obj property=prop  /  /

Any idea ?
Thanks 

Jean-Michel Auguste


RE: Imbeding a struts tag in another ?

2003-03-27 Thread Wendy Smoak
 I'm having the following problem.
 I need to display a radio button in a Jsp but the attribute 
 value of this radio button must be set with the property of a bean
located in the request.
 How can I code that using struts tags only ?
 I tried the following but does not work.
 html:radio property=selection value=bean:write name=obj
property=prop  /  /

Can you use the Struts-EL tags?
html:radio property=selection value=${obj.prop} /

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


RE: Imbeding a struts tag in another ?

2003-03-27 Thread apachep2
idName is the name of that bean

html:radio idName=obj value=prop property=selection/

-Original Message-
From: Jean-Michel Auguste [mailto:[EMAIL PROTECTED] 
Sent: March 27, 2003 12:25 PM
To: [EMAIL PROTECTED]
Subject: Imbeding a struts tag in another ?

Hi,

I'm having the following problem.
I need to display a radio button in a Jsp but the attribute value of
this radio button must be set with the property of a bean located in the
request.
How can I code that using struts tags only ?

I tried the following but does not work.

html:radio property=selection value=bean:write name=obj
property=prop  /  /

Any idea ?
Thanks 

Jean-Michel Auguste

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



Re: Imbeding a struts tag in another ?

2003-03-27 Thread Jean-Michel Auguste
Sorry, I'm new with Struts. What's Struts-EL tags?
Where can I find info please ? 
Thanks

- Original Message - 
From: Wendy Smoak [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 18:28
Subject: RE: Imbeding a struts tag in another ?


  I'm having the following problem.
  I need to display a radio button in a Jsp but the attribute 
  value of this radio button must be set with the property of a bean
 located in the request.
  How can I code that using struts tags only ?
  I tried the following but does not work.
  html:radio property=selection value=bean:write name=obj
 property=prop  /  /
 
 Can you use the Struts-EL tags?
 html:radio property=selection value=${obj.prop} /
 
 -- 
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University PA Information Resources Management
 


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



[OT/ANN] Tampa/St.Pete Struts User Group

2003-03-27 Thread Rick Reumann
The Atlanta Struts group meeting I went to this past Tuesday was great.
Unfortunately I don't think I can't make that drive up that often so I
was wondering if anyone was interested in getting a group together here
in the Tampa Bay Florida area? 

I started a struts-tampa list here:

http://groups.yahoo.com/group/struts-tampa/

Best to post on the above list, but feel free to e-mail me off list if
you like.

Hope to hear from you.

-- 
Rick Reumann

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



Re: [OT] Contract Work: Going Rate?

2003-03-27 Thread Thomas T. Veldhouse
And those are not that hot of rates either, excluding perhaps the senior
arch.

Tom Veldhouse

- Original Message -
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 4:46 AM
Subject: RE: [OT] Contract Work: Going Rate?


Those are typical rates for the DC-Northern VA area

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:33 AM
To: Struts Users Mailing List
Subject: RE: [OT] Contract Work: Going Rate?


These are USD per HOUR?

Crikey! You could retire after a couple of years on that!
Nah that cant be right. I did a bit under 3000 hours last year, multiply by
30 and convert to local currency adds up to more than Ive earned in my whole
working life (4+ years). A lot more...

Are those fair dinkum rates or are you just having us on?

Five weeks holiday??? OT pay???

Yeh. Thought so. Its a joke. hehe. You had me going there mate!

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 16:08
To: Struts Users Mailing List
Subject: Re: [OT] Contract Work: Going Rate?


These are some going full time rates for a London based e-learning company,
for an average of 1880 hrs worked in one year (Five weeks holiday not
included in the figures, but you'd get the same rate).  The company pays OT
on projects that need it, but actually limit the number of hours in a week
that an employee can be in the office. (Something about a work/life balance,
whatver than means :-)

All in US dollars (converted from blighty pounds)

Grade one (Whipping boy) - 30$
Grade two (Code monkey) - 40$
Grade three (Designer) - 55$
Grade four (Architect) - 90$
Grade five (Senior Architect) - 150$

These don't include the options and bonuses (last xmas bonus ranged from
500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly week-day/sat --

2*hourly sun).

Contractor have to pay all the insurance and stuff, so I'd dap about 22-40%
on top of each of these + a little extra if your gonna have to live in an
expensive part of town.

NOTE to the lawer.  It only becomes illegal if it can be proven that we have
set a level of pay *and* have all agreed to follow this level.  If you've
been on here long enough, you'd know *noone* ever agrees about anything!!
=]:0)

Good luck with the job, I hear California is nice this time of year!!

Cheers

Simon


- Original Message -
From: Micael [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]; 'Struts
Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 8:08 AM
Subject: RE: [OT] Contract Work: Going Rate?


 I hope you know that my prior response that the lawyer should be fired
 was not aimed at you, Tammy.  I appreciate your assistance.  I think
 it is really funny, however, that a lawyer would actually associate
 what we are doing with antitrust behavior.  Heck, I feel bigger and
 better now.  LOL!  That lawyer needs to get the tune to match the
 lyrics.

 At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
   general landscape well (Tomcat, Struts, Ant, etc., etc., with
   Linux, scripting, various databases, etc.).  What would a
   reasonable request be?  Thanks.
 
 First of all, I would caution about asking questions like this on a
 mailing list, as the discussion of hourly rates and stuff came up on
 another list I belong to and the moderators there obtained an opinion
 from a lawyer that discussing pricing in terms of specific dollar
 amounts in a group like this could be deemed price-fixing by the
 courts, which is illegal.
 
 That having been said, one common rule of thumb seems to be to divide
 your annual salary as an employee by 1000, and using that as a
 starting point for figuring out your hourly rate. Obviously you'd
 need to adjust that for your local market, but that's not a bad
 starting point.
 
 Tammy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents
 contain information belonging to the sender which may be confidential
 and legally privileged.  This information is intended only for the use
 of the individual or entity to whom this electronic mail transmission
 was sent as indicated above. If you are not the intended recipient,
 any disclosure, copying, distribution, or action taken in reliance on
 the contents of the information contained in this transmission is
 strictly prohibited.  If you have received this transmission in error,
 please delete the message.
Thank
 you



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




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

RE: Arguments

2003-03-27 Thread Susan Bradeen
Have you found this site yet? ... http://www.strutskickstart.com

Under Downloads (in the sidebar), there's a Selling Struts to Management 
powerpoint presentation that might be helpful.


Susan Bradeen

On 03/27/2003 04:58:51 AM Joao Batistella wrote:

 Thanks!
 This is good.
 
 But I also have to explain the architecture, the features, drawbacks...
 
 Thanks,
 João Paulo.
 
 -Original Message-
 From: Simon Kelly [mailto:[EMAIL PROTECTED]
 Sent: quinta-feira, 27 de Março de 2003 09:53
 To: Struts Users Mailing List
 Subject: Re: Arguments
 
 
 There is a list of sites (somewhere) that us struts as the framework. 
You
 could show them those, some where quite impressive.
 
 Just search the archive for sites using struts.
 
 Cheers
 
 Simon
 
 
 - Original Message -
 From: Joao Batistella [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 10:43 AM
 Subject: Arguments
 
 
 Hi!
 
 I have to convince my boss about using or not Struts in our next 
project. I
 really want to use but I have to explain the arguments.
 
 Anybody knows any document, presentation or anything else that can help 
me?
 
 Thanks,
 João Paulo.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Imbeding a struts tag in another ?

2003-03-27 Thread Karr, David
The Struts-EL library is in the contrib directory of the distribution.
It first appeared in the 1.1beta3 release, although until the next RC or
final 1.1 release comes out, I recommend using the nightly build, to
avoid a couple of bugs that have been fixed since that release.  The
Struts-EL library evaluates attributes values using the expression
language engine used in the Jakarta Taglibs implementation of the JSTL.

 -Original Message-
 From: Jean-Michel Auguste [mailto:[EMAIL PROTECTED]
 
 Sorry, I'm new with Struts. What's Struts-EL tags?
 Where can I find info please ?
 Thanks
 
 - Original Message -
 From: Wendy Smoak [EMAIL PROTECTED]
 
   I'm having the following problem.
   I need to display a radio button in a Jsp but the attribute
   value of this radio button must be set with the property of a
bean
  located in the request.
   How can I code that using struts tags only ?
   I tried the following but does not work.
   html:radio property=selection value=bean:write name=obj
  property=prop  /  /
 
  Can you use the Struts-EL tags?
  html:radio property=selection value=${obj.prop} /

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



c:out in tiles insert tag

2003-03-27 Thread Peter Smith
Hi all,

I am trying to insert a definition dynamically.  Right now, the following
works:

1: %
2: String selectedBody = body.tab1;
3: %
4: 
5: tiles:insert name=%= selectedBody % flush=true /

But I would like to use c:out instead of the scriptlet.  Here is what I have
been trying:

1: c:set var=selectedBody
2:   %= selectedBody %
3: /c:set
4: 
5: c:out value='${selectedBody}'/
6: 
7: tiles:insert name=c:out value='${selectedBody}'/ flush=true /

Line 6 prints body.tab1 correctly, but line 7 does not insert the
body.tab1 definition.  It appears the c:out is not being evaluated (I get
the same behavior if value='blah').

Any ideas?

Thanks, Peter



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



RE: Configuring Tiles + Validation + Modules

2003-03-27 Thread Niesen, Nathan
Again, all that example appears to show is that you can link from one module
to another. As far as I can tell, it does not show how to define a jsp page
containing a Struts html:form action=/myAction tag in on module and then
reuse that page from modules B, C, and D. The action mappings for myAction
would need to be defined in the config files for modules B, C, and D because
the forward pages would be different.

Here's as good an example as any that I can give in this medium:

/mapping/zoomControl.jsp
...
body
  html:form action=/zoom
html:text property=zoomLevel
  /html:form
/body
...

/orders-module/orderTracking.jsp
...
body
  jsp:include page=/mapping/mapViewer.jsp
  jsp:include page=/mapping/zoomControl.jsp
  ...order selection and action controls...
/body
...

/inventory-module/inventoryTracking.jsp
...
body
  ...product selection control...
  jsp:include page=/mapping/zoomControl.jsp
  jsp:include page=/mapping/mapViewer.jsp
/body
...

/WEB-INF/struts-config-inventory-module.xml
  ...
  action path=zoom type=ZoomAction name=zoomForm
forward name=success path=/inventory-module/inventoryTracking.jsp
  /action
  ...

/WEB-INF/struts-config-orders-module.xml
  ...
  action path=zoom type=ZoomAction name=zoomForm
forward name=success path=/orders-module/orderTracking.jsp
  /action
  ...


 -Original Message-
From:   Cedric Dumoulin [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 27, 2003 10:11 AM
To: Struts Users Mailing List
Subject:Re: Configuring Tiles + Validation + Modules



Niesen, Nathan wrote:

I basically have the same questions. I've been searching the user docs and
mailing lists trying to get a handle on what modules were intended to do,
what modules can and can't do, and how I can use modules to improve my
application framework. It appears to me that the modules feature opened up
a
whole can-o-design-worms and they're still wiggling. I can't find anything
that clearly defines intended usage of modules or the limitations of
modules; especially in regards to using resources outside of a modules
sub-directory.

In addition to John's questions, I have the following question:

1) How can I use tiles/templates to assemble a page in one module from
reusable components/pages in one or more other modules? For example: I
have pages in modules B, C, and D, that all want to pull in a menu page
from
my default module as well as a reusable page from module A.
  

  Tiles config file consider the url as absolute to the application. So, 
simply specify the absolute URL of your layout, page or tile.
  The tiles-documentation.war use 3 modules. You can check it for examples.

  Cedric

Other issues with modules:

1) Not all tags (html:img in particular) use the pagePattern or
forwardPattern attributes from the controller. If I want to use an image in
my header.jsp, the image file has to be physically located in each module
or
I get a broken link.

2) The pagePattern and forwardPattern are defined on the controller which
means all tag or forward URLs for the module will be mapped to the same
context relative URL. I think it would be more flexible if you simply
specified the pattern as part of the URL attribute for the tag or forward.
For example: html:img alt=get an image from the default module
page=$P/header.gif/ and html:img alt=get an image from the current
module page=$M$P/module.gif/

3) The examples don't effectively demonstrate the effects that the
contextRelative, inputForward, pagePattern, and forwardPattern attributes
have on the page, forward, action, and href attributes.

4) The examples only show how to switch from one self-contained module to
another. They don't demonstrate how to combine resources/pages from
multiple
modules into a single page via either includes or tiles/templates.

Thanks, Nathan.

 -Original Message-
From:  Hohlen, John C [mailto:[EMAIL PROTECTED] 
Sent:  Wednesday, March 26, 2003 8:20 AM
To:Struts-User (E-mail)
Subject:   Configuring Tiles + Validation + Modules

I'm looking for some help on how to configure the Tiles and Validation
Plug-Ins.  A lot of the good books (Struts In Action, Programming Jakarta
Struts, etc.) and replies to the mailing list address these topics
independently, but not collectively.  In addition, I took a look at James
Holmes Switching Modules example, but that focuses on the different ways
to switch b/t modules, not on how to configure Modules with Tiles and the
Validation frameworks. 

For discussion purposes, let's assume I have following 3 modules (default,
modA, modB).  Here are my questions:

1) If I have a form bean definition used by all 3 modules, does it need to
be defined in each of the 3 struts-config files, or can I just declare it
in
the default struts-config?

2) Does each modules' struts-config file need the following declaration to
use the Validation framework, or can I simply declare this once in 

how to strutsly send the user back to the last URL

2003-03-27 Thread Donald Ball
hi guys, got a very simple question. i've got a SaveAction which can be 
invoked via the url /Save.do from basically anywhere in my struts app. 
naturally, its mapping configuration is quite terse:

action path=/Save type=mypackage.SaveAction/

works fine, but here's the issue - at the end of the action, i want to 
send the user back to wherever they came from, maybe with a little save 
successful or save failed message. I can't do this:

return new ActionForward(mapping.getInput());

i get an npe when i try, presumably because i didn't declare an explicit 
input path for the action in struts-config. i can of course do this:

response.sendRedirect(request.getHeader(Referer));

(with appropriate failure condition if the browser doesn't send Referer 
headers) but that doesn't seem very strutsy. is there a recommended 
practice in this regard?

- donald

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


Re: c:out in tiles insert tag

2003-03-27 Thread David Graham
You can't use a tag as another tag's attribute value.

David



From: Peter Smith [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: c:out in tiles insert tag
Date: Thu, 27 Mar 2003 11:35:20 -0700
Hi all,

I am trying to insert a definition dynamically.  Right now, the following
works:
1: %
2: String selectedBody = body.tab1;
3: %
4:
5: tiles:insert name=%= selectedBody % flush=true /
But I would like to use c:out instead of the scriptlet.  Here is what I 
have
been trying:

1: c:set var=selectedBody
2:   %= selectedBody %
3: /c:set
4:
5: c:out value='${selectedBody}'/
6:
7: tiles:insert name=c:out value='${selectedBody}'/ flush=true /
Line 6 prints body.tab1 correctly, but line 7 does not insert the
body.tab1 definition.  It appears the c:out is not being evaluated (I get
the same behavior if value='blah').
Any ideas?

Thanks, Peter



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


_



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


RE: Map Backed Forms and File Upload

2003-03-27 Thread Brandon Goodin
Uhhh! Du! I forgot the enctype=multipart/form-data in my form tag.

Brandon Goodin

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 9:02 AM
To: Struts User List
Subject: Map Backed Forms and File Upload


Hey all,

I have a form with a map field called files:

protected HashMap files;

/**
 *
 */
public TestForm() {
this.files = new HashMap();
}

/**
 * @return HashMap
 */
public HashMap getFiles() {
return files;
}

/**
 * Sets the files.
 * @param files The files to set
 */
public void setFiles(HashMap files) {
this.files = files;
}
...
setFiles(HashMap map) {
}

In my form page I use the following input
html:file property=file(thumbnail)/
html:file property=file(fullsize)/

When I retrieve the object associated with the 'thumbnail' or 'fullsize' key
I get a String with the file path of my local computer?

The map does not hold FormFile objects?
I hope thats not true.

Brandon Goodin


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



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



RE: Configuring Tiles + Validation + Modules

2003-03-27 Thread Niesen, Nathan
I also wanted to mention... If I can only accomplish this using tiles, then
that indicates to me that something is wrong with the way modules were
designed.  I also noticed in the tiles examples that many of your URLs
contain %=request.getContextPath()%. This looks to me like you are
constantly having to override the URLs generated by the modules. I see that
as another design issue.

I admit I haven't fully explored the tiles-documentation.war but I do have
the following comments. The docs module lacks any documentation on how to
actually use tiles. Instead it is just a list of features and release notes
and is in fact identical to the welcome page. I think a user manual with
similar format and content to David Geary's templates article (Using JSP
templates to encapsulate Webpage layout and encourage modular design) would
be extremely beneficial. The left hand navigation on the main page is not
organized very well, it contains duplicate links with deferent names and
listed under different categories. The examples also contain a lot of script
which makes them hard to read. The blocks of script in the layouts (column,
vertical, etc...) and menu.jsp look like potential candidates for custom
tags.

Nathan.


 -Original Message-
From:   Niesen, Nathan  
Sent:   Thursday, March 27, 2003 12:32 PM
To: 'Cedric Dumoulin'; Struts Users Mailing List
Subject:RE: Configuring Tiles + Validation + Modules

Again, all that example appears to show is that you can link from one module
to another. As far as I can tell, it does not show how to define a jsp page
containing a Struts html:form action=/myAction tag in on module and then
reuse that page from modules B, C, and D. The action mappings for myAction
would need to be defined in the config files for modules B, C, and D because
the forward pages would be different.

Here's as good an example as any that I can give in this medium:

/mapping/zoomControl.jsp
...
body
  html:form action=/zoom
html:text property=zoomLevel
  /html:form
/body
...

/orders-module/orderTracking.jsp
...
body
  jsp:include page=/mapping/mapViewer.jsp
  jsp:include page=/mapping/zoomControl.jsp
  ...order selection and action controls...
/body
...

/inventory-module/inventoryTracking.jsp
...
body
  ...product selection control...
  jsp:include page=/mapping/zoomControl.jsp
  jsp:include page=/mapping/mapViewer.jsp
/body
...

/WEB-INF/struts-config-inventory-module.xml
  ...
  action path=zoom type=ZoomAction name=zoomForm
forward name=success path=/inventory-module/inventoryTracking.jsp
  /action
  ...

/WEB-INF/struts-config-orders-module.xml
  ...
  action path=zoom type=ZoomAction name=zoomForm
forward name=success path=/orders-module/orderTracking.jsp
  /action
  ...


 -Original Message-
From:   Cedric Dumoulin [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 27, 2003 10:11 AM
To: Struts Users Mailing List
Subject:Re: Configuring Tiles + Validation + Modules



Niesen, Nathan wrote:

I basically have the same questions. I've been searching the user docs and
mailing lists trying to get a handle on what modules were intended to do,
what modules can and can't do, and how I can use modules to improve my
application framework. It appears to me that the modules feature opened up
a
whole can-o-design-worms and they're still wiggling. I can't find anything
that clearly defines intended usage of modules or the limitations of
modules; especially in regards to using resources outside of a modules
sub-directory.

In addition to John's questions, I have the following question:

1) How can I use tiles/templates to assemble a page in one module from
reusable components/pages in one or more other modules? For example: I
have pages in modules B, C, and D, that all want to pull in a menu page
from
my default module as well as a reusable page from module A.
  

  Tiles config file consider the url as absolute to the application. So, 
simply specify the absolute URL of your layout, page or tile.
  The tiles-documentation.war use 3 modules. You can check it for examples.

  Cedric

Other issues with modules:

1) Not all tags (html:img in particular) use the pagePattern or
forwardPattern attributes from the controller. If I want to use an image in
my header.jsp, the image file has to be physically located in each module
or
I get a broken link.

2) The pagePattern and forwardPattern are defined on the controller which
means all tag or forward URLs for the module will be mapped to the same
context relative URL. I think it would be more flexible if you simply
specified the pattern as part of the URL attribute for the tag or forward.
For example: html:img alt=get an image from the default module
page=$P/header.gif/ and html:img alt=get an image from the current
module page=$M$P/module.gif/

3) The examples don't effectively demonstrate the effects that the
contextRelative, 

Updated our web site

2003-03-27 Thread James Mitchell

Ok, the web site has been updated with next month's meeting
date/time/location.  Please review and let me know if I screwed
something up or if something is not clear.


-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



RE: Configuring Tiles + Validation + Modules

2003-03-27 Thread Niesen, Nathan
My mistake on the lack user manual, I forgot about the PDF and the JavaWorld
article links on the docs page. My real beef is that they are not just
included as part of the Struts download.

 -Original Message-
From:   Niesen, Nathan  
Sent:   Thursday, March 27, 2003 1:17 PM
To: 'Cedric Dumoulin'; Struts Users Mailing List
Subject:RE: Configuring Tiles + Validation + Modules

I also wanted to mention... If I can only accomplish this using tiles, then
that indicates to me that something is wrong with the way modules were
designed.  I also noticed in the tiles examples that many of your URLs
contain %=request.getContextPath()%. This looks to me like you are
constantly having to override the URLs generated by the modules. I see that
as another design issue.

I admit I haven't fully explored the tiles-documentation.war but I do have
the following comments. The docs module lacks any documentation on how to
actually use tiles. Instead it is just a list of features and release notes
and is in fact identical to the welcome page. I think a user manual with
similar format and content to David Geary's templates article (Using JSP
templates to encapsulate Webpage layout and encourage modular design) would
be extremely beneficial. The left hand navigation on the main page is not
organized very well, it contains duplicate links with deferent names and
listed under different categories. The examples also contain a lot of script
which makes them hard to read. The blocks of script in the layouts (column,
vertical, etc...) and menu.jsp look like potential candidates for custom
tags.

Nathan.


 -Original Message-
From:   Niesen, Nathan  
Sent:   Thursday, March 27, 2003 12:32 PM
To: 'Cedric Dumoulin'; Struts Users Mailing List
Subject:RE: Configuring Tiles + Validation + Modules

Again, all that example appears to show is that you can link from one module
to another. As far as I can tell, it does not show how to define a jsp page
containing a Struts html:form action=/myAction tag in on module and then
reuse that page from modules B, C, and D. The action mappings for myAction
would need to be defined in the config files for modules B, C, and D because
the forward pages would be different.

Here's as good an example as any that I can give in this medium:

/mapping/zoomControl.jsp
...
body
  html:form action=/zoom
html:text property=zoomLevel
  /html:form
/body
...

/orders-module/orderTracking.jsp
...
body
  jsp:include page=/mapping/mapViewer.jsp
  jsp:include page=/mapping/zoomControl.jsp
  ...order selection and action controls...
/body
...

/inventory-module/inventoryTracking.jsp
...
body
  ...product selection control...
  jsp:include page=/mapping/zoomControl.jsp
  jsp:include page=/mapping/mapViewer.jsp
/body
...

/WEB-INF/struts-config-inventory-module.xml
  ...
  action path=zoom type=ZoomAction name=zoomForm
forward name=success path=/inventory-module/inventoryTracking.jsp
  /action
  ...

/WEB-INF/struts-config-orders-module.xml
  ...
  action path=zoom type=ZoomAction name=zoomForm
forward name=success path=/orders-module/orderTracking.jsp
  /action
  ...


 -Original Message-
From:   Cedric Dumoulin [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 27, 2003 10:11 AM
To: Struts Users Mailing List
Subject:Re: Configuring Tiles + Validation + Modules



Niesen, Nathan wrote:

I basically have the same questions. I've been searching the user docs and
mailing lists trying to get a handle on what modules were intended to do,
what modules can and can't do, and how I can use modules to improve my
application framework. It appears to me that the modules feature opened up
a
whole can-o-design-worms and they're still wiggling. I can't find anything
that clearly defines intended usage of modules or the limitations of
modules; especially in regards to using resources outside of a modules
sub-directory.

In addition to John's questions, I have the following question:

1) How can I use tiles/templates to assemble a page in one module from
reusable components/pages in one or more other modules? For example: I
have pages in modules B, C, and D, that all want to pull in a menu page
from
my default module as well as a reusable page from module A.
  

  Tiles config file consider the url as absolute to the application. So, 
simply specify the absolute URL of your layout, page or tile.
  The tiles-documentation.war use 3 modules. You can check it for examples.

  Cedric

Other issues with modules:

1) Not all tags (html:img in particular) use the pagePattern or
forwardPattern attributes from the controller. If I want to use an image in
my header.jsp, the image file has to be physically located in each module
or
I get a broken link.

2) The pagePattern and forwardPattern are defined on the controller which
means all tag or forward URLs for the module will be mapped to the same

Re: Updated our web site

2003-03-27 Thread James Mitchell
On Thu, 2003-03-27 at 14:33, James Mitchell wrote:
 
 Ok, the web site has been updated with next month's meeting
 date/time/location.  Please review and let me know if I screwed
 something up or if something is not clear.

Oops, that was meant for a different list.  Sorry.

 
 
 -- 
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.open-tools.org
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org




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



RE: [OT] Contract Work: Going Rate?

2003-03-27 Thread Sterin, Ilya
30*3000 is more than your whole entire career earnings?  Where are you from?
India? Russia?

In US that's an average developer contract salary, and $30/hour is a charge
that most contractors will laugh at here.

Ilya

-Original Message-
From: Andrew Hill
To: Struts Users Mailing List
Sent: 3/27/03 1:32 AM
Subject: RE: [OT] Contract Work: Going Rate?

These are USD per HOUR?

Crikey! You could retire after a couple of years on that!
Nah that cant be right. I did a bit under 3000 hours last year, multiply
by
30 and convert to local currency adds up to more than Ive earned in my
whole
working life (4+ years). A lot more...

Are those fair dinkum rates or are you just having us on?

Five weeks holiday??? OT pay???

Yeh. Thought so. Its a joke. hehe. You had me going there mate!

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 16:08
To: Struts Users Mailing List
Subject: Re: [OT] Contract Work: Going Rate?


These are some going full time rates for a London based e-learning
company,
for an average of 1880 hrs worked in one year (Five weeks holiday not
included in the figures, but you'd get the same rate).  The company pays
OT
on projects that need it, but actually limit the number of hours in a
week
that an employee can be in the office. (Something about a work/life
balance,
whatver than means :-)

All in US dollars (converted from blighty pounds)

Grade one (Whipping boy) - 30$
Grade two (Code monkey) - 40$
Grade three (Designer) - 55$
Grade four (Architect) - 90$
Grade five (Senior Architect) - 150$

These don't include the options and bonuses (last xmas bonus ranged from
500$ to 6000$) and the OT isn't in there (Usually 1.5*hourly
week-day/sat --
2*hourly sun).

Contractor have to pay all the insurance and stuff, so I'd dap about
22-40%
on top of each of these + a little extra if your gonna have to live in
an
expensive part of town.

NOTE to the lawer.  It only becomes illegal if it can be proven that we
have
set a level of pay *and* have all agreed to follow this level.  If
you've
been on here long enough, you'd know *noone* ever agrees about
anything!!
=]:0)

Good luck with the job, I hear California is nice this time of year!!

Cheers

Simon


- Original Message -
From: Micael [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
'Struts
Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 8:08 AM
Subject: RE: [OT] Contract Work: Going Rate?


 I hope you know that my prior response that the lawyer should be fired
was
 not aimed at you, Tammy.  I appreciate your assistance.  I think it is
 really funny, however, that a lawyer would actually associate what we
are
 doing with antitrust behavior.  Heck, I feel bigger and better
 now.  LOL!  That lawyer needs to get the tune to match the lyrics.

 At 08:49 PM 3/26/03 -0800, Tammy Cravit wrote:
   general landscape well (Tomcat, Struts, Ant, etc., etc., with
Linux,
   scripting, various databases, etc.).  What would a reasonable
request
   be?  Thanks.
 
 First of all, I would caution about asking questions like this on a
 mailing list, as the discussion of hourly rates and stuff came up on
 another list I belong to and the moderators there obtained an opinion
 from a lawyer that discussing pricing in terms of specific dollar
 amounts in a group like this could be deemed price-fixing by the
courts,
 which is illegal.
 
 That having been said, one common rule of thumb seems to be to divide
 your annual salary as an employee by 1000, and using that as a
starting
 point for figuring out your hourly rate. Obviously you'd need to
adjust
 that for your local market, but that's not a bad starting point.
 
 Tammy
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 LEGAL NOTICE

 This electronic mail  transmission and any accompanying documents
contain
 information belonging to the sender which may be confidential and
legally
 privileged.  This information is intended only for the use of the
 individual or entity to whom this electronic mail transmission was
sent as
 indicated above. If you are not the intended recipient, any
disclosure,
 copying, distribution, or action taken in reliance on the contents of
the
 information contained in this transmission is strictly prohibited.  If
you
 have received this transmission in error, please delete the message.
Thank
 you



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




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


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

Re: validate= true destroys form defaults

2003-03-27 Thread Carsten Hammer
I found out that that with validate=true the mydispatchaction *never* is 
called.
The requestprocessor instanciates the actionform calls the reset() and 
validate() methods of the actionform. The validate() methods gives an 
error because nothing has been filled in. It does not call the 
dispatchaction so no chance to call the actionform setter methods.

Of course everything works (without validation) as soon as I switch off 
validation. At the moment this validation feature looks - hmm - at least 
*strange* to me...

Best regards,
Carsten Hammer


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


OT: E-commerce packages that support MVC

2003-03-27 Thread tmassey
Hello!

I have spent the last month or so evaluating e-commerce software packages. 
 I'm a longtime Net.Commerce / WebSphere Commerce Suite user,  but the 
software has just gotten too costly for me to stay with it.  I've searched 
exhaustively for e-commerce servers that are based on MVC principles and I 
have found very, very few.

If anyone on the list is aware of such a package I would be greatly 
interested.  It does not have to be OpenSource or free, though having 
access to the source code is a big plus.  It doesn't even have to be 
Struts-based:  just a framework that separates business and presentation 
logic.  Most importantly, I am looking for an actual product, one for 
which there is service and maintenance.  I am not overly interested in 
rolling my own, though from the way the search has gone so far, it just 
might be easier...

Please contact me off-list.  I have a feeling I'm fairly far off-topic, 
and I hope to keep the intrusion to a minimum.  I hope that this request 
is not inappropriate.

Tim Massey


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



struts 1.1 with Iplanet App server 6.0 SP4

2003-03-27 Thread Miriam Aguirre


 Has anyone gotten this to work ? I keep getting the following stack trace
when deploying the struts-example or struts-upload web applications using
iplanet's deployment tool.

 of course, iplanet is working fine with struts 1.0.2.

 Any ideas ?


 [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException: org.apache.s
truts.util.PropertyMessageResourcesFactoryjava.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResou
rcesFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:182)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1276)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Unkn
own Source)
at
com.netscape.server.servlet.servletrunner.ServletRepository.createInstance(U
nknown Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(Un
known Source)
at
com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.AppInfo.resetServlets(Unknown
Source)
at com.netscape.server.servlet.servletrunner.AppInfo.init(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletModule.getPlatformServletCo
ntext(Unknown Source)
at
com.netscape.server.servlet.platformhttp.PlatformServletContext.getContext(U
nknown Source)
at
com.netscape.server.servlet.servletrunner.WelcomeListServlet.doJSPInclude(Un
known Source)
at
com.netscape.server.servlet.servletrunner.WelcomeListServlet.streamFileToCli
ent(Unknown Source)
at
com.netscape.server.servlet.servletrunner.WelcomeListServlet.service(Unknown
Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)

[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
java.lang.ExceptionInInitializerErrorjava.lan
g.ExceptionInInitializerError: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1276)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Unkn
own Source)
at
com.netscape.server.servlet.servletrunner.ServletRepository.createInstance(U
nknown Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(Un
known Source)
at
com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.AppInfo.resetServlets(Unknown
Source)
at com.netscape.server.servlet.servletrunner.AppInfo.init(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletModule.getPlatformServletCo
ntext(Unknown Source)
at

how to invoke the action servlet?

2003-03-27 Thread Dan Tarkenton

I have been referencing the book Struts in Action by Ted Husted as well as the struts 
site. I cannot figure out what to point my browser to in order to invoke struts. I 
have zero JSPs in my struts application -- I have no need for them because I am 
utilizing Model X where I have one XSLT servlet that represents my entire view layer. 
I thought I could just point my browser to http://localhost:8080/ginsu (ginsu being 
the name of my web app). I realize I have no index.html or index.jsp, but I'm just 
trying to go directly to the action servlet from the browser. 

Is this not possible in struts? 


Here is my struts-config file: 


snippet 
?xml version=1.0 encoding=ISO-8859-1 ? 
!DOCTYPE struts-config PUBLIC 
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN 
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; 
struts-config 
!-- == Form Bean Definitions === -- 
form-beans 

!-- Example logon form bean 
form-bean name=logonForm 
type=org.apache.struts.example.LogonForm/ 
-- 
form-bean name=contentForm type=ginsu.ContentForm / 

/form-beans 

!-- == Global Forward Definitions == -- 
global-forwards 
!-- Example logon forward 
forward name=logon path=/logon.jsp/ 
-- 
/global-forwards 
!-- == Action Mapping Definitions == -- 
action-mappings 

action path=/ginsu 
type=ginsu.ContentAction 
name=contentForm 
!-- we want the xslServlet forward path attribute to point to XSL Servlet -- 
forward name=xslServlet path=/XSLServlet / 
/action 

action path=/admin/addFormBean 
type=org.apache.struts.actions.AddFormBeanAction/ 
action path=/admin/addForward 
type=org.apache.struts.actions.AddForwardAction/ 
action path=/admin/addMapping 
type=org.apache.struts.actions.AddMappingAction/ 
action path=/admin/reload 
type=org.apache.struts.actions.ReloadAction/ 
action path=/admin/removeFormBean 
type=org.apache.struts.actions.RemoveFormBeanAction/ 
action path=/admin/removeForward 
type=org.apache.struts.actions.RemoveForwardAction/ 
action path=/admin/removeMapping 
type=org.apache.struts.actions.RemoveMappingAction/ 
/action-mappings 
/struts-config 

/snippet


And here is my web.xml file: 


?xml version=1.0 encoding=ISO-8859-1? 

!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; 

web-app 
!-- Standard Action Servlet Configuration (with debugging) -- 
servlet 
servlet-nameaction/servlet-name 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
init-param 
param-nameconfig/param-name 
param-value/WEB-INF/struts-config.xml/param-value 
/init-param 
init-param 
param-namedebug/param-name 
param-value2/param-value 
/init-param 
init-param 
param-namedetail/param-name 
param-value2/param-value 
/init-param 
load-on-startup2/load-on-startup 
/servlet 
!-- XSLT Servlet (View component)-- 
servlet 
servlet-nameXSLServlet/servlet-name 
servlet-classginsu.XSLServlet/servlet-class 
!-- init-param 
param-namexsl-file/param-name 
param-value/WEB-INF/test.xsl/param-value 
/init-param 
load-on-startup1/load-on-startup -- 
/servlet 

!-- XSLTServlet Mapping -- 
servlet-mapping 
servlet-nameXSLServlet/servlet-name 
url-pattern/XSLServlet/url-pattern 
/servlet-mapping 

!-- Struts Action Servlet Mapping -- 
servlet-mapping 
servlet-nameaction/servlet-name 
url-pattern*.do/url-pattern 
/servlet-mapping 



!-- The Usual Welcome File List -- 
welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


!-- Struts Tag Library Descriptors -- 
taglib 
taglib-uri/tags/struts-bean/taglib-uri 
taglib-location/WEB-INF/struts-bean.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-html/taglib-uri 
taglib-location/WEB-INF/struts-html.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-logic/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-nested/taglib-uri 
taglib-location/WEB-INF/struts-nested.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-tiles/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

/web-app 
/snippet 


I noticed that there is an element: 


welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


Is this an absolutely necessary element in the web.xml file? I figure the index.jsp 
would just contain a redirect to the action servlet. 


Any help is appreciated. Thanks!



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

RE: how to invoke the action servlet?

2003-03-27 Thread Miriam Aguirre
why don;t you make your welcome-file the default action ? ginsu.do or
whatever it is you are trying to invoke...

-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 12:32 PM
To: [EMAIL PROTECTED]
Subject: how to invoke the action servlet?



I have been referencing the book Struts in Action by Ted Husted as well as
the struts site. I cannot figure out what to point my browser to in order to
invoke struts. I have zero JSPs in my struts application -- I have no need
for them because I am utilizing Model X where I have one XSLT servlet that
represents my entire view layer. I thought I could just point my browser to
http://localhost:8080/ginsu (ginsu being the name of my web app). I realize
I have no index.html or index.jsp, but I'm just trying to go directly to the
action servlet from the browser. 

Is this not possible in struts? 


Here is my struts-config file: 


snippet 
?xml version=1.0 encoding=ISO-8859-1 ? 
!DOCTYPE struts-config PUBLIC 
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN 
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; 
struts-config 
!-- == Form Bean Definitions ===
-- 
form-beans 

!-- Example logon form bean 
form-bean name=logonForm 
type=org.apache.struts.example.LogonForm/ 
-- 
form-bean name=contentForm type=ginsu.ContentForm / 

/form-beans 

!-- == Global Forward Definitions ==
-- 
global-forwards 
!-- Example logon forward 
forward name=logon path=/logon.jsp/ 
-- 
/global-forwards 
!-- == Action Mapping Definitions ==
-- 
action-mappings 

action path=/ginsu 
type=ginsu.ContentAction 
name=contentForm 
!-- we want the xslServlet forward path attribute to point to XSL Servlet
-- 
forward name=xslServlet path=/XSLServlet / 
/action 

action path=/admin/addFormBean 
type=org.apache.struts.actions.AddFormBeanAction/ 
action path=/admin/addForward 
type=org.apache.struts.actions.AddForwardAction/ 
action path=/admin/addMapping 
type=org.apache.struts.actions.AddMappingAction/ 
action path=/admin/reload 
type=org.apache.struts.actions.ReloadAction/ 
action path=/admin/removeFormBean 
type=org.apache.struts.actions.RemoveFormBeanAction/ 
action path=/admin/removeForward 
type=org.apache.struts.actions.RemoveForwardAction/ 
action path=/admin/removeMapping 
type=org.apache.struts.actions.RemoveMappingAction/ 
/action-mappings 
/struts-config 

/snippet


And here is my web.xml file: 


?xml version=1.0 encoding=ISO-8859-1? 

!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; 

web-app 
!-- Standard Action Servlet Configuration (with debugging) -- 
servlet 
servlet-nameaction/servlet-name 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
init-param 
param-nameconfig/param-name 
param-value/WEB-INF/struts-config.xml/param-value 
/init-param 
init-param 
param-namedebug/param-name 
param-value2/param-value 
/init-param 
init-param 
param-namedetail/param-name 
param-value2/param-value 
/init-param 
load-on-startup2/load-on-startup 
/servlet 
!-- XSLT Servlet (View component)-- 
servlet 
servlet-nameXSLServlet/servlet-name 
servlet-classginsu.XSLServlet/servlet-class 
!-- init-param 
param-namexsl-file/param-name 
param-value/WEB-INF/test.xsl/param-value 
/init-param 
load-on-startup1/load-on-startup -- 
/servlet 

!-- XSLTServlet Mapping -- 
servlet-mapping 
servlet-nameXSLServlet/servlet-name 
url-pattern/XSLServlet/url-pattern 
/servlet-mapping 

!-- Struts Action Servlet Mapping -- 
servlet-mapping 
servlet-nameaction/servlet-name 
url-pattern*.do/url-pattern 
/servlet-mapping 



!-- The Usual Welcome File List -- 
welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


!-- Struts Tag Library Descriptors -- 
taglib 
taglib-uri/tags/struts-bean/taglib-uri 
taglib-location/WEB-INF/struts-bean.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-html/taglib-uri 
taglib-location/WEB-INF/struts-html.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-logic/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-nested/taglib-uri 
taglib-location/WEB-INF/struts-nested.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-tiles/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

/web-app 
/snippet 


I noticed that there is an element: 


welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


Is this an absolutely necessary element in the web.xml file? I figure the
index.jsp would just contain a redirect to the action servlet. 


Any help is appreciated. Thanks!



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

-
To 

RE: struts 1.1 with Iplanet App server 6.0 SP4

2003-03-27 Thread Pingili, Madhupal
I got those same errors while I tried to run struts-validator example
application came with
struts 1.1 RC1 in Tomcat 3.2.4 container.

 -Original Message-
 From: Miriam Aguirre [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 3:28 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  struts 1.1 with Iplanet App server 6.0 SP4
 
 
 
  Has anyone gotten this to work ? I keep getting the following stack trace
 when deploying the struts-example or struts-upload web applications using
 iplanet's deployment tool.
 
  of course, iplanet is working fine with struts 1.0.2.
 
  Any ideas ?
 
 
  [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
 java.lang.ClassNotFoundException: org.apache.s
 truts.util.PropertyMessageResourcesFactoryjava.lang.ClassNotFoundExceptio
 n:
 org.apache.struts.util.PropertyMessageResou
 rcesFactory
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at
 org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:182
 )
 at
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
 ce
 sFactory.java:192)
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:576)
 at
 org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
 at
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
 ce
 sFactory.java:192)
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:576)
 at
 org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:127
 6)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Un
 kn
 own Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRepository.createInstance
 (U
 nknown Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(
 Un
 known Source)
 at
 com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.AppInfo.resetServlets(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.AppInfo.init(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.ServletModule.getPlatformServlet
 Co
 ntext(Unknown Source)
 at
 com.netscape.server.servlet.platformhttp.PlatformServletContext.getContext
 (U
 nknown Source)
 at
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.doJSPInclude(
 Un
 known Source)
 at
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.streamFileToC
 li
 ent(Unknown Source)
 at
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.service(Unkno
 wn
 Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
 com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
 Source)
 at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
 at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
 at com.kivasoft.thread.ThreadBasic.run(Native Method)
 at java.lang.Thread.run(Thread.java:479)
 
 [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
 java.lang.ExceptionInInitializerErrorjava.lan
 g.ExceptionInInitializerError: java.lang.NullPointerException
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:577)
 at
 org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
 at
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
 ce
 sFactory.java:192)
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:576)
 at
 org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:127
 6)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Un
 kn
 own Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRepository.createInstance
 (U
 nknown Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(
 Un
 

RE: how to invoke the action servlet?

2003-03-27 Thread Jagadeesan,Sivakumar
try 
http://localhost:8080/ginsu/ginsu

-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: how to invoke the action servlet?



I have been referencing the book Struts in Action by Ted Husted as well as
the struts site. I cannot figure out what to point my browser to in order to
invoke struts. I have zero JSPs in my struts application -- I have no need
for them because I am utilizing Model X where I have one XSLT servlet that
represents my entire view layer. I thought I could just point my browser to
http://localhost:8080/ginsu (ginsu being the name of my web app). I realize
I have no index.html or index.jsp, but I'm just trying to go directly to the
action servlet from the browser. 

Is this not possible in struts? 


Here is my struts-config file: 


snippet 
?xml version=1.0 encoding=ISO-8859-1 ? 
!DOCTYPE struts-config PUBLIC 
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN 
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; 
struts-config 
!-- == Form Bean Definitions ===
-- 
form-beans 

!-- Example logon form bean 
form-bean name=logonForm 
type=org.apache.struts.example.LogonForm/ 
-- 
form-bean name=contentForm type=ginsu.ContentForm / 

/form-beans 

!-- == Global Forward Definitions ==
-- 
global-forwards 
!-- Example logon forward 
forward name=logon path=/logon.jsp/ 
-- 
/global-forwards 
!-- == Action Mapping Definitions ==
-- 
action-mappings 

action path=/ginsu 
type=ginsu.ContentAction 
name=contentForm 
!-- we want the xslServlet forward path attribute to point to XSL Servlet
-- 
forward name=xslServlet path=/XSLServlet / 
/action 

action path=/admin/addFormBean 
type=org.apache.struts.actions.AddFormBeanAction/ 
action path=/admin/addForward 
type=org.apache.struts.actions.AddForwardAction/ 
action path=/admin/addMapping 
type=org.apache.struts.actions.AddMappingAction/ 
action path=/admin/reload 
type=org.apache.struts.actions.ReloadAction/ 
action path=/admin/removeFormBean 
type=org.apache.struts.actions.RemoveFormBeanAction/ 
action path=/admin/removeForward 
type=org.apache.struts.actions.RemoveForwardAction/ 
action path=/admin/removeMapping 
type=org.apache.struts.actions.RemoveMappingAction/ 
/action-mappings 
/struts-config 

/snippet


And here is my web.xml file: 


?xml version=1.0 encoding=ISO-8859-1? 

!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; 

web-app 
!-- Standard Action Servlet Configuration (with debugging) -- 
servlet 
servlet-nameaction/servlet-name 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
init-param 
param-nameconfig/param-name 
param-value/WEB-INF/struts-config.xml/param-value 
/init-param 
init-param 
param-namedebug/param-name 
param-value2/param-value 
/init-param 
init-param 
param-namedetail/param-name 
param-value2/param-value 
/init-param 
load-on-startup2/load-on-startup 
/servlet 
!-- XSLT Servlet (View component)-- 
servlet 
servlet-nameXSLServlet/servlet-name 
servlet-classginsu.XSLServlet/servlet-class 
!-- init-param 
param-namexsl-file/param-name 
param-value/WEB-INF/test.xsl/param-value 
/init-param 
load-on-startup1/load-on-startup -- 
/servlet 

!-- XSLTServlet Mapping -- 
servlet-mapping 
servlet-nameXSLServlet/servlet-name 
url-pattern/XSLServlet/url-pattern 
/servlet-mapping 

!-- Struts Action Servlet Mapping -- 
servlet-mapping 
servlet-nameaction/servlet-name 
url-pattern*.do/url-pattern 
/servlet-mapping 



!-- The Usual Welcome File List -- 
welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


!-- Struts Tag Library Descriptors -- 
taglib 
taglib-uri/tags/struts-bean/taglib-uri 
taglib-location/WEB-INF/struts-bean.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-html/taglib-uri 
taglib-location/WEB-INF/struts-html.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-logic/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-nested/taglib-uri 
taglib-location/WEB-INF/struts-nested.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-tiles/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

/web-app 
/snippet 


I noticed that there is an element: 


welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


Is this an absolutely necessary element in the web.xml file? I figure the
index.jsp would just contain a redirect to the action servlet. 


Any help is appreciated. Thanks!



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

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

nested:radio does not support idName property?

2003-03-27 Thread Chris Butler
Hey folks,

I was looking for a way which would allow a nested radio button to pass
along a value of a bean.  The below example has a list of answer groups,
each of which answer group should have a selected answer.

nested:iterate id=tmpAnswerGroup property=answerGroupList
 nested:radio idName=tmpAnswerGroup 
   property=selectedAnswerId 
   value=selectedAnswerId /
 /nested:iterate

For some reason the nested:radio tag doesn't support idName.  Is
this just an oversight?  Also, value cannot be omitted based on the
html:radio definition, so I imagine the above looks a little bit
redundant by specifying the selectedAnswerId twice.

Note: if I leave out idName, the jsp does not interpret the value as a
bean-related field, but interprets it as a literal value.

Thoughts?

Chris

PS: have tested more complex behavior of nested:iterate and tiles bug
that is in bugzilla and will update the bug report as requested.

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



Re: how to invoke the action servlet?

2003-03-27 Thread Craig R. McClanahan


On Thu, 27 Mar 2003, Dan Tarkenton wrote:

 Date: Thu, 27 Mar 2003 12:32:09 -0800 (PST)
 From: Dan Tarkenton [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: how to invoke the action servlet?


 I have been referencing the book Struts in Action by Ted Husted as well
 as the struts site. I cannot figure out what to point my browser to in
 order to invoke struts. I have zero JSPs in my struts application -- I
 have no need for them because I am utilizing Model X where I have one
 XSLT servlet that represents my entire view layer. I thought I could
 just point my browser to http://localhost:8080/ginsu (ginsu being the
 name of my web app). I realize I have no index.html or index.jsp, but
 I'm just trying to go directly to the action servlet from the browser.

 Is this not possible in struts?


The URL of an action is composed like this:

  http://${hostname}:${portnumber}${contextpath}${actionpath}

So, if you install your webapp at context path /ginsu, and you want to
invoke the action with a path of /ginsu (which appears to be the only
one you've defined), the URL would be:

  http://localhost:8080/ginsu/ginsu.do

since you are using extension mapping.  The first part (/ginsu) selects
which web application, while the rest (/ginsu.do) selects the action.

Craig

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



RE: how to invoke the action servlet?

2003-03-27 Thread Hajratwala, Nayan (N.)
I think you'll want to go to http://localhost:8080/ginsu/ginsu.do

The first ginsu is the name of your webapp, the second ginsu.do part will invoke 
the ActionServlet.  This is because your web.xml indicates that anything with *.do 
should go to the ActionServlet.

The ActionServlet will check the struts-config.xml file and see that since you are 
looking for ginsu.do, it should find the action named ginsu, which is your first 
defined action-mapping.

Hope this helps!

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


-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 3:32 PM
To: [EMAIL PROTECTED]
Subject: how to invoke the action servlet?



I have been referencing the book Struts in Action by Ted Husted as well as the struts 
site. I cannot figure out what to point my browser to in order to invoke struts. I 
have zero JSPs in my struts application -- I have no need for them because I am 
utilizing Model X where I have one XSLT servlet that represents my entire view layer. 
I thought I could just point my browser to http://localhost:8080/ginsu (ginsu being 
the name of my web app). I realize I have no index.html or index.jsp, but I'm just 
trying to go directly to the action servlet from the browser. 

Is this not possible in struts? 


Here is my struts-config file: 


snippet 
?xml version=1.0 encoding=ISO-8859-1 ? 
!DOCTYPE struts-config PUBLIC 
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN 
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; 
struts-config 
!-- == Form Bean Definitions === -- 
form-beans 

!-- Example logon form bean 
form-bean name=logonForm 
type=org.apache.struts.example.LogonForm/ 
-- 
form-bean name=contentForm type=ginsu.ContentForm / 

/form-beans 

!-- == Global Forward Definitions == -- 
global-forwards 
!-- Example logon forward 
forward name=logon path=/logon.jsp/ 
-- 
/global-forwards 
!-- == Action Mapping Definitions == -- 
action-mappings 

action path=/ginsu 
type=ginsu.ContentAction 
name=contentForm 
!-- we want the xslServlet forward path attribute to point to XSL Servlet -- 
forward name=xslServlet path=/XSLServlet / 
/action 

action path=/admin/addFormBean 
type=org.apache.struts.actions.AddFormBeanAction/ 
action path=/admin/addForward 
type=org.apache.struts.actions.AddForwardAction/ 
action path=/admin/addMapping 
type=org.apache.struts.actions.AddMappingAction/ 
action path=/admin/reload 
type=org.apache.struts.actions.ReloadAction/ 
action path=/admin/removeFormBean 
type=org.apache.struts.actions.RemoveFormBeanAction/ 
action path=/admin/removeForward 
type=org.apache.struts.actions.RemoveForwardAction/ 
action path=/admin/removeMapping 
type=org.apache.struts.actions.RemoveMappingAction/ 
/action-mappings 
/struts-config 

/snippet


And here is my web.xml file: 


?xml version=1.0 encoding=ISO-8859-1? 

!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; 

web-app 
!-- Standard Action Servlet Configuration (with debugging) -- 
servlet 
servlet-nameaction/servlet-name 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class 
init-param 
param-nameconfig/param-name 
param-value/WEB-INF/struts-config.xml/param-value 
/init-param 
init-param 
param-namedebug/param-name 
param-value2/param-value 
/init-param 
init-param 
param-namedetail/param-name 
param-value2/param-value 
/init-param 
load-on-startup2/load-on-startup 
/servlet 
!-- XSLT Servlet (View component)-- 
servlet 
servlet-nameXSLServlet/servlet-name 
servlet-classginsu.XSLServlet/servlet-class 
!-- init-param 
param-namexsl-file/param-name 
param-value/WEB-INF/test.xsl/param-value 
/init-param 
load-on-startup1/load-on-startup -- 
/servlet 

!-- XSLTServlet Mapping -- 
servlet-mapping 
servlet-nameXSLServlet/servlet-name 
url-pattern/XSLServlet/url-pattern 
/servlet-mapping 

!-- Struts Action Servlet Mapping -- 
servlet-mapping 
servlet-nameaction/servlet-name 
url-pattern*.do/url-pattern 
/servlet-mapping 



!-- The Usual Welcome File List -- 
welcome-file-list 
welcome-fileindex.jsp/welcome-file 
/welcome-file-list 


!-- Struts Tag Library Descriptors -- 
taglib 
taglib-uri/tags/struts-bean/taglib-uri 
taglib-location/WEB-INF/struts-bean.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-html/taglib-uri 
taglib-location/WEB-INF/struts-html.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-logic/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-nested/taglib-uri 
taglib-location/WEB-INF/struts-nested.tld/taglib-location 
/taglib 

taglib 
taglib-uri/tags/struts-tiles/taglib-uri 
taglib-location/WEB-INF/struts-logic.tld/taglib-location 
/taglib 

/web-app 
/snippet 


I noticed that there is an element: 



Actions based on Role

2003-03-27 Thread Jagadeesan,Sivakumar
I have web application where users could of three types (Roles)

1) Basic User
2) Silver User
3) Gold User

According to Type / Role of user some actions could be performed or not
performed.

I could set in my stuts-config.xml, the role based access in Action Element 

I am having my own authentication System that uses the database . The User
table has the userName and also the Role.

I am not sure how could I create a Role that the Action is expecting , if I
am using my own authentication

Thanx
--Siva Jagadeesan

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



Re: how to invoke the action servlet?

2003-03-27 Thread Dan Tarkenton
Ah, I am sorry.  I forgot to mention that I had tried
different combinations of URLs.  I did try
http://localhost:8080/ginsu/ginsu.do and I get the
same tomcat error as when I enter
http://localhost:8080/ginsu .

I also realize how vague I was.  I'll try to be more
specific:  I am using Tomcat 4.1.18, and I get a 404
with a description of The requested resource is not
available when I try these different URLs. 

I went back to my %CATALINA_HOME%/webapp/ginsu
directory and discovered that my struts-config.xml
file was there.  I think this is incorrect.

The web.xml file and the struts-config.xml file both
need to reside in my
%CATALINA_HOME%/webapps/ginsu/WEB-INF directory,
correct?

So I moved the slide-config.xml to the web-inf
directory and restarted tomcat and received the same
results.

Any further thought?

Thanks again, and I appreciate the fast responses.
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Thu, 27 Mar 2003, Dan Tarkenton wrote:
 
  Date: Thu, 27 Mar 2003 12:32:09 -0800 (PST)
  From: Dan Tarkenton [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: how to invoke the action servlet?
 
 
  I have been referencing the book Struts in Action
 by Ted Husted as well
  as the struts site. I cannot figure out what to
 point my browser to in
  order to invoke struts. I have zero JSPs in my
 struts application -- I
  have no need for them because I am utilizing Model
 X where I have one
  XSLT servlet that represents my entire view layer.
 I thought I could
  just point my browser to
 http://localhost:8080/ginsu (ginsu being the
  name of my web app). I realize I have no
 index.html or index.jsp, but
  I'm just trying to go directly to the action
 servlet from the browser.
 
  Is this not possible in struts?
 
 
 The URL of an action is composed like this:
 
  

http://${hostname}:${portnumber}${contextpath}${actionpath}
 
 So, if you install your webapp at context path
 /ginsu, and you want to
 invoke the action with a path of /ginsu (which
 appears to be the only
 one you've defined), the URL would be:
 
   http://localhost:8080/ginsu/ginsu.do
 
 since you are using extension mapping.  The first
 part (/ginsu) selects
 which web application, while the rest (/ginsu.do)
 selects the action.
 
 Craig
 

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: how to invoke the action servlet?

2003-03-27 Thread Hajratwala, Nayan (N.)
You are correct about the file location...  I'm assuming you meant struts-config.xml 
and not slide-config.xml .. I'm not sure if it matters, but be sure the directory is 
WEB-INF, not web-inf.

My suggestion to you would be to try and get the struts-example.war running ...

Just put the war file in your webapps directory (or unjar it there), then try to run 
the example.  If that works, you can slowly integrate your code into that webapp.  
Surely you will find the point at which it starts failing.

Good luck!

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


-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 4:06 PM
To: Struts Users Mailing List
Subject: Re: how to invoke the action servlet?


Ah, I am sorry.  I forgot to mention that I had tried
different combinations of URLs.  I did try
http://localhost:8080/ginsu/ginsu.do and I get the
same tomcat error as when I enter
http://localhost:8080/ginsu .

I also realize how vague I was.  I'll try to be more
specific:  I am using Tomcat 4.1.18, and I get a 404
with a description of The requested resource is not
available when I try these different URLs. 

I went back to my %CATALINA_HOME%/webapp/ginsu
directory and discovered that my struts-config.xml
file was there.  I think this is incorrect.

The web.xml file and the struts-config.xml file both
need to reside in my
%CATALINA_HOME%/webapps/ginsu/WEB-INF directory,
correct?

So I moved the slide-config.xml to the web-inf
directory and restarted tomcat and received the same
results.

Any further thought?

Thanks again, and I appreciate the fast responses.
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Thu, 27 Mar 2003, Dan Tarkenton wrote:
 
  Date: Thu, 27 Mar 2003 12:32:09 -0800 (PST)
  From: Dan Tarkenton [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: how to invoke the action servlet?
 
 
  I have been referencing the book Struts in Action
 by Ted Husted as well
  as the struts site. I cannot figure out what to
 point my browser to in
  order to invoke struts. I have zero JSPs in my
 struts application -- I
  have no need for them because I am utilizing Model
 X where I have one
  XSLT servlet that represents my entire view layer.
 I thought I could
  just point my browser to
 http://localhost:8080/ginsu (ginsu being the
  name of my web app). I realize I have no
 index.html or index.jsp, but
  I'm just trying to go directly to the action
 servlet from the browser.
 
  Is this not possible in struts?
 
 
 The URL of an action is composed like this:
 
  

http://${hostname}:${portnumber}${contextpath}${actionpath}
 
 So, if you install your webapp at context path
 /ginsu, and you want to
 invoke the action with a path of /ginsu (which
 appears to be the only
 one you've defined), the URL would be:
 
   http://localhost:8080/ginsu/ginsu.do
 
 since you are using extension mapping.  The first
 part (/ginsu) selects
 which web application, while the rest (/ginsu.do)
 selects the action.
 
 Craig
 

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

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



RE: struts 1.1 with Iplanet App server 6.0 SP4

2003-03-27 Thread Miriam Aguirre


 were you able to fix it  ? anyone get the new struts running on a newer
version of iplanet ?

-Original Message-
From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 12:35 PM
To: 'Struts Users Mailing List'
Subject: RE: struts 1.1 with Iplanet App server 6.0 SP4


I got those same errors while I tried to run struts-validator example
application came with
struts 1.1 RC1 in Tomcat 3.2.4 container.

 -Original Message-
 From: Miriam Aguirre [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 3:28 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  struts 1.1 with Iplanet App server 6.0 SP4
 
 
 
  Has anyone gotten this to work ? I keep getting the following stack trace
 when deploying the struts-example or struts-upload web applications using
 iplanet's deployment tool.
 
  of course, iplanet is working fine with struts 1.0.2.
 
  Any ideas ?
 
 
  [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
 java.lang.ClassNotFoundException: org.apache.s
 truts.util.PropertyMessageResourcesFactoryjava.lang.ClassNotFoundExceptio
 n:
 org.apache.struts.util.PropertyMessageResou
 rcesFactory
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
 at
 org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:182
 )
 at
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
 ce
 sFactory.java:192)
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:576)
 at
 org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
 at
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
 ce
 sFactory.java:192)
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:576)
 at
 org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:127
 6)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Un
 kn
 own Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRepository.createInstance
 (U
 nknown Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(
 Un
 known Source)
 at
 com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.AppInfo.resetServlets(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.AppInfo.init(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.ServletModule.getPlatformServlet
 Co
 ntext(Unknown Source)
 at
 com.netscape.server.servlet.platformhttp.PlatformServletContext.getContext
 (U
 nknown Source)
 at
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.doJSPInclude(
 Un
 known Source)
 at
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.streamFileToC
 li
 ent(Unknown Source)
 at
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.service(Unkno
 wn
 Source)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at
 com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
 Source)
 at
 com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
 Source)
 at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
 at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
 at com.kivasoft.thread.ThreadBasic.run(Native Method)
 at java.lang.Thread.run(Thread.java:479)
 
 [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
 java.lang.ExceptionInInitializerErrorjava.lan
 g.ExceptionInInitializerError: java.lang.NullPointerException
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:577)
 at
 org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
 at
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
 ce
 sFactory.java:192)
 at
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
 es
 .java:576)
 at
 org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:127
 6)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  

RE: how to invoke the action servlet?

2003-03-27 Thread Dan Tarkenton
Heh, I must be getting tired.  I did mean
struts-config.xml.  The slide thing was a slip (I'm
also using jakarta slide as a content management
system).

The struts-example.war file works fine when placed
into tomcat.  So tomcat and a well configured struts
instance seems to work on my machine...which means
something is wrong with my implementation.  I will
take a look at the source for this example.  I
appreciate your help and advice.  

You'll hear back from me soon enough ;)



--- Hajratwala, Nayan (N.) [EMAIL PROTECTED]
wrote:
 You are correct about the file location...  I'm
 assuming you meant struts-config.xml and not
 slide-config.xml .. I'm not sure if it matters, but
 be sure the directory is WEB-INF, not web-inf.
 
 My suggestion to you would be to try and get the
 struts-example.war running ...
 
 Just put the war file in your webapps directory (or
 unjar it there), then try to run the example.  If
 that works, you can slowly integrate your code into
 that webapp.  Surely you will find the point at
 which it starts failing.
 
 Good luck!
 
 ---
 - Nayan Hajratwala
 - Chikli Consulting LLC
 - http://www.chikli.com
 
 
 -Original Message-
 From: Dan Tarkenton [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 4:06 PM
 To: Struts Users Mailing List
 Subject: Re: how to invoke the action servlet?
 
 
 Ah, I am sorry.  I forgot to mention that I had
 tried
 different combinations of URLs.  I did try
 http://localhost:8080/ginsu/ginsu.do and I get the
 same tomcat error as when I enter
 http://localhost:8080/ginsu .
 
 I also realize how vague I was.  I'll try to be more
 specific:  I am using Tomcat 4.1.18, and I get a 404
 with a description of The requested resource is not
 available when I try these different URLs. 
 
 I went back to my %CATALINA_HOME%/webapp/ginsu
 directory and discovered that my struts-config.xml
 file was there.  I think this is incorrect.
 
 The web.xml file and the struts-config.xml file both
 need to reside in my
 %CATALINA_HOME%/webapps/ginsu/WEB-INF directory,
 correct?
 
 So I moved the slide-config.xml to the web-inf
 directory and restarted tomcat and received the same
 results.
 
 Any further thought?
 
 Thanks again, and I appreciate the fast responses.
 --- Craig R. McClanahan [EMAIL PROTECTED]
 wrote:
  
  
  On Thu, 27 Mar 2003, Dan Tarkenton wrote:
  
   Date: Thu, 27 Mar 2003 12:32:09 -0800 (PST)
   From: Dan Tarkenton [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
  [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: how to invoke the action servlet?
  
  
   I have been referencing the book Struts in
 Action
  by Ted Husted as well
   as the struts site. I cannot figure out what to
  point my browser to in
   order to invoke struts. I have zero JSPs in my
  struts application -- I
   have no need for them because I am utilizing
 Model
  X where I have one
   XSLT servlet that represents my entire view
 layer.
  I thought I could
   just point my browser to
  http://localhost:8080/ginsu (ginsu being the
   name of my web app). I realize I have no
  index.html or index.jsp, but
   I'm just trying to go directly to the action
  servlet from the browser.
  
   Is this not possible in struts?
  
  
  The URL of an action is composed like this:
  
   
 

http://${hostname}:${portnumber}${contextpath}${actionpath}
  
  So, if you install your webapp at context path
  /ginsu, and you want to
  invoke the action with a path of /ginsu (which
  appears to be the only
  one you've defined), the URL would be:
  
http://localhost:8080/ginsu/ginsu.do
  
  since you are using extension mapping.  The first
  part (/ginsu) selects
  which web application, while the rest
 (/ginsu.do)
  selects the action.
  
  Craig
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!
 http://platinum.yahoo.com
 

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

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: struts 1.1 with Iplanet App server 6.0 SP4

2003-03-27 Thread Pingili, Madhupal
It looks like it is working very well in Tomcat 3.3.1. I guess we have to
get latest versions of everything for
struts 1.1 RC1 to work properly.

 -Original Message-
 From: Miriam Aguirre [SMTP:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 4:14 PM
 To:   'Struts Users Mailing List'
 Subject:  RE: struts 1.1 with Iplanet App server 6.0 SP4
 
 
 
  were you able to fix it  ? anyone get the new struts running on a
 newer
 version of iplanet ?
 
 -Original Message-
 From: Pingili, Madhupal [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 12:35 PM
 To: 'Struts Users Mailing List'
 Subject: RE: struts 1.1 with Iplanet App server 6.0 SP4
 
 
 I got those same errors while I tried to run struts-validator example
 application came with
 struts 1.1 RC1 in Tomcat 3.2.4 container.
 
  -Original Message-
  From:   Miriam Aguirre
 [SMTP:[EMAIL PROTECTED]
  Sent:   Thursday, March 27, 2003 3:28 PM
  To: '[EMAIL PROTECTED]'
  Subject:struts 1.1 with Iplanet App server 6.0 SP4
  
  
  
   Has anyone gotten this to work ? I keep getting the following stack
 trace
  when deploying the struts-example or struts-upload web applications
 using
  iplanet's deployment tool.
  
   of course, iplanet is working fine with struts 1.0.2.
  
   Any ideas ?
  
  
   [ERROR] MessageResourcesFactory -
 -MessageResourcesFactory.createFactory
  java.lang.ClassNotFoundException: org.apache.s
 
 truts.util.PropertyMessageResourcesFactoryjava.lang.ClassNotFoundExceptio
  n:
  org.apache.struts.util.PropertyMessageResou
  rcesFactory
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:285)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
  at
 
 org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:182
  )
  at
 
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
  ce
  sFactory.java:192)
  at
 
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
  es
  .java:576)
  at
  org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:138)
  at
 
 org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResour
  ce
  sFactory.java:192)
  at
 
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
  es
  .java:576)
  at
 
 org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:127
  6)
  at
  org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at
 
 com.netscape.server.servlet.servletrunner.ServletRepository.loadServlet(Un
  kn
  own Source)
  at
 
 com.netscape.server.servlet.servletrunner.ServletRepository.createInstance
  (U
  nknown Source)
  at
 
 com.netscape.server.servlet.servletrunner.ServletRunner.createServletInfo(
  Un
  known Source)
  at
 
 com.netscape.server.servlet.servletrunner.AppInfo.preLoadServlets(Unknown
  Source)
  at
  com.netscape.server.servlet.servletrunner.AppInfo.resetServlets(Unknown
  Source)
  at
  com.netscape.server.servlet.servletrunner.AppInfo.init(Unknown
  Source)
  at
 
 com.netscape.server.servlet.servletrunner.ServletModule.getAppInfo(Unknown
  Source)
  at
 
 com.netscape.server.servlet.servletrunner.ServletModule.getPlatformServlet
  Co
  ntext(Unknown Source)
  at
 
 com.netscape.server.servlet.platformhttp.PlatformServletContext.getContext
  (U
  nknown Source)
  at
 
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.doJSPInclude(
  Un
  known Source)
  at
 
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.streamFileToC
  li
  ent(Unknown Source)
  at
 
 com.netscape.server.servlet.servletrunner.WelcomeListServlet.service(Unkno
  wn
  Source)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
  at
  com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
  Source)
  at
  com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
  Source)
  at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
  at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
  at com.kivasoft.thread.ThreadBasic.run(Native Method)
  at java.lang.Thread.run(Thread.java:479)
  
  [ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
  java.lang.ExceptionInInitializerErrorjava.lan
  g.ExceptionInInitializerError: java.lang.NullPointerException
  at
 
 org.apache.struts.util.MessageResources.getMessageResources(MessageResourc
  es
  .java:577)
  at
  

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Lionel Roux
I think it work because it require that objects on which you can apply this
are collections. they alll share the same model !! :p

Am I wrong ?
__
Lionel Roux
mail: [EMAIL PROTECTED]
cell: +33 6 60 51 49 83
__
This messages is certified virus free by NAV 2003
- Original Message -
From: Jean-Michel Auguste [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:49 PM
Subject: Re: Using JSP struts tag logic:iterate


 Ok, now I understand.
 Thanks a lot.

 - Original Message -
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 15:43
 Subject: Re: Using JSP struts tag logic:iterate


  Simply they're is no Cast at all !
  Tags use commons-beanUtils. This package uses javaBean standard to get
 properties from objects. In fact they use the
  java.beans.PropertyDescriptor class to get property getter and setter,
 without having to know the class used.
 
  Nico.
 
 
 
   Hi Nicolas,
   After some reading, I wrote the following code that works pretty
well...
  
logic:iterate name=objA property=hTable id=objB 
 Next element is bean:write name=objB property=value.prop /
   [bean:write name=objB property=key /]
/logic:iterate
  
   I don't fully understand how the cast from Object to ObjB is performed
 but
   it works
   Thanks for your help.
  
  
   - Original Message -
   From: Nicolas De Loof [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, March 27, 2003 12:24
   Subject: Re: Using JSP struts tag logic:iterate
  
  
YOu can read this on struts-logic doc :
   
Normally, each object exposed by the iterate tag is an element of
the
   underlying collection you are iterating over.
However, if you iterate over a Map, the exposed object is of type
   Map.Entry that has two properties:
   
key - The key under which this item is stored in the underlying Map.
value - The value that corresponds to this key.
   
So, you should use :
   
logic:iterate name=objA property=hTable id=objB indexId=ind
   type=ObjB 
 Next element is bean:write name=objB property=value.prop
/
 [bean:write name=value.ind/]
/logic:iterate
   
Nico.
   
 Thanks for your help Nico,
 As you recommend I've checked into my ObjB class and the property
 prop
 looks well formed :

 - prop is of type String
 - there is only one getter (getProp() ) and one setter
 (setProp(String
   p) )
 - getProp() is public

 As I mentionned in my first append, I used two ways to code the
 logic:iterate tag.
 I can understand the first error message as there is no mention
 anywhere
   of
 the type of  objB (as objB is stored as an Object type in the
 Hashtable). But I don't understand the second error message
 (invalid
   Cast)
 as I specify the type for objB.


 - Original Message -
 From: Nicolas De Loof [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 27, 2003 11:27
 Subject: Re: Using JSP struts tag logic:iterate


  You don't need jsp:useBean as struts tags look into scope
 themself.
 (usebean create a scriptlet variable from a bean)
 
  Your code looks fine. Look at objB code, getter should not be
well
   formed.
  - be carreful about uppercase beginig properties
  - be carreful not to have mulitple setters with different data
 types
 (IFAIK it will break javaBean PropertyInfo)
  - be carreful getter is public
 
  Nico.
 
 
 
  Hi,
  I'm a bit confusing using the jsp struts tag logic:iterate.
  Here is my problem.
 
  In my business logic I've created an object (let's call it
objA)
   that
 contains a Hashtable which itself contain a list
  of objects (objB) . The Hastable object (hTable) can be
 accessed
 through getter and setter from objA.
  I want now to display as a table the property prop of all
objB
   objects
 contained in the Hashtable hTable (prop
  is a String  and can be accessed through getter and setter from
   objB.
 
  Before launching the jsp I've put objA in the HTTP request.
 
  Then I've coded the following  in the Jsp :
 
  jsp:useBean id=objA class=ObjA
scope=request/jsp:useBean
 
  logic:iterate name=objA property=hTable id=objB
 indexId=ind 
  Next element is bean:write name=objB property=prop /
 [bean:write name=ind/]
  /logic:iterate
 
  Coding this, I get the following error :
 
  [Servlet Error]-[No getter method for property prop of bean
objB]:
 
 
  I tried then to code :
 
  jsp:useBean id=objA class=ObjA
scope=request/jsp:useBean
 
  logic:iterate name=objA property=hTable id=objB
 indexId=ind
 

How to upload multiple files??

2003-03-27 Thread Jagadeesan,Sivakumar
Hi All:

I have requirement that the user could upload more then one file. Something
like attachments in a mail?

How could I achieve this?

I know I could use
  html:file property=file /

to upload a single file.

I need to extend this for multiple files

--Siva Jagadeesan

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



RE: Actions based on Role

2003-03-27 Thread Edgar Dollin
If you use a filter, to filter actions based on role, the action wouldn't
have to know about security.  If your authentication sticks the user
information into the session, the action could make decisions based on the
user information.

Edgar

 -Original Message-
 From: Jagadeesan,Sivakumar 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 3:50 PM
 To: 'Struts Users Mailing List'
 Subject: Actions based on Role
 
 
 I have web application where users could of three types (Roles)
 
 1) Basic User
 2) Silver User
 3) Gold User
 
 According to Type / Role of user some actions could be 
 performed or not performed.
 
 I could set in my stuts-config.xml, the role based access in 
 Action Element 
 
 I am having my own authentication System that uses the 
 database . The User table has the userName and also the Role.
 
 I am not sure how could I create a Role that the Action is 
 expecting , if I am using my own authentication
 
 Thanx
 --Siva Jagadeesan
 

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



RE: Actions based on Role

2003-03-27 Thread Jagadeesan,Sivakumar
I guess I have to do that way
So I have manually chk every time whether that user is authorized to access
this Action, rather then having it in struts-config.xml which is more
configurable



-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 4:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Actions based on Role


If you use a filter, to filter actions based on role, the action wouldn't
have to know about security.  If your authentication sticks the user
information into the session, the action could make decisions based on the
user information.

Edgar

 -Original Message-
 From: Jagadeesan,Sivakumar 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 27, 2003 3:50 PM
 To: 'Struts Users Mailing List'
 Subject: Actions based on Role
 
 
 I have web application where users could of three types (Roles)
 
 1) Basic User
 2) Silver User
 3) Gold User
 
 According to Type / Role of user some actions could be 
 performed or not performed.
 
 I could set in my stuts-config.xml, the role based access in 
 Action Element 
 
 I am having my own authentication System that uses the 
 database . The User table has the userName and also the Role.
 
 I am not sure how could I create a Role that the Action is 
 expecting , if I am using my own authentication
 
 Thanx
 --Siva Jagadeesan
 

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

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



  1   2   >