RE: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Steve Raeburn
The ServletContextListener interface has a callback method  -
contextInitialized() - that passes in a ServletContextEvent parameter. You
can get the context from getServletContext() method of ServletContextEvent.

This was added in Servlet 2.3 spec.

Steve

> -Original Message-
> From: Jing Zhou [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:18 PM
> To: Struts Users Mailing List
> Subject: Could one figure out the context path in Servlet.init() method?
>
>
> Hi,
>
> Maybe I overlook something. We can get context path
> from HttpServletRequest.getContextPath() at request time.
> But could one get the same path when the servlet is
> initialized? Or simply say why we do not have an API like
> ServletContext.getContextPath()?
>
> Jing
> Netspread Carrier
> http://www.netspread.com
>



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



AW: Validator Framework: Can not evaluate regular expression

2003-07-31 Thread Dirk Behrendt
Hello!

This field is not declared as a password field yet. It is a normal
textfield..

Other ideas?

Dirk

-Ursprüngliche Nachricht-
Von: David Graham [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 30. Juli 2003 23:25
An: Struts Users Mailing List
Betreff: Re: Validator Framework: Can not evaluate regular expression

Password fields are only run against the "required" validation in the
client side javascript for security purposes.  Password fields are
validated with all rules on the server side though.

David

--- Dirk Behrendt <[EMAIL PROTECTED]> wrote:
> Hi!
>  
> No, I do not have an extra '<' in my code. The regular expression is
not
> evaluated.
>  
> Example:
> When I use ^[a]$ the user only should input
"a". 
> But in my case you can input anything you want.
>  
> There are some ideas?
>  
> Dirk
>  
>  
>  
> If your code is a direct cut-n-paste, you've got an extra '>' in your
> first regular expression?
>  
>   >^[a-zA-Z0-9_.-]*$
>  
> -jeff
>  
> On Wednesday, July 30, 2003, at 07:14  AM, Dirk Behrendt wrote:
>  
> > >^[a-zA-Z0-9_.-]*$
>  
>  
> Hello!
>  
> I want to check login and password fields.
>  
> If I submit with empty textfields, the errors are shown correct (
> required). But my regular expression was ignored. (see code below).
>  
> What is necessary to check regular expressions?
>  
>  
>  
>  
> Dirk
>  
>  
> Struts-config.xml
> -
>  
> form-bean name="loginForm"
>type="sample.LoginForm"/>
>  
> 
> type="sample.LoginAction"
>name="loginForm"
>scope="session"
>validate="true"
>input="/loginDone.jsp">
> 
>  
>  
> validation.xml
> --
>  
> 
>  property="login"
>depends="required,mask">
>
>   
>
>  mask
>  >^[a-zA-Z0-9_.-]*$
>   
>
>  property="password"
>depends="required,mask">
>
>  
>
>  mask
>  ^[a-zA-Z0-9_.-]*$
>   
>
>
>  
>  
> In my JSP
> ---
>  
> 
>
>
>
>   
>
>
>
>  
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


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



Re: Need help for design

2003-07-31 Thread Anubhav Kale
I am using Tomcat server. Can you please tell me how exactly to do that
(what code I have to write etc)

Thanks

Anubhav
- Original Message -
From: "Prashanth.S" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 11:33 AM
Subject: Re: Need help for design


> Hi,
> U can use authenticator classes of whatever server u use...Example is to
use cauchoauthenticator [if u r using resin web server]...etc
> Thnks
> Prashanth
>
> Anubhav Kale <[EMAIL PROTECTED]> wrote:
> Hello
>
> I want to create a simple JSP page with login and password fields. If i/p
is correct (verified against a database) I should give user access to some
JSP pages. If user tries to go to these JSP pages directly without entering
correct username and password then he should be redirected back to login
page.
>
> How do I do all this? (I think i need to create some session id and things
like that)
>
> Thanks
>
> Anubhav
>
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



Validator: Is validwhen available ?

2003-07-31 Thread Koni
Hi
In the Struts Validator User Guide 
(http://jakarta.apache.org/struts/userGuide/dev_validator.html)
I read under "Designing Complex Validations with validwhen" the following
sentence:

...
The new validwhen validation rule, which will be included into the Struts
release immediately after the 1.1 release, is designed to handle these cases.
...

Is the validator with 'validwhen' sowhere available or do we have to wait
for the next Struts release?
Thanks
Koni


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



Re: Validator: Is validwhen available ?

2003-07-31 Thread Nagendra Kumar O V S








  hi,
  'validwhen' is available in the nightly builds...
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Thursday, July 
  31, 2003 02:08:30 PM
  To: [EMAIL PROTECTED]
  Subject: Validator: Is 
  validwhen available ?
   HiIn the Struts Validator User Guide (http://jakarta.apache.org/struts/userGuide/dev_validator.html)I 
  read under "Designing Complex Validations with validwhen" the 
  followingsentence:The new validwhen validation rule, 
  which will be included into the Strutsrelease immediately after the 
  1.1 release, is designed to handle these cases.Is the 
  validator with 'validwhen' sowhere available or do we have to waitfor 
  the next Struts 
  release?ThanksKoni-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: struts-el example app not working?

2003-07-31 Thread Hue Holleran
Yep, I've been bitten by this one too. There are a few workarounds:

1) Change the JSP compiler to not compile JSPs:
http://marc.theaimsgroup.com/?l=struts-user&m=105334711431267&w=2

2) Workaround by Brian Cross (at end of this thread) - this works well for
us:
http://marc.theaimsgroup.com/?l=struts-user&m=105147011604944&w=2

Hope that helps.

Hue.

> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: 31 July 2003 06:10
> To: Struts Users Mailing List
> Subject: RE: struts-el example app not working?
>
>
> Well, I managed to get it running but I'm definitely not a convert to
> Netbeans :-(
>
>   - In Netbeans, go to the Runtime tab and expand the Explorer view until
> you see the 'Internal Tomcat' server.
>   - Right click on it and change the IDE Integration Mode from Full to
> Minimum.
>
> That seems to get it working. You could also look at the External Tomcat
> Server feature as an alternative. There's information in the application
> Help.
>
> I think this  is the
> cause of the problem. In any case, this issue is with Netbeans integration
> of Tomcat and not with Struts.
>
> Related information:
> James Mitchell has written a guide to setting up a Struts project in
> Netbeans (version 3.4)
> . He's using Ant to
> build and deploy the web application so that probably gets round the
> problems by avoiding the IDE's build/deploy features.
>
> If you have access to WebSphere Studio it is IMHO a *much* more pleasant
> experience than Netbeans and importing a WAR is straightforward. I haven't
> tried Eclipse (on which Websphere Studio is based) with the Sysdeo plugin
> for Tomcat, but that would be a cheaper (free!) option than WS Studio.
>
> Hope this works for you... now where's that uninstall option :-)
>
> Steve
>
> > -Original Message-
> > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 7:12 PM
> > To: Struts Users Mailing List
> > Subject: RE: struts-el example app not working?
> >
> >
> > I'll try to take a look at Netbeans sometime, but it may not be
> for a few
> > days. If I have any success I'll post back to the list and copy
> > you. If, in
> > the meantime you find the problem, do post the result here.
> >
> > Steve
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 5:51 PM
> > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > Subject: Re: struts-el example app not working?
> > >
> > >
> > > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > > struts-el-exercise-taglib.war through
> > > the tomcat manager and no problems.
> > > Barry
> > >
> > > - Original Message -
> > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 30, 2003 4:27 PM
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > > 4.0.6 works for me. I don't remember the details, but I
> > *think* Netbeans
> > > has
> > > > cropped up as a problem before.
> > > > If you can, try it with a standalone version of Tomcat and
> > > check the mail
> > > > archives for Netbeans issues.
> > > >
> > > > Steve
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > Sent: July 30, 2003 4:06 PM
> > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > Subject: Re: struts-el example app not working?
> > > > >
> > > > >
> > > > > I am running Tomcat 4.0xx
> > > > > (using netbeans 3.5 with Tomcat bundle)
> > > > >
> > > > > Barry
> > > > >
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > > > Subject: RE: struts-el example app not working?
> > > > >
> > > > >
> > > > > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > > > > >
> > > > > > What container are you running on?
> > > > > >
> > > > > > Steve
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: July 30, 2003 3:52 PM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: struts-el example app not working?
> > > > > > >
> > > > > > >
> > > > > > > Hello,
> > > > > > >
> > > > > > > When testing the struts-el example I get the following error.
> > > > > > > The problem goes away
> > > > > > > if I remove:
> > > > > > >
> > > > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"
> > prefix="html-el" %>
> > > > > > >
> > > > > > > Of course this is useless because the html-el tags do not
> > > function.
> > > > > > >
> > > > > > > I have even tried incorporating the struts-html-el in my
> > > own app and
> > > > > > > included all jars from the struts 1.1 release, defined
> > > the el tld's
> > > in
> > > > 

Re: Need help for design

2003-07-31 Thread Prashanth.S
hi,
Try looking through the following url...since i havent used tomcat..I use resin and 
done authentication using resin
http://www.jguru.com/faq/subtopic.jsp?topicID=221898
Thanks
Prashanth

Anubhav Kale <[EMAIL PROTECTED]> wrote:
I am using Tomcat server. Can you please tell me how exactly to do that
(what code I have to write etc)

Thanks

Anubhav
- Original Message -
From: "Prashanth.S" 
To: "Struts Users Mailing List" 
Sent: Thursday, July 31, 2003 11:33 AM
Subject: Re: Need help for design


> Hi,
> U can use authenticator classes of whatever server u use...Example is to
use cauchoauthenticator [if u r using resin web server]...etc
> Thnks
> Prashanth
>
> Anubhav Kale wrote:
> Hello
>
> I want to create a simple JSP page with login and password fields. If i/p
is correct (verified against a database) I should give user access to some
JSP pages. If user tries to go to these JSP pages directly without entering
correct username and password then he should be redirected back to login
page.
>
> How do I do all this? (I think i need to create some session id and things
like that)
>
> Thanks
>
> Anubhav
>
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Cannot find bean error in any scope

2003-07-31 Thread Altug B. Altintas
Hi, 
 
My form extends ValidationForm, and of course i have got validator-rules
and validation.xml. 
But when i want to make a custom valition in validate() method ,  i took
"javax.servlet.jsp.JspException: Cannot find bean error in any scope " 
 

My jsp page includes the code below to show the errors: 
 
*
 

  
 
  
 

*


overriding validate() method
 

*
 public ActionErrors validate(ActionMapping mapping,
 javax.servlet.http.HttpServletRequest request) {
 
  ActionErrors errors  = null ;
  errors = super.validate(mapping,request);
  try {
 
   
   if (errors == null) {
errors = new ActionErrors();
   }   
   
 
   Calendar c1 = dUtils.str2Calendar(startdate);
 
   Calendar c2 = dUtils.str2Calendar(enddate);
 
   // if enddate bigger then startdate then add error
   if ( !c1.before(c2) ) { // custom validation
errors.add(ActionErrors.GLOBAL_ERROR ,new
ActionError("errors.dateerror","test");
   }
  
// print out the errors
   Iterator it = errors.get();
   while ( it.hasNext() ) {
ActionError ae = (ActionError) it.next();
System.out.println("Errors  : " + ae.getKey() + " " );
int length = ae.getValues().length;
Object[] o = ae.getValues();
for (int i=0; i

Dynamic Html Tree Menus - Java Beans.

2003-07-31 Thread Pat Quinn
I'm looking for a tag library to aid the rendering of a Tree Menu using 
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each user 
and then use tag libs in my JSP's. I've looked into the StrutsMenu Offering 
for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


Survey Builder

2003-07-31 Thread Marco Fabbri
Hi all,
does someone knows how can I find a struts application to dynamically build a survey?

An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.

Marco Fabbri


RE: Cannot find bean error in any scope

2003-07-31 Thread Altug B. Altintas
Strange ! Now i have got no custom validation



***
public ActionErrors validate(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request) {

ActionErrors errors  = null ;
errors = super.validate(mapping,request);
return errors;
}

***

only call parent's validation method, but again it gives me

"javax.servlet.jsp.JspException: Cannot find bean error in any scope " 

Error occurs because of the code below, but why ? 


***
 

  
 
  
 


***

if change above code like this


***


***

Everything works fine.. 







-Original Message-
From: Altug B. Altintas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 12:16 PM
To: 'Struts Users Mailing List'
Subject: Cannot find bean error in any scope 


Hi, 
 
My form extends ValidationForm, and of course i have got validator-rules
and validation.xml. 
But when i want to make a custom valition in validate() method ,  i took
"javax.servlet.jsp.JspException: Cannot find bean error in any scope " 
 

My jsp page includes the code below to show the errors: 
 
*
 

  
 
  
 

*


overriding validate() method
 

*
 public ActionErrors validate(ActionMapping mapping,
 javax.servlet.http.HttpServletRequest request) {
 
  ActionErrors errors  = null ;
  errors = super.validate(mapping,request);
  try {
 
   
   if (errors == null) {
errors = new ActionErrors();
   }   
   
 
   Calendar c1 = dUtils.str2Calendar(startdate);
 
   Calendar c2 = dUtils.str2Calendar(enddate);
 
   // if enddate bigger then startdate then add error
   if ( !c1.before(c2) ) { // custom validation
errors.add(ActionErrors.GLOBAL_ERROR ,new
ActionError("errors.dateerror","test");
   }
  
// print out the errors
   Iterator it = errors.get();
   while ( it.hasNext() ) {
ActionError ae = (ActionError) it.next();
System.out.println("Errors  : " + ae.getKey() + " " );
int length = ae.getValues().length;
Object[] o = ae.getValues();
for (int i=0; i

RE: Survey Builder

2003-07-31 Thread PREETAM Balijepalli
Do u need it for money or free

-Original Message-
From: Marco Fabbri [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:02 PM
To: Struts Users Mailing List
Subject: Survey Builder


Hi all,
does someone knows how can I find a struts application to dynamically build a survey?

An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.

Marco Fabbri

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



Re: request.getSession().invalidate() problem

2003-07-31 Thread manglu
Hi,

This is my experience in WebSphere(Container Managed Security)

WebSphere stores Authenticated credentials in a Cookie (a LTPA Cookie)
The other App Servers might implement things differently.
So as long as this cookie is valid then the user would not be challenged 
again.

So this has got nothing to do with HTTP Sessions!

What did i do?

When a User logs out, i invalidate the HttpSession and i use the IBM 
Specific Logout mechanism which essentially renders the LTPA cookie invalid.

So if the user accesses a secured page, they would be challenged again.

Having said this, it still doesn't work for BASIC Challenge as Micheal 
pointed out.

Conclusion:
THe idea of HttpSession and Authentication info are essentially different.
HTH
Manglu


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


RE: Survey Builder

2003-07-31 Thread Prashanth.S
how much do u charge for that kind of an application..


PREETAM Balijepalli <[EMAIL PROTECTED]> wrote:
Do u need it for money or free

-Original Message-
From: Marco Fabbri [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:02 PM
To: Struts Users Mailing List
Subject: Survey Builder


Hi all,
does someone knows how can I find a struts application to dynamically build a survey?

An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.

Marco Fabbri

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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Bean Write!

2003-07-31 Thread manglu
Hi,

This is what i want to achieve.

Every JSP has a some title info & the Logged in User's name displayed at 
the top of the page.

I have a baseFormObject which has this attribute called title and user.

BaseForm
 |
 |
FormA--FormB (Children of BaseForm)
I created a JSP(headerline.jsp) whose sole job is to render a  line with 
both these attributes.All the JSPs would include this JSP.

I can't use the BeanWrite to do this Job as it expects the name of the 
Form Object and each JSP works with different FOrms.


doesn't work as there is no object stored as BaseForm in any of the Scopes.
At the moment i use

and

in different JSP's.

How do i go about using re-using this headerline.jsp instead of writing 
the same in every JSP?

APpreciate any help.

TIA
Manglu


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


Re: Need help for design

2003-07-31 Thread manglu
Anubhav

This should be simple

Use Container managed Security as specified in (J2EE)

Use Form based Login - login.jsp

and secure the JSPs which you want to by specifiying hte constraints in 
Web.xml
If the user accesses these secured JSPs then he would be automatically 
routed to login.jsp (if he/she has not been authenticated before)

The standard samples with TOmcat should show how this is done.

HTH
Manglu


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


Creating JSP's with Adobe GoLive and struts.

2003-07-31 Thread Carlos Urtasun
Hi all.

We are a team that develop a online using struts.

Inside the team exists two groups: the software developers and the interface
designers.
Our designers needs to give expression to the interface accross the JSP's.
They are using Adobe GoLive 6.0

Exists any method to build the JSP's with GoLive using Struts? Can you give
me a clue? Any experience with this question?

Regards,

Carlos Urtasun


Carlos Urtasun, E-mail: [EMAIL PROTECTED]

Editorial Aranzadi: www.aranzadi.es 
Dpto. Informática - Área Online
Camino de Galar, 15
31190- Cizur Menor - SPAIN
Tlfno.: +34 948 297297  Fax: +34 948 297200
__
Este e-mail y cualquier documento anexo contienen información privada y
confidencial única y exclusivamente para el destinatario. Si usted no es el
destinatario, no tiene autorización para leer, copiar, usar o distribuir el
e-mail y el/los documento anexos. En caso de haber recibido esta
comunicación por error, le rogamos que lo remita al emisor y lo destruya
posteriormente.
This e-mail and any attachment contain information, which is private and
confidential and is intended for the addressee only. If you are not an
addressee, you are not authorized to read, copy, use or distribute this
communication. If you have received this e-mail in error, please notify the
sender by return e-mail.




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



Javascript validation for struts form field elements

2003-07-31 Thread Veena B N
Hi

I am using struts form for jsp pages. I have a actionForm which initialises
a value object(which has getter and setter methods).
So my form field elements are specified as below in my jsp page--



  -- Please Select --

  


Now if I want to do javascript(client end) validation, the form field
elements are not recognised since property is converted to name while
delivering the html page and the form field element name cannot contain
'.'(a dot) within the name for js validation.

Now how else can I access the property of the element without a dot for
client side validation. Can anyone please help


Thanks
Veena


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



..javascript

2003-07-31 Thread Prashant Samant
Hello Group,
I want to put javascript validations on my page.
In simple words i have 4 radio buttons and submit button.
if i don't click any of the radio buttons and click submit, then i should get a 
javascript error.
I tried a lot.I am getting the error using  tag on the page.
But i am not getting the javascript POPUP.

My Html page is as follows
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>




UserName : 
Password : 
Radio 1 :
Radio 2 :
Radio 3 :
Radio 4 :   
 








My struts-config file contains

 


  
  
  

 
   
   

  
  
  


  
  
  
  
  
  My validation.xml is as follows
  
  
  
  
  
  
  
  
  
  
 
  
  
  
  
  
  
minlength
3
  
  
  
  
  
maxlength
6
  
  
 
 
 
   
  


  
  

can anybody throw some light.

Best Regards,
Prashant S.

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



hashmap in formbean

2003-07-31 Thread Pramod . P
Hi,
 Is it possible to pass a variable like the following?
 
I am having a HashMap in the formbean, and I want to get an element from the map with 
key as the
content of var1.
 if i use the hardcoded value instead of var1, i am able to get the results

Thanks,
Pramod


This  electronic  mail  message  is  intended  solely  for  the  named  recipients  
and  may contain
confidential  and  proprietary  business information of eFunds Corporation and all its 
subsidiaries.
If  you  are  not a named recipient, please notify the sender immediately.  You may 
not disclose the
contents  to  any  other  person;  use  this  electronic  mail message or its contents 
for any other
purpose; or further store or copy its contents in any medium.



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



Database Connection

2003-07-31 Thread Chirag Mehta
Hello,

I have just started developing with Struts and was wondering if anyone could help me 
connect to a Sybase Database using my webapp?

I have set up my JSP page, actionform and action. I have set the datasource properies 
in my config.xml and am calling them from my action. It is giving me a class not found 
exception like below.

java.sql.SQLException: open: java.lang.ClassNotFoundException: 
com.sybase.jdbc2.jdbc.SybDriver
 at org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.java:735)
 at org.apache.struts.action.ActionServlet.initModuleDataSources(Unknown Source)
 at org.apache.struts.action.ActionServlet.init(Unknown Source)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)

Anyone got any ideas what i maybe ding wrong.

One other question. Does anyone know of any drivers that connect to a informix DB and 
how to use them?

Sorry if this is a very basic question. I am only a first yr undergraduate!

Chirag

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

html:select multiple pre select

2003-07-31 Thread Daniel Massie
I have a html:select with multiple="true" how can I get this to have options
highlighted when it loads? based on the elements already stored for this
select field.

Thanks

Daniel Massie


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



Re: Database Connection

2003-07-31 Thread rajendra . x . yadav

Make sure the driver class is in classpath.

thanks
-raj



   

  "Chirag Mehta"   

  <[EMAIL PROTECTED]To:   "Struts Users Mailing List" 
<[EMAIL PROTECTED]>  
  tanley.com>  cc: 

   Subject:  Database Connection   

  31/07/2003 05:00 PM  

  Please respond to

  "Struts Users Mailing

  List"; Please respond

  to Chirag.Mehta  

   

   





Hello,

I have just started developing with Struts and was wondering if anyone
could help me connect to a Sybase Database using my webapp?

I have set up my JSP page, actionform and action. I have set the datasource
properies in my config.xml and am calling them from my action. It is giving
me a class not found exception like below.

java.sql.SQLException: open: java.lang.ClassNotFoundException:
com.sybase.jdbc2.jdbc.SybDriver
 at
org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.java:735)
 at org.apache.struts.action.ActionServlet.initModuleDataSources(Unknown
Source)
 at org.apache.struts.action.ActionServlet.init(Unknown Source)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)


Anyone got any ideas what i maybe ding wrong.

One other question. Does anyone know of any drivers that connect to a
informix DB and how to use them?

Sorry if this is a very basic question. I am only a first yr undergraduate!

Chirag

-
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: hashmap in formbean

2003-07-31 Thread Nagendra Kumar O V S








  try this.
   
  
  -- nagi
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Thursday, July 
  31, 2003 04:48:20 PM
  To: Struts Users Mailing 
  List
  Subject: hashmap in 
  formbean
   Hi,Is it possible to pass a variable like the 
  following?I am having a HashMap in the formbean, 
  and I want to get an element from the map with key as thecontent of 
  var1.if i use the hardcoded value instead of var1, i am able to get 
  the 
  resultsThanks,PramodThis 
  electronic mail message is intended solely for the named recipients and 
  may containconfidential and proprietary business information of eFunds 
  Corporation and all its subsidiaries.If you are not a named recipient, 
  please notify the sender immediately. You may not disclose thecontents 
  to any other person; use this electronic mail message or its contents for 
  any otherpurpose; or further store or copy its contents in any 
  medium.-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: Database Connection

2003-07-31 Thread Navjot Singh
the jar file for your sybase driver should in the class path of tha app
server.
If it's tomcat put your jar file in tomcat_home/common/lib

it will work.
-navjot singh

|-Original Message-
|From: Chirag Mehta [mailto:[EMAIL PROTECTED]
|Sent: Thursday, July 31, 2003 5:01 PM
|To: Struts Users Mailing List
|Subject: Database Connection
|
|
|Hello,
|
|I have just started developing with Struts and was wondering if
|anyone could help me connect to a Sybase Database using my webapp?
|
|I have set up my JSP page, actionform and action. I have set the
|datasource properies in my config.xml and am calling them from my
|action. It is giving me a class not found exception like below.
|
|java.sql.SQLException: open: java.lang.ClassNotFoundException:
|com.sybase.jdbc2.jdbc.SybDriver
| at
|org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.java:735)
| at
|org.apache.struts.action.ActionServlet.initModuleDataSources(Unknow
|n Source)
| at org.apache.struts.action.ActionServlet.init(Unknown Source)
| at javax.servlet.GenericServlet.init(GenericServlet.java:256)
| at
|org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrappe
|r.java:935)
|
|Anyone got any ideas what i maybe ding wrong.
|
|One other question. Does anyone know of any drivers that connect
|to a informix DB and how to use them?
|
|Sorry if this is a very basic question. I am only a first yr undergraduate!
|
|Chirag
|
|


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



Re: html:select multiple pre select

2003-07-31 Thread Nagendra Kumar O V S








  hi.
  docs say
  
  multiple="true" IS selected - The corresponding property 
  should be an array of any supported data type. 
  so try populating the array (html:select property) with the required 
  elements to be selected before hand.
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Thursday, July 
  31, 2003 05:02:03 PM
  To: Struts Users Mailing 
  List
  Subject: html:select 
  multiple pre select
   I have a html:select with multiple="true" how can I get 
  this to have optionshighlighted when it loads? based on the elements 
  already stored for thisselect field.ThanksDaniel 
  Massie-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: Javascript validation for struts form field elements

2003-07-31 Thread Suzette Daniel
Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).

Suzette H. Daniel

-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 7:13 AM
To: '[EMAIL PROTECTED]'
Subject: Javascript validation for struts form field elements


Hi

I am using struts form for jsp pages. I have a actionForm which initialises
a value object(which has getter and setter methods). So my form field
elements are specified as below in my jsp page--

 
  -- Please Select --

  


Now if I want to do javascript(client end) validation, the form field
elements are not recognised since property is converted to name while
delivering the html page and the form field element name cannot contain
'.'(a dot) within the name for js validation.

Now how else can I access the property of the element without a dot for
client side validation. Can anyone please help


Thanks
Veena


-
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: Survey Builder

2003-07-31 Thread Vic Cekvencih
Fixed bid development:
http://basebeans.com/do/cmsPg?content=DEVELOPMENT
Most likely it is a few screens. (Ex: Create Survey, Take a survey)
.V
Prashanth.S wrote:
how much do u charge for that kind of an application..

PREETAM Balijepalli <[EMAIL PROTECTED]> wrote:
Do u need it for money or free
-Original Message-
From: Marco Fabbri [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:02 PM
To: Struts Users Mailing List
Subject: Survey Builder
Hi all,
does someone knows how can I find a struts application to dynamically build a survey?
An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.
Marco Fabbri

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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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


Re: Database Connection

2003-07-31 Thread Marc Ende
Hi Navjot,

I ran into trouble as I put it in the classpath you mentioned.
(Connection works, connection works not, and so on)
I think it's better to put it in the webapps classpath, if you're not using 
jndi.

yours

Marc


Am Donnerstag, 31. Juli 2003 13:37 schrieb Navjot Singh:
> the jar file for your sybase driver should in the class path of tha app
> server.
> If it's tomcat put your jar file in tomcat_home/common/lib


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



RE: Javascript validation for struts form field elements

2003-07-31 Thread Veena B N
Thanks daniel,
I am using the same. but due to my property tag having a dot(.) in b/n even
the validations in validation.xml and validator-rules.xml are not gng
through

Veena

-Original Message-
From: Suzette Daniel [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 5:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements


Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).

Suzette H. Daniel

-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 7:13 AM
To: '[EMAIL PROTECTED]'
Subject: Javascript validation for struts form field elements


Hi

I am using struts form for jsp pages. I have a actionForm which initialises
a value object(which has getter and setter methods). So my form field
elements are specified as below in my jsp page--

 
  -- Please Select --

  


Now if I want to do javascript(client end) validation, the form field
elements are not recognised since property is converted to name while
delivering the html page and the form field element name cannot contain
'.'(a dot) within the name for js validation.

Now how else can I access the property of the element without a dot for
client side validation. Can anyone please help


Thanks
Veena


-
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: Database Connection

2003-07-31 Thread Navjot Singh
yes, you can put your class file in webapp CP also - whichever way it works
for you. However, docs say that it should be under tomcat common dir.

Can you explain a little more why/how the connection behaviour is toggling?
Did you print the state of the connection before you use it?

rgds
navjot singh

|-Original Message-
|From: Marc Ende [mailto:[EMAIL PROTECTED]
|Sent: Thursday, July 31, 2003 5:19 PM
|To: Struts Users Mailing List
|Subject: Re: Database Connection
|
|
|Hi Navjot,
|
|I ran into trouble as I put it in the classpath you mentioned.
|(Connection works, connection works not, and so on)
|I think it's better to put it in the webapps classpath, if you're
|not using
|jndi.
|
|yours
|
|Marc
|
|
|Am Donnerstag, 31. Juli 2003 13:37 schrieb Navjot Singh:
|> the jar file for your sybase driver should in the class path of tha app
|> server.
|> If it's tomcat put your jar file in tomcat_home/common/lib
|
|
|-
|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]



FW:

2003-07-31 Thread Sachin


What is the difference between a burned toast and and pregnant girlfriend .
Ans- in both cases a a guy think ki "kash thoda phel nikal liya hota".



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



Struts Test Case (new Bie..)

2003-07-31 Thread Sachin
Hi All,

can any body suggest me what is best test case approach to write testcases
for Actions and Forms
Whether it should be MockStrutsTestCase  Approach or
CactusStrutsTestCase
And where will i get examples on it..

Thanks
Sachin



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



Buttons and Actions without forms

2003-07-31 Thread Todor Sergueev Petkov

Hello everybody,
I was wandering if Struts framework and taglibs permit
to have a button and an action associated with this button with no
forms however. Example - when I click on that button just a pop up
window comes up ?
Todor

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



RE: html:select multiple pre select

2003-07-31 Thread Daniel Massie
I've tried this, I passed in Strin[] as the value, but no options were
selected.
  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: 31 July 2003 12:50
  To: [EMAIL PROTECTED]
  Subject: Re: html:select multiple pre select


hi.
docs say
a.. multiple="true" IS selected - The corresponding property should
be an array of any supported data type.
so try populating the array (html:select property) with the required
elements to be selected before hand.

-- nagi


---Original Message---

From: Struts Users Mailing List
Date: Thursday, July 31, 2003 05:02:03 PM
To: Struts Users Mailing List
Subject: html:select multiple pre select

I have a html:select with multiple="true" how can I get this to have
options
highlighted when it loads? based on the elements already stored for
this
select field.

Thanks

Daniel Massie



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


.


  
IncrediMail - Email has finally evolved - Click Here


Re: FW:

2003-07-31 Thread Alen Ribic
Great joke! but what language?
Very Struts related, must say. ;)

--Alen


- Original Message -
From: "Sachin" <[EMAIL PROTECTED]>
To: "Ajit (E-mail)" <[EMAIL PROTECTED]>; "Amit Singh (E-mail)"
<[EMAIL PROTECTED]>; "Amri Mishra (E-mail)" <[EMAIL PROTECTED]>;
"Struts Users Mailing List (E-mail)" <[EMAIL PROTECTED]>;
"Jeetu (E-mail)" <[EMAIL PROTECTED]>; "Mohit Gaur (E-mail)"
<[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 8:54 AM
Subject: FW:


>
>
> What is the difference between a burned toast and and pregnant girlfriend
.
> Ans- in both cases a a guy think ki "kash thoda phel nikal liya hota".
>
>
>
> -
> 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]



testing, Please ignore

2003-07-31 Thread Kalra, Ashwani
 


This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.


How to rename file in FormFile in struts 1.1 final release

2003-07-31 Thread Andrew Hill
Whats the deal with
org.apache.struts.upload.CommonsMultipartRequestHandler.CommonsFormFile
being immutable?

Its broken my (production) code that was working with struts 1.1 b1 and
relied on using setFileName() :-(

What is the rationale for the FormFile interface still having these methods
when the standard implementation does not support them?


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



Re: Struts Test Case (new Bie..)

2003-07-31 Thread Andrew Geery
It depends what type of tests you are writing. The cactus site has a 
discussion about the mock object approach vs. the container approach 
both on the main page ("Different kinds of unit tests" 
http://jakarta.apache.org/cactus) and at 
http://jakarta.apache.org/cactus/mock_vs_cactus.html

For examples on how to use strutstestcase, look on the project's website:
http://strutstestcase.sourceforge.net/
(The strutstestcase website also has a discussion of mock v. container 
testing)

I would recommend starting with mock objects (they're a little simpler 
to use, simply because the application server isn't in the picture).

Sachin wrote:

Hi All,

can any body suggest me what is best test case approach to write testcases
for Actions and Forms
Whether it should be MockStrutsTestCase  Approach or
CactusStrutsTestCase
And where will i get examples on it..
Thanks
Sachin


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


How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Dirk Behrendt
Hello!

I my ActionClass I set a Global Error. How can I display this error in
my JSP?


ActionErrors errors = new ActionErrors();
ActionError loginError = new
ActionError("error.login.failed");
errors.add(ActionErrors.GLOBAL_ERROR, loginError);
saveErrors(req,errors);


Dirk




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



Re: How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Andrew Geery
The same way you display any other struts error in a JSP page:

Dirk Behrendt wrote:

Hello!

I my ActionClass I set a Global Error. How can I display this error in
my JSP?
ActionErrors errors = new ActionErrors();
   ActionError loginError = new
ActionError("error.login.failed");
   errors.add(ActionErrors.GLOBAL_ERROR, loginError);
   saveErrors(req,errors);
Dirk



-
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: Buttons and Actions without forms

2003-07-31 Thread Mainguy, Mike
#1 you could just include javascript in the jsp
#2 you could use validator to create a rule (I believe) that could do that
for you.

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 7:59 AM
To: Struts Users Mailing List
Subject: Buttons and Actions without forms


Hello everybody,
I was wandering if Struts framework and taglibs permit
to have a button and an action associated with this button with no
forms however. Example - when I click on that button just a pop up
window comes up ?
Todor

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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



tag

2003-07-31 Thread Silverio Wagner Silva(Secorp)
People,

I´d like to put the errors from  in a personalized table in my
jsp. But the code depends on existing any errors to show the table or not.

The question is how can I evaluate if the tag  will return
something.

Thanks in advance,

-Mensagem original-
De: Vic Cekvencih [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 31 de julho de 2003 08:45
Para: [EMAIL PROTECTED]
Assunto: Re: Survey Builder

Fixed bid development:
http://basebeans.com/do/cmsPg?content=DEVELOPMENT

Most likely it is a few screens. (Ex: Create Survey, Take a survey)
.V


Prashanth.S wrote:
> how much do u charge for that kind of an application..
> 
> 
> PREETAM Balijepalli <[EMAIL PROTECTED]> wrote:
> Do u need it for money or free
> 
> -Original Message-
> From: Marco Fabbri [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 3:02 PM
> To: Struts Users Mailing List
> Subject: Survey Builder
> 
> 
> Hi all,
> does someone knows how can I find a struts application to dynamically
build a survey?
> 
> An example is : http://www.surveytime.com/.
> 
> But I need less features than this...
> Thanks a lot in advance.
> 
> Marco Fabbri
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



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

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



using checkboxes inside iterate tags

2003-07-31 Thread vellosa

Good afternoon people!

I have been hunting through the struts documentation with out luck and was hoping that 
someone could point me in the right direction?

In the back end of my system I have built a list of hash maps which I'm displaying on 
the JSP using the iterate tag something like:





  

  
  

  





The second value that comes back is either a 'Y' or 'N' so I would like to display a 
check box instead of the value, checked if the value is 'Y'. But I have not managed to 
use the checkbox inside the iterator. 

Can someone please tell me where to look for this information (or better still provide 
me with an answer, yeah I'm feeling lazy today)

Thanks in advance for any help and to all those Swiss people out there, happy 1st 
August tomorrow, hope you have a good one ;)
IV

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



RE: ..javascript

2003-07-31 Thread Mainguy, Mike
I my html:javascript looks like this
  
don't know if those other two attributes matter or not...
In addition, I put the html:javascript tag at the bottom of my page.

For What It's Worth


-Original Message-
From: Prashant Samant [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 7:17 AM
To: Struts Users Mailing List (E-mail)
Subject: ..javascript

Hello Group,
I want to put javascript validations on my page.
In simple words i have 4 radio buttons and submit button.
if i don't click any of the radio buttons and click submit, then i should
get a javascript error.
I tried a lot.I am getting the error using  tag on the page.
But i am not getting the javascript POPUP.

My Html page is as follows
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>





UserName : 
Password : 
Radio 1 :
Radio 2 :
Radio 3 :
Radio 4 :









My struts-config file contains

 


  
  
  

 
   
   

  
  
  


  
  
  
  
  
  My validation.xml is as follows
  
  
  
  
  
  
  
  
  
  
 
  
  
  
  
  
  
minlength
3
  
  
  
  
  
maxlength
6
  
  
 
 
 
   
  


  
  

can anybody throw some light.

Best Regards,
Prashant S.

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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



RE: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
So it's not available in the initial Struts 1.1 final release?
Is there an alternative to validwhen that can do the same job?

- Keith


-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 4:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Validator: Is validwhen available ?


--
Content-Type: Multipart/Alternative;
  boundary="Boundary-00=_SHSVLVC0"


--
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi,=0D
'validwhen' is available in the nightly builds...=0D
=0D
-- nagi=0D
=0D
---Original Message---=0D
=0D
From: Struts Users Mailing List=0D
Date: Thursday, July 31, 2003 02:08:30 PM=0D
To: [EMAIL PROTECTED]
Subject: Validator: Is validwhen available ?=0D
=0D
Hi=0D
In the Struts Validator User Guide (http://jakarta.apache
org/struts/userGuide/dev_validator.html)=0D
I read under "Designing Complex Validations with validwhen" the following=
=0D
sentence:=0D
=0D
=2E...=0D
The new validwhen validation rule, which will be included into the Struts=
=0D
release immediately after the 1.1 release, is designed to handle these ca=
ses
=0D
=2E...=0D
=0D
Is the validator with 'validwhen' sowhere available or do we have to wait=
=0D
for the next Struts release?=0D
Thanks=0D
Koni=0D
=0D
=0D
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
=0D
=0D
=2E=20
--
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable













  hi,
  'validwhen' is available in the nightly builds...
   
  -- nagi
   
  ---Original Message---<=
/I>
   
  
  From: mailto:[EMAIL PROTECTED]">Struts Users Mailing=
=20
  List
  Date: Thursd=
ay, July=20
  31, 2003 02:08:30 PM
  To: mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]
apache.org
  Subject: Val=
idator: Is=20
  validwhen available ?
   HiIn the Struts Validator User Guide (http://jakarta.apache.org/struts/userGuide/dev_validator.ht=
ml">http://jakarta.apache.org/struts/userGuide/dev_validator.html)I=20
  read under "Designing Complex Validations with validwhen" the=20
  followingsentence:The new validwhen validation =
rule,=20
  which will be included into the Strutsrelease immediately after=
 the=20
  1.1 release, is designed to handle these cases.Is t=
he=20
  validator with 'validwhen' sowhere available or do we have to wait<=
BR>for=20
  the next Struts=20
  release?ThanksKoni-=
--
  unsubscribe, e-mail: mailto:[EMAIL PROTECTED]">struts-u=
[EMAIL PROTECTED]For=20
  additional commands, e-mail: mailto:[EMAIL PROTECTED]">struts-user-hel=
[EMAIL PROTECTED].





=09
=09
=09
=09
=09
=09
=09




http://www.incredimail.com/redir.asp?ad_id=3D309&lang=3D9";>cid:5480A88E-200C-4DF6-B083-86DF293AF940";>  IncrediMai=
l -=20
Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=3D309&lang=3D9";>Click=20
Here


--

--

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



not working!

2003-07-31 Thread Samanth Athrey
Hi,

I have this tag  in my jsp file. But when error occurs, this
fails to display the error messages on the jsp file. There is only single
copy of my ApplicationResources.properties file.

I am overriding the validate() method of the ActionForm class. Could anybody
tell me where am going wrong. I even tried DynaValidatorActionForm but no
results.

Thanx in advance.

Samanth




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



Re: tag

2003-07-31 Thread Andrew Geery
Look at the  tag. From the description of the 
messagesPresent tag 
(http://jakarta.apache.org/struts/userGuide/struts-logic.html#messagesPresent):
"Evaluates the nested body content of this tag if an |ActionMessages| 
object, |ActionErrors| object, a String, or a String array is in request 
scope. If such a bean is not found, nothing will be rendered."

You could also modify your message resource properties to display your 
errors in a table and let Struts do all of the work for you. From the 
description of the html:errors tag 
(http://jakarta.apache.org/struts/userGuide/struts-html.html#errors):

"In order to use this tag successfully, you must have defined an 
application scope |MessageResources| bean under the default attribute 
name, with optional definitions of the following message keys:

   * *errors.header* - Text that will be rendered before the error
 messages list. Typically, this message text will end with ||
 to start the error messages list.
   * *errors.footer* - Text that will be rendered after the error
 messages list. Typically, this message text will begin with
 || to end the error messages list.
   * *errors.prefix* - Text that will be rendered before each
 individual error in the list.
   * *errors.suffix* - Text that will be rendered after each individual
 error in the list."
Silverio Wagner Silva(Secorp) wrote:

People,

I´d like to put the errors from  in a personalized table in my
jsp. But the code depends on existing any errors to show the table or not.
The question is how can I evaluate if the tag  will return
something.
Thanks in advance,

-Mensagem original-
De: Vic Cekvencih [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 31 de julho de 2003 08:45
Para: [EMAIL PROTECTED]
Assunto: Re: Survey Builder

Fixed bid development:
http://basebeans.com/do/cmsPg?content=DEVELOPMENT
Most likely it is a few screens. (Ex: Create Survey, Take a survey)
.V
Prashanth.S wrote:
 

how much do u charge for that kind of an application..

PREETAM Balijepalli <[EMAIL PROTECTED]> wrote:
Do u need it for money or free
-Original Message-
From: Marco Fabbri [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:02 PM
To: Struts Users Mailing List
Subject: Survey Builder
Hi all,
does someone knows how can I find a struts application to dynamically
   

build a survey?
 

An example is : http://www.surveytime.com/.

But I need less features than this...
Thanks a lot in advance.
Marco Fabbri

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


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
   



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



Antwort: using checkboxes inside iterate tags

2003-07-31 Thread pklassen

Hi, why don't you use the multibox-tag?


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



Re: not working!

2003-07-31 Thread Prashanth.S
Hi
u need to paste ur actionform as well as action class to gave us some idea of what is 
goin wrong??
Thanks
Prashanth

Samanth Athrey <[EMAIL PROTECTED]> wrote:
Hi,

I have this tag in my jsp file. But when error occurs, this
fails to display the error messages on the jsp file. There is only single
copy of my ApplicationResources.properties file.

I am overriding the validate() method of the ActionForm class. Could anybody
tell me where am going wrong. I even tried DynaValidatorActionForm but no
results.

Thanx in advance.

Samanth




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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Database Connection

2003-07-31 Thread Marc Ende
Am Donnerstag, 31. Juli 2003 13:53 schrieb Navjot Singh:
> yes, you can put your class file in webapp CP also - whichever way it works
> for you. However, docs say that it should be under tomcat common dir.

Yes of course, they should be under tomcats common dir especially when using 
jndi for connection pooling.

> Can you explain a little more why/how the connection behaviour is toggling?
> Did you print the state of the connection before you use it?

Yes I had, but I run into trouble with sometimes open and sometimes closed 
connections. That might be no problem anymore but I've got them some month 
ago . Since this time I'm only using JNDI for connection-pooled database 
access. (It's much easyer and more efficient to use database-connections this 
way (my opinion))

Marc


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



Re: using checkboxes inside iterate tags

2003-07-31 Thread vellosa

OK, sorry to have troubled you all, but I have got it running now. All I needed to do 
was to look at the  tag and learn from there! When I included:



it all worked great!

Thanks for your time
IV



>  from:[EMAIL PROTECTED]
>  date:Thu, 31 Jul 2003 14:00:06
>  to:  [EMAIL PROTECTED]
>  subject: Re: using checkboxes inside iterate tags
> 
> 
> Good afternoon people!
> 
> I have been hunting through the struts documentation with out luck and was hoping 
> that someone could point me in the right direction?
> 
> In the back end of my system I have built a list of hash maps which I'm displaying 
> on the JSP using the iterate tag something like:
> 
> 
> 
> 
> 
>   
> 
>   
>   
> 
>   
> 
> 
> 
> 
> 
> The second value that comes back is either a 'Y' or 'N' so I would like to display a 
> check box instead of the value, checked if the value is 'Y'. But I have not managed 
> to use the checkbox inside the iterator. 
> 
> Can someone please tell me where to look for this information (or better still 
> provide me with an answer, yeah I'm feeling lazy today)
> 
> Thanks in advance for any help and to all those Swiss people out there, happy 1st 
> August tomorrow, hope you have a good one ;)
> IV
> 
> -
> 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]



handling multiple resource messages

2003-07-31 Thread Ramiah Tin
My application module contains multiple resource messages, each corresponds
to each subcomponent within the module, storing all the localized error
messages.

I wonder if there is a way to display these error messages in the JSP
without explicitly specifying the resource by the JSP writer.
Unfortunately, the ActionError does not take resource as parameter in the
constructor.


Ramiah



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



How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Dirk Behrendt
Can you give me a code fragment?
 
 
 
 
The same way you display any other struts error in a JSP page:

 
Dirk Behrendt wrote:
 
>Hello!
>
>I my ActionClass I set a Global Error. How can I display this error in
>my JSP?
>
>
>ActionErrors errors = new ActionErrors();
>ActionError loginError = new
>ActionError("error.login.failed");
>errors.add(ActionErrors.GLOBAL_ERROR, loginError);
>saveErrors(req,errors);
>
>
>Dirk
>
>
>
>


RE: [OT] Best super-class for context handling.

2003-07-31 Thread ian_d_stewart


getResourceAsStream() is an instance method of java.lang.Class, so as long
as you stick with that, you're not tied to any particular deployment
environment.


Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure & Operations
[EMAIL PROTECTED]
(614) 213-6100




"Andrew Hill" <[EMAIL PROTECTED]> on 07/30/2003 10:49:19 PM

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

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:

Subject:  RE: [OT] Best super-class for context handling.




InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");


Thats fine if your in an action, but down in your business classes you dont
want to be dependant on the servlet api classes.

Obviously the trick is to have some kind of interface (which in my apps I
usually name "IStreamSource") that will provide a stream when passed some
kind of url (or even more abstract key mapped to a url internally) and will
allow the other classes to be independent of whatever environment they are
in (as one would have different implementations for different environments)
when it comes to reading files. (The servlet version would simply wrap a
call to getResourceAsStream on its reference to the servlet context)

One thing Im not sure about is whether it is ok to hang onto a reference to
the servlet context in this streamsource object (so that it can be shared
between requests and not have to be passed in method parameters all over
the
place). I dont think that would work too well in a distributed environment
right? So we need to provide a new streamsource instance for each request
and pass it to any class that needs it or that might feel like calling some
other class that might need it (ad infinitum)... (?)

It would be nicer for the classes that need an IStreamSource instance to be
able to get them from somewhere themselves, but how to achieve this without
exposing the servlet api stuff to them?

What is the best practice here?

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 July 2003 00:34
To: Struts Users Mailing List
Subject: Re: [OT] Best super-class for context handling.




On Wed, 30 Jul 2003, Simon Kelly wrote:
> Date: Wed, 30 Jul 2003 15:47:55 +0200
> From: Simon Kelly <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT] Best super-class for context handling.
>
> Ah, right.
>
> Not sure whether that's what I'm after.
>
> Here's a better explination.
>
> I am using files that are contained within the /WEB-INF/ dir within the
web
> application to hold information required by the business logic. These
files
> are not part of the controller or view but are required to generate the
> content data for the action classes. So I need something that will get
the
> paths regardless of the enviroment they are in. I have chosen to pass all
> file names within the business logic in the form /WEB-INF/dir/file.x and
> have been using context.getRealPath() [or the correct method if that's
> wrong] to get the path name (which I had thought would be ok as it will
> always return the correct path regardless of where the webapp is
deployed).
>
> Is this wrong, and is there a better way to do it?
>

Assuming you're in an Action, do this:

InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");

It will be portable everywhere, even if you end up running on containers
that don't expand your webapp into an unpacked directory -- in those
environments, getRealPath() will return null.

> Cheers
>
> Simon
>

Craig

-
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 transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. 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]



Re: Struts and Jetspeed

2003-07-31 Thread Joe Germuska
At 22:22 -0600 7/30/03, jakarta-lists wrote:
   Has anyone successfully use Struts with Jetspeed?  I'm looking 
into the possiblilty of having jetspeed do the authentication, 
templating and layout.. while struts will handle the control of the 
app. It sounds like a good idea to me, but I haven't worked with 
struts enough yet to know for sure and I would like to know about 
pitfalls if any.
It doesn't sound like there's much left for Struts to do once you use 
Jetspeed (or Turbine, its underlying framework) for authentication, 
templating, and layout.

Once you're talking about providing content to individual portlets in 
your Jetspeed installation, you can do it with much less work than 
adding Struts in to the mix.

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

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


struts access to protected jsp

2003-07-31 Thread Tridev Kodamasingh
Hello everybody,

I want to access a jsp which is inside /web-inf/ directory.  I am using
tomcat4.1.18.

There is an entry inside the action maaping in  structs-config.xml as
following:-





My basic idea to put jsp's under /web-inf/ is not to  allow the user to
access the jsp's directly.

Am I missing out something in the configurating struts ?
Is there anyway, struts can access this  jsp??

Any idea would be greatly appreciated.

cheers
Tridev




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



Re: How to show GLOBAL ERRORS in a JSP

2003-07-31 Thread Andrew Geery
The process is something like this:
(1) create an ActionErrors object
(2) add any errors to it
(3) if the ActionErrors is not empty (i.e., you've added errors to it), 
save the errors and go (back) to the input form
(4) display the error messages using the  tag on the jsp page.

I think you have steps (1), (2) and half of (3) already -- you probably 
just need to add the logic about where to forward for step (3).

A good place to see an example of this is the struts-example.war that 
comes with the struts distribution.

Look at SaveRegistrationAction.java:
ActionErrors errors = new ActionErrors(); // <-- step 1
...
if (("Create".equals(action)) &&   // <-- step 2
   (database.findUser(value) != null)) {
   errors.add("username",
  new ActionError("error.username.unique",
  regform.getUsername()));
   }
...
if (!errors.isEmpty()) {// <-- step 3
   saveErrors(request, errors);
  ...
   return (mapping.getInputForward());
   }
...
HTH
Andrew


Dirk Behrendt wrote:

Can you give me a code fragment?



The same way you display any other struts error in a JSP page:

Dirk Behrendt wrote:

 

Hello!

I my ActionClass I set a Global Error. How can I display this error in
my JSP?
ActionErrors errors = new ActionErrors();
  ActionError loginError = new
ActionError("error.login.failed");
  errors.add(ActionErrors.GLOBAL_ERROR, loginError);
  saveErrors(req,errors);
Dirk



   

 



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


RE: Struts and Jetspeed

2003-07-31 Thread Mainguy, Mike
I'll agree, if you're already using Turbine, then struts is really a waste
of time and effort.  Just use the turbine framework (it's more complete
anyway IMHO).  

If you really want to use struts for portlets, I'd recommend using struts in
a different servlet context and then wrapping it in a portlet so you don't
end up with a confused mish-mash of technologies.



-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 9:49 AM
To: Struts Users Mailing List
Subject: Re: Struts and Jetspeed

At 22:22 -0600 7/30/03, jakarta-lists wrote:
>Has anyone successfully use Struts with Jetspeed?  I'm looking 
>into the possiblilty of having jetspeed do the authentication, 
>templating and layout.. while struts will handle the control of the 
>app. It sounds like a good idea to me, but I haven't worked with 
>struts enough yet to know for sure and I would like to know about 
>pitfalls if any.

It doesn't sound like there's much left for Struts to do once you use 
Jetspeed (or Turbine, its underlying framework) for authentication, 
templating, and layout.

Once you're talking about providing content to individual portlets in 
your Jetspeed installation, you can do it with much less work than 
adding Struts in to the mix.

Joe

-- 
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
--Jaron Lanier

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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



RE: struts access to protected jsp

2003-07-31 Thread Mainguy, Mike
You should be able to go to cramerLoad.do and all will be well.  I put my
.jsp files in WEB-INF with not problems...  I Noticed that you didn't
capitalize WEB-INF, that could be a potential problem.

-Original Message-
From: Tridev Kodamasingh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 9:55 AM
To: '[EMAIL PROTECTED]'
Subject: struts access to protected jsp

Hello everybody,

I want to access a jsp which is inside /web-inf/ directory.  I am using
tomcat4.1.18.

There is an entry inside the action maaping in  structs-config.xml as
following:-





My basic idea to put jsp's under /web-inf/ is not to  allow the user to
access the jsp's directly.

Am I missing out something in the configurating struts ?
Is there anyway, struts can access this  jsp??

Any idea would be greatly appreciated.

cheers
Tridev




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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



JSTL and Struts

2003-07-31 Thread Mainguy, Mike








I'm in a quandary.  We're examining a way
to do simple formatting of our model data.  For example, when currency
data comes out of the database, it needs to be rendered as $1,000.00 or
whatever.  This is a very common thing and we where going to do it using a
custom formatting object to do this when we move the data from the model into
the form (and visa versa).  After some examination, it turns out the JSTL
does this, but it doesn't appear to support it for 
tags.  

 

How is this possible!?  Am I missing something? 
Why would that not be the case, how often (in a business app) would you need to
format data for display, but not for edit?

 

Does anyone have any insight on best practices/direction in
this arena?  Typically we would do this in a utility class in the manner
described above, but it seems a little clunky doing it this way given the state
of the current tag-libs.

 







This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately.

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

Re: Struts and Jetspeed

2003-07-31 Thread Steve B.
Also, be sure to read up on Tiles for creating your layout.

On the other hand, I am a big fan of Jetspeed as a service aggregator.
Jahia (also a portal product with content management) allows you to
drop-deploy struts applications which is very useful.

IOW, If you are just trying to create a layout and login, I agree with
previous posts that you may be mis-matching frameworks; but, if
you are trying to aggregate a struts service with other content
providers, struts in a portlet is a worthy goal.

Steve B.

- Original Message -
From: "Mainguy, Mike" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 10:12 AM
Subject: RE: Struts and Jetspeed


> I'll agree, if you're already using Turbine, then struts is really a waste
> of time and effort.  Just use the turbine framework (it's more complete
> anyway IMHO).
>
> If you really want to use struts for portlets, I'd recommend using struts
in
> a different servlet context and then wrapping it in a portlet so you don't
> end up with a confused mish-mash of technologies.
>
>
>
> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 9:49 AM
> To: Struts Users Mailing List
> Subject: Re: Struts and Jetspeed
>
> At 22:22 -0600 7/30/03, jakarta-lists wrote:
> >Has anyone successfully use Struts with Jetspeed?  I'm looking
> >into the possiblilty of having jetspeed do the authentication,
> >templating and layout.. while struts will handle the control of the
> >app. It sounds like a good idea to me, but I haven't worked with
> >struts enough yet to know for sure and I would like to know about
> >pitfalls if any.
>
> It doesn't sound like there's much left for Struts to do once you use
> Jetspeed (or Turbine, its underlying framework) for authentication,
> templating, and layout.
>
> Once you're talking about providing content to individual portlets in
> your Jetspeed installation, you can do it with much less work than
> adding Struts in to the mix.
>
> Joe
>
> --
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "If nature worked that way, the universe would crash all the time."
> --Jaron Lanier
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.
>
>
>
>
> -
> 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: Javascript validation for struts form field elements

2003-07-31 Thread Mike Jasnowski
One such way is this

document.forms[0].elements[" ele name with dot here "]

-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements


Thanks daniel,
I am using the same. but due to my property tag having a dot(.) in b/n even
the validations in validation.xml and validator-rules.xml are not gng
through

Veena

-Original Message-
From: Suzette Daniel [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 5:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements


Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).

Suzette H. Daniel

-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:13 AM
To: '[EMAIL PROTECTED]'
Subject: Javascript validation for struts form field elements


Hi

I am using struts form for jsp pages. I have a actionForm which initialises
a value object(which has getter and setter methods). So my form field
elements are specified as below in my jsp page--

 
  -- Please Select --

  


Now if I want to do javascript(client end) validation, the form field
elements are not recognised since property is converted to name while
delivering the html page and the form field element name cannot contain
'.'(a dot) within the name for js validation.

Now how else can I access the property of the element without a dot for
client side validation. Can anyone please help


Thanks
Veena


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



Action uses Request Dispatcher

2003-07-31 Thread andmer
Hi, we have inherited an application and it my task to get it up and running
on WebSphere, I believe it was previously running in Tomcat, In one
particular action there is a call to RequestDispatcher's include method to
do some processing with a jsp page, the processing is not used in the view
at all, it basically an email template that they use a jsp page and jstl to
do the formatting which is later retrieved from a request attribute.

 

Now my problem is the by their action calling the include method and then
returning an ActionForward to the Struts controller which uses the
RequestDispatcher to forward to a view I'm naturally getting an
IllegalStateException because if I remember correctly you cannot use the
Requestdispatcher to include and then use it again later to forward? Any
ideas for workarounds or links confirming you can't include and then forward
would be appreciated, because if I have to prove this hunch if it is correct
in fact.

 

Thanks,

-Andre

 

Andre Mermegas
Java Developer
Muze Inc.
304 Hudson Street
New York, NY 10013-1015 USA
212.824.0333

 

 



Re: JSTL and Struts

2003-07-31 Thread Vic Cekvencih
One way is to localize inside the getter of the formbean.
.V
Mainguy, Mike wrote:
I'm in a quandary.  We're examining a way to do simple formatting of our 
model data.  For example, when currency data comes out of the database, 
it needs to be rendered as $1,000.00 or whatever.  This is a very common 
thing and we where going to do it using a custom formatting object to do 
this when we move the data from the model into the form (and visa 
versa).  After some examination, it turns out the JSTL does this, but it 
doesn't appear to support it for  tags. 

 

How is this possible!?  Am I missing something?  Why would that not be 
the case, how often (in a business app) would you need to format data 
for display, but not for edit?

 

Does anyone have any insight on best practices/direction in this arena?  
Typically we would do this in a utility class in the manner described 
above, but it seems a little clunky doing it this way given the state of 
the current tag-libs.

 

This message and its contents (to include attachments) are the property 
of Kmart Corporation (Kmart) and may contain confidential and 
proprietary information. You are hereby notified that any disclosure, 
copying, or distribution of this message, or the taking of any action 
based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to 
civil and criminal prosecution and penalties. If you are not the 
intended recipient, you should delete this message immediately.



-
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 show GLOBAL ERRORS in a JSP

2003-07-31 Thread Steve Raeburn
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-s
ummary.html#doc.Other.messages

http://www.husted.com/struts/tips/017.html

Steve

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 6:22 AM
> To: [EMAIL PROTECTED]
> Subject: How to show GLOBAL ERRORS in a JSP
>
>
> Can you give me a code fragment?
>
>
>
>
> The same way you display any other struts error in a JSP page:
> 
>
> Dirk Behrendt wrote:
>
> >Hello!
> >
> >I my ActionClass I set a Global Error. How can I display this error in
> >my JSP?
> >
> >
> >ActionErrors errors = new ActionErrors();
> >ActionError loginError = new
> >ActionError("error.login.failed");
> >errors.add(ActionErrors.GLOBAL_ERROR, loginError);
> >saveErrors(req,errors);
> >
> >
> >Dirk
> >
> >
> >
> >
>



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



RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
I did it that way in a previous application and it seemed to work well, but
it just seems like this functionality is so necessary that it would be
built into the presentation taglib (and perhaps with the validator
framework).  

Is it safe to say that perhaps it has not been implemented or discussed
because it is an obvious shortcoming and something that will be better
addressed by JSF than by rewriting chunks of the delivered stuff?


-Original Message-
From: Vic Cekvencih [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 10:39 AM
To: [EMAIL PROTECTED]
Subject: Re: JSTL and Struts

One way is to localize inside the getter of the formbean.
.V

Mainguy, Mike wrote:
> I'm in a quandary.  We're examining a way to do simple formatting of our 
> model data.  For example, when currency data comes out of the database, 
> it needs to be rendered as $1,000.00 or whatever.  This is a very common 
> thing and we where going to do it using a custom formatting object to do 
> this when we move the data from the model into the form (and visa 
> versa).  After some examination, it turns out the JSTL does this, but it 
> doesn't appear to support it for  tags. 
> 
>  
> 
> How is this possible!?  Am I missing something?  Why would that not be 
> the case, how often (in a business app) would you need to format data 
> for display, but not for edit?
> 
>  
> 
> Does anyone have any insight on best practices/direction in this arena?  
> Typically we would do this in a utility class in the manner described 
> above, but it seems a little clunky doing it this way given the state of 
> the current tag-libs.
> 
>  
> 
> This message and its contents (to include attachments) are the property 
> of Kmart Corporation (Kmart) and may contain confidential and 
> proprietary information. You are hereby notified that any disclosure, 
> copying, or distribution of this message, or the taking of any action 
> based on information contained herein is strictly prohibited. 
> Unauthorized use of information contained herein may subject you to 
> civil and criminal prosecution and penalties. If you are not the 
> intended recipient, you should delete this message immediately.
> 
> 
> 
> 
> -
> 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 message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



RE: newbie-question: validation across multiple pages

2003-07-31 Thread Yansheng Lin
You might want to use session to store all the values entered in page=1.
Then when there is an error in page=2 or page=3, and forward the control 
back to page=1.  Since all the values are session scope, you can access them
in your page=1.  Remember you have to clean the session though:).

if(! errors.isEmpty()) {
...
return (new ActionForward("page1"));
}


-Original Message-
From: Sebastian F. Martin [mailto:[EMAIL PROTECTED] 
Sent: July 30, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: newbie-question: validation across multiple pages


Hi all,

I've been studying the mailing list but couldn't find anything that
would help me. I'd be grateful if someone could give me a hint on this:

I am collecting user input across multiple pages and validate it in the
validate() method of the ActionForm. If an input field on the second or
the third page is empty after submit, the framework will take me back to
the first page. How can I make him turn me back to the page where the
input field was left blank?

Greetings
Sebastian



-
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: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
The nightly builds are not working for now because of a problem with the
build machine.

ValidWhen has been added to the source but, for now, you'll need to check it
out from CVS and do your own build.
It will be included in the 1.2 release which will come along a lot sooner
than the 1.1 release did :-)

Steve

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: July 31, 2003 1:49 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Validator: Is validwhen available ?


hi,
'validwhen' is available in the nightly builds...

-- nagi

---Original Message---

From: Struts Users Mailing List
Date: Thursday, July 31, 2003 02:08:30 PM
To: [EMAIL PROTECTED]
Subject: Validator: Is validwhen available ?

Hi
In the Struts Validator User Guide
(http://jakarta.apache.org/struts/userGuide/dev_validator.html)
I read under "Designing Complex Validations with validwhen" the
following
sentence:


The new validwhen validation rule, which will be included into the
Struts
release immediately after the 1.1 release, is designed to handle
these cases.


Is the validator with 'validwhen' sowhere available or do we have to
wait
for the next Struts release?
Thanks
Koni



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


.


  
IncrediMail - Email has finally evolved - Click Here


RE: How to rename file in FormFile in struts 1.1 final release

2003-07-31 Thread Yansheng Lin

Same thing happened to me too.  There is going to be a lot of debugging for
people used this function in 1.0.2 and want to switch to 1.1:). 


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: July 31, 2003 6:08 AM
To: Struts
Subject: How to rename file in FormFile in struts 1.1 final release


Whats the deal with
org.apache.struts.upload.CommonsMultipartRequestHandler.CommonsFormFile
being immutable?

Its broken my (production) code that was working with struts 1.1 b1 and
relied on using setFileName() :-(

What is the rationale for the FormFile interface still having these methods
when the standard implementation does not support them?


-
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: Validator: Is validwhen available ?

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
Hmm.
I'm not going to be impatient, but do we have any rough idea how long it
will be until the 1.2 release comes out?  Just curious.
Anyway, thanks for answering my question.

- Keith


-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 10:59 AM
To: Struts Users Mailing List
Subject: RE: Validator: Is validwhen available ?


The nightly builds are not working for now because of a problem with the
build machine.

ValidWhen has been added to the source but, for now, you'll need to check it
out from CVS and do your own build.
It will be included in the 1.2 release which will come along a lot sooner
than the 1.1 release did :-)

Steve

  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: July 31, 2003 1:49 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Validator: Is validwhen available ?


hi,
'validwhen' is available in the nightly builds...

-- nagi

---Original Message---

From: Struts Users Mailing List
Date: Thursday, July 31, 2003 02:08:30 PM
To: [EMAIL PROTECTED]
Subject: Validator: Is validwhen available ?

Hi
In the Struts Validator User Guide
(http://jakarta.apache.org/struts/userGuide/dev_validator.html)
I read under "Designing Complex Validations with validwhen" the
following
sentence:


The new validwhen validation rule, which will be included into the
Struts
release immediately after the 1.1 release, is designed to handle
these cases.


Is the validator with 'validwhen' sowhere available or do we have to
wait
for the next Struts release?
Thanks
Koni



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


.


  
IncrediMail - Email has finally evolved - Click Here

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



validwhen Alternative

2003-07-31 Thread Kamholz, Keith (corp-staff) USX
Hey everyone,
>From what I hear, it seems like the validwhen validation is not supported in
the final release of Struts 1.1.  Is there an alternative to this?

I have a form where 2 of the fields are start range and end range.  I want a
validation that does the following:
1) If start range is filled in, and end range isn't, validation is
successful.
2) If start range is less than or equal to the end range (and end range is
greater than or equal to start range), validation is successful.
3) Start range must be filled in.

Do I need a custom validator for this, or can I get away with the existing
validations?  Any help with this would be greatly appreciated, thanks!


- Keith


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



RE: struts access to protected jsp

2003-07-31 Thread Tridev Kodamasingh
Thanks Mike.
That was the problem.

Regards


-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 3:15 PM
To: 'Struts Users Mailing List'
Subject: RE: struts access to protected jsp


You should be able to go to cramerLoad.do and all will be well.  I put my
.jsp files in WEB-INF with not problems...  I Noticed that you didn't
capitalize WEB-INF, that could be a potential problem.

-Original Message-
From: Tridev Kodamasingh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 9:55 AM
To: '[EMAIL PROTECTED]'
Subject: struts access to protected jsp

Hello everybody,

I want to access a jsp which is inside /web-inf/ directory.  I am using
tomcat4.1.18.

There is an entry inside the action maaping in  structs-config.xml as
following:-





My basic idea to put jsp's under /web-inf/ is not to  allow the user to
access the jsp's directly.

Am I missing out something in the configurating struts ?
Is there anyway, struts can access this  jsp??

Any idea would be greatly appreciated.

cheers
Tridev




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


This message and its contents (to include attachments) are the property of
Kmart Corporation (Kmart) and may contain confidential and proprietary
information. You are hereby notified that any disclosure, copying, or
distribution of this message, or the taking of any action based on
information contained herein is strictly prohibited. Unauthorized use of
information contained herein may subject you to civil and criminal
prosecution and penalties. If you are not the intended recipient, you should
delete this message immediately.




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


_
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning
Services - powered by MessageLabs. For further information visit
http://www.mci.com

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



Re: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Jing Zhou
>From within the Servlet.init() method, one could
get the ServletContext by calling getServletConfig().getServletContext().
My question is could we figure out the context path
inside the Servlet.init() method?

The ServletContextListener interface could provide
the ServletContext, but not the context path as what we
could get from the call HttpServletRequest.getContextPath().

I am wondering if there is a way to get the context path without
using init parameters during the initialization of a servlet.
Any clues? We have ServletContext.getRealPath(), but not
the ServletContext.getContextPath(). Why can't the ServletContext
tell me its context path?

Jing


- Original Message - 
From: "Steve Raeburn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 2:07 AM
Subject: RE: Could one figure out the context path in Servlet.init() method?


> The ServletContextListener interface has a callback method  -
> contextInitialized() - that passes in a ServletContextEvent parameter. You
> can get the context from getServletContext() method of
ServletContextEvent.
>
> This was added in Servlet 2.3 spec.
>
> Steve
>
> > -Original Message-
> > From: Jing Zhou [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 11:18 PM
> > To: Struts Users Mailing List
> > Subject: Could one figure out the context path in Servlet.init() method?
> >
> >
> > Hi,
> >
> > Maybe I overlook something. We can get context path
> > from HttpServletRequest.getContextPath() at request time.
> > But could one get the same path when the servlet is
> > initialized? Or simply say why we do not have an API like
> > ServletContext.getContextPath()?
> >
> > Jing
> > Netspread Carrier
> > http://www.netspread.com
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: ..javascript

2003-07-31 Thread Steve Raeburn
html:javascript defaults to true for both dynamic and static parameters so
that shouldn't make a difference.
Also, location on the page doesn't matter (I stick it in the head section).

Steve

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 6:03 AM
> To: 'Struts Users Mailing List'
> Subject: RE: ..javascript
>
>
> I my html:javascript looks like this
>staticJavascript="true"/>
> don't know if those other two attributes matter or not...
> In addition, I put the html:javascript tag at the bottom of my page.
>
> For What It's Worth
>
>
> -Original Message-
> From: Prashant Samant [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 7:17 AM
> To: Struts Users Mailing List (E-mail)
> Subject: ..javascript
>
> Hello Group,
> I want to put javascript validations on my page.
> In simple words i have 4 radio buttons and submit button.
> if i don't click any of the radio buttons and click submit, then i should
> get a javascript error.
> I tried a lot.I am getting the error using  tag on the page.
> But i am not getting the javascript POPUP.
>
> My Html page is as follows
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> 
>   
>   
>   
>   UserName : 
>   Password : 
>   Radio 1 :
>   Radio 2 :
>   Radio 3 :
>   Radio 4 :
>
>   
>   
>
>   
> 
>
>
>
> My struts-config file contains
>
>  
>
>type="org.apache.struts.validator.DynaValidatorForm">
>   
>   
>   
>   
>  
>
>
>
>   type="ValidateAction"
>name="logonForm"
>scope="request"
>validate="true"
>input="/validateeg.jsp">
> 
>   
> 
> 
> value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml,/WEB-I
> NF/mVtrVal
> idation.xml,/WEB-INF/mVtrValidator-rules.xml"/>
>   
>
>
>
>
>   My validation.xml is as follows
>
>   
>
>
>   
>   
>
>   
>
>  property="username"
>   depends="required,minlength,maxlength">
>
>
> key="logonForm.userName.displayName"/>
>
> key="logonForm.userName.displayName"/>
> name="minlength"
>  key="${var:minlength}" resource="false"/>
>   
>   minlength
>   3
>   
>
> key="logonForm.userName.displayName"/>
> name="maxlength"
>  key="${var:maxlength}" resource="false"/>
>   
>   maxlength
>   6
>   
>
>  
>
>
>
>  key="logonForm.userName.selectRadio"/>
>
>   
>   
>
> 
> can anybody throw some light.
>
> Best Regards,
> Prashant S.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> This message and its contents (to include attachments) are the
> property of Kmart Corporation (Kmart) and may contain
> confidential and proprietary information. You are hereby notified
> that any disclosure, copying, or distribution of this message, or
> the taking of any action based on information contained herein is
> strictly prohibited. Unauthorized use of information contained
> herein may subject you to civil and criminal prosecution and
> penalties. If you are not the intended recipient, you should
> delete this message immediately.
>
>
>
> -
> 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:select multiple pre select

2003-07-31 Thread Steve Raeburn
I've put together a set of Struts examples at http://www.ninsky.com/struts,
one of which focuses on populating and options.

struts-config.xml:
  

  

JSP:

  Strawberry
  Apple
  Orange
  Pear
  Mango
  Banana
  Pineapple


Here, I've set initial values in the DynaActionForm configuration, but you
could also initialise the values in your 'prepare' action.

Steve

> -Original Message-
> From: Daniel Massie [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 5:02 AM
> To: Struts Users Mailing List
> Subject: RE: html:select multiple pre select
>
>
> I've tried this, I passed in Strin[] as the value, but no options were
> selected.
>   -Original Message-
>   From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
>   Sent: 31 July 2003 12:50
>   To: [EMAIL PROTECTED]
>   Subject: Re: html:select multiple pre select
>
>
> hi.
> docs say
> a.. multiple="true" IS selected - The corresponding
> property should
> be an array of any supported data type.
> so try populating the array (html:select property) with
> the required
> elements to be selected before hand.
>
> -- nagi
>
>
> ---Original Message---
>
> From: Struts Users Mailing List
> Date: Thursday, July 31, 2003 05:02:03 PM
> To: Struts Users Mailing List
> Subject: html:select multiple pre select
>
> I have a html:select with multiple="true" how can I get
> this to have
> options
> highlighted when it loads? based on the elements already
> stored for
> this
> select field.
>
> Thanks
>
> Daniel Massie
>
>
>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
> .
>
>
>   
> IncrediMail - Email has finally evolved - Click Here
>



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



Re: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Pat Quinn
Is anyone out there working with dynamic HTML trees at the moment (i.e. 
displaying data loaded from a data base) as i'm pulling my hair out here at 
the moment.

I downloaded the source for Struts Menu and implemented a change to allow me 
to place a java bean with my tree menu details into HttpSession rather than 
loading it from the menu xml file. Every thing works fine until i tried to 
add triple nested node to the tree and it totally screws up presentation 
i.e. The node image is repeatedly displayed. Its not due to my changes as i 
tested it in the latest stable version and it fails also to render with the 
same results.

I've also taken a look into using http://www.kobrix.com/ offering but their 
configuration requirements to integrate with struts seems abit too much for 
my liking.



Any suggestions, or should i just go find the JavaScript i require elsewhere 
and wrap it with my own custom tag library



From: "Pat Quinn" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Dynamic Html Tree Menus - Java Beans.
Date: Thu, 31 Jul 2003 10:22:51 +0100
I'm looking for a tag library to aid the rendering of a Tree Menu using 
session/request stored objects.
I want to included the menu data as a Java Bean in HttpSession for each 
user and then use tag libs in my JSP's. I've looked into the StrutsMenu 
Offering for Dynamic Menus but it loads menu data from an XML file.

Any ideas or am i better off to develop my own custom tag lib?

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Raible, Matt
I'm willing to help if you send me the code.  Which Displayer are you using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!


Is anyone out there working with dynamic HTML trees at the moment (i.e. 
displaying data loaded from a data base) as i'm pulling my hair out here at 
the moment.

I downloaded the source for Struts Menu and implemented a change to allow me

to place a java bean with my tree menu details into HttpSession rather than 
loading it from the menu xml file. Every thing works fine until i tried to 
add triple nested node to the tree and it totally screws up presentation 
i.e. The node image is repeatedly displayed. Its not due to my changes as i 
tested it in the latest stable version and it fails also to render with the 
same results.

I've also taken a look into using http://www.kobrix.com/ offering but their 
configuration requirements to integrate with struts seems abit too much for 
my liking.




Any suggestions, or should i just go find the JavaScript i require elsewhere

and wrap it with my own custom tag library



>From: "Pat Quinn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Dynamic Html Tree Menus - Java Beans.
>Date: Thu, 31 Jul 2003 10:22:51 +0100
>
>I'm looking for a tag library to aid the rendering of a Tree Menu using 
>session/request stored objects.
>I want to included the menu data as a Java Bean in HttpSession for each 
>user and then use tag libs in my JSP's. I've looked into the StrutsMenu 
>Offering for Dynamic Menus but it loads menu data from an XML file.
>
>Any ideas or am i better off to develop my own custom tag lib?
>
>_
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
>http://join.msn.com/?page=features/virus
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

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


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

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



RE: Validator: Is validwhen available ?

2003-07-31 Thread Steve Raeburn
The only possible answer is "when it's ready". I would cautiously say within
the next quarter. It could be a lot sooner than that and I doubt it will be
any longer.

What I do know is that there won't be any major new features. It's primarily
a 'tidy-up' release with internal reorganization of the code and removal of
deprecations.

Keep monitoring the struts-dev list for activity.

Steve

> -Original Message-
> From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
> Sent: July 31, 2003 8:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Validator: Is validwhen available ?
>
>
> Hmm.
> I'm not going to be impatient, but do we have any rough idea how long it
> will be until the 1.2 release comes out?  Just curious.
> Anyway, thanks for answering my question.
>
> - Keith
>
>
> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 10:59 AM
> To: Struts Users Mailing List
> Subject: RE: Validator: Is validwhen available ?
>
>
> The nightly builds are not working for now because of a problem with the
> build machine.
>
> ValidWhen has been added to the source but, for now, you'll need
> to check it
> out from CVS and do your own build.
> It will be included in the 1.2 release which will come along a lot sooner
> than the 1.1 release did :-)
>
> Steve
>
>   -Original Message-
>   From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
>   Sent: July 31, 2003 1:49 AM
>   To: [EMAIL PROTECTED]
>   Subject: Re: Validator: Is validwhen available ?
>
>
> hi,
> 'validwhen' is available in the nightly builds...
>
> -- nagi
>
> ---Original Message---
>
> From: Struts Users Mailing List
> Date: Thursday, July 31, 2003 02:08:30 PM
> To: [EMAIL PROTECTED]
> Subject: Validator: Is validwhen available ?
>
> Hi
> In the Struts Validator User Guide
> (http://jakarta.apache.org/struts/userGuide/dev_validator.html)
> I read under "Designing Complex Validations with validwhen" the
> following
> sentence:
>
> 
> The new validwhen validation rule, which will be included into the
> Struts
> release immediately after the 1.1 release, is designed to handle
> these cases.
> 
>
> Is the validator with 'validwhen' sowhere available or do
> we have to
> wait
> for the next Struts release?
> Thanks
> Koni
>
>
>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
> .
>
>
>   
> IncrediMail - Email has finally evolved - Click Here
>
> -
> 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]



logic tags with mapped properties

2003-07-31 Thread André
Gurus,

do logic tags suport mapped properties?

In other words, I want to have a HashMap wrapped
inside a java bean and use its values in a tag like


Any help is appreciated.

Regards, 

André.

=

"O mundo é bom pra quem sabe viver."

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: JSTL and Struts

2003-07-31 Thread Karr, David
I think it would help if you spelled out for yourself exactly what "this
functionality" really means.

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 7:44 AM
> To: 'Struts Users Mailing List'
> Subject: RE: JSTL and Struts
> 
> I did it that way in a previous application and it seemed to work
well,
> but
> it just seems like this functionality is so necessary that it
would be
> built into the presentation taglib (and perhaps with the validator
> framework).
> 
> Is it safe to say that perhaps it has not been implemented or
discussed
> because it is an obvious shortcoming and something that will be better
> addressed by JSF than by rewriting chunks of the delivered stuff?
> 
> 
> -Original Message-
> From: Vic Cekvencih [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSTL and Struts
> 
> One way is to localize inside the getter of the formbean.
> .V
> 
> Mainguy, Mike wrote:
> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.
> >
> >
> >
> > How is this possible!?  Am I missing something?  Why would that not
be
> > the case, how often (in a business app) would you need to format
data
> > for display, but not for edit?
> >
> >
> >
> > Does anyone have any insight on best practices/direction in this
arena?
> > Typically we would do this in a utility class in the manner
described
> > above, but it seems a little clunky doing it this way given the
state of
> > the current tag-libs.
> >
> >
> >
> > This message and its contents (to include attachments) are the
property
> > of Kmart Corporation (Kmart) and may contain confidential and
> > proprietary information. You are hereby notified that any
disclosure,
> > copying, or distribution of this message, or the taking of any
action
> > based on information contained herein is strictly prohibited.
> > Unauthorized use of information contained herein may subject you to
> > civil and criminal prosecution and penalties. If you are not the
> > intended recipient, you should delete this message immediately.
> >
> >
> >

> >
> >
-
> > 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 message and its contents (to include attachments) are the
property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use
of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
> should delete this message immediately.
> 
> 
> 
> -
> 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: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
To quote my earlier message:

> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.

Is that not clear, I can be more specific if necessary, but I thought my
intent was obvious.


-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: JSTL and Struts

I think it would help if you spelled out for yourself exactly what "this
functionality" really means.

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 7:44 AM
> To: 'Struts Users Mailing List'
> Subject: RE: JSTL and Struts
> 
> I did it that way in a previous application and it seemed to work
well,
> but
> it just seems like this functionality is so necessary that it
would be
> built into the presentation taglib (and perhaps with the validator
> framework).
> 
> Is it safe to say that perhaps it has not been implemented or
discussed
> because it is an obvious shortcoming and something that will be better
> addressed by JSF than by rewriting chunks of the delivered stuff?
> 
> 
> -Original Message-
> From: Vic Cekvencih [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSTL and Struts
> 
> One way is to localize inside the getter of the formbean.
> .V
> 
> Mainguy, Mike wrote:
> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.
> >
> >
> >
> > How is this possible!?  Am I missing something?  Why would that not
be
> > the case, how often (in a business app) would you need to format
data
> > for display, but not for edit?
> >
> >
> >
> > Does anyone have any insight on best practices/direction in this
arena?
> > Typically we would do this in a utility class in the manner
described
> > above, but it seems a little clunky doing it this way given the
state of
> > the current tag-libs.
> >
> >
> >
> > This message and its contents (to include attachments) are the
property
> > of Kmart Corporation (Kmart) and may contain confidential and
> > proprietary information. You are hereby notified that any
disclosure,
> > copying, or distribution of this message, or the taking of any
action
> > based on information contained herein is strictly prohibited.
> > Unauthorized use of information contained herein may subject you to
> > civil and criminal prosecution and penalties. If you are not the
> > intended recipient, you should delete this message immediately.
> >
> >
> >

> >
> >
-
> > 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 message and its contents (to include attachments) are the
property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use
of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
> should delete this message immediately.
> 
> 
> 
> -
> 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 message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained

RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Pat Quinn
I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third 
node will appear with a series of plus images.

---
Menu-Config.xml
---


 
   
 
 

   
  
  
   
   
  
   

 



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>

   


From: "Raible, Matt" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 09:22:04 -0600
I'm willing to help if you send me the code.  Which Displayer are you 
using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!
Is anyone out there working with dynamic HTML trees at the moment (i.e.
displaying data loaded from a data base) as i'm pulling my hair out here at
the moment.
I downloaded the source for Struts Menu and implemented a change to allow 
me

to place a java bean with my tree menu details into HttpSession rather than
loading it from the menu xml file. Every thing works fine until i tried to
add triple nested node to the tree and it totally screws up presentation
i.e. The node image is repeatedly displayed. Its not due to my changes as i
tested it in the latest stable version and it fails also to render with the
same results.
I've also taken a look into using http://www.kobrix.com/ offering but their
configuration requirements to integrate with struts seems abit too much for
my liking.


Any suggestions, or should i just go find the JavaScript i require 
elsewhere

and wrap it with my own custom tag library



>From: "Pat Quinn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Dynamic Html Tree Menus - Java Beans.
>Date: Thu, 31 Jul 2003 10:22:51 +0100
>
>I'm looking for a tag library to aid the rendering of a Tree Menu using
>session/request stored objects.
>I want to included the menu data as a Java Bean in HttpSession for each
>user and then use tag libs in my JSP's. I've looked into the StrutsMenu
>Offering for Dynamic Menus but it loads menu data from an XML file.
>
>Any ideas or am i better off to develop my own custom tag lib?
>
>_
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>http://join.msn.com/?page=features/virus
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


RE: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Pat Quinn
I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third 
node will appear with a series of plus images.

---
Menu-Config.xml
---


 
   
 
 

   
  
  
   
   
  
   

 



-
JSP Code
-
<%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>

   


From: "Raible, Matt" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 09:22:04 -0600
I'm willing to help if you send me the code.  Which Displayer are you 
using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!
Is anyone out there working with dynamic HTML trees at the moment (i.e.
displaying data loaded from a data base) as i'm pulling my hair out here at
the moment.
I downloaded the source for Struts Menu and implemented a change to allow 
me

to place a java bean with my tree menu details into HttpSession rather than
loading it from the menu xml file. Every thing works fine until i tried to
add triple nested node to the tree and it totally screws up presentation
i.e. The node image is repeatedly displayed. Its not due to my changes as i
tested it in the latest stable version and it fails also to render with the
same results.
I've also taken a look into using http://www.kobrix.com/ offering but their
configuration requirements to integrate with struts seems abit too much for
my liking.


Any suggestions, or should i just go find the JavaScript i require 
elsewhere

and wrap it with my own custom tag library



>From: "Pat Quinn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Dynamic Html Tree Menus - Java Beans.
>Date: Thu, 31 Jul 2003 10:22:51 +0100
>
>I'm looking for a tag library to aid the rendering of a Tree Menu using
>session/request stored objects.
>I want to included the menu data as a Java Bean in HttpSession for each
>user and then use tag libs in my JSP's. I've looked into the StrutsMenu
>Offering for Dynamic Menus but it loads menu data from an XML file.
>
>Any ideas or am i better off to develop my own custom tag lib?
>
>_
>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>http://join.msn.com/?page=features/virus
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

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


RE: JSTL and Struts

2003-07-31 Thread Canning, Chuck
Hey Mike,

Why would you need the formatting inside of an input tag? You are only
processing the data on the server side and that doesn't require formatting
or am I missing something here?

Chuck

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 10:45 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL and Struts


To quote my earlier message:

> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.

Is that not clear, I can be more specific if necessary, but I thought my
intent was obvious.


-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: JSTL and Struts

I think it would help if you spelled out for yourself exactly what "this
functionality" really means.

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 7:44 AM
> To: 'Struts Users Mailing List'
> Subject: RE: JSTL and Struts
> 
> I did it that way in a previous application and it seemed to work
well,
> but
> it just seems like this functionality is so necessary that it
would be
> built into the presentation taglib (and perhaps with the validator
> framework).
> 
> Is it safe to say that perhaps it has not been implemented or
discussed
> because it is an obvious shortcoming and something that will be better
> addressed by JSF than by rewriting chunks of the delivered stuff?
> 
> 
> -Original Message-
> From: Vic Cekvencih [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSTL and Struts
> 
> One way is to localize inside the getter of the formbean.
> .V
> 
> Mainguy, Mike wrote:
> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.
> >
> >
> >
> > How is this possible!?  Am I missing something?  Why would that not
be
> > the case, how often (in a business app) would you need to format
data
> > for display, but not for edit?
> >
> >
> >
> > Does anyone have any insight on best practices/direction in this
arena?
> > Typically we would do this in a utility class in the manner
described
> > above, but it seems a little clunky doing it this way given the
state of
> > the current tag-libs.
> >
> >
> >
> > This message and its contents (to include attachments) are the
property
> > of Kmart Corporation (Kmart) and may contain confidential and
> > proprietary information. You are hereby notified that any
disclosure,
> > copying, or distribution of this message, or the taking of any
action
> > based on information contained herein is strictly prohibited.
> > Unauthorized use of information contained herein may subject you to
> > civil and criminal prosecution and penalties. If you are not the
> > intended recipient, you should delete this message immediately.
> >
> >
> >

> >
> >
-
> > 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 message and its contents (to include attachments) are the
property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use
of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
> should delete this message immediately.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL

Re: Need help for design

2003-07-31 Thread Erik Price


Anubhav Kale wrote:
Hello

I want to create a simple JSP page with login and password fields. If i/p is correct (verified against a database) I should give user access to some JSP pages. If user tries to go to these JSP pages directly without entering correct username and password then he should be redirected back to login page.

How do I do all this? (I think i need to create some session id and things like that)


Read this:

Erik

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


Re: Could one figure out the context path in Servlet.init() method?

2003-07-31 Thread Craig R. McClanahan


On Thu, 31 Jul 2003, Jing Zhou wrote:

>
> I am wondering if there is a way to get the context path without
> using init parameters during the initialization of a servlet.
> Any clues? We have ServletContext.getRealPath(), but not
> the ServletContext.getContextPath(). Why can't the ServletContext
> tell me its context path?
>

You are assuming that a web applicaton only has one context path.  That
does not have to be the case.

> Jing

Craig

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



RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
When I return a currency or date value, the client has a specific format
they want it in.  i.e. $1,000.000 or 02/02/2003.  

-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 11:55 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL and Struts

Hey Mike,

Why would you need the formatting inside of an input tag? You are only
processing the data on the server side and that doesn't require formatting
or am I missing something here?

Chuck

-Original Message-
From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 10:45 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL and Struts


To quote my earlier message:

> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.

Is that not clear, I can be more specific if necessary, but I thought my
intent was obvious.


-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 11:36 AM
To: Struts Users Mailing List
Subject: RE: JSTL and Struts

I think it would help if you spelled out for yourself exactly what "this
functionality" really means.

> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 7:44 AM
> To: 'Struts Users Mailing List'
> Subject: RE: JSTL and Struts
> 
> I did it that way in a previous application and it seemed to work
well,
> but
> it just seems like this functionality is so necessary that it
would be
> built into the presentation taglib (and perhaps with the validator
> framework).
> 
> Is it safe to say that perhaps it has not been implemented or
discussed
> because it is an obvious shortcoming and something that will be better
> addressed by JSF than by rewriting chunks of the delivered stuff?
> 
> 
> -Original Message-
> From: Vic Cekvencih [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 31, 2003 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSTL and Struts
> 
> One way is to localize inside the getter of the formbean.
> .V
> 
> Mainguy, Mike wrote:
> > I'm in a quandary.  We're examining a way to do simple formatting of
our
> > model data.  For example, when currency data comes out of the
database,
> > it needs to be rendered as $1,000.00 or whatever.  This is a very
common
> > thing and we where going to do it using a custom formatting object
to do
> > this when we move the data from the model into the form (and visa
> > versa).  After some examination, it turns out the JSTL does this,
but it
> > doesn't appear to support it for  tags.
> >
> >
> >
> > How is this possible!?  Am I missing something?  Why would that not
be
> > the case, how often (in a business app) would you need to format
data
> > for display, but not for edit?
> >
> >
> >
> > Does anyone have any insight on best practices/direction in this
arena?
> > Typically we would do this in a utility class in the manner
described
> > above, but it seems a little clunky doing it this way given the
state of
> > the current tag-libs.
> >
> >
> >
> > This message and its contents (to include attachments) are the
property
> > of Kmart Corporation (Kmart) and may contain confidential and
> > proprietary information. You are hereby notified that any
disclosure,
> > copying, or distribution of this message, or the taking of any
action
> > based on information contained herein is strictly prohibited.
> > Unauthorized use of information contained herein may subject you to
> > civil and criminal prosecution and penalties. If you are not the
> > intended recipient, you should delete this message immediately.
> >
> >
> >

> >
> >
-
> > 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 message and its contents (to include attachments) are the
property of
> Kmart Corporation (Kmart) and may contain confidential and proprietary
> information. You are hereby notified that any disclosure, copying, or
> distribution of this message, or the taking of any action based on
> information contained herein is strictly prohibited. Unauthorized use
of
> information contained herein may subject you to civil and criminal
> prosecution and penalties. If you are not the intended recipient, you
> should delete this 

Re: Struts and Jetspeed

2003-07-31 Thread BaTien Duong
Joe Germuska wrote:

At 22:22 -0600 7/30/03, jakarta-lists wrote:

   Has anyone successfully use Struts with Jetspeed?  I'm looking 
into the possiblilty of having jetspeed do the authentication, 
templating and layout.. while struts will handle the control of the 
app. It sounds like a good idea to me, but I haven't worked with 
struts enough yet to know for sure and I would like to know about 
pitfalls if any. 

Struts has a much better control, while JetSpeed has established 
portlets and facilities to connect devices to portlets. The problem with 
Jetspeed is that it is binding to Turbine, while Struts allows complete 
separation of controller framework and presentation layer. Struts-Tiles 
enable 1 single web-page view rather than portal view and portlet view.

With the release of JSR-168 specification  of portal/portlet container 
based on standard Servlet container, it makes a lot of sense to refactor 
Struts framework to work with standard Servlet / Portal /Portlet 
container. Then an effort to refactor Jetspeed portlets into this 
framework. I wonder if any developer has playing with this idea? I heard 
Craig and Cedric have something under their desks, and not ready to 
share yet? Am I  right?


It doesn't sound like there's much left for Struts to do once you use 
Jetspeed (or Turbine, its underlying framework) for authentication, 
templating, and layout.

Once you're talking about providing content to individual portlets in 
your Jetspeed installation, you can do it with much less work than 
adding Struts in to the mix.

Joe

BaTien

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


Re: JSTL and Struts

2003-07-31 Thread Erik Price


Mainguy, Mike wrote:
When I return a currency or date value, the client has a specific format
they want it in.  i.e. $1,000.000 or 02/02/2003.  
Do you mean you are using an input tag for display purposes (i.e. 
returning data to the browser with an input tag that has a default value).

Erik

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


RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
exactly

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 12:16 PM
To: Struts Users Mailing List
Subject: Re: JSTL and Struts



Mainguy, Mike wrote:
> When I return a currency or date value, the client has a specific format
> they want it in.  i.e. $1,000.000 or 02/02/2003.  

Do you mean you are using an input tag for display purposes (i.e. 
returning data to the browser with an input tag that has a default value).


Erik


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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.




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



RE: JSTL and Struts

2003-07-31 Thread Mainguy, Mike
Or rather, the value stored in my database

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 12:16 PM
To: Struts Users Mailing List
Subject: Re: JSTL and Struts



Mainguy, Mike wrote:
> When I return a currency or date value, the client has a specific format
> they want it in.  i.e. $1,000.000 or 02/02/2003.  

Do you mean you are using an input tag for display purposes (i.e. 
returning data to the browser with an input tag that has a default value).


Erik


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


This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.



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



Design Question

2003-07-31 Thread Travis Stevens
Hello,

I have some functionality in my web application that allows a user to 
select a record.  This functionality is plugged into other types of 
functions, such as combine a record or select a component record.

Steps to combine a record:
1. select a record
2. configure combining
3. combine
Sets to selct a compont
1. select a record
2. set the record as a component.
As you can see, the select a record functionality is common.  To 
implement this I would like to create action classes specifically for 
the select a record interface.  One of the request parameters would be 
the action to forward the result to.  The GET request would look 
something like this:

/action/selectRecord?recordSetName=name&finishedForwardAction=/action/combineRecord
This would:
1. display search fields
2. search / display results
3. redirect to the finishedForwardActionPage (would it be better to put 
the record in the session for the finshedForwardAction or just pass the 
id as a parameter)

Is this an acceptable implementation, or is there a better way?

-Trav

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


extending Struts taglibs to indicate form field states

2003-07-31 Thread Witbeck, Shane
Im considering extending the Struts taglibs (specfically the form object
tags). What Im thinking about doing is adding a "formStateObject" to my
ActionForm beans and having it dictate the "state" of specifc elements of a
form. For example, if a particular field should be disabled, then I would
add disable="true" to the parsed form tag. Other properties of my
formStateObject include changing the css class of the object (to indicate
which fields are required) and whether or not to display a form object. My
intention is to clean up the JSP's that currently have logic tags wrapping
code according to the values set in formStateObject.

Has anyone else extended the taglibs in such a way? 
Opinions on this type of approach?

Thanks,

Shane

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



Any tool for struts?

2003-07-31 Thread JavaXML Developer
Hello group,
 
I want to know if there is any tool available in the market to develop struts 
applications faster?
 
Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Design Question

2003-07-31 Thread Erik Price


Travis Stevens wrote:

As you can see, the select a record functionality is common.  To 
implement this I would like to create action classes specifically for 
the select a record interface.  One of the request parameters would be 
the action to forward the result to.  The GET request would look 
something like this:

/action/selectRecord?recordSetName=name&finishedForwardAction=/action/combineRecord 

This would:
1. display search fields
2. search / display results
3. redirect to the finishedForwardActionPage (would it be better to put 
the record in the session for the finshedForwardAction or just pass the 
id as a parameter)

Is this an acceptable implementation, or is there a better way?
I'm not saying that this is a better way, but it strikes me that 
selecting a record might not be something that you want to confine to 
Struts Actions -- for instance, someday down the road you might want to 
select a record from some other interface or even as a service from 
another application.  You might wish to abstract this even further than 
the level of Action, and make (for instance) a [POJO] class, such as 
RecordSelector, that performs this activity.

Then you can create Actions specific to your form interfaces, and when 
it is necessary to select a record, you can use this class to do the 
work (delegating the information from the Action to the class).  This is 
known as the Command design pattern (in fact Struts Actions are 
themselves an implementation of the Command design pattern, but they are 
tightly coupled to the servlet framework).



This may also spare you the process of supplying a parameter to indicate 
which Action this should ultimately be forwarded to, since you would 
just have the form submit to that Action and delegate the work to 
RecordSelector from inside of that Action.

Just a suggestion.



Erik

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


Re: Design Question

2003-07-31 Thread shane
Why not just define the forward action in the selectRecord action mapping 
element in your struts-config.xml?

shane 

Quoting Erik Price <[EMAIL PROTECTED]>:

> 
> 
> Travis Stevens wrote:
> 
> > As you can see, the select a record functionality is common.  To 
> > implement this I would like to create action classes specifically for 
> > the select a record interface.  One of the request parameters would be 
> > the action to forward the result to.  The GET request would look 
> > something like this:
> > 
> >
> /action/selectRecord?
recordSetName=name&finishedForwardAction=/action/combineRecord
> 
> > 
> > This would:
> > 1. display search fields
> > 2. search / display results
> > 3. redirect to the finishedForwardActionPage (would it be better to put 
> > the record in the session for the finshedForwardAction or just pass the 
> > id as a parameter)
> > 
> > 
> > Is this an acceptable implementation, or is there a better way?
> 
> I'm not saying that this is a better way, but it strikes me that 
> selecting a record might not be something that you want to confine to 
> Struts Actions -- for instance, someday down the road you might want to 
> select a record from some other interface or even as a service from 
> another application.  You might wish to abstract this even further than 
> the level of Action, and make (for instance) a [POJO] class, such as 
> RecordSelector, that performs this activity.
> 
> Then you can create Actions specific to your form interfaces, and when 
> it is necessary to select a record, you can use this class to do the 
> work (delegating the information from the Action to the class).  This is 
> known as the Command design pattern (in fact Struts Actions are 
> themselves an implementation of the Command design pattern, but they are 
> tightly coupled to the servlet framework).
> 
> 
> 
> This may also spare you the process of supplying a parameter to indicate 
> which Action this should ultimately be forwarded to, since you would 
> just have the form submit to that Action and delegate the work to 
> RecordSelector from inside of that Action.
> 
> Just a suggestion.
> 
> 
> 
> Erik
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




--
This mail sent through Toaster-Horde (http://qmailtoaster.clikka.com/)

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



Re: Any tool for struts?

2003-07-31 Thread Adam Levine
Google is your friend:   "struts tools"

Also, there's an archived list of struts-user somewhere... Check the jakarta 
pages for more info.

From: JavaXML Developer <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Any tool for struts?
Date: Thu, 31 Jul 2003 09:52:25 -0700 (PDT)
Hello group,

I want to know if there is any tool available in the market to develop 
struts applications faster?

Thanks,
Vicky
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: Any tool for struts?

2003-07-31 Thread Steve Muench
The BC4J Toy Store Demo (and its accompanying whitepaper)
help you understand what facilities that Oracle JDeveloper
has to offer for Struts developers.

Building a Web Store with Struts and BC4J (BC4J Toy Store Demo)
http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Simplify J2EE Development with the Oracle BC4J Framework
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Dive into BC4J at http://radio.weblogs.com/0118231/
Building Oracle XML Apps, http://www.oreilly.com/catalog/orxmlapp
- Original Message - 
From: "JavaXML Developer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 31, 2003 18:52
Subject: Any tool for struts?


| Hello group,
|  
| I want to know if there is any tool available in the market to develop struts 
applications faster?
|  
| Thanks,
| Vicky
| 
| 
| -
| Do you Yahoo!?
| Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



Show validation errors in an dialog

2003-07-31 Thread Dirk Behrendt
Hello!
 
What is necessary to show errors from validation not in a JSP , but in a
dialog?
 
Dirk


  1   2   >