Re: Iterate over list in in list in form bean.

2005-07-13 Thread Jörg Eichhorn

Hello,

thanks for the hint and example. I've choosen the nested way to do this, 
because i

think this makes the jsp code more readable.

I there a way to do the same using request scope?
When i do this i get an exception because the collection is not re-filled 
anymore.
In my previous example the first collection was recreated via the 
getCollection(int index) method.


Thanks again.

Jörg Eichhorn

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



Re: New to Struts

2005-07-13 Thread Kumar deepak
Hello,
 
This is also a good tutorial http://www.roseindia.net/struts/
 
Deepak Kumar


[Gmail] LunLun [EMAIL PROTECTED] wrote:
Hello,


1) can someone recommend me a good struts book and/or online tutorial to help 
me get started quickly.
I found these two books interesting:

Struts in Action
http://www.manning.com/books/husted
(the source code is available here:
http://www.manning.com/books/husted/source )


Jakarta Struts for Dummies
http://www.amazon.com/exec/obidos/tg/detail/-/0764559575/ref=pd_sxp_f/102-8775537-9281749?v=glances=books


Hope it helps,
LunLun
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: anyone else pass their ActionForm off to another (layer) helper

2005-07-13 Thread Duncan Mills
Back to the (rephrased) question - The Oracle ADF framework uses a twist 
on the DynaForm idea.  There is (generally) only one ActionForm in an 
Application which is configured at runtime based on an XML bindings file 
which describes exactly what data is required for this particular page. 
The binding file is in the format proposed by JSR-277 
http://www.jcp.org/en/jsr/detail?id=227 and acts as the abstraction 
between the model and the view. The view layer  is ignorant of what the 
actual source of the data for the form is, be it EJB, a WebService, 
TopLink,  a POJO or whatever. The JSR 227 metadata describes and service 
in the common terms of available collections and methods. The 
implementing framework handles the resource management and DTO 
functionality between the layers.
To the page programmer the data  for the page is just made available on 
the request as a bindings object and can be accessed through JSTL or 
Struts Tags. Likewise the service coder is ignorant of the consumer of 
the data.  The JSR-227 bindings are the same across multiple UI's Swing, 
JSP/Struts and JSF and the UI developer's  gestures for consuming data 
in the IDE are identical in each case.
Not everyone's cup of tea I know but it does remove a huge amount of 
boilerplate plumbing from code.


Duncan

Rick Reumann wrote:


Rick Reumann wrote the following on 7/12/2005 11:45 AM:

One thing I didn't bring up, though, because I'm not sure how 'best 
practice' it is, is the concept of passing your ActionForm and 
sometimes the HttpServletRequest off to another class for some 
processing.  




Just realized, thanks to Dave pointing it out, that I DID NOT MEAN 
another 'layer' in the sense of a design layer as in the model or 
view. Layer was a very, very, very poor term to use.


I sure hope people don't think I was advocating passing struts objects 
to the model *layer* or anything along those lines.


I should have restated the subject as How often do you create Helper 
classes that your Actions use or something along those lines.


Sorry for all the confusion. (Wish I could go back an edit the subject 
heading:)




--

Regards

Duncan Mills
Senior Principal Product Manager
Oracle Application Development Tools

[EMAIL PROTECTED]



Generic template

2005-07-13 Thread Vijay K Anand

Hi All

Any blueprint how can we write genric code for manipulating data in a 
table ,


Regards
Vijay

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



Re: Putting execute() in ActionForm

2005-07-13 Thread Yaroslav Novytskyy

Hello!

Craig McClanahan wrote:

On 7/11/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:


Craig McClanahan wrote:


I think of the state information represented by an ActionForm (in
Struts 1.x) or potentially as properties of an action class (per the
current discussion) to be part of the *view* tier.  Further, I see the
role of the execute method on an action as being an Adapter Pattern
link between the web tier (HTTP-centric) and the model tier
(HTTP-agnostic).  Therefore, I don't feel any pain at the idea of
combining the two together.


It sounds like what your saying is that there really is no need for a
control layer, we're coming down to view-adapter-model now.  Am I
understanding that correctly?




Not completely, but amost.

There are reasons to have an application scoped front controller. 
There are reasons to have a view-scoped front controller.  There is

*no* reason I am aware of that requires these controllers to be the
same :-).


(The question is below but here I only wonder: what is a view-scoped 
front controller? :) what are the differences between a view-scoped 
and an application-scoped (a normal one as I can guess) front 
controller?)



In Shale, the application-scoped functions are performed by a Commons
Chain pipeline that is configured and processed by Shale's filter. 
This is the right place to put things like if the user isn't logged

on, redirect to the login page and log every request type
functions.  But it is not the right place for execute this expensive
SQL query, but *only* if I am the view that needs it..

In Struts 1.x, you get around the latter case, typically, by having a
setup action before the view, and a process action after the view. 
Shale simply combines those two bits of code into a single class (and,

along the way, combining the form bean too), resulting in a little
less code, but a lot fewer classes.


In Struts 1.x I do use setupAction-jsp-processAction technique and was 
thinking all the time how can I put together the setupAction and 
processAction into one class. The best way I could think of was to make 
a downgraded DispatchAction, that dispatches based on mapping's 
parameter (in the latest version of Struts just the same thing appeared 
named MappingDispatchAction) and to put both setup and precess 
actions-methods into one class.


(p.s. this technique made it also possible to automate token-based 
protection - every prepare calls saveToken and before every process 
token is checked)


So please tell, in what way does Shale do this?
Should I pay more attention to shale? Is it ready to try it out on some 
small test projects?



Yaroslav Novytskyy

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



Problem with action forward while using Frames

2005-07-13 Thread syed abrar
  
Hello All,
I have a problem.I have two frames with two different jsps.And after 
selecting the options(checkboxes) in the second frame the control goes to the 
Action class.After processing the request the control has to be passed to other 
jsp page(which have declared in struts-config.xml file).But after I return the 
ActionForward the jsp page is opening in the second frame itself without 
closing the opened frame.


Can any one please help me

validation - all locales

2005-07-13 Thread Marc Demlenne
Hello all, 

Using Struts, I need to validate input forms. My web service has to
handle mutliple language, so I'm using i18n techniques.

However, the validation I need are locale-independant. So I have
written a validation.xml like this :
 
form-validation
formset
form name=destinatForm
field
property=dob_dg
depends=mask
arg0 key=destinations.adob.destination/
msg name=mask key=destinations.all.mask/
var
var-namemask/var-name
var-value^[2-5][0-9]*$/var-value
/var
/field
/form
/formset
/form-validation

This leads to an error. Log says that destinatForm can't be found
under locale en_US.
In fact, if I just copy-paste this formset under a new one with parameters 
formset language=en
everyting's fine, and my validation is ok. 

I don't want to have redundancies when it is not needed. Isn't it
possible to only define general formset, and only to override what is
clearly locale-specific ?

Can someone tell me where I'm wrong ? 

Thanks very much for any help. 


-- 
Marc Demlenne

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



RE: How do you iterate within an iterate

2005-07-13 Thread Harland, David
Many thanks.. 

-Original Message-
From: Thai Dang Vu [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2005 17:17
To: user@struts.apache.org
Subject: Re: How do you iterate within an iterate

I think it can be
 
logic:iterate id=booking name=BOOKINGS scope=request
  tdbean:write name=booking property=bookingType//td
  logic:iterate id=labelValuePair name=booking
property=arrayList
tdbean:write name=labelValuePair property=label//td
tdbean:write name=labelValuePair property=value//td
  /logic:iterate
/logic:iterate

 [EMAIL PROTECTED] 7/12/2005 11:49:13 AM 

How would I replace the following with the iterate tag

%
ArrayList bookings =
(ArrayList)request.getAttribute(BOOKINGS);
Iterator bookingsiterator = bookings.iterator();
while(bookingsiterator.hasNext()) {
Bookings booking =
(Bookings)bookingsiterator.next();
%

td%=booking.getBookingType()%/td

  %
ArrayList bookingData = booking.getArrayList();
  Iterator dataiterator = bookingData.iterator();
while(dataiterator.hasNext()) {
LabelValuePair labelValuePair =
(LabelValuePair)dataiterator.next();
  %

td%=labelValuePair.getLabel()%/td
td%=labelValuePair.getValue()%/td

  %
}
  %

  %
}
  %

This e mail is from DLA Piper Rudnick Gray Cary UK LLP.

The contents of this email and any attachments are confidential to the
intended recipient. They may not be disclosed to or used by or copied in
any way by anyone other than the intended recipient. If this email is
received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on
+44 (0) 8700 11 quoting the name of the sender and the email address
to which it has been sent and then delete it.

Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the
sender accept any responsibility for viruses and it is your
responsibility to scan or otherwise check this email and any
attachments. 

DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership
registered in England and Wales (registered number OC307847) which
provides services from offices in England, Belgium, Germany and the
People's Republic of China.  A list of members is open for inspection at
its registered office and principal place of business 3 Noble Street,
London EC2V 7EE.  Partner denotes member of a limited liability
partnership.

DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and
is a member of DLA Piper Rudnick Gray Cary, a global legal services
organisation, the members of which are separate and distinct legal
entities.  For further information, please refer to www.dlapiper.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]



This e mail is from DLA Piper Rudnick Gray Cary UK LLP.

The contents of this email and any attachments are confidential to the intended 
recipient. They may not be disclosed to or used by or copied in any way by 
anyone other than the intended recipient. If this email is received in error, 
please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 
quoting the name of the sender and the email address to which it has been sent 
and then delete it.

Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender 
accept any responsibility for viruses and it is your responsibility to scan or 
otherwise check this email and any attachments. 

DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership 
registered in England and Wales (registered number OC307847) which provides 
services from offices in England, Belgium, Germany and the People's Republic of 
China.  A list of members is open for inspection at its registered office and 
principal place of business 3 Noble Street, London EC2V 7EE.  Partner denotes 
member of a limited liability partnership.

DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a 
member of DLA Piper Rudnick Gray Cary, a global legal services organisation, 
the members of which are separate and distinct legal entities.  For further 
information, please refer to www.dlapiper.com.




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



Invalid dates / numbers etc on forms

2005-07-13 Thread Lance Semmens
Is there a standard way of handling invalid user input in date / number
fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
2. Declare date properties as java.util.Dates, have struts parse dates,
check for null form properties and use request.getParameter() to see if
an invalid date was entered.
 
I prefer option 2. Are there any libraries around to do this generically
or another way that I haven't thought of? (NB i'm a newbie).
 
Thanks,
Lance.


Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Larry Meadors
The recommended pattern is to have only string properties on your
ActionForm classes that are mapped to typed data in your model.

You can write a component to do #2 and register it with bean-utils,
but you for sure do not want to pass the action form into your model.

Larry


On 7/13/05, Lance Semmens [EMAIL PROTECTED] wrote:
 Is there a standard way of handling invalid user input in date / number
 fields etc. I can forsee 2 possible solutions.
 1. Declare date properties on your form as java.lang.Strings and
 validate / parse them explicitely.
 2. Declare date properties as java.util.Dates, have struts parse dates,
 check for null form properties and use request.getParameter() to see if
 an invalid date was entered.
 
 I prefer option 2. Are there any libraries around to do this generically
 or another way that I haven't thought of? (NB i'm a newbie).
 
 Thanks,
 Lance.
 


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



How to hide URL in Adress bar?

2005-07-13 Thread Gaet
Hi evrybody,

I would like to hide the struts URL in the Adress bar of the client browser
is there a way do always have www.mysite.com in the adress bar instead of 
www.mysite.com/myStrutsAction.do?param1=param...??

Thanks for your help!

Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
yes, put a frameset in your top page, with 1 px height frame (white) on
top, and the actual application in your other frame. Then the link in
the adress bar will never change.

regards
leon

On Wed, 2005-07-13 at 14:48 +0200, Gaet wrote:
 Hi evrybody,
 
 I would like to hide the struts URL in the Adress bar of the client 
 browser
 is there a way do always have www.mysite.com in the adress bar instead of 
 www.mysite.com/myStrutsAction.do?param1=param...??
 
 Thanks for your help!



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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Martin Gainty

change all transmissions from html:method=GET to html:method=POST
Bon Chance,
Martin-
- Original Message - 
From: Gaet [EMAIL PROTECTED]

To: Mailing List Struts user@struts.apache.org
Sent: Wednesday, July 13, 2005 8:48 AM
Subject: How to hide URL in Adress bar?


Hi evrybody,

I would like to hide the struts URL in the Adress bar of the client 
browser
is there a way do always have www.mysite.com in the adress bar instead of 
www.mysite.com/myStrutsAction.do?param1=param...??


Thanks for your help! 


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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Daniel Henrique Ferreira e Silva
Hi Baet,

+1 for using POST.

Cheers,
Daniel Silva.

On 7/13/05, Martin Gainty [EMAIL PROTECTED] wrote:
 change all transmissions from html:method=GET to html:method=POST
 Bon Chance,
 Martin-
 - Original Message -
 From: Gaet [EMAIL PROTECTED]
 To: Mailing List Struts user@struts.apache.org
 Sent: Wednesday, July 13, 2005 8:48 AM
 Subject: How to hide URL in Adress bar?
 
 
 Hi evrybody,
 
 I would like to hide the struts URL in the Adress bar of the client
 browser
 is there a way do always have www.mysite.com in the adress bar instead of
 www.mysite.com/myStrutsAction.do?param1=param...??
 
 Thanks for your help!
 
 -
 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 hide URL in Adress bar?

2005-07-13 Thread Daniel Henrique Ferreira e Silva
Ooops,

Sorry Gaet for mispelling your name!

Daniel Silva.

On 7/13/05, Daniel Henrique Ferreira e Silva [EMAIL PROTECTED] wrote:
 Hi Baet,
 
 +1 for using POST.
 
 Cheers,
 Daniel Silva.
 
 On 7/13/05, Martin Gainty [EMAIL PROTECTED] wrote:
  change all transmissions from html:method=GET to html:method=POST
  Bon Chance,
  Martin-
  - Original Message -
  From: Gaet [EMAIL PROTECTED]
  To: Mailing List Struts user@struts.apache.org
  Sent: Wednesday, July 13, 2005 8:48 AM
  Subject: How to hide URL in Adress bar?
 
 
  Hi evrybody,
 
  I would like to hide the struts URL in the Adress bar of the client
  browser
  is there a way do always have www.mysite.com in the adress bar instead of
  www.mysite.com/myStrutsAction.do?param1=param...??
 
  Thanks for your help!
 
  -
  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]



SV: How to hide URL in Adress bar?

2005-07-13 Thread hermod . opstvedt
Hi

The easiest way is to use frames. Have a framset of two frames stacked
vertically, with the first frame having 0 width/heigth. That way you
hide the stuff that you place in the second frame from the browser url

Hermod

-Opprinnelig melding-
Fra: Gaet [mailto:[EMAIL PROTECTED]
Sendt: 13. juli 2005 14:48
Til: Mailing List Struts
Emne: How to hide URL in Adress bar?


Hi evrybody,

I would like to hide the struts URL in the Adress bar of the client
browser
is there a way do always have www.mysite.com in the adress bar instead
of www.mysite.com/myStrutsAction.do?param1=param...??

Thanks for your help!


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Martin Gainty
The Struts-validator will certainly be able to handle date-validation for 
you

there is an excellent tutorial located at
http://www.oracle.com/technology/products/jdev/howtos/10g/strutsvalidator/struts_validator_howto.html#setup
1)Add validator to your struts-config.xml
2)copy validator-rules.xml into WEB-INF/validator folder
3)copy predefined validator error messages from validator-rules.xml into 
your resources file (generally called ApplicationResources.properties)
4)Setup form beans to use the correct class..Notice the election between 
static Form Beans and Dynamic Form Beans

to quote
when several forms reuse the same validation rules then use ValidatorForm
the Action which is applicable in your case if you are using ActionMappings 
are applicable when differing rulesets apply to FormBean depending on which 
Action is consuming the FormBean then use 
ValidatorActionForm/DynaValidatorActionForm

5)setup validation rules in /WEB-INF/validator/validations.xml
there is a good primer available at 
http://jakarta.apache.org/struts/userGuide/dev_validator.html


HTH,
Martin-
- Original Message - 
From: Lance Semmens [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Wednesday, July 13, 2005 7:17 AM
Subject: Invalid dates / numbers etc on forms


Is there a standard way of handling invalid user input in date / number
fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
2. Declare date properties as java.util.Dates, have struts parse dates,
check for null form properties and use request.getParameter() to see if
an invalid date was entered.

I prefer option 2. Are there any libraries around to do this generically
or another way that I haven't thought of? (NB i'm a newbie).

Thanks,
Lance.

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



Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Larry Meadors
No offense (and not to sound like Mark Galbreath), but as a long time
struts user, I have never found validator to save time or code...not
even once.

Larry


On 7/13/05, Martin Gainty [EMAIL PROTECTED] wrote:
 The Struts-validator will certainly be able to handle date-validation for
 you
 there is an excellent tutorial located at
 http://www.oracle.com/technology/products/jdev/howtos/10g/strutsvalidator/struts_validator_howto.html#setup
 1)Add validator to your struts-config.xml
 2)copy validator-rules.xml into WEB-INF/validator folder
 3)copy predefined validator error messages from validator-rules.xml into
 your resources file (generally called ApplicationResources.properties)
 4)Setup form beans to use the correct class..Notice the election between
 static Form Beans and Dynamic Form Beans
 to quote
 when several forms reuse the same validation rules then use ValidatorForm
 the Action which is applicable in your case if you are using ActionMappings
 are applicable when differing rulesets apply to FormBean depending on which
 Action is consuming the FormBean then use
 ValidatorActionForm/DynaValidatorActionForm
 5)setup validation rules in /WEB-INF/validator/validations.xml
 there is a good primer available at
 http://jakarta.apache.org/struts/userGuide/dev_validator.html
 
 HTH,
 Martin-
 - Original Message -
 From: Lance Semmens [EMAIL PROTECTED]
 To: user@struts.apache.org
 Sent: Wednesday, July 13, 2005 7:17 AM
 Subject: Invalid dates / numbers etc on forms
 
 
 Is there a standard way of handling invalid user input in date / number
 fields etc. I can forsee 2 possible solutions.
 1. Declare date properties on your form as java.lang.Strings and
 validate / parse them explicitely.
 2. Declare date properties as java.util.Dates, have struts parse dates,
 check for null form properties and use request.getParameter() to see if
 an invalid date was entered.
 
 I prefer option 2. Are there any libraries around to do this generically
 or another way that I haven't thought of? (NB i'm a newbie).
 
 Thanks,
 Lance.
 
 -
 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: Iterate over list in in list in form bean.

2005-07-13 Thread Martin Gainty

Jörg
Hard to answer a reference to a previous posting when the previous posting 
was erased
It would help if you would include previous posts from thread when replying 
.
More specifically if there is information from a previous post which you are 
referencing it is best practice to include in the referenced info..

Vielen Danke,
Martin
- Original Message - 
From: Jörg Eichhorn [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 4:47 AM
Subject: Re: Iterate over list in in list in form bean.


Hello,

thanks for the hint and example. I've choosen the nested way to do this,
because i
think this makes the jsp code more readable.

I there a way to do the same using request scope?
When i do this i get an exception because the collection is not re-filled
anymore.
In my previous example the first collection was recreated via the
getCollection(int index) method.

Thanks again.

Jörg Eichhorn

-
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 hide URL in Adress bar?

2005-07-13 Thread Jeff Beal
I don't think you even need to have two frames.  Try just one frame:

html
 head
  titleYour Site Title/title
 /head
 frameset
  frame src=your_entry_page.do /
 /frameset
/html

-- Jeff

On 7/13/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi
 
 The easiest way is to use frames. Have a framset of two frames stacked
 vertically, with the first frame having 0 width/heigth. That way you
 hide the stuff that you place in the second frame from the browser url
 
 Hermod
 
 -Opprinnelig melding-
 Fra: Gaet [mailto:[EMAIL PROTECTED]
 Sendt: 13. juli 2005 14:48
 Til: Mailing List Struts
 Emne: How to hide URL in Adress bar?
 
 
 Hi evrybody,
 
 I would like to hide the struts URL in the Adress bar of the client
 browser
 is there a way do always have www.mysite.com in the adress bar instead
 of www.mysite.com/myStrutsAction.do?param1=param...??
 
 Thanks for your help!
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
 This email with attachments is solely for the use of the individual or
 entity to whom it is addressed. Please also be aware that the DnB NOR Group
 cannot accept any payment orders or other legally binding correspondence with
 customers as a part of an email.
 
 This email message has been virus checked by the virus programs used
 in the DnB NOR Group.
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 
 
 -
 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 hide URL in Adress bar?

2005-07-13 Thread Stéphane Zuckerman

change all transmissions from html:method=GET to html:method=POST


Is there another way ? I do use the POST method when I can. But some 
specific processes need to be done via GET (or at least I don't know how 
to do them with POST)...


--
Stéphane Zuckerman

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



File upload using maxFileSize

2005-07-13 Thread Marc Walter
Hi!

In want to use the controller element maxFileSize in the
struts-config.xml in order to provide a global maximum file upload size in
my application. So I entered the value 2M (two megabytes) for test
purpose.
In my upload JSP I defined a submit button like this: html:submit
value=Submit property=upload styleClass=button /
When I choose a file greater than 2M and press the button the
UploadAction.execute() method is performed. This is okay so far. In this
method I search the request object for the value upload but it can't be
found! If I remove the struts-config.xml controller entry maxFileSize the
request parameter upload is found and the adequate code is processed. So
it is as well if the file is less than 2M in size.

So now I wonder why the usage of the maxFileSize attribute in conjunction
with a file exceeding the given max size apparently removes my upload
parameter from the request. The UploadAction is still being processed! Does
someone have an explanation for this? I don't understand this struts
behaviour. Thanks!

Kind regards,
Marc Walter


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



Re: File upload using maxFileSize

2005-07-13 Thread Borislav Sabev

Marc Walter wrote:


Hi!

In want to use the controller element maxFileSize in the
struts-config.xml in order to provide a global maximum file upload size in
my application. So I entered the value 2M (two megabytes) for test
purpose.
In my upload JSP I defined a submit button like this: html:submit
value=Submit property=upload styleClass=button /
When I choose a file greater than 2M and press the button the
UploadAction.execute() method is performed. This is okay so far. In this
method I search the request object for the value upload but it can't be
found! If I remove the struts-config.xml controller entry maxFileSize the
request parameter upload is found and the adequate code is processed. So
it is as well if the file is less than 2M in size.

So now I wonder why the usage of the maxFileSize attribute in conjunction
with a file exceeding the given max size apparently removes my upload
parameter from the request. The UploadAction is still being processed! Does
someone have an explanation for this? I don't understand this struts
behaviour. Thanks!

Kind regards,
Marc Walter

 

In such cases I would suggest you to directly dive into Struts source 
code or if your IDE gives you a chance - to debug it.


Regards
Borislav

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

Re: How to hide URL in Adress bar?

2005-07-13 Thread Michael Jouravlev
1) POST cannot be reloaded automatically. Using POST not for data
input is bad design.
2) Displaying the same URL for logically different pages, which could
otherwise be bookmarked is bad design.
3) Hiding URL completely is non-user-friendly design.
4) If you want to beautify your URLs, you may want to use something
like mod_rewrite.

Michael.

On 7/13/05, Martin Gainty [EMAIL PROTECTED] wrote:
 change all transmissions from html:method=GET to html:method=POST
 Bon Chance,
 Martin-
 - Original Message -
 From: Gaet [EMAIL PROTECTED]
 To: Mailing List Struts user@struts.apache.org
 Sent: Wednesday, July 13, 2005 8:48 AM
 Subject: How to hide URL in Adress bar?
 
 
 Hi evrybody,
 
 I would like to hide the struts URL in the Adress bar of the client
 browser
 is there a way do always have www.mysite.com in the adress bar instead of
 www.mysite.com/myStrutsAction.do?param1=param...??
 
 Thanks for your help!

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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/12/05, Laurie Harper [EMAIL PROTECTED] wrote:
 Michael Jouravlev wrote:
  Does the above mean that Struts + JSP 1.2 + JSTL 1.0 (no Struts-EL)
  is not possible?
 
 I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would
 you want to?

http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

Standard-1.1 (JSTL 1.1) requires a JSP container that supports the
Java Servlet 2.4 and JavaServer Pages 2.0 specifications.

Standard-1.0 (implementation of the JSTL 1.0 specification) requires a
JSP container that supports the Java Servlet 2.3 and JavaServer Pages
1.2 specifications.

Michael.

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



Redirecting JSP output

2005-07-13 Thread Jens Augustsson
Hi,

I'm using Struts/JSP to to generate HTML, XHTML and WML interfaces of
my application. My SMS interface is fairly advanced and I would like
to use Struts/JSP to generate these (plain text ) responses too.

My problem is that after generating the plain text response, I cannot
simply return it to the requestor. Instead I need to send this message
by calling another service and simply response with an acknowledge
(XML) to the requestor.

How can I do this and still use JSP for the design of the text responses?

My first try was to extend the RequestProcessor and find some suitable
post process methods to override, which might redirect the JSP
output somewhere else. Found no such methods.

My second try was to extend the ActionServlet and catch all that's
written to the outputServletStream, but I don't know how to not flush
the response and get a hold of what's written by the JSP.

Cannot be that hard, can it? Or can I instead call for JSP processing
in my Struts Action, get a hold of the output, send it using my own
service, and simply return an acknowledgeOk forward to Struts?

Hope anyone understands what I want to to! My main aim is to keep the
design of the text responses out of my Java code, hopefully instead in
a JSP page.

best regards,
Jens

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



Re: Invalid dates / numbers etc on forms

2005-07-13 Thread Christopher Marsh-Bourdon
Have you never developed using Dynamic Action Forms? With the vanilla  
Action Forms you may be right, but with Dynamic ones, I have found  
that Validator really cuts down the work.


Cheers

Christopher Marsh-Bourdon
www.marsh-bourdon.com
AIM: marshbourdon


On 13 Jul 2005, at 14:54, Larry Meadors wrote:


No offense (and not to sound like Mark Galbreath), but as a long time
struts user, I have never found validator to save time or code...not
even once.

Larry


On 7/13/05, Martin Gainty [EMAIL PROTECTED] wrote:

The Struts-validator will certainly be able to handle date- 
validation for

you
there is an excellent tutorial located at
http://www.oracle.com/technology/products/jdev/howtos/10g/ 
strutsvalidator/struts_validator_howto.html#setup

1)Add validator to your struts-config.xml
2)copy validator-rules.xml into WEB-INF/validator folder
3)copy predefined validator error messages from validator- 
rules.xml into
your resources file (generally called  
ApplicationResources.properties)
4)Setup form beans to use the correct class..Notice the election  
between

static Form Beans and Dynamic Form Beans
to quote
when several forms reuse the same validation rules then use  
ValidatorForm
the Action which is applicable in your case if you are using  
ActionMappings
are applicable when differing rulesets apply to FormBean depending  
on which

Action is consuming the FormBean then use
ValidatorActionForm/DynaValidatorActionForm
5)setup validation rules in /WEB-INF/validator/validations.xml
there is a good primer available at
http://jakarta.apache.org/struts/userGuide/dev_validator.html

HTH,
Martin-
- Original Message -
From: Lance Semmens [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Wednesday, July 13, 2005 7:17 AM
Subject: Invalid dates / numbers etc on forms


Is there a standard way of handling invalid user input in date /  
number

fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
2. Declare date properties as java.util.Dates, have struts parse  
dates,
check for null form properties and use request.getParameter() to  
see if

an invalid date was entered.

I prefer option 2. Are there any libraries around to do this  
generically

or another way that I haven't thought of? (NB i'm a newbie).

Thanks,
Lance.

-
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: Iterate over list in in list in form bean.

2005-07-13 Thread Jörg Eichhorn

Hi  Martin,

i didn't think of the users who deleted previous posts.
Here you can find it: 
http://www.mail-archive.com/user%40struts.apache.org/msg30141.html


--On Mittwoch, 13. Juli 2005 09:59 -0400 Martin Gainty 
[EMAIL PROTECTED] wrote:



Jörg
Hard to answer a reference to a previous posting when the previous
posting was erased
It would help if you would include previous posts from thread when
replying .
More specifically if there is information from a previous post which you
are referencing it is best practice to include in the referenced info..
Vielen Danke,
Martin



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



Re: Using struts forms as Value Objects: your opinion?

2005-07-13 Thread Rick Reumann

Laurie Harper wrote the following on 7/12/2005 8:25 PM:

Rick Reumann wrote:

(By the way I pass in an optional default format in my constructor as 
shown above, but my converters have a setFormatPattern(..) method that 
can change the format at any time)



Don't you end up with thread safety issues calling setFormatPattern() 
though? I would want to call setFormat (or setLocale() or something) on 
a per-request basis to cater to the individual user.


I probably would:) I just haven't thought about it that far in advance 
since currently I don't have to deal with it. I'd be curious how others 
use BeanUtils in circumstances where the Date formats would differ.


My wimpy way out would be to simply do something to what Larry does (I 
think this is what he suggested)... put the ValueObject as a property in 
the form bean and have String properties in the form bean that set the 
different data types in the ValueObject. Then, I wouldn't even need to 
use BeanUtils. Actually I'm thinking about adopting that pattern anyway 
since it seems like less work. It's sort of annoying as it is to have to 
write custom converters to handle situations where a blank or null field 
comes across and ends up setting my numeric wrappers to 0 vs null.


So instead I'd have maybe some properties in my form like:

stringBirthDate;

public void setStringBirthDate( Sring bDate ) {
   //Convert string here to Date based on Locale!
   //this is unique per user so no problems
   valueObjec.setBirthDate( date );
}

public String getStringBirthDate() {
   //convert valueObject Date to proper String format
}

I'd probably create this fields for only the properties that aren't 
Strings in the ValueObject. Then you don't need to use BeanUtils at all.


--
Rick

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



Alternate color in html:iterate

2005-07-13 Thread Senthilrajan VS
Hi All,

I'm using html:iterate to display the set of records in the table. Is there any 
way to put the alternate color using CSS classes in tag libraries


Thanks  Regards,
SenthilRajan VS

validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
Hello, 

Using struts validation framework, what's the best way to handle the
following case :

You have a simple form with 2 submit buttons. One for display, the
other to modify changes.
How to make the validation active only for modify button ? 
Server-side, you can simply have 2 actions name, one of them defined
as validate=true, the other as validate=false.
Is there a client-side equivalent ? 

Thanks a lot for any help. 

-- 
Marc Demlenne

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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Gaet
Ok,

Thanks for all of your QUICK answers!
I think that usinf Frameset is not a good solution has it is not recommended
from W3C
Using POST seems to be a good solution if it worksand it will only hide
the parameters isn't it?

Micheal, what is mod_rewrite?

Thanks to all of you!


- Original Message - 
From: Gaet [EMAIL PROTECTED]
To: Mailing List Struts user@struts.apache.org
Sent: Wednesday, July 13, 2005 2:48 PM
Subject: How to hide URL in Adress bar?


Hi evrybody,

I would like to hide the struts URL in the Adress bar of the client
browser
is there a way do always have www.mysite.com in the adress bar instead of
www.mysite.com/myStrutsAction.do?param1=param...??

Thanks for your help!


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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
Actually using POST is the WORST solution.



On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote:
 Ok,
 
 Thanks for all of your QUICK answers!
 I think that usinf Frameset is not a good solution has it is not recommended
 from W3C
 Using POST seems to be a good solution if it worksand it will only hide
 the parameters isn't it?
 
 Micheal, what is mod_rewrite?
 
 Thanks to all of you!
 
 
 - Original Message - 
 From: Gaet [EMAIL PROTECTED]
 To: Mailing List Struts user@struts.apache.org
 Sent: Wednesday, July 13, 2005 2:48 PM
 Subject: How to hide URL in Adress bar?
 
 
 Hi evrybody,
 
 I would like to hide the struts URL in the Adress bar of the client
 browser
 is there a way do always have www.mysite.com in the adress bar instead of
 www.mysite.com/myStrutsAction.do?param1=param...??
 
 Thanks for your help!
 
 
 -
 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: Alternate color in html:iterate

2005-07-13 Thread BHansard

This is how I have handled it in the past.

  c:choose
c:when test=${cssKey == 'odd'}
   bean:define  id=cssKey value=even/
/c:when
c:otherwise
   bean:define  id=cssKey value=odd/
/c:otherwise
  /c:choose
trtd class=c:out value=${cssKey}/xyz/td


Senthilrajan VS [EMAIL PROTECTED]








Senthilrajan VS [EMAIL PROTECTED] 
07/13/2005 10:53 AM

Please respond to
Struts Users Mailing List user@struts.apache.org








To
Sturts Mailing list user@struts.apache.org


cc



Subject
Alternate color in html:iterate








Hi All,

I'm using html:iterate to display the set of records in the table. Is there any way to put the alternate color using CSS classes in tag libraries


Thanks  Regards,
SenthilRajan VS



Re: Alternate color in html:iterate

2005-07-13 Thread Wendy Smoak
From: Senthilrajan VS [EMAIL PROTECTED]

 I'm using html:iterate to display the set of records in the table. Is
there any way
 to put the alternate color using CSS classes in tag libraries

There is, but a FAR better idea is to use DisplayTag:
http://displaytag.sourceforge.net/

I have one page where I need to have two rows for each 'record' so I do that
one manually:

c:forEach items=${profileView.research.clearanceRequestHistory}
var=notice varStatus=status
  c:set var=cellColor
c:choose
  c:when test=${status.index % 2 == 0}white/c:when
  c:otherwise#fce6c4/c:otherwise
/c:choose
  /c:set
tr style=background-color: c:out
value='${cellColor}'/;.../tr
tr style=background-color: c:out
value='${cellColor}'/;.../tr
/c:forEach

-- 
Wendy Smoak


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



Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread BHansard

If you are using Validator, you can create a DynaForm.  then based on the action that you are calling, the validations can be different.  This will work for either client side or server side supposedly.  I have only used server side with it.
Marc Demlenne [EMAIL PROTECTED]








Marc Demlenne [EMAIL PROTECTED] 
07/13/2005 10:56 AM

Please respond to
Struts Users Mailing List user@struts.apache.org








To
Struts Users Mailing List user@struts.apache.org


cc



Subject
validation client-side. Problem with 2 submit buttons








Hello, 

Using struts validation framework, what's the best way to handle the
following case :

You have a simple form with 2 submit buttons. One for display, the
other to modify changes.
How to make the validation active only for modify button ? 
Server-side, you can simply have 2 actions name, one of them defined
as validate=true, the other as validate=false.
Is there a client-side equivalent ? 

Thanks a lot for any help. 

-- 
Marc Demlenne

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





Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
sorry, i've hit the send button too quickly...

why not using POST:

your page will not be found (or indexed) by any search engine
you have to recode all (ALL!) links in your page with javascript to
submit forms
you will completely switch of browser cashes (whether you want it or
not)
back button will be disabled 
you will have to route every action through a single servlet/action

is it enough? :-)

regards
Leon

p.s. mod_rewrite is a apache module which allows you to rewrite urls
with reg expressions.

On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote:
 Ok,
 
 Thanks for all of your QUICK answers!
 I think that usinf Frameset is not a good solution has it is not recommended
 from W3C
 Using POST seems to be a good solution if it worksand it will only hide
 the parameters isn't it?
 
 Micheal, what is mod_rewrite?
 
 Thanks to all of you!
 
 
 - Original Message - 
 From: Gaet [EMAIL PROTECTED]
 To: Mailing List Struts user@struts.apache.org
 Sent: Wednesday, July 13, 2005 2:48 PM
 Subject: How to hide URL in Adress bar?
 
 
 Hi evrybody,
 
 I would like to hide the struts URL in the Adress bar of the client
 browser
 is there a way do always have www.mysite.com in the adress bar instead of
 www.mysite.com/myStrutsAction.do?param1=param...??
 
 Thanks for your help!
 
 
 -
 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: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Rafael Taboada
Hi, use Validator framework.
 In this framework u can put code in order to set a client-side validation 
for each feld.
 In ur modify method, call to ur validate method.
 I hope it can help u

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

No creo en el destino pues no me gusta tener la idea de controlar mi vida


Re: Redirecting JSP output

2005-07-13 Thread Frank W. Zammetti
I think I understand what your trying to do... one suggestion that comes
to mind is to use a filter.  Catch the output from the JSP, call the
appropriate service from there (I presume that's when the message actually
gets sent) and then construct the XML response that actually goes back to
the client.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Wed, July 13, 2005 10:43 am, Jens Augustsson said:
 Hi,

 I'm using Struts/JSP to to generate HTML, XHTML and WML interfaces of
 my application. My SMS interface is fairly advanced and I would like
 to use Struts/JSP to generate these (plain text ) responses too.

 My problem is that after generating the plain text response, I cannot
 simply return it to the requestor. Instead I need to send this message
 by calling another service and simply response with an acknowledge
 (XML) to the requestor.

 How can I do this and still use JSP for the design of the text responses?

 My first try was to extend the RequestProcessor and find some suitable
 post process methods to override, which might redirect the JSP
 output somewhere else. Found no such methods.

 My second try was to extend the ActionServlet and catch all that's
 written to the outputServletStream, but I don't know how to not flush
 the response and get a hold of what's written by the JSP.

 Cannot be that hard, can it? Or can I instead call for JSP processing
 in my Struts Action, get a hold of the output, send it using my own
 service, and simply return an acknowledgeOk forward to Struts?

 Hope anyone understands what I want to to! My main aim is to keep the
 design of the text responses out of my Java code, hopefully instead in
 a JSP page.

 best regards,
 Jens

 -
 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 hide URL in Adress bar?

2005-07-13 Thread Christopher Marsh-Bourdon
Why would you have to route every action through a single servlet/ 
action?


The others are nice to have for a web application (who wants a web  
app cached on indexable?), but if you code web sites you might be right.


Cheers

Christopher Marsh-Bourdon
www.marsh-bourdon.com
AIM: marshbourdon


On 13 Jul 2005, at 16:16, Leon Rosenberg wrote:


sorry, i've hit the send button too quickly...

why not using POST:

your page will not be found (or indexed) by any search engine
you have to recode all (ALL!) links in your page with javascript to
submit forms
you will completely switch of browser cashes (whether you want it or
not)
back button will be disabled
you will have to route every action through a single servlet/action

is it enough? :-)

regards
Leon

p.s. mod_rewrite is a apache module which allows you to rewrite urls
with reg expressions.

On Wed, 2005-07-13 at 17:05 +0200, Gaet wrote:


Ok,

Thanks for all of your QUICK answers!
I think that usinf Frameset is not a good solution has it is not  
recommended

from W3C
Using POST seems to be a good solution if it worksand it will  
only hide

the parameters isn't it?

Micheal, what is mod_rewrite?

Thanks to all of you!


- Original Message -
From: Gaet [EMAIL PROTECTED]
To: Mailing List Struts user@struts.apache.org
Sent: Wednesday, July 13, 2005 2:48 PM
Subject: How to hide URL in Adress bar?


Hi evrybody,

I would like to hide the struts URL in the Adress bar of the client
browser
is there a way do always have www.mysite.com in the adress bar  
instead of

www.mysite.com/myStrutsAction.do?param1=param...??

Thanks for your help!


-
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: File upload using maxFileSize

2005-07-13 Thread Jeff Beal
IIRC from previous threads, setting the maxFileSize cannot prevent
clients from submitting files larger than the limit you set, they can
only abort the processing thereof.  (This is not a Struts-specific
limitation.)  I believe the behavior you are seeing is the appropriate
behavior.  I think the appropriate action on the server side would be
to return an error to the user including an explanation that they
either (1)forgot to attach a file or (2) attempted to submit too large
a file.

It is unfortunate that we cannot prevent large file upload altogether,
but there's nothing in the HTML input element that relates to this,
and allowing any kind of file system access through JavaScript is a
security violation.  (From a security standpoint, it would seem
reasonable to allow access to files in an input field during an
onsubmit event, but no browsers do this.)

(Of course, I've never done much with file uploads at all, but I
believe this is the explanation that's been given in the past.)

-- Jeff

On 7/13/05, Marc Walter [EMAIL PROTECTED] wrote:
 Hi!
 
 In want to use the controller element maxFileSize in the
 struts-config.xml in order to provide a global maximum file upload size in
 my application. So I entered the value 2M (two megabytes) for test
 purpose.
 In my upload JSP I defined a submit button like this: html:submit
 value=Submit property=upload styleClass=button /
 When I choose a file greater than 2M and press the button the
 UploadAction.execute() method is performed. This is okay so far. In this
 method I search the request object for the value upload but it can't be
 found! If I remove the struts-config.xml controller entry maxFileSize the
 request parameter upload is found and the adequate code is processed. So
 it is as well if the file is less than 2M in size.
 
 So now I wonder why the usage of the maxFileSize attribute in conjunction
 with a file exceeding the given max size apparently removes my upload
 parameter from the request. The UploadAction is still being processed! Does
 someone have an explanation for this? I don't understand this struts
 behaviour. Thanks!
 
 Kind regards,
 Marc Walter
 
 
 -
 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 hide URL in Adress bar?

2005-07-13 Thread Tamas Szabo
On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote:
 Actually using POST is the WORST solution.

In my opinion showing the same URL for all pages is a very bad solution.
Why is it needed?


Tamas



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



Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
I DO use struts validator framework ... 

What i want is to to have _only_ one of the submit button to check the
client-side validation

But I can only decide to call validator or not by form, not by button.
As it is for client side that I have this problem, I can't call it
from my modify method...

On 13/07/05, Rafael Taboada [EMAIL PROTECTED] wrote:
 Hi, use Validator framework.
  In this framework u can put code in order to set a client-side validation
 for each feld.
  In ur modify method, call to ur validate method.
  I hope it can help u
 
 --
 Rafael Taboada
 Software Engineer
 
 Cell : +511-97753290
 
 No creo en el destino pues no me gusta tener la idea de controlar mi vida
 
 


-- 
Marc Demlenne

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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Wendy Smoak
From: Michael Jouravlev [EMAIL PROTECTED]

 Showing side by side examples from
Struts classic,
Struts-EL + JSTL 1.0, and
Struts + JSP 2.0 + JSTL 1.1
 is on my TODO list

 Does the above mean that Struts + JSP 1.2 + JSTL 1.0 (no Struts-EL)
 is not possible?

(Is this a trick question?)  Sure, it's possible.  It's going to make some
things harder than they need to be, such as...

   c:forEach items=${accountForm.map['accounts']} var=acct 
  html-el:multibox property=accounts value=${acct}/
   /c:forEach

And using Struts-EL will force you into the recommended practice of using
the JSTL tags whenever possible, because the Struts tags with JSTL
equivalents were intentionally left out.

-- 
Wendy Smoak


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



Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Set validation off in struts-config and call the Validate method from
within your Action:

if (yourForm.getAction().equals(action_to_validate)) {
  ActionErrors errors = form.validate(/*params*/);
  if (errors.isEmpty()) {
// all is good
  } else {
saveErrors(errors);
return mapping.findInputForward();
  }
}

--Jeff

On 7/13/05, Marc Demlenne [EMAIL PROTECTED] wrote:
 I DO use struts validator framework ...
 
 What i want is to to have _only_ one of the submit button to check the
 client-side validation
 
 But I can only decide to call validator or not by form, not by button.
 As it is for client side that I have this problem, I can't call it
 from my modify method...
 
 On 13/07/05, Rafael Taboada [EMAIL PROTECTED] wrote:
  Hi, use Validator framework.
   In this framework u can put code in order to set a client-side validation
  for each feld.
   In ur modify method, call to ur validate method.
   I hope it can help u
 
  --
  Rafael Taboada
  Software Engineer
 
  Cell : +511-97753290
 
  No creo en el destino pues no me gusta tener la idea de controlar mi vida
 
 
 
 
 --
 Marc Demlenne
 
 -
 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: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread BHansard

Instead of calling the return validateForm(this) function in the on submit, you could wrapper the check based on a _javascript_ variable.
_javascript_
var validate = true
/_javascript_

html:form action=""  return validateForm(this); }
html:submit  = true;validate/html:submit
html:submit  = false;don't validate/html:submit
/html:form



Marc Demlenne [EMAIL PROTECTED]








Marc Demlenne [EMAIL PROTECTED] 
07/13/2005 11:30 AM

Please respond to
Struts Users Mailing List user@struts.apache.org








To
Struts Users Mailing List user@struts.apache.org, Rafael Taboada [EMAIL PROTECTED]


cc



Subject
Re: validation client-side. Problem with 2 submit buttons








I DO use struts validator framework ... 

What i want is to to have _only_ one of the submit button to check the
client-side validation

But I can only decide to call validator or not by form, not by button.
As it is for client side that I have this problem, I can't call it
from my modify method...

On 13/07/05, Rafael Taboada [EMAIL PROTECTED] wrote:
 Hi, use Validator framework.
 In this framework u can put code in order to set a client-side validation
 for each feld.
 In ur modify method, call to ur validate method.
 I hope it can help u
 
 --
 Rafael Taboada
 Software Engineer
 
 Cell : +511-97753290
 
 No creo en el destino pues no me gusta tener la idea de controlar mi vida
 
 


-- 
Marc Demlenne

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





Re: Alternate color in html:iterate

2005-07-13 Thread Marc Walter
Hi!

Try this:

logic:iterate name=yourForm property=yourProperty id=yourId indexId=
counter
tr % if Integer) pageContext.getAttribute(counter)).intValue() % 2)
== 0) { %class=odd% } else { %class=even% } %

It works fine. Define the colours in your local css file for the classes
odd and even.

Kind regards,
Marc Walter


-
Hi All,

I'm using html:iterate to display the set of records in the table. Is there
any way to put the alternate color using CSS classes in tag libraries


Thanks  Regards,
SenthilRajan VS



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



Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Sorry -- missed the 'client-side' bit somehow.  ;)

On 7/13/05, Jeff Beal [EMAIL PROTECTED] wrote:
 Set validation off in struts-config and call the Validate method from
 within your Action:
 
 if (yourForm.getAction().equals(action_to_validate)) {
   ActionErrors errors = form.validate(/*params*/);
   if (errors.isEmpty()) {
 // all is good
   } else {
 saveErrors(errors);
 return mapping.findInputForward();
   }
 }
 
 --Jeff
 
 On 7/13/05, Marc Demlenne [EMAIL PROTECTED] wrote:
  I DO use struts validator framework ...
 
  What i want is to to have _only_ one of the submit button to check the
  client-side validation
 
  But I can only decide to call validator or not by form, not by button.
  As it is for client side that I have this problem, I can't call it
  from my modify method...
 
  On 13/07/05, Rafael Taboada [EMAIL PROTECTED] wrote:
   Hi, use Validator framework.
In this framework u can put code in order to set a client-side validation
   for each feld.
In ur modify method, call to ur validate method.
I hope it can help u
  
   --
   Rafael Taboada
   Software Engineer
  
   Cell : +511-97753290
  
   No creo en el destino pues no me gusta tener la idea de controlar mi 
   vida
  
  
 
 
  --
  Marc Demlenne
 
  -
  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: Alternate color in html:iterate

2005-07-13 Thread Ext . Ilitia2

another way:

logic:iterate name=yourForm property=yourProperty id=yourId indexId
=counter

tr class=%= ((Integer)pageContext.getAttribute(counter)).intValue() %
2 == 0 ? odd : even% 




|-+
| |   Marc Walter  |
| |   [EMAIL PROTECTED]|
| |   ch.com  |
| ||
| |   13/07/2005 17:13 |
| |   Please respond to|
| |   Struts Users|
| |   Mailing List|
| ||
| ||
| ||
| ||
|-+
  
--|
  | 
 |
  |   To:   Struts Users Mailing List user@struts.apache.org
 |
  |   cc:   
 |
  |   bcc:  
 |
  |   Subject:  Re: Alternate color in html:iterate 
 |
  
--|




Hi!

Try this:

logic:iterate name=yourForm property=yourProperty id=yourId indexId=
counter
tr % if Integer) pageContext.getAttribute(counter)).intValue() % 2)
== 0) { %class=odd% } else { %class=even% } %

It works fine. Define the colours in your local css file for the classes
odd and even.

Kind regards,
Marc Walter


-
Hi All,

I'm using html:iterate to display the set of records in the table. Is there
any way to put the alternate color using CSS classes in tag libraries


Thanks  Regards,
SenthilRajan VS



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



It worked fine until they changed the spec - url in a link with parameters

2005-07-13 Thread Braun, James F
The following code works fine (Thanks to previous help on this list).


a class=featureBoxTextLink href=bean:message
key=link.PrivacyPolicy/
  bean:message key=link.text.PrivacyPolicy/
/a

It displays the Privacy Policy title in the proper language and sets the
proper link for the country using values in the application resource
files.

Now they want the country code passed as a parameter. 
e.g. www.mycompany.com/specific_country/policy?pp=DE

I have no idea how to do this and I'm leaving for vacation in 5 hours!
If I do it outside of the struts framework I'm not sure how to access
the application resource files.

Any and all help would be appreciated.

J.

J. Braun
Polaroid Corp.
Waltham MA USA
+1 781.386.6871
+1 781.424.1159 mobile
[EMAIL PROTECTED]
 
Excellence through execution.
 

-- 
This transmission is intended only for use by the addressee(s) named herein and 
may contain information that is proprietary, confidential and/or legally 
privileged. If you are not the intended recipient, you are hereby notified that 
any disclosure, copying, distribution, or use of the information contained 
herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received 
this transmission in error, please immediately contact the sender and destroy 
the material in its entirety, whether in electronic or hard copy format. Thank 
you.



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



Struts Content Manager

2005-07-13 Thread Svevo SAMPERI
Hello everyone!

I've been asked to research an opensource webapp with features comparable 
to phpnuke (www.phpnuke.org) written in Java and that uses Struts as 
controller.
Can anyone point me to something like that or to any other Java/Struts 
pensource content manager?

Thank you a lot!

S.

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Laurie Harper

Michael Jouravlev wrote:


On 7/12/05, Laurie Harper [EMAIL PROTECTED] wrote:


Michael Jouravlev wrote:


Does the above mean that Struts + JSP 1.2 + JSTL 1.0 (no Struts-EL)
is not possible?


I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would
you want to?



http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

Standard-1.1 (JSTL 1.1) requires a JSP container that supports the
Java Servlet 2.4 and JavaServer Pages 2.0 specifications.

Standard-1.0 (implementation of the JSTL 1.0 specification) requires a
JSP container that supports the Java Servlet 2.3 and JavaServer Pages
1.2 specifications.

Michael.


Oops, I mis-read 1.2 as 2.0! Doh...

--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Re: New to Struts

2005-07-13 Thread Access Denied
An excellent resource for beginners:

http://tinyurl.com/eyxkp

buddy

On 7/13/05, Kumar deepak [EMAIL PROTECTED] wrote:
 Hello,
 
 This is also a good tutorial http://www.roseindia.net/struts/
 
 Deepak Kumar
 
 
 [Gmail] LunLun [EMAIL PROTECTED] wrote:
 Hello,
 
 
 1) can someone recommend me a good struts book and/or online tutorial to help 
 me get started quickly.
 I found these two books interesting:
 
 Struts in Action
 http://www.manning.com/books/husted
 (the source code is available here:
 http://www.manning.com/books/husted/source )
 
 
 Jakarta Struts for Dummies
 http://www.amazon.com/exec/obidos/tg/detail/-/0764559575/ref=pd_sxp_f/102-8775537-9281749?v=glances=books
 
 
 Hope it helps,
 LunLun
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


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



RE: Alternate color in html:iterate

2005-07-13 Thread Adrian_Rios
Here is the way I accomplished this:

c:forEach items=${sessionScope.??} var=variable goes here
varStatus=count  
c:choose
c:when test=${(count.count % 2) != 0}
tr bgcolor=#FF
/c:when

c:otherwise
tr bgcolor=#EDEDED
/c:otherwise
/c:choose
/forEach

Also, take a look at this:
http://forum.java.sun.com/thread.jspa?forumID=45threadID=252997

Adrian

__

Senior Programmer Analyst, Tax Distributed Systems Development

Tax  Compliance Development, ADP IT

Phone: (909) 592-6411 Ext. 3863

e-mail: [EMAIL PROTECTED]



-Original Message-
From: Marc Walter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 8:14 AM
To: Struts Users Mailing List
Subject: Re: Alternate color in html:iterate


Hi!

Try this:

logic:iterate name=yourForm property=yourProperty id=yourId indexId=
counter
tr % if Integer) pageContext.getAttribute(counter)).intValue() % 2)
== 0) { %class=odd% } else { %class=even% } %

It works fine. Define the colours in your local css file for the classes
odd and even.

Kind regards,
Marc Walter


-
Hi All,

I'm using html:iterate to display the set of records in the table. Is there
any way to put the alternate color using CSS classes in tag libraries


Thanks  Regards,
SenthilRajan VS



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

-
This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient or an authorized
representative of the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited. If you have
received this communication in error, notify the sender immediately by
return email and delete the message and any attachments from your system.



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



Re: Alternate color in html:iterate

2005-07-13 Thread Borislav Sabev
Take a look at Strus-Layout, there are a lot of suefull tags inluding 
iteration tags with alternate colors, soring, paging etc

http://struts.application-servers.com/

Regards
Borislav

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

Re: Problem with action forward while using Frames

2005-07-13 Thread Laurie Harper

syed abrar wrote:
  
Hello All,

I have a problem.I have two frames with two different jsps.And after 
selecting the options(checkboxes) in the second frame the control goes to the 
Action class.After processing the request the control has to be passed to other 
jsp page(which have declared in struts-config.xml file).But after I return the 
ActionForward the jsp page is opening in the second frame itself without 
closing the opened frame.

Can any one please help me


Short of doing fancy things with Javascript, the way to achieve that would 
to to specify the first frame as the target (target='...') for the form 
submission in the second frame.


L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/


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



Session Timeout Issue With Modules

2005-07-13 Thread Steven Simpson
Hi everyone, 
 
I just started implementing modules into a Struts app that has existed for a
while without them.  Now, I have some functionality within a module.  The
problem is that the session timeout now doesn't appear to work when the user
is within the module.  I have these settings in my web.xml:
 
init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
param-nameconfig/moduleB/param-name
param-value/WEB-INF/struts-config-moduleB.xml/param-value
  /init-param
...
session-config
session-timeout1/session-timeout
/session-config
 
When I access functionality within the default module, the session times out
after one minute like usual.  The same is not happening within moduleB.  I
also tried putting session.setMaxInactiveInterval(60); in the code with the
same result.  I've searched google, java.sun's forum, and these archives and
haven't found any similar issues.  Does anyone know what might be going on?

 
Thank you,
Steve


Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Marc Demlenne
Nice trick. So simple I didn't thought about this. 
Thanks very much ! 

On 13/07/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
  
 
 Instead of calling the return validateForm(this) function in the on submit,
 you could wrapper the check based on a JavaScript variable.
  javascript
  var validate = true
  /javascript
  
  html:form action=xyz.do onsubmit=if(validate){ return
 validateForm(this); }
  html:submit onclick=validate = true;validate/html:submit
  html:submit onclick=validate = false;don't validate/html:submit
  /html:form
  
  
  
  Marc Demlenne [EMAIL PROTECTED]
  
  
  
  
  
  
  
 Marc Demlenne [EMAIL PROTECTED] 
 
 07/13/2005 11:30 AM 
 Please respond to
  Struts Users Mailing List user@struts.apache.org 
 
  
 To
  Struts Users Mailing List user@struts.apache.org, Rafael Taboada
 [EMAIL PROTECTED] 
 
  
 cc
  
 
  
 Subject
  Re: validation client-side. Problem with 2 submit buttons 
  
  
 I DO use struts validator framework ... 
  
  What i want is to to have _only_ one of the submit button to check the
  client-side validation
  
  But I can only decide to call validator or not by form, not by button.
  As it is for client side that I have this problem, I can't call it
  from my modify method...
  
  On 13/07/05, Rafael Taboada [EMAIL PROTECTED] wrote:
   Hi, use Validator framework.
In this framework u can put code in order to set a client-side
 validation
   for each feld.
In ur modify method, call to ur validate method.
I hope it can help u
   
   --
   Rafael Taboada
   Software Engineer
   
   Cell : +511-97753290
   
   No creo en el destino pues no me gusta tener la idea de controlar mi
 vida
   
   
  
  
  -- 
  Marc Demlenne
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 


-- 
Marc Demlenne

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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Wendy Smoak [EMAIL PROTECTED] wrote:
 From: Michael Jouravlev [EMAIL PROTECTED]
 
  Showing side by side examples from
 Struts classic,
 Struts-EL + JSTL 1.0, and
 Struts + JSP 2.0 + JSTL 1.1
  is on my TODO list
 
  Does the above mean that Struts + JSP 1.2 + JSTL 1.0 (no Struts-EL)
  is not possible?
 
 (Is this a trick question?) 

No, it is not a trick question. I just started with JSTL. I used only
Struts tags before.

 Sure, it's possible.  It's going to make some
 things harder than they need to be, such as...
 
c:forEach items=${accountForm.map['accounts']} var=acct 
   html-el:multibox property=accounts value=${acct}/
/c:forEach
 
 And using Struts-EL will force you into the recommended practice of using
 the JSTL tags whenever possible, because the Struts tags with JSTL
 equivalents were intentionally left out.

html-el is Struts-EL tag, is not it? I would prefer to use JSTL
only. I think I can do that. But it this case, what Struts-EL is for?
For convenience only?

Michael.

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



[OT] olipmic rings metaphor

2005-07-13 Thread Borislav Sabev

Ted Husted wrote:


In my own work, I tend to think of an enterprise-grade application as
a set of overlapping rings, like the Olympics logo.

* http://www.olympic.org/

In the Blue ring live the view members, like custom tags or UI
components, and the HTTP request and response objects. This is the
layer where our appliction interacts with the rest of the world.

Some of the Blue ring members also interact with the presentation
controller components that live in the Gold ring, like the  Struts
Actions, ActionForms, and JSF backing beans. This is the layer that
interprets user gestures to decide which view to display next, and
may also convert or format data as needed.

In turn, Gold ring components interact with your own business objects,
which live in the Black ring. The business compnents could also be
chains of commands, representing services, rather than conventional
object representing domain entities. This layer often acts as a 
liaison between the view-centric Blue and Gold rings, and the

data-centric Green and Red rings.

To be useful, most business objects need to access persistent data.
Rather than talk to the native database API, most of us use data
access objects, that live in the Green ring. Here we find components
like iBATIS or Hibernate, JDO, or just plain JDBC. This layer links
specific business methods to general-purpose persistence methods.

Finally, in the Red ring, we find our dragon -- the physical database.
In some applications, the database is a deep crimson that represents
our solution to the domain's problems. Other times, the domain logic
lives in the black ring, and the red ring is a pale pink shoebox.

In some applications, the rings are separated by framework or package
lines, like Struts and iBATIS. In other applications, the rings may
exist as separate classes in the same package, or even different
methods on the same class. But, eventually, in my experience, any
long-lived, well-factored application will find itself using all five
rings, or all five separations of concern, in one way or the other.

Of course, in a conventional MVC application, the Black and Blue rings
intersect, forming a triad, and the Green and Red rings are not
described. Though, I expect, the other rings did still exist, but were
simply hidden behind the event horizon of MVC's Black ring.

-Ted.

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


 


Hi Ted,

How do you classify Security and Authorization issues in this metaphor?

In my current project I have troubles since code that is related somehow 
to Authorization is spread over all rings. Still it's difficult to me 
to have a clear understanding how to implement in a nice, consistent 
way. I'll appreciate any suggestions or recommendations about this problem.


Regards
Borislav

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

Re: Putting execute() in ActionForm

2005-07-13 Thread Craig McClanahan
On 7/13/05, Yaroslav Novytskyy [EMAIL PROTECTED] wrote:
 Hello!
 
 Craig McClanahan wrote:
  On 7/11/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 
 Craig McClanahan wrote:
 
 I think of the state information represented by an ActionForm (in
 Struts 1.x) or potentially as properties of an action class (per the
 current discussion) to be part of the *view* tier.  Further, I see the
 role of the execute method on an action as being an Adapter Pattern
 link between the web tier (HTTP-centric) and the model tier
 (HTTP-agnostic).  Therefore, I don't feel any pain at the idea of
 combining the two together.
 
 It sounds like what your saying is that there really is no need for a
 control layer, we're coming down to view-adapter-model now.  Am I
 understanding that correctly?
 
 
 
  Not completely, but amost.
 
  There are reasons to have an application scoped front controller.
  There are reasons to have a view-scoped front controller.  There is
  *no* reason I am aware of that requires these controllers to be the
  same :-).
 
 (The question is below but here I only wonder: what is a view-scoped
 front controller? :) what are the differences between a view-scoped
 and an application-scoped (a normal one as I can guess) front
 controller?)

In design pattern terms, it's actually the View Helper pattern more
than it really is a view scoped front controller.  But the key
differences are:

FRONT CONTROLLER
- Typically an application-level singleton
- Processes every request
- Enforces global architectural issues (has the user logged in?
  perform validations before application actions.  ...)
- Manages navigation between views

VIEW HELPER:
- Typically one instance per view
- Processes only requests for that view
- Assists the view in performing its rendering (go execute
  the JDBC select or Hibernate query needed for rendering
  a table, and clean up afterwards).
- Does not manage navigation, but provides logical
  outcomes that influence the navigation performed
  by the front controller

 
  In Shale, the application-scoped functions are performed by a Commons
  Chain pipeline that is configured and processed by Shale's filter.
  This is the right place to put things like if the user isn't logged
  on, redirect to the login page and log every request type
  functions.  But it is not the right place for execute this expensive
  SQL query, but *only* if I am the view that needs it..
 
  In Struts 1.x, you get around the latter case, typically, by having a
  setup action before the view, and a process action after the view.
  Shale simply combines those two bits of code into a single class (and,
  along the way, combining the form bean too), resulting in a little
  less code, but a lot fewer classes.
 
 In Struts 1.x I do use setupAction-jsp-processAction technique and was
 thinking all the time how can I put together the setupAction and
 processAction into one class. The best way I could think of was to make
 a downgraded DispatchAction, that dispatches based on mapping's
 parameter (in the latest version of Struts just the same thing appeared
 named MappingDispatchAction) and to put both setup and precess
 actions-methods into one class.
 
 (p.s. this technique made it also possible to automate token-based
 protection - every prepare calls saveToken and before every process
 token is checked)
 
 So please tell, in what way does Shale do this?

Shale provides four application level events in your backing bean
(optionally -- you don't *have* to leverage this, but you'll get the
service if you implement the ViewController interface):

* init() -- The view you are associated with is going to be involved
  in the current request (either you are about to process a postback
  or about to process a render), so gather any resources you need
  to get ready for either.

* preprocess() -- Your view is about to process a form submit,
  so get set up.  For example, you might need to go lock a database
  row, or acquire references to some business logic options.

* prerender() -- Your view is about to be rendered, so go collect the
  data that will be needed (this is used for the sort of stuff a setup
  action typically does in a struts app).

* destroy() -- The framework guarantees to call this *after* rendering
  so you can clean up any allocated resources.  For example, you
  might have executed a JDBC query in prerender() to provide the data
  for a table; here is where you would close it and release the
  database resources.  (This is something Struts doesn't support
  directly; you have to mess around with a filter or something like that).


 Should I pay more attention to shale? Is it ready to try it out on some
 small test projects?

I would definitely suggest paying attention :-).  If you're
investigating the JSF route, JSF+Shale is a good combination.

 
 
 Yaroslav Novytskyy
 

Craig

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

Re: How to hide URL in Adress bar?

2005-07-13 Thread Stéphane Zuckerman

In my opinion showing the same URL for all pages is a very bad solution.
Why is it needed?
I don't know for the original poster, but what bothers me is the fact 
that one can see the parameters in the url displayed. Apart from that, 
Having different URLs seems a normal behaviour...


--
Stéphane Zuckerman

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



Re: Alternate color in html:iterate

2005-07-13 Thread Rick Reumann

Senthilrajan VS wrote the following on 7/13/2005 10:53 AM:

Hi All,

I'm using html:iterate to display the set of records in the table. Is

there any way to put the alternate color using CSS classes in tag libraries


Since you will probably need this functionality in several places in 
your application, I suggest you make tag to do it, vs doing the 
conditional logic everywhere within the application. Using JSP2.0 I made 
this simple tag file that I'll list below.


In order to use it you simply replace your standard tr with something like:

c:forEach items=${associates} var=associate varStatus=status
tags:AltRowColor status=${status.index}/
td./td

You mentioned you were using logic:iterate, which in that case replace 
${status.index} with whatever your current count var is (forgot the 
logic:iterate syntax).


The tag file takes some optional parameters. If you provide nothing like 
I did above (other than status) it will create class=odd and 
class=even so you'll need to have an odd and even classes definined in 
a style sheet somewhere. However, if you don't like those terms 'odd' 
and 'even', you can pass in your own class names (ie odd=myOddClass). 
It also lets you pass in an optional class name in case you already have 
one defined that handles the rest of the row format. (The only thing you 
might want to add to the tag is the option to take a 'style' definition 
that would be the custom hardcoded style - I don't like that practice 
though since typically I like to define classes that have my styles, 
since it's easier to maintain).


Also, assuming you put this tag file below in a directory under WEB-INF 
called tags, don't forgot the import on the top of the pages you want 
to use like this:


%@ taglib prefix=tags tagdir= /WEB-INF/tags %


Here's the simple tag file:

//AltRowColor.tag

%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
%@ attribute name=status %
%@ attribute name=odd %
%@ attribute name=even %
%@ attribute name=styleClass %
%-- if user doesn't provide an odd or even value it uses odd and even 
as class names --%

c:if test='${even == null || even ==  }'
c:set var=even value=even/
/c:if
c:if test='${odd == null || odd ==  }'
c:set var=odd value=odd/
/c:if
c:choose
c:when test=${(status +1) % 2 != 0 }
tr class=${odd} ${styleClass}
/c:when
c:otherwise
tr class=${even} ${styleClass}
/c:otherwise
/c:choose


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



html:text display

2005-07-13 Thread Archana .
Hi,

 I have a html:text field on my form whose corresponding bean property is
an integer(text field represents year). The default value is 0. I want
the text field to display blank when the value is 0, and display the
value otherswise. Would anyone know how this can be done?

Thanks,

Archana

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



Re: html:text display

2005-07-13 Thread Rick Reumann

Archana . wrote the following on 7/13/2005 2:24 PM:


 I have a html:text field on my form whose corresponding bean property is
an integer(text field represents year). The default value is 0. I want
the text field to display blank when the value is 0, and display the
value otherswise. Would anyone know how this can be done?


You ActionForm properties should always be Strings. Make it a String and 
you are all set.


If 0 comes back from the DB and  you populate the form for say an edit, 
it will show 0, but if that's not what you want then you'll need some 
slignly logic in your ActionForm or in the Action that populates the 
Form - I'd do the later.




--
Rick

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



Re: [OT] olipmic rings metaphor

2005-07-13 Thread Martin Gainty

Boris-
I see Security as implemented by RingBearer Frodo in Lord of the Rings
The caretaker of the ring travels thru all domains and access to the other 
dimension (portal which contains final results) regardless of any domain he 
travels thru

Begreife?
Martin-
- Original Message - 
From: Borislav Sabev [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 12:54 PM
Subject: [OT] olipmic rings metaphor



Ted Husted wrote:


In my own work, I tend to think of an enterprise-grade application as
a set of overlapping rings, like the Olympics logo.

* http://www.olympic.org/

In the Blue ring live the view members, like custom tags or UI
components, and the HTTP request and response objects. This is the
layer where our appliction interacts with the rest of the world.

Some of the Blue ring members also interact with the presentation
controller components that live in the Gold ring, like the  Struts
Actions, ActionForms, and JSF backing beans. This is the layer that
interprets user gestures to decide which view to display next, and
may also convert or format data as needed.

In turn, Gold ring components interact with your own business objects,
which live in the Black ring. The business compnents could also be
chains of commands, representing services, rather than conventional
object representing domain entities. This layer often acts as a
liaison between the view-centric Blue and Gold rings, and the
data-centric Green and Red rings.

To be useful, most business objects need to access persistent data.
Rather than talk to the native database API, most of us use data
access objects, that live in the Green ring. Here we find components
like iBATIS or Hibernate, JDO, or just plain JDBC. This layer links
specific business methods to general-purpose persistence methods.

Finally, in the Red ring, we find our dragon -- the physical database.
In some applications, the database is a deep crimson that represents
our solution to the domain's problems. Other times, the domain logic
lives in the black ring, and the red ring is a pale pink shoebox.

In some applications, the rings are separated by framework or package
lines, like Struts and iBATIS. In other applications, the rings may
exist as separate classes in the same package, or even different
methods on the same class. But, eventually, in my experience, any
long-lived, well-factored application will find itself using all five
rings, or all five separations of concern, in one way or the other.

Of course, in a conventional MVC application, the Black and Blue rings
intersect, forming a triad, and the Green and Red rings are not
described. Though, I expect, the other rings did still exist, but were
simply hidden behind the event horizon of MVC's Black ring.

-Ted.

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





Hi Ted,

How do you classify Security and Authorization issues in this metaphor?

In my current project I have troubles since code that is related somehow
to Authorization is spread over all rings. Still it's difficult to me
to have a clear understanding how to implement in a nice, consistent
way. I'll appreciate any suggestions or recommendations about this 
problem.


Regards
Borislav









-
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: html:text display

2005-07-13 Thread Rick Reumann

Rick Reumann wrote the following on 7/13/2005 3:03 PM:


slignly logic  


Ha, sounds like a cool word slignly - no clue what I was trying to say 
there since I typed it so fast.. I must have meant slight.


--
Rick

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



Re: [OT] olipmic rings metaphor

2005-07-13 Thread Ted Husted
On 7/13/05, Borislav Sabev [EMAIL PROTECTED] wrote:
 How do you classify Security and Authorization issues in this metaphor?
 
 In my current project I have troubles since code that is related somehow
 to Authorization is spread over all rings. Still it's difficult to me
 to have a clear understanding how to implement in a nice, consistent
 way. I'll appreciate any suggestions or recommendations about this problem.

The classic Layers pattern describes a systems layer that runs along
all the layers, so that it is adjacent to each one.

Many Struts applications run into this problem not only with
authorization but with validation. We often want to have some
validation on the client-side, to enhance the user experience and to
reduce load on the server, but, we can't do all the validation
client-side, because there are things that only the server can know.
(Like if the credentials tendered are valid.)

-Ted.

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



Re: Putting execute() in ActionForm

2005-07-13 Thread Ted Husted
In 7/11/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
 I wanted to post something like Rick, Ted and other orthodox guys,
 check out this guy's suggestion, but then I decided not to ;-)

Wow! That may have been the first time anyone has ever accused me of
being orthodox :)

I've never used this strategy myself, but I don't see anything wrong
with it. In fact, if  I were to start coding in Java again, this is
the strategy I would probably use. At this point, I'm accustom to
having a code-behind, and the ActionForm is the closest thing Struts
has to a code-behind.

If I were to use this strategy, I'd select the parameters to the
Execute signature with care. There may not be any reason to pass the
HTTP parameters out of the call, and there may be a reason  to pass
the Action. I would just be careful of using the parameters from the
Struts Execute signature, unless my code actually needed those
parameters..

I also wouldn't hestitate to put some traffic cop code into the base
Action as needed, so that the ActionForm execute can focus on what it
needs to do, rather than what the application needs to do.

I'd also consider using a base ActionForm with all the properties my
application needs, which I could then extend with execute and validate
methods, as needed.

Though, I'd probably use a DynaActionForm instead of a conventional
ActionForm as the base class, just for the agility.

Most importantly, I'd make very sure that all my code-behind
ActionForms were request scope, probably by changing the factory
default.

-Ted.

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



Re: Putting execute() in ActionForm

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Ted Husted [EMAIL PROTECTED] wrote:
 Most importantly, I'd make very sure that all my code-behind
 ActionForms were request scope, probably by changing the factory
 default.

In this case this form would not be stateful. At least for me, it is
the whole point of sticking data and behavior and state in one place.
Redirection does not work well with request scope. And redirection is
the must to cleanly separate input phase from output phase. See, I was
right calling you 'orthodox' :))

Michael.

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



sporadic no property found error

2005-07-13 Thread Johnson, Kaerstin

I have an application that I get sporadic struts errors when I submit
the jsp page forms. The application is using struts tiles and also a
couple jsp includes, and some of the pages have two different forms
(each with different form beans) on one page. 

The intermittent error says no property propertyName found under bean
form. 

The submits work on the pages most of the time, and only sporadically
gives this error. The field name that it lists changes, and also it's
not always the same page. 

The getter and setter methods are in the form bean and spelled
correctly. Struts action forms, struts-config, etc.. has been generated
by AndroMDA/Bp4mStruts cartridge, but looks fine to me. 

Any ideas? 

Here is some code from one of the JSPS: 

Included jsp reads:

  html:form action=/myActionPath/Action method=post
enctype=multipart/form-data onsubmit=
table
tbody
tr
td class=labelOriginator:/td
td class=field
html:select name=form onchange=document.myFormName.submit();
property=operation onmouseover=hints.show('myhint')
onmouseout=hints.hide() styleId=filterOperationsOperation
html:optionsCollection name=form
property=operationBackingList label=label
value=value/
/html:select
/td

/tr
/tbody
/table
/html:form


-
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: sporadic no property found error

2005-07-13 Thread Martin Gainty


- Original Message - 
From: Johnson, Kaerstin [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 3:32 PM
Subject: sporadic no property found error



I have an application that I get sporadic struts errors when I submit
the jsp page forms. The application is using struts tiles and also a
couple jsp includes, and some of the pages have two different forms
(each with different form beans) on one page. 


The intermittent error says no property propertyName found under bean
form. 


The submits work on the pages most of the time, and only sporadically
gives this error. The field name that it lists changes, and also it's
not always the same page. 


The getter and setter methods are in the form bean and spelled
correctly. Struts action forms, struts-config, etc.. has been generated
by AndroMDA/Bp4mStruts cartridge, but looks fine to me. 

Any ideas? 

Here is some code from one of the JSPS: 


Included jsp reads:

 html:form action=/myActionPath/Action method=post
enctype=multipart/form-data onsubmit=
   table
   tbody
   tr
   td class=labelOriginator:/td
   td class=field
html:select name=form onchange=document.myFormName.submit();
property=operation onmouseover=hints.show('myhint')
onmouseout=hints.hide() styleId=filterOperationsOperation
   html:optionsCollection name=form
property=operationBackingList label=label
value=value/
/html:select
/td

   /tr
   /tbody
   /table
   /html:form


-
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: sporadic no property found error

2005-07-13 Thread Martin Gainty

Goddag Kaerstin

I would have to see
-abstract base class and implementation class 
-any Hibernate mapping files 
-any DDL statements to create the tables 


Tack,
Martin-
- Original Message - 
From: Johnson, Kaerstin [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 3:32 PM
Subject: sporadic no property found error



I have an application that I get sporadic struts errors when I submit
the jsp page forms. The application is using struts tiles and also a
couple jsp includes, and some of the pages have two different forms
(each with different form beans) on one page. 


The intermittent error says no property propertyName found under bean
form. 


The submits work on the pages most of the time, and only sporadically
gives this error. The field name that it lists changes, and also it's
not always the same page. 


The getter and setter methods are in the form bean and spelled
correctly. Struts action forms, struts-config, etc.. has been generated
by AndroMDA/Bp4mStruts cartridge, but looks fine to me. 

Any ideas? 

Here is some code from one of the JSPS: 


Included jsp reads:

 html:form action=/myActionPath/Action method=post
enctype=multipart/form-data onsubmit=
   table
   tbody
   tr
   td class=labelOriginator:/td
   td class=field
html:select name=form onchange=document.myFormName.submit();
property=operation onmouseover=hints.show('myhint')
onmouseout=hints.hide() styleId=filterOperationsOperation
   html:optionsCollection name=form
property=operationBackingList label=label
value=value/
/html:select
/td

   /tr
   /tbody
   /table
   /html:form


-
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: sporadic no property found error

2005-07-13 Thread Johnson, Kaerstin

Hey, 

I'm not sure which abstract base class and implementation class you
would need to see?

Also, I think the fields giving this error are not persisted, so there
are no hibernate object mappings or table fields for them?  Could this
have something to do with it? 

Thanks,
Kaeri 



-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 13, 2005 4:45 PM
To: Struts Users Mailing List
Subject: Re: sporadic no property found error

Goddag Kaerstin

I would have to see
-abstract base class and implementation class 
-any Hibernate mapping files 
-any DDL statements to create the tables 

Tack,
Martin-
- Original Message - 
From: Johnson, Kaerstin [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 3:32 PM
Subject: sporadic no property found error



I have an application that I get sporadic struts errors when I submit
the jsp page forms. The application is using struts tiles and also a
couple jsp includes, and some of the pages have two different forms
(each with different form beans) on one page. 

The intermittent error says no property propertyName found under bean
form. 

The submits work on the pages most of the time, and only sporadically
gives this error. The field name that it lists changes, and also it's
not always the same page. 

The getter and setter methods are in the form bean and spelled
correctly. Struts action forms, struts-config, etc.. has been generated
by AndroMDA/Bp4mStruts cartridge, but looks fine to me. 

Any ideas? 

Here is some code from one of the JSPS: 

Included jsp reads:

  html:form action=/myActionPath/Action method=post
enctype=multipart/form-data onsubmit=
table
tbody
tr
td class=labelOriginator:/td
td class=field
html:select name=form onchange=document.myFormName.submit();
property=operation onmouseover=hints.show('myhint')
onmouseout=hints.hide() styleId=filterOperationsOperation
html:optionsCollection name=form
property=operationBackingList label=label
value=value/
/html:select
/td

/tr
/tbody
/table
/html:form


-
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: [OT] olipmic rings metaphor

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Borislav Sabev [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 18:54
 An: Struts Users Mailing List
 Betreff: [OT] olipmic rings metaphor
 
 How do you classify Security and Authorization issues in this 
 metaphor?
 
 In my current project I have troubles since code that is 
 related somehow to Authorization is spread over all rings. 
 Still it's difficult to me to have a clear understanding how 
 to implement in a nice, consistent way. I'll appreciate any 
 suggestions or recommendations about this problem.
 

I think each layer has its own security and authorization sublayers (a layer
itself can be composed of multiple layers) in the corba world better known
as interruptors. But each layer should only make decision based on the
knowledge which the layer itself posseses. 
So the presentation layer decides whether a user is allowed to execute a
specific use case by checking user's permissions and roles. 
The business layer decides whether the specific method can be called from
specific caller (a host for example), and the persistence layer decides
which process/host can access the database. If you think about what you want
to protect from whom, and act accordingly.
I think it makes little sense to have a per-user check in the business
layer, since access controls are best in front of something not behind it or
within. But its just an opinion.

Regards
Leon



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



Re: [OT] olipmic rings metaphor

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Borislav Sabev [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 18:54
 An: Struts Users Mailing List
 Betreff: [OT] olipmic rings metaphor
 
 How do you classify Security and Authorization issues in this 
 metaphor?
 
 In my current project I have troubles since code that is 
 related somehow to Authorization is spread over all rings. 
 Still it's difficult to me to have a clear understanding how 
 to implement in a nice, consistent way. I'll appreciate any 
 suggestions or recommendations about this problem.
 

I think each layer has its own security and authorization sublayers (a layer
itself can be composed of multiple layers) in the corba world better known
as interruptors. But each layer should only make decision based on the
knowledge which the layer itself posseses. 
So the presentation layer decides whether a user is allowed to execute a
specific use case by checking user's permissions and roles. 
The business layer decides whether the specific method can be called from
specific caller (a host for example), and the persistence layer decides
which process/host can access the database. If you think about what you want
to protect from whom, and act accordingly.
I think it makes little sense to have a per-user check in the business
layer, since access controls are best in front of something not behind it or
within. But its just an opinion.

Regards
Leon



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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Tamas Szabo [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 17:26
 An: Struts Users Mailing List
 Betreff: Re: How to hide URL in Adress bar?
 
 On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote:
  Actually using POST is the WORST solution.
 
 In my opinion showing the same URL for all pages is a very 
 bad solution.
 Why is it needed?
 

In fact I had this requirement multiple times, marketing departments of
large companies don't want to show the user cryptic urls he don't
understand. Last time I had it a large austrian company from the food
sector, they reasoned, they don't want different urls, because they want
always their cool url. (The solution was the frameset, since the
background of the side was white, 1pix white border above the content didn't
matter).

Another point may be, that you don't want a user to bookmark a specific
action, because it's so highly dynamical, that it doesn't make sense. If you
always show the same url, the (normal dummy) user always bookmarks and comes
out at your homepage.

Regards
Leon




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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Tamas Szabo [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 17:26
 An: Struts Users Mailing List
 Betreff: Re: How to hide URL in Adress bar?
 
 On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote:
  Actually using POST is the WORST solution.
 
 In my opinion showing the same URL for all pages is a very 
 bad solution.
 Why is it needed?
 

In fact I had this requirement multiple times, marketing departments of
large companies don't want to show the user cryptic urls he don't
understand. Last time I had it a large austrian company from the food
sector, they reasoned, they don't want different urls, because they want
always their cool url. (The solution was the frameset, since the
background of the side was white, 1pix white border above the content didn't
matter).

Another point may be, that you don't want a user to bookmark a specific
action, because it's so highly dynamical, that it doesn't make sense. If you
always show the same url, the (normal dummy) user always bookmarks and comes
out at your homepage.

Regards
Leon




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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 17:19
 An: Struts Users Mailing List
 Betreff: Re: How to hide URL in Adress bar?
 
 Why would you have to route every action through a single 
 servlet/ action?

Because post only cuts parameters but not the action? So the part of the url
before the '?' must always be the same (was posted in original question).



 
 The others are nice to have for a web application (who wants 
 a web app cached on indexable?), but if you code web sites 
 you might be right.


Have you ever worked on a b2c portal? If you offer a service and want your
users to pay for it, you beg for maximal indexing on all
search sites, because it's the best way to become traffic and traffic is
money. But robots do not follow POST (or most of the javascript) so they
will probably not index your site at all (or just first page).
And a web site built in java is a webapp :-)

Regards
Leon



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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 17:19
 An: Struts Users Mailing List
 Betreff: Re: How to hide URL in Adress bar?
 
 Why would you have to route every action through a single 
 servlet/ action?

Because post only cuts parameters but not the action? So the part of the url
before the '?' must always be the same (was posted in original question).



 
 The others are nice to have for a web application (who wants 
 a web app cached on indexable?), but if you code web sites 
 you might be right.


Have you ever worked on a b2c portal? If you offer a service and want your
users to pay for it, you beg for maximal indexing on all
search sites, because it's the best way to become traffic and traffic is
money. But robots do not follow POST (or most of the javascript) so they
will probably not index your site at all (or just first page).
And a web site built in java is a webapp :-)

Regards
Leon



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



Re: Alternate color in html:iterate

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Rick Reumann [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 13. Juli 2005 19:24
 An: Struts Users Mailing List
 Betreff: Re: Alternate color in html:iterate
 
...

 You mentioned you were using logic:iterate, which in that 
 case replace ${status.index} with whatever your current count 
 var is (forgot the logic:iterate syntax).
logic:iterate name=... id=... type=...
indexId=nameOfTheIndexVarOfTypeInteger
So in this case it would be:

tags:AltRowColor status=%=nameOfTheIndexVarOfTypeInteger%/

Rick is it possible to extend your tag with attr. statusName to give the
name of the attribute in a scope which holds 
the value instead of the value itself? :-) It would save = % %

Regards
Leon


 



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



Re: How to hide URL in Adress bar?

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Leon Rosenberg [EMAIL PROTECTED] wrote:
 In fact I had this requirement multiple times, marketing departments of
 large companies don't want to show the user cryptic urls he don't
 understand. Last time I had it a large austrian company from the food
 sector, they reasoned, they don't want different urls, because they want
 always their cool url. (The solution was the frameset, since the
 background of the side was white, 1pix white border above the content didn't
 matter).

Because of idiots like these (I mean your Austrian company) I have to
go another mile and to open a frame in a separate window and bookmark
it.

 Another point may be, that you don't want a user to bookmark a specific
 action, because it's so highly dynamical, that it doesn't make sense. If you
 always show the same url, the (normal dummy) user always bookmarks and comes
 out at your homepage.

An application should be intelligent enough to recognize that a user
requested an invalid resource, and tell him that resource is removed,
and redirect him to home page.

But I can live with frames, using POST for everything is the most
hideous solution ever.

Michael.

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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Wendy Smoak
From: Michael Jouravlev [EMAIL PROTECTED]

 c:forEach items=${accountForm.map['accounts']} var=acct 
html-el:multibox property=accounts value=${acct}/
 /c:forEach

 html-el is Struts-EL tag, is not it?  I would prefer to use JSTL
 only. I think I can do that. But it this case, what Struts-EL is for?
 For convenience only?

Struts-EL gives you the ability to use expressions in the Struts tags.  I
think it's more than a convenience... for example, how would you rewrite the
code above if you could not use an expression in the 'value' attribute?

I'm as resistant as anyone to adding Yet Another Taglib to a project, but
this one is just a subset of the original Struts tags, modified to accept
expressions.

-- 
Wendy Smoak


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



AW: How to hide URL in Adress bar?

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
 Gesendet: Donnerstag, 14. Juli 2005 00:09
 An: Struts Users Mailing List
 Betreff: Re: How to hide URL in Adress bar?
 
 On 7/13/05, Leon Rosenberg [EMAIL PROTECTED] wrote:
  In fact I had this requirement multiple times, marketing 
 departments 
  of large companies don't want to show the user cryptic urls 
 he don't 
  understand. Last time I had it a large austrian company 
 from the food 
  sector, they reasoned, they don't want different urls, because they 
  want always their cool url. (The solution was the frameset, since 
  the background of the side was white, 1pix white border above the 
  content didn't matter).
 
 Because of idiots like these (I mean your Austrian company) I 
 have to go another mile and to open a frame in a separate 
 window and bookmark it.
 
  Another point may be, that you don't want a user to bookmark a 
  specific action, because it's so highly dynamical, that it doesn't 
  make sense. If you always show the same url, the (normal 
 dummy) user 
  always bookmarks and comes out at your homepage.
 
 An application should be intelligent enough to recognize that 
 a user requested an invalid resource, and tell him that 
 resource is removed, and redirect him to home page.

Sadly yes, but on the other hand we have users (in my current project) who
actually really DO REBOOT their pc if they see a troubleticket from our page
(ressource is unavailable, try again later...).

Look 90% of the internet users actually uses explorer... So how many of them
are dummies? :-)
And unfortunately I don't have the pleasure to develop for developers, but
for dummies...


 
 But I can live with frames, using POST for everything is the 
 most hideous solution ever.

Absolutely :-) 




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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Rick Reumann

Wendy Smoak wrote the following on 7/13/2005 6:14 PM:


Struts-EL gives you the ability to use expressions in the Struts tags.  I
think it's more than a convenience... for example, how would you rewrite the
code above if you could not use an expression in the 'value' attribute?


Struts-EL tags are a must if you aren't on JSP 2.0. No debating this - 
Discussion over:)


--
Rick

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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Rick Reumann [EMAIL PROTECTED] wrote:
 Wendy Smoak wrote the following on 7/13/2005 6:14 PM:
 
  Struts-EL gives you the ability to use expressions in the Struts tags.  I
  think it's more than a convenience... for example, how would you rewrite the
  code above if you could not use an expression in the 'value' attribute?
 
 Struts-EL tags are a must if you aren't on JSP 2.0. No debating this -
 Discussion over:)

Would you care to point to explanation? ;) I want to abandon struts
tags completely, so I am really interested.

Michael.

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



AW: Iterate over list in in list in form bean.

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Rick Reumann [mailto:[EMAIL PROTECTED] 
 Gesendet: Donnerstag, 14. Juli 2005 00:25
 An: Struts Users Mailing List
 Betreff: Re: Iterate over list in in list in form bean.
 
 Wendy Smoak wrote the following on 7/13/2005 6:14 PM:
 
  Struts-EL gives you the ability to use expressions in the 
 Struts tags.  
  I think it's more than a convenience... for example, how would you 
  rewrite the code above if you could not use an expression 
 in the 'value' attribute?
 
 Struts-EL tags are a must if you aren't on JSP 2.0. No 
 debating this - Discussion over:)
 
 --
 Rick

It's not Friday, but I'd like to now what you need the JSTL tags for? What
is it, what you can't do with standart (struts without EL) tags? What do you
need EL for? 

Regards
 Leon :-)



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



AW: Iterate over list in in list in form bean.

2005-07-13 Thread Leon Rosenberg
 

 -Ursprüngliche Nachricht-
 Von: Rick Reumann [mailto:[EMAIL PROTECTED] 
 Gesendet: Donnerstag, 14. Juli 2005 00:25
 An: Struts Users Mailing List
 Betreff: Re: Iterate over list in in list in form bean.
 
 Wendy Smoak wrote the following on 7/13/2005 6:14 PM:
 
  Struts-EL gives you the ability to use expressions in the 
 Struts tags.  
  I think it's more than a convenience... for example, how would you 
  rewrite the code above if you could not use an expression 
 in the 'value' attribute?
 
 Struts-EL tags are a must if you aren't on JSP 2.0. No 
 debating this - Discussion over:)
 
 --
 Rick

It's not Friday, but I'd like to now what you need the JSTL tags for? What
is it, what you can't do with standart (struts without EL) tags? What do you
need EL for? 

Regards
 Leon :-)



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



Re: Iterate over list in in list in form bean.

2005-07-13 Thread Michael Jouravlev
On 7/13/05, Leon Rosenberg [EMAIL PROTECTED] wrote:
 It's not Friday, but I'd like to now what you need the JSTL tags for? What
 is it, what you can't do with standart (struts without EL) tags? What do you
 need EL for?
 
 Regards
  Leon :-)

How about I want to fork Struts into StrutsWorks, and I want to take
only the most essential part of it, so no one would accuse me in
stealing and putting my name on other's stuff?

:-)

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



Re: sporadic no property found error

2005-07-13 Thread Martin Gainty

Hej Kaerstin


From what I can pickup from the AndroMDA doc
AndroMDA generates these 3 artifacts (a Persistence layer) based on UML 
input. Take a look at

http://www.jroller.com/page/buggybean/20050710

Hopp for replik,
Martin-
- Original Message - 
From: Johnson, Kaerstin [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org; Martin Gainty 
[EMAIL PROTECTED]

Sent: Wednesday, July 13, 2005 5:07 PM
Subject: RE: sporadic no property found error



Hey,

I'm not sure which abstract base class and implementation class you
would need to see?

Also, I think the fields giving this error are not persisted, so there
are no hibernate object mappings or table fields for them?  Could this
have something to do with it?

Thanks,
Kaeri



-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 13, 2005 4:45 PM
To: Struts Users Mailing List
Subject: Re: sporadic no property found error

Goddag Kaerstin

I would have to see
-abstract base class and implementation class
-any Hibernate mapping files
-any DDL statements to create the tables

Tack,
Martin-
- Original Message - 
From: Johnson, Kaerstin [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, July 13, 2005 3:32 PM
Subject: sporadic no property found error



I have an application that I get sporadic struts errors when I submit
the jsp page forms. The application is using struts tiles and also a
couple jsp includes, and some of the pages have two different forms
(each with different form beans) on one page.

The intermittent error says no property propertyName found under bean
form.

The submits work on the pages most of the time, and only sporadically
gives this error. The field name that it lists changes, and also it's
not always the same page.

The getter and setter methods are in the form bean and spelled
correctly. Struts action forms, struts-config, etc.. has been generated
by AndroMDA/Bp4mStruts cartridge, but looks fine to me.

Any ideas?

Here is some code from one of the JSPS:

Included jsp reads:

 html:form action=/myActionPath/Action method=post
enctype=multipart/form-data onsubmit=
   table
   tbody
   tr
   td class=labelOriginator:/td
   td class=field
html:select name=form onchange=document.myFormName.submit();
property=operation onmouseover=hints.show('myhint')
onmouseout=hints.hide() styleId=filterOperationsOperation
   html:optionsCollection name=form
property=operationBackingList label=label
value=value/
/html:select
/td

   /tr
   /tbody
   /table
   /html:form


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



[OT] Java as a Daemon

2005-07-13 Thread Richard Reyes
Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file 
- a java application running as a daemon on a unix box

But I really am not sure which better path I should take. Any
suggestions would be very much appreciated.

Thanks
Richard

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



RE: [OT] Java as a Daemon

2005-07-13 Thread David G. Friedman
Richard,

Can you run it in your webapp container?  You could then update an object in
application scope with the id's of what records have changed.  You could
even change your DAO to perform that step for you.  Then you could have the
quartz scheduler running to periodically update things without needing to
run any additional code, crontab, atq, etc.   All of this from inside your
Struts webapp.  FYI, Quartz is at http://www.opensymphony.com/quartz and no,
I have no affiliation with them. LOL.

Regards,
David

-Original Message-
From: Richard Reyes
Subject: [OT] Java as a Daemon

Hello Guys,

I need your suggestions. I have a task to create an application to
sync records between 2 Oracle 10g database. Not the whole records of
the database though, just the now and then transactional updates.
Access to the db's would be both via web services. I think I have an
option to do this like
- a simple java application executed via .sh file
- a java application running as a daemon on a unix box

But I really am not sure which better path I should take. Any
suggestions would be very much appreciated.

Thanks
Richard


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



Validation framework

2005-07-13 Thread Rafael Taboada
Hi folks I'm using validation framework in order to validate my fields in a 
form.
 I have three fields in a search form:
 strUsername
strFromDate
strToDate
 But we have the rule that the user can fill strUsername or use dates range. 
I mean he can search by username or he can search by dates range...
 When I use validation, it validates all the fields My question is how 
can I set my search rule??? the user can search by username or by dates 
range... If he choose username so validation only has to validate username 
field... But if he choose dates range, so validation has to validate only 
FromDate and ToDate...
 Any help would be appreciated...
 Thanks in advance.

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

No creo en el destino pues no me gusta tener la idea de controlar mi vida


Re: [OT] Java as a Daemon

2005-07-13 Thread Richard Reyes
Hi David,

We are using Netsuit business suite, I am not sure If I can update any
DAO. But I think I can run it on the same or separate webserver (
Tomcat ?? ). I think Quartz can be helpful, Ill check if its okay from
the top.

Thanks
Richard

On 7/14/05, David G. Friedman [EMAIL PROTECTED] wrote:
 Richard,
 
 Can you run it in your webapp container?  You could then update an object in
 application scope with the id's of what records have changed.  You could
 even change your DAO to perform that step for you.  Then you could have the
 quartz scheduler running to periodically update things without needing to
 run any additional code, crontab, atq, etc.   All of this from inside your
 Struts webapp.  FYI, Quartz is at http://www.opensymphony.com/quartz and no,
 I have no affiliation with them. LOL.
 
 Regards,
 David
 
 -Original Message-
 From: Richard Reyes
 Subject: [OT] Java as a Daemon
 
 Hello Guys,
 
 I need your suggestions. I have a task to create an application to
 sync records between 2 Oracle 10g database. Not the whole records of
 the database though, just the now and then transactional updates.
 Access to the db's would be both via web services. I think I have an
 option to do this like
 - a simple java application executed via .sh file
 - a java application running as a daemon on a unix box
 
 But I really am not sure which better path I should take. Any
 suggestions would be very much appreciated.
 
 Thanks
 Richard
 
 
 -
 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] Java as a Daemon

2005-07-13 Thread Larry Meadors
I would probably go the route of the .sh file.

At the risk of starting a big flame war, cron is solid as a rock, and
all of the memory used by your app will be freed up when the JVM
exits. Why make it more complex by adding quartz or tomcat to the mix
if you do not have to.

Simple is *almost* always better.

Larry


On 7/13/05, Richard Reyes [EMAIL PROTECTED] wrote:
 Hello Guys,
 
 I need your suggestions. I have a task to create an application to
 sync records between 2 Oracle 10g database. Not the whole records of
 the database though, just the now and then transactional updates.
 Access to the db's would be both via web services. I think I have an
 option to do this like
 - a simple java application executed via .sh file
 - a java application running as a daemon on a unix box
 
 But I really am not sure which better path I should take. Any
 suggestions would be very much appreciated.
 
 Thanks
 Richard
 
 -
 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: Validation framework

2005-07-13 Thread ichy
Hi, Rafael.
 you can find clue on the following documentation.
http://struts.apache.org/userGuide/dev_validator.html
 check validwhen.
 ichy

 2005/7/14, Rafael Taboada [EMAIL PROTECTED]: 
 
 Hi folks I'm using validation framework in order to validate my fields in 
 a
 form.
 I have three fields in a search form:
 strUsername
 strFromDate
 strToDate
 But we have the rule that the user can fill strUsername or use dates 
 range.
 I mean he can search by username or he can search by dates range...
 When I use validation, it validates all the fields My question is how
 can I set my search rule??? the user can search by username or by dates
 range... If he choose username so validation only has to validate username
 field... But if he choose dates range, so validation has to validate only
 FromDate and ToDate...
 Any help would be appreciated...
 Thanks in advance.
 
 --
 Rafael Taboada
 Software Engineer
 
 Cell : +511-97753290
 
 No creo en el destino pues no me gusta tener la idea de controlar mi 
 vida
 



Re: How to hide URL in Adress bar?

2005-07-13 Thread John Henry Xu
It is bad using only one URL. Search engines likely put that URL in very low 
rank because that site has only one URL.

Jack H. Xu
Technology columnist and editor

http://www.usanalyst.com

http://www.getusjobs.com (The largest free job portal in North America)

- Original Message -
From: Leon Rosenberg [EMAIL PROTECTED]
To: 'Struts Users Mailing List' user@struts.apache.org
Subject: Re: How to hide URL in Adress bar?
Date: Wed, 13 Jul 2005 23:56:09 +0200

 
 
 
  -Ursprüngliche Nachricht-
  Von: Tamas Szabo [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 
  13. Juli 2005 17:26
  An: Struts Users Mailing List
  Betreff: Re: How to hide URL in Adress bar?
 
  On Wed, 2005-07-13 at 17:11 +0200, Leon Rosenberg wrote:
   Actually using POST is the WORST solution.
 
  In my opinion showing the same URL for all pages is a very bad solution.
  Why is it needed?
 
 
 In fact I had this requirement multiple times, marketing departments of
 large companies don't want to show the user cryptic urls he don't
 understand. Last time I had it a large austrian company from the food
 sector, they reasoned, they don't want different urls, because they want
 always their cool url. (The solution was the frameset, since the
 background of the side was white, 1pix white border above the content didn't
 matter).
 
 Another point may be, that you don't want a user to bookmark a specific
 action, because it's so highly dynamical, that it doesn't make sense. If you
 always show the same url, the (normal dummy) user always bookmarks and comes
 out at your homepage.
 
 Regards
 Leon
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Jack H. Xu
Technology columnist and editor

http://www.usanalyst.com

http://www.getusjobs.com (The largest free job portal in North America)


-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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