Re: [OT] Ant/XML problem

2005-02-10 Thread Erik Weber
Sorry, this was a frivolous question.
The answer is "some_l&f".
Erik
Erik Weber wrote:
I have directory with the character sequence "l&f" in the name. Ant 
won't process this line:


How can I get ant to accept (escape?) this directory name?
Thanks,
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


[OT] Ant/XML problem

2005-02-10 Thread Erik Weber
I have directory with the character sequence "l&f" in the name. Ant 
won't process this line:


How can I get ant to accept (escape?) this directory name?
Thanks,
Erik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can forms inherit from other forms

2005-02-10 Thread Daniel Watrous
I'm not sure if I gather exactly what you are trying to do.  I have a set of 
classes (Party which is inherited by Person, Family, Organization, etc.) and 
in general they share the same fields.  I am using validation.  I chose to 
write one PartyForm that extends ValidatorActionForm.  This way I can use 
the same PartyForm for each Person, Family, Organization and all I need to 
do is configure in validation.xml which action uses which fields from the 
form.  Not all fields are used each time, since each party has some unique 
fields.  I can send an example tomorrow if you're interested.

DW
- Original Message - 
From: "Norris Shelton" <[EMAIL PROTECTED]>
To: "Strutss" 
Sent: Thursday, February 10, 2005 2:50 PM
Subject: Can forms inherit from other forms


I ran across this article
http://webdeveloper.earthweb.com/repository/javascripts/2003/12/341171/cssscroll.html
Has something like this every been implemented in the standard
code?  maybe an inherit property.
I have 3 forms (LazyValidatorForm)and they all have to have
default  the same fields or have the same fields defined as
string arrays.
=
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton

__
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
-
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: Handle images path in one place

2005-02-10 Thread Erik Weber
Thank you.
Erik
Craig McClanahan wrote:
On Thu, 10 Feb 2005 23:09:51 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:
 

Sorry, I was using the html-el tag, not the html tag:

I think you should be able to do what you want without the el tags if
you are using JSP 2.0, but to be honest, someone else needs to jump in
and bail me out here on that. I think it's a configuration problem. (web
app 2.3 v 2.4 or something?)
   

You are definitely on the right track.
If you are using a Servlet 2.4/JSP 2.0 container (such as Tomcat 5.x),
you can enable support for EL expressions globally in your pages (even
in template text -- it doesn't have to be in a custom tag attribute). 
This requires telling the container that you are a Servlet 2.4 webapp,
by including the following as the root element:

   http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
   version="2.4">
instead of the DOCTYPE declaration used on previous versions.  Doing
this makes the struts-el library totally superfluous -- EL expressions
work as expected on all the standard Struts tags.
This capability lets you do some cute things, even without a lot of
custom tags.  Consider the following example (using JSTL tags) where
"customers" is an attribute that contains an array (or List) of
Customer beans.
   
   
   Id
   Name
   
   
   
   ${customer.id}
   ${customer.name}
   
   
   
(Note that you can get the same sort of filtering that 
does for you, to avoid cross site scripting attacks, by using things
like "" instead of "${customer.id}" if
you need it.)
(If you want to do *input* into a table like this, consider using
JavaServer Faces (JSF) components like  instead ... it
manages all the hard parts for you.)
 

Erik
   

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]


Re: Handle images path in one place

2005-02-10 Thread Craig McClanahan
On Thu, 10 Feb 2005 23:09:51 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:
> Sorry, I was using the html-el tag, not the html tag:
> 
> 
> 
> I think you should be able to do what you want without the el tags if
> you are using JSP 2.0, but to be honest, someone else needs to jump in
> and bail me out here on that. I think it's a configuration problem. (web
> app 2.3 v 2.4 or something?)

You are definitely on the right track.

If you are using a Servlet 2.4/JSP 2.0 container (such as Tomcat 5.x),
you can enable support for EL expressions globally in your pages (even
in template text -- it doesn't have to be in a custom tag attribute). 
This requires telling the container that you are a Servlet 2.4 webapp,
by including the following as the root element:

http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

instead of the DOCTYPE declaration used on previous versions.  Doing
this makes the struts-el library totally superfluous -- EL expressions
work as expected on all the standard Struts tags.

This capability lets you do some cute things, even without a lot of
custom tags.  Consider the following example (using JSTL tags) where
"customers" is an attribute that contains an array (or List) of
Customer beans.



Id
Name



${customer.id}
${customer.name}




(Note that you can get the same sort of filtering that 
does for you, to avoid cross site scripting attacks, by using things
like "" instead of "${customer.id}" if
you need it.)

(If you want to do *input* into a table like this, consider using
JavaServer Faces (JSF) components like  instead ... it
manages all the hard parts for you.)

> 
> Erik
> 

Craig

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



Re: Handle images path in one place

2005-02-10 Thread Erik Weber
Two things that I think can cause a problem are using a Servlet 2.3 
web.xml instead of a Servet 2.4 web.xml and using the "isELIgnored" 
attribute to the page directive incorrectly.

Erik
Erik Weber wrote:
Sorry, I was using the html-el tag, not the html tag:

I think you should be able to do what you want without the el tags if 
you are using JSP 2.0, but to be honest, someone else needs to jump in 
and bail me out here on that. I think it's a configuration problem. 
(web app 2.3 v 2.4 or something?)

Erik

Neil Aggarwal wrote:
Erik:
This did not seem to work for me. The varuable is not being
substituted. I am using TOmcat 5.0.25 so it should implement
JSP 2.0.
Here is what I have in my JSP:
<% String buttonImageUrl =
PathUtil.getImagePath(request,"layout/homeButtonOver.gif");
pageContext.setAttribute("buttonImageUrl",buttonImageUrl);
String overImageUrl =
PathUtil.getImagePath(request,"layout/homeButtonOver.gif");
pageContext.setAttribute("overImageUrl",overImageUrl);
%>


onmouseout="setImage('homeButton','${buttonImageUrl}')" >
width="140" height="52" />

When I look at the source of the generate page, I get this:

It is taking the variables as literals.
Any ideas?
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, 
February 10, 2005 9:02 AM
To: Struts Users Mailing List
Subject: Re: Handle images path in one place

Using the expression language, you can build paths like this:

The "somePath" variable could be an application scope attribute 
(ServletContext attribute). I have done this before by writing a 
(Struts) plugin that gets "somePath" from web.xml (init-param) and 
stores it as a ServletContext attribute. Then it's availabe (as 
shown above) in all tags in all your JSPs.

Not sure if there is a better way but that works. You can change 
your image URL prefix simply by editing web.xml.

Erik
Gaet wrote:

Hello,
I'm writting a web application using J2EE where several
pages can contains the same images.
I would like to have the path to these images into one place
an if possible into the same place for all images.
For instance in a file and have a tag to access like this

like this I can move my images from one folder to another, I
will have only one file to update
Does somebody use something similar?
TIA
Gaet

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


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


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

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


Re: Handle images path in one place

2005-02-10 Thread Erik Weber
Sorry, I was using the html-el tag, not the html tag:

I think you should be able to do what you want without the el tags if 
you are using JSP 2.0, but to be honest, someone else needs to jump in 
and bail me out here on that. I think it's a configuration problem. (web 
app 2.3 v 2.4 or something?)

Erik

Neil Aggarwal wrote:
Erik:
This did not seem to work for me.  The varuable is not being
substituted.  I am using TOmcat 5.0.25 so it should implement
JSP 2.0.
Here is what I have in my JSP:
   <% 
 String buttonImageUrl =
PathUtil.getImagePath(request,"layout/homeButtonOver.gif");
 pageContext.setAttribute("buttonImageUrl",buttonImageUrl);
 String overImageUrl =
PathUtil.getImagePath(request,"layout/homeButtonOver.gif");
 pageContext.setAttribute("overImageUrl",overImageUrl);
   %>
   

 onmouseout="setImage('homeButton','${buttonImageUrl}')" 
   >
width="140" height="52" />

When I look at the source of the generate page, I get this:
   
It is taking the variables as literals.
Any ideas?
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
 

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 9:02 AM
To: Struts Users Mailing List
Subject: Re: Handle images path in one place

Using the expression language, you can build paths like this:

The "somePath" variable could be an application scope attribute 
(ServletContext attribute). I have done this before by writing a 
(Struts) plugin that gets "somePath" from web.xml (init-param) and 
stores it as a ServletContext attribute. Then it's availabe (as shown 
above) in all tags in all your JSPs.

Not sure if there is a better way but that works. You can change your 
image URL prefix simply by editing web.xml.

Erik
Gaet wrote:
   

Hello,
I'm writting a web application using J2EE where several 
 

pages can contains the same images.
   

I would like to have the path to these images into one place 
 

an if possible into the same place for all images.
   

For instance in a file and have a tag to access like this

like this I can move my images from one folder to another, I 
 

will have only one file to update
   

Does somebody use something similar?
TIA
Gaet
 

-
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: Hibernate object relational mapping

2005-02-10 Thread Thiago Pinheiro

Hibernate rocks

-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 10 de fevereiro de 2005 12:58
To: user@struts.apache.org
Subject: Hibernate object relational mapping 

I'm looking for opinions on using Hibernate with struts.  Pro's /cons. etc.

My approach for data driven apps where the data changes rather frequently,
would be jdbc interaction with stored procedures that populate beans that
get passed around the app.  But im hearing so much about how hibernate is
terrific.  Im not sure if its because it makes working with a DB easier for
non sql experts or because there are legitimate benefits.  It appears that
it generates ansi sql statements from the objects it creates which to my
seems slower db interaction than using a cachable stored procs while
creating more objects to do the interaction.  

What does everyone think?

-Thanks
-Brian



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



RE: Hibernate object relational mapping

2005-02-10 Thread Thiago Pinheiro

Hibernate rocks

-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 10 de fevereiro de 2005 12:58
To: user@struts.apache.org
Subject: Hibernate object relational mapping 

I'm looking for opinions on using Hibernate with struts.  Pro's /cons. etc.

My approach for data driven apps where the data changes rather frequently,
would be jdbc interaction with stored procedures that populate beans that
get passed around the app.  But im hearing so much about how hibernate is
terrific.  Im not sure if its because it makes working with a DB easier for
non sql experts or because there are legitimate benefits.  It appears that
it generates ansi sql statements from the objects it creates which to my
seems slower db interaction than using a cachable stored procs while
creating more objects to do the interaction.  

What does everyone think?

-Thanks
-Brian



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



Re: SessionState vs. request state.

2005-02-10 Thread Ingo Adler
Authentication information (user is logged in) must be stored on the 
server side (session or database). It should not be given to the client, 
because the client could manipulate it (setting isLoggedIn to true).

If you store it in the database you should use a non guessable random 
number as a key which you can transfer through the browser (cookie or 
request parameter).

Ingo
[EMAIL PROTECTED] wrote:
For storing user info, using sessions is the best way. Think about not
using sessions: you should someway propagate an "ID" of the user between
requests. Luckily, J2EE applications store a session ID as a cookie or (if
cookies are not enabled) propagates it in URLs.
But be cautious using session, don't abuse it. If you want to use it only
to store user information, it is correct. But if you want to store, for
example, data between request to realize a wizard, it is wrong. In this
case, you should propagate temporary acquired values between requests,
because you could reach inconsistence. For example, think about opening
two different windows with the same "wizard". The session ID is the same,
then data could cross themselves, making a real mess!
But this is not your case, so use session.
Ciao
Antonio Petrelli
 

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


Re: Validation question

2005-02-10 Thread Niall Pemberton
Not yet.

- Original Message - 
From: "kjc" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 10, 2005 8:04 PM
Subject: Validation question


> Is it possible to pass the incorrect field value that was entered by the 
> user
> to the error message such that
> 
>  errors.email={0} is an invalid e-mail address.
> 
>  gets generated as
> 
>"someIncorrectEmailAddr" is an invalid e-mail address



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



Re: Can forms inherit from other forms

2005-02-10 Thread Niall Pemberton
Theres an outstanding bugzilla request for this

http://issues.apache.org/bugzilla/show_bug.cgi?id=22600

Niall

- Original Message - 
From: "Norris Shelton" <[EMAIL PROTECTED]>
Sent: Thursday, February 10, 2005 9:50 PM


> I ran across this article
>
>
http://webdeveloper.earthweb.com/repository/javascripts/2003/12/341171/cssscroll.html
>
> Has something like this every been implemented in the standard
> code?  maybe an inherit property.
>
> I have 3 forms (LazyValidatorForm)and they all have to have
> default  the same fields or have the same fields defined as
> string arrays.



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



Inez WEYTENS/BE/ALCATEL is out of the office.

2005-02-10 Thread inez . weytens
I will be out of the office starting  10/02/2005 and will not return until
14/02/2005.

I will respond to your mail when I return.

For urgent matters concerning ADQ you can contact Koen Daenen or Walter
Zegels.





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



RE: Redirect instead of forward in action mapping

2005-02-10 Thread Neil Aggarwal
David:

That worked!  That is really cool.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 5:14 PM
> To: Struts Users Mailing List
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Neil
> 
> I was doing that from memory so a quick check in the tiles 
> TLD shows I gave
> you the wrong attribute name.  It isn't template but 
> definition.  I verified
> this works in my current in-development webapp.  Well, once I 
> added the
> tilesPlugin.
> 
> Regards,
> David
> 
> -Original Message-
> From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 5:49 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> David:
> 
> I tried this index.jsp page:
> 
> <[EMAIL PROTECTED] uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> 
> I have this in my tiles-defs.xml:
> 
>   
>   
> 
> 
> 
> 
>   
> 
>   
>   
> 
>   
> 
> When I go to the index page, I get a blank page.
> 
> Any ideas?
> 
> Thanks,
>   Neil
> 
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> 
> > -Original Message-
> > From: David G. Friedman [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 4:29 PM
> > To: Struts Users Mailing List
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > A JSP can use the tiles taglib and pick a tiles definition to
> > "show".  This
> > is how I setup my webapps' index.jsp page.  Tiles allows for
> > two ways...
> >
> > The first I use in my index page so my initial action does
> > not have to be a
> > struts Action, just the plain old /index.jsp page:
> >
> > <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> > 
> >
> > The other includes a page and sets parameters of your choice
> > (again, from
> > the tiles-defs.xml file or anything else your plugIn knows
> > about) for you:
> >
> > <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
> > 
> >   
> >   
> >   etc.
> > 
> >
> > Regards,
> > David
> >
> > -Original Message-
> > From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 12:47 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > Neil,
> >
> > Unfortunately I know of no "better" way of accomplishing
> > this. Redirects are
> > for the benefit of the user anyway -- they get a new address
> > bar location --
> > and so this really shouldn't be an issue.
> >
> > Thanks,
> > Paul
> >
> > -Original Message-
> > From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 12:40 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > Paul:
> >
> > I see.
> >
> > I did this which worked:
> >
> >  > type="register.RegisterAction"
> > name="registerForm"
> > scope="request"
> > input="register.index"
> > validate="true">
> >> redirect="true"/>
> > 
> > 
> >
> > Is there a better approach to doing this?
> >
> > Thanks,
> > Neil
> >
> > --
> > Neil Aggarwal, JAMM Consulting, (972)612-6056, 
> www.JAMMConsulting.com
> > FREE! Valuable info on how your business can reduce 
> operating costs by
> > 17% or more in 6 months or less! 
> http://newsletter.JAMMConsulting.com
> >
> > > -Original Message-
> > > From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, February 10, 2005 11:30 AM
> > > To: 'Struts Users Mailing List'
> > > Cc: 'Neil Aggarwal'
> > > Subject: RE: Redirect instead of forward in action mapping
> > >
> > >
> > > Neil,
> > >
> > > You cannot redirect to a Tile. A Redirect is specific to a URI.
> > >
> > > Thanks,
> > > Paul
> > >
> > > -Original Message-
> > > From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, February 10, 2005 12:13 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: Redirect instead of forward in action mapping
> > >
> > >
> > > Bill:
> > >
> > > I tried adding the redirect="true" parameter to my success
> > > forward and it does not seem to have an effect.  When
> > > I get to the success page and hit the reload button on my
> > > browser, the form data is posted again.
> > >
> > > You can try it by going to:
> > > https://dev.jammconsulting.com/pricetracker/register.do
> > > enter something (junk is OK) in the email address field
> > > and hit the Save button.  When you get to the
> > > succe

RE: Handle images path in one place

2005-02-10 Thread Neil Aggarwal
Erik:

This did not seem to work for me.  The varuable is not being
substituted.  I am using TOmcat 5.0.25 so it should implement
JSP 2.0.

Here is what I have in my JSP:

<% 
  String buttonImageUrl =
PathUtil.getImagePath(request,"layout/homeButtonOver.gif");
  pageContext.setAttribute("buttonImageUrl",buttonImageUrl);
  String overImageUrl =
PathUtil.getImagePath(request,"layout/homeButtonOver.gif");
  pageContext.setAttribute("overImageUrl",overImageUrl);
%>


When I look at the source of the generate page, I get this:



It is taking the variables as literals.

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 9:02 AM
> To: Struts Users Mailing List
> Subject: Re: Handle images path in one place
> 
> 
> Using the expression language, you can build paths like this:
> 
> 
> 
> The "somePath" variable could be an application scope attribute 
> (ServletContext attribute). I have done this before by writing a 
> (Struts) plugin that gets "somePath" from web.xml (init-param) and 
> stores it as a ServletContext attribute. Then it's availabe (as shown 
> above) in all tags in all your JSPs.
> 
> Not sure if there is a better way but that works. You can change your 
> image URL prefix simply by editing web.xml.
>  
> Erik
> 
> 
> Gaet wrote:
> 
> >Hello,
> >
> >I'm writting a web application using J2EE where several 
> pages can contains the same images.
> >I would like to have the path to these images into one place 
> an if possible into the same place for all images.
> >For instance in a file and have a tag to access like this
> >
> >
> >like this I can move my images from one folder to another, I 
> will have only one file to update
> >
> >Does somebody use something similar?
> >
> >TIA
> >
> >Gaet
> >  
> >
> 
> -
> 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: Redirect instead of forward in action mapping

2005-02-10 Thread David G. Friedman
Neil

I was doing that from memory so a quick check in the tiles TLD shows I gave
you the wrong attribute name.  It isn't template but definition.  I verified
this works in my current in-development webapp.  Well, once I added the
tilesPlugin.

Regards,
David

-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 5:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Redirect instead of forward in action mapping


David:

I tried this index.jsp page:

<[EMAIL PROTECTED] uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


I have this in my tiles-defs.xml:

  
  




  

  
  

  

When I go to the index page, I get a blank page.

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 4:29 PM
> To: Struts Users Mailing List
> Subject: RE: Redirect instead of forward in action mapping
>
>
> A JSP can use the tiles taglib and pick a tiles definition to
> "show".  This
> is how I setup my webapps' index.jsp page.  Tiles allows for
> two ways...
>
> The first I use in my index page so my initial action does
> not have to be a
> struts Action, just the plain old /index.jsp page:
>
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
>
> The other includes a page and sets parameters of your choice
> (again, from
> the tiles-defs.xml file or anything else your plugIn knows
> about) for you:
>
> <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
> 
>   
>   
>   etc.
> 
>
> Regards,
> David
>
> -Original Message-
> From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 12:47 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
>
>
> Neil,
>
> Unfortunately I know of no "better" way of accomplishing
> this. Redirects are
> for the benefit of the user anyway -- they get a new address
> bar location --
> and so this really shouldn't be an issue.
>
> Thanks,
> Paul
>
> -Original Message-
> From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 12:40 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
>
>
> Paul:
>
> I see.
>
> I did this which worked:
>
>  type="register.RegisterAction"
> name="registerForm"
> scope="request"
> input="register.index"
> validate="true">
>redirect="true"/>
> 
> 
>
> Is there a better approach to doing this?
>
> Thanks,
>   Neil
>
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
>
> > -Original Message-
> > From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 11:30 AM
> > To: 'Struts Users Mailing List'
> > Cc: 'Neil Aggarwal'
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > Neil,
> >
> > You cannot redirect to a Tile. A Redirect is specific to a URI.
> >
> > Thanks,
> > Paul
> >
> > -Original Message-
> > From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 12:13 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > Bill:
> >
> > I tried adding the redirect="true" parameter to my success
> > forward and it does not seem to have an effect.  When
> > I get to the success page and hit the reload button on my
> > browser, the form data is posted again.
> >
> > You can try it by going to:
> > https://dev.jammconsulting.com/pricetracker/register.do
> > enter something (junk is OK) in the email address field
> > and hit the Save button.  When you get to the
> > success page, hit the reload button on the browser.
> > You will get a pop up that tells you it is resending
> > the information.
> >
> > Here is what I have in my struts-config.xml file:
> >  > type="register.RegisterAction"
> > name="registerForm"
> > scope="request"
> > input="register.index"
> > validate="true">
> >> redirect="true"/>
> > 
> >
> > Any ideas why that did not work?
> >
> > Thanks,
> > Neil
> >
> >
> > --
> > Neil Aggarwal, JAMM Consulting, (972)612-6056,
> www.JAMMConsulting.com
> > FREE! Valuable info on how your business can reduce
> operating costs by
> > 17% or more in 6 months or less!
> http://newsletter.JAMMConsulting.com
> >
> > > -Original Message-
> > > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> > > Sent: Wednesday, F

RE: Redirect instead of forward in action mapping

2005-02-10 Thread Neil Aggarwal
David:

I tried this index.jsp page:

<[EMAIL PROTECTED] uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


I have this in my tiles-defs.xml:

  
  




  

  
  

  

When I go to the index page, I get a blank page.

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 4:29 PM
> To: Struts Users Mailing List
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> A JSP can use the tiles taglib and pick a tiles definition to 
> "show".  This
> is how I setup my webapps' index.jsp page.  Tiles allows for 
> two ways...
> 
> The first I use in my index page so my initial action does 
> not have to be a
> struts Action, just the plain old /index.jsp page:
> 
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> 
> The other includes a page and sets parameters of your choice 
> (again, from
> the tiles-defs.xml file or anything else your plugIn knows 
> about) for you:
> 
> <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
> 
>   
>   
>   etc.
> 
> 
> Regards,
> David
> 
> -Original Message-
> From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 12:47 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Neil,
> 
> Unfortunately I know of no "better" way of accomplishing 
> this. Redirects are
> for the benefit of the user anyway -- they get a new address 
> bar location --
> and so this really shouldn't be an issue.
> 
> Thanks,
> Paul
> 
> -Original Message-
> From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 12:40 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Paul:
> 
> I see.
> 
> I did this which worked:
> 
>  type="register.RegisterAction"
> name="registerForm"
> scope="request"
> input="register.index"
> validate="true">
>redirect="true"/>
> 
> 
> 
> Is there a better approach to doing this?
> 
> Thanks,
>   Neil
> 
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> 
> > -Original Message-
> > From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 11:30 AM
> > To: 'Struts Users Mailing List'
> > Cc: 'Neil Aggarwal'
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > Neil,
> >
> > You cannot redirect to a Tile. A Redirect is specific to a URI.
> >
> > Thanks,
> > Paul
> >
> > -Original Message-
> > From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 12:13 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Redirect instead of forward in action mapping
> >
> >
> > Bill:
> >
> > I tried adding the redirect="true" parameter to my success
> > forward and it does not seem to have an effect.  When
> > I get to the success page and hit the reload button on my
> > browser, the form data is posted again.
> >
> > You can try it by going to:
> > https://dev.jammconsulting.com/pricetracker/register.do
> > enter something (junk is OK) in the email address field
> > and hit the Save button.  When you get to the
> > success page, hit the reload button on the browser.
> > You will get a pop up that tells you it is resending
> > the information.
> >
> > Here is what I have in my struts-config.xml file:
> >  > type="register.RegisterAction"
> > name="registerForm"
> > scope="request"
> > input="register.index"
> > validate="true">
> >> redirect="true"/>
> > 
> >
> > Any ideas why that did not work?
> >
> > Thanks,
> > Neil
> >
> >
> > --
> > Neil Aggarwal, JAMM Consulting, (972)612-6056, 
> www.JAMMConsulting.com
> > FREE! Valuable info on how your business can reduce 
> operating costs by
> > 17% or more in 6 months or less! 
> http://newsletter.JAMMConsulting.com
> >
> > > -Original Message-
> > > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> > > Sent: Wednesday, February 09, 2005 10:23 PM
> > > To: user@struts.apache.org
> > > Subject: Re: Redirect instead of forward in action mapping
> > >
> > >
> > > Set the redirect attribute on the forward to true:
> > >
> > > 
> > >
> > > Of course, if the success page displays data you will need to
> > > make sure
> > > that is is available in the session since it you will be
> > > issuing a new
> > > request. (You may want to look into the saveMessage

RE: Redirect instead of forward in action mapping

2005-02-10 Thread David G. Friedman
A JSP can use the tiles taglib and pick a tiles definition to "show".  This
is how I setup my webapps' index.jsp page.  Tiles allows for two ways...

The first I use in my index page so my initial action does not have to be a
struts Action, just the plain old /index.jsp page:

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


The other includes a page and sets parameters of your choice (again, from
the tiles-defs.xml file or anything else your plugIn knows about) for you:

<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>

  
  
  etc.


Regards,
David

-Original Message-
From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Redirect instead of forward in action mapping


Neil,

Unfortunately I know of no "better" way of accomplishing this. Redirects are
for the benefit of the user anyway -- they get a new address bar location --
and so this really shouldn't be an issue.

Thanks,
Paul

-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Redirect instead of forward in action mapping


Paul:

I see.

I did this which worked:


  



Is there a better approach to doing this?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: Benedict, Paul C [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 11:30 AM
> To: 'Struts Users Mailing List'
> Cc: 'Neil Aggarwal'
> Subject: RE: Redirect instead of forward in action mapping
>
>
> Neil,
>
> You cannot redirect to a Tile. A Redirect is specific to a URI.
>
> Thanks,
> Paul
>
> -Original Message-
> From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 12:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
>
>
> Bill:
>
> I tried adding the redirect="true" parameter to my success
> forward and it does not seem to have an effect.  When
> I get to the success page and hit the reload button on my
> browser, the form data is posted again.
>
> You can try it by going to:
> https://dev.jammconsulting.com/pricetracker/register.do
> enter something (junk is OK) in the email address field
> and hit the Save button.  When you get to the
> success page, hit the reload button on the browser.
> You will get a pop up that tells you it is resending
> the information.
>
> Here is what I have in my struts-config.xml file:
>  type="register.RegisterAction"
> name="registerForm"
> scope="request"
> input="register.index"
> validate="true">
>redirect="true"/>
> 
>
> Any ideas why that did not work?
>
> Thanks,
>   Neil
>
>
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
>
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> > Sent: Wednesday, February 09, 2005 10:23 PM
> > To: user@struts.apache.org
> > Subject: Re: Redirect instead of forward in action mapping
> >
> >
> > Set the redirect attribute on the forward to true:
> >
> > 
> >
> > Of course, if the success page displays data you will need to
> > make sure
> > that is is available in the session since it you will be
> > issuing a new
> > request. (You may want to look into the saveMessages(HttpSession
> > session) method).
> >
> > Neil Aggarwal wrote:
> >
> > > Hello:
> > >
> > > When I set up a form in struts, I am using this action
> > > mapping:
> > >
> > >  > > type="register.RegisterAction"
> > > name="registerForm"
> > > scope="request"
> > > input="register.index"
> > > validate="true">
> > >   
> > > 
> > >
> > > When the form is posted successfully, the user is forwarded
> > > to a page that says their information was entered successfully.
> > >
> > > Unfortunately, if they hit reload on that page, it will re-execute
> > > the form and their data will be posted again.
> > >
> > > To get around this, I use a redirect instead of forward in many
> > > of my apps.
> > >
> > > Is there a way to do that within struts?
> > >
> > > Thanks,
> > >   Neil
> > >
> > >
> > > --
> > > Neil Aggarwal, JAMM Consulting, (972)612-6056,
> > www.JAMMConsulting.com
> > > FREE! Valuable info on how your business can reduce
> > operating costs by
> > > 17% or more in 6 months or less!
> > http://newsletter.JAMMConsulting.com
> >
> >
> >
> -
> > To unsubscr

Re: Struts 1.2.6 and

2005-02-10 Thread Brian Bezanson
Use Struts 1.2.6 and a JSP 2.0 compatible application server and have
your web.xml file set to use JSP 2.0 and JSP EL syntax -- then you get
the benefits of EL without the need for the struts-el packages. That's
what I use now on my projects with Tomcat 5 or JBoss 4 application
servers.


On Thu, 10 Feb 2005 12:47:02 -0800, Shey Rab Pawo
<[EMAIL PROTECTED]> wrote:
> What do we do if we are using Struts 1.2.6 and need  as in:
> 
> 
> 
>  
> 

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



[OT]

2005-02-10 Thread J Q
Testing.

Please ignore,
JQ

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



[OT] CMS w/ JAASRealm

2005-02-10 Thread Jerry Jalenak
I'm implementing container managed security in Tomcat using the JAASRealm.
Everything works as I expect it to, but I can't figure out how to get an
error message passed from my LoginModule back to my Struts Action class (I
specify in the  that my  pages are .do
actions).  Is there a way to access the ServletContext or ServletConfig from
a JAAS login module?

Jerry Jalenak
Senior Programmer / Analyst, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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



[OT] CMS w/ JAASRealm

2005-02-10 Thread Jerry Jalenak
I'm implementing container managed security in Tomcat using the JAASRealm.
Everything works as I expect it to, but I can't figure out how to get an
error message passed from my LoginModule back to my Struts Action class (I
specify in the  that my  pages are .do
actions).  Is there a way to access the ServletContext or ServletConfig from
a JAAS login module?

Jerry Jalenak
Senior Programmer / Analyst, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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



Can forms inherit from other forms

2005-02-10 Thread Norris Shelton
I ran across this article

http://webdeveloper.earthweb.com/repository/javascripts/2003/12/341171/cssscroll.html

Has something like this every been implemented in the standard
code?  maybe an inherit property.

I have 3 forms (LazyValidatorForm)and they all have to have
default  the same fields or have the same fields defined as
string arrays.

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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



Re: OT: Problem with checkbox - now javascript problem

2005-02-10 Thread Norris Shelton
having a checkbox with the same name as a hidden field prevented
the value from being evaluated.   This was solved by putting the
script directly into the onclick method.

onclick=" if (this.checked == true) {
  
document.getElementById('${recordType.name}Box').style.display='block';
} else {
  
document.getElementById('${recordType.name}Box').style.display='none';
}"

This forced me to define a hidden area for all the properties,
but that was easier than investing more time.

--- Norris Shelton <[EMAIL PROTECTED]> wrote:

> Dang it.  This is not going to work for me.  I have a check
> box.
>  If the check box is checked, I have some javascript looking
> for
> the click event.  If the check box has a .checked = true.  I
> change div's display value to block, else to none.  So, you
> check the check box and some radio buttons show up, else they
> disappear.
> 
> If I put the hidden field, then the javascript returns an
> undefined value.  Any ideas on how to solve this.  Here is
> what
> the html looks like:
> 
>  checked="checked" onclick="javascript:bookingBoxDisplay();">
> Bookings 
> 
> 
> 
> 
> 
> 
> 
>  style="display:block;">
> value="all"
> checked="checked"> All 
> value="incarcerated"> Incarcerated Only
> 
> 
snipped...

=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton




__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



[ot]RegEx issue

2005-02-10 Thread Mick.Knutson
I am trying to verify if a string is anything Other than a money format such as:

// bigMoney means 9 or 999,999,999 allowed, max 9 digits in 11-char 
field.
// Make sure NOT valid for weirdly placed commas like ",999" or "9,,999" or 
"99,99"

inputString.match( "^\\d{0,9}$|^\\d{1,3}(,\\d{3})*$" );

But, this does not seem to parse correctly in my String.match(), but this same 
RegEx work for my Struts validator.
Any help here?


Mick Knutson
Wells Fargo Business Direct Information Systems
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




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



Re: multibox with label value beans

2005-02-10 Thread Ravi Tadi
 following code will display multobox (Multiple Checkbox) using Label
value bean List.

   






id="checkboxid"
This id will be referd in multibox tag , bean write tag

entries_list : is LabelValue Bean List
selectedEntriesArray : is Array Of String  




On Thu, 10 Feb 2005 11:36:23 -0800, Shey Rab Pawo
<[EMAIL PROTECTED]> wrote:
> I do a dropdown list as follows with a list holding label value beans:
> 
>  
>  property="value"
>  labelProperty="label" />
>  
> 
> How would I put these into a mulit-checkbox?  Thanks for any assistance.
> 
> --
> The radiance of all the stars does not equal a sixteenth part of the
> moon's radiance, likewise, good deeds giving us merit, all these do
> not equal a sixteenth part of the merit of loving-kindness..
> 
> -
> 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]



Thomas Jerichow/msg ist außer Haus.

2005-02-10 Thread Thomas_Jerichow
Ich werde vom 07.02.2005 bis 20.02.2005 nicht im Büro sein.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.


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



Re: OT: Problem with checkbox - now javascript problem

2005-02-10 Thread Norris Shelton
Dang it.  This is not going to work for me.  I have a check box.
 If the check box is checked, I have some javascript looking for
the click event.  If the check box has a .checked = true.  I
change div's display value to block, else to none.  So, you
check the check box and some radio buttons show up, else they
disappear.

If I put the hidden field, then the javascript returns an
undefined value.  Any ideas on how to solve this.  Here is what
the html looks like:


Bookings 








All 
Incarcerated Only



--- Norris Shelton <[EMAIL PROTECTED]> wrote:

> Now I see clearer what you were saying.  I found this in the
> java forums.
> 
>
http://forum.java.sun.com/thread.jspa?threadID=242031&messageID=2946045
> 
> It worked like a charm.
> 
> I wonder why the html:checkbox docs don't mention this.
> 
> Thanks for your help.
> 
> --- Cédric Levieux <[EMAIL PROTECTED]> wrote:
> 
> > Because when you uncheck a checkbox you don't send this
> field
> > and the
> > form process let the previous value in place
> > 
> > One of tips of mine is to put a hidden field with the same
> > name and to
> > see the field as an array : when it contains only one value
> > the
> > checkbox is unchecked, checked otherwise
> > 
> > Hope it will help,
> > 
> > Cedric
> > 
> > 
> > On Tue, 8 Feb 2005 13:58:22 -0800 (PST), Norris Shelton
> > <[EMAIL PROTECTED]> wrote:
> > > I have a checkbox drawn by:
> > >  > > onclick="javascript:${recordType.name}BoxDisplay();"
> />
> > > ${recordType.description} 
> > > 
> > > The form is defined as:
> > >  > > type="org.apache.struts.validator.LazyValidatorForm" >
> > > ...
> > > 
> > >  > > type="java.lang.Boolean" initial="true"/>
> > > ...
> > > 
> > > 
> > > The check box displays correct and even defaults.  If I
> > uncheck
> > > the box and submit, when it failes validation, it is still
> > > checked.
> > > 
> > > =
> > > 
> > > Norris Shelton
> > > Software Engineer
> > > Sun Certified Java 1.1 Programmer
> > > Appriss, Inc.
> > > ICQ# 26487421
> > > AIM NorrisEShelton
> > > YIM norrisshelton
> > > 
> > > __
> > > Do you Yahoo!?
> > > Meet the all-new My Yahoo! - Try it today!
> > > http://my.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > 
> > >
> > 
> >
>
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> =
> 
> Norris Shelton
> Software Engineer
> Sun Certified Java 1.1 Programmer
> Appriss, Inc.
> ICQ# 26487421
> AIM NorrisEShelton
> YIM norrisshelton
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection
> around 
> http://mail.yahoo.com 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


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

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



Struts 1.2.6 and

2005-02-10 Thread Shey Rab Pawo
What do we do if we are using Struts 1.2.6 and need  as in:



 


Thanks for any assistance!


-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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



Re: Request for changes [Was: Re: Struts 1.2.6 release??]

2005-02-10 Thread Hubert Rabago
IIRC, the issue only involves the new errorStyle attributes.  If
you're not using them, you don't need to worry.  If you're using them
with the non-EL tags, you're fine, too.  The issue would only be if
you want to use them with the EL tags, because the support isn't there
yet.

Hubert


On Thu, 10 Feb 2005 12:34:51 -0800, Shey Rab Pawo
<[EMAIL PROTECTED]> wrote:
> What do we do with Struts 1.2.6 and using  in this case?
> Thanks for any assistance.
> 
> 
> On Mon, 07 Feb 2005 13:32:53 +, Graham Reeds <[EMAIL PROTECTED]> wrote:
> > Niall Pemberton wrote:
> > > http://www.mail-archive.com/dev@struts.apache.org/msg05862.html
> > >
> > > From memory, version 1.2.6 was left at beta mainly because there were new
> > > attributes added to the "core" tags which hadn't also been included in the
> > > "EL" flavour tags. The plan currently is to have a 1.2.7 version, 
> > > hopefully
> > > soon, with this resolved.
> >
> > I know this is moving away from the original thread, but how do you go
> > about requesting changes or submitting ideas for changes?  I know one
> > way would be to grab the source, modify it yourself, submit it yourself
> > but I tend to spend most of my time wallowing around looking for the
> > 'right' API call more than coding.  Give me a couple more months and I
> > might be able to do something...but until then?
> >
> > G.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> The radiance of all the stars does not equal a sixteenth part of the
> moon's radiance, likewise, good deeds giving us merit, all these do
> not equal a sixteenth part of the merit of loving-kindness..
> 
> -
> 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: Request for changes [Was: Re: Struts 1.2.6 release??]

2005-02-10 Thread Shey Rab Pawo
What do we do with Struts 1.2.6 and using  in this case? 
Thanks for any assistance.


On Mon, 07 Feb 2005 13:32:53 +, Graham Reeds <[EMAIL PROTECTED]> wrote:
> Niall Pemberton wrote:
> > http://www.mail-archive.com/dev@struts.apache.org/msg05862.html
> >
> > From memory, version 1.2.6 was left at beta mainly because there were new
> > attributes added to the "core" tags which hadn't also been included in the
> > "EL" flavour tags. The plan currently is to have a 1.2.7 version, hopefully
> > soon, with this resolved.
> 
> I know this is moving away from the original thread, but how do you go
> about requesting changes or submitting ideas for changes?  I know one
> way would be to grab the source, modify it yourself, submit it yourself
> but I tend to spend most of my time wallowing around looking for the
> 'right' API call more than coding.  Give me a couple more months and I
> might be able to do something...but until then?
> 
> G.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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



Re: Problem with checkbox

2005-02-10 Thread Norris Shelton
Now I see clearer what you were saying.  I found this in the
java forums.

http://forum.java.sun.com/thread.jspa?threadID=242031&messageID=2946045

It worked like a charm.

I wonder why the html:checkbox docs don't mention this.

Thanks for your help.

--- Cédric Levieux <[EMAIL PROTECTED]> wrote:

> Because when you uncheck a checkbox you don't send this field
> and the
> form process let the previous value in place
> 
> One of tips of mine is to put a hidden field with the same
> name and to
> see the field as an array : when it contains only one value
> the
> checkbox is unchecked, checked otherwise
> 
> Hope it will help,
> 
> Cedric
> 
> 
> On Tue, 8 Feb 2005 13:58:22 -0800 (PST), Norris Shelton
> <[EMAIL PROTECTED]> wrote:
> > I have a checkbox drawn by:
> >  > onclick="javascript:${recordType.name}BoxDisplay();" />
> > ${recordType.description} 
> > 
> > The form is defined as:
> >  > type="org.apache.struts.validator.LazyValidatorForm" >
> > ...
> > 
> >  > type="java.lang.Boolean" initial="true"/>
> > ...
> > 
> > 
> > The check box displays correct and even defaults.  If I
> uncheck
> > the box and submit, when it failes validation, it is still
> > checked.
> > 
> > =
> > 
> > Norris Shelton
> > Software Engineer
> > Sun Certified Java 1.1 Programmer
> > Appriss, Inc.
> > ICQ# 26487421
> > AIM NorrisEShelton
> > YIM norrisshelton
> > 
> > __
> > Do you Yahoo!?
> > Meet the all-new My Yahoo! - Try it today!
> > http://my.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


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

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



Validation question

2005-02-10 Thread kjc
Is it possible to pass the incorrect field value that was entered by the 
user
to the error message such that

errors.email={0} is an invalid e-mail address.
gets generated as
  "someIncorrectEmailAddr" is an invalid e-mail address
Thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


multibox with label value beans

2005-02-10 Thread Shey Rab Pawo
I do a dropdown list as follows with a list holding label value beans:

  

  

How would I put these into a mulit-checkbox?  Thanks for any assistance.


-- 
The radiance of all the stars does not equal a sixteenth part of the
moon's radiance, likewise, good deeds giving us merit, all these do
not equal a sixteenth part of the merit of loving-kindness..

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



Re: [OT] Identify web user in intranet

2005-02-10 Thread Ashish Kulkarni
Hi
Thanx for all the information, i can now try to find a
solution using one of the ways

Ashish
--- PA <[EMAIL PROTECTED]> wrote:

> 
> On Feb 10, 2005, at 16:44, PA wrote:
> 
> > Well... there is no simply solution to this
> problem... to make matter 
> > worst, you have dynamic IP address... sigh...
> >
> > Couple of options:
> 
> Forgot one more option:
> 
> - If your are in a Windows environment, you could
> leverage information 
> from CIFS's UniAddress.
> 
> Cheers
> 
> --
> PA, Onnay Equitursay
> http://alt.textdrive.com/
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: archives

2005-02-10 Thread Jeff Beal
GMane (www.gmane.org) offers the Struts mailing list as an NNTP 
newsgroup and as an RSS feed.  It might be really easy to come up with 
something off of these interfaces.

-- Jeff
Jason Long wrote:
Is there a way to batch download archived struts messages for my own search
implementation?
Thank you for your time,
 
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineerring
http://www.supernovasoftware.com


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


RE: Redirect instead of forward in action mapping

2005-02-10 Thread Benedict, Paul C
Neil,

Unfortunately I know of no "better" way of accomplishing this. Redirects are
for the benefit of the user anyway -- they get a new address bar location --
and so this really shouldn't be an issue.

Thanks,
Paul

-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 12:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Redirect instead of forward in action mapping


Paul:

I see.  

I did this which worked:


  



Is there a better approach to doing this?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: Benedict, Paul C [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 11:30 AM
> To: 'Struts Users Mailing List'
> Cc: 'Neil Aggarwal'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Neil,
> 
> You cannot redirect to a Tile. A Redirect is specific to a URI.
> 
> Thanks,
> Paul
> 
> -Original Message-
> From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 12:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Bill:
> 
> I tried adding the redirect="true" parameter to my success
> forward and it does not seem to have an effect.  When
> I get to the success page and hit the reload button on my
> browser, the form data is posted again.
> 
> You can try it by going to:
> https://dev.jammconsulting.com/pricetracker/register.do
> enter something (junk is OK) in the email address field
> and hit the Save button.  When you get to the
> success page, hit the reload button on the browser.
> You will get a pop up that tells you it is resending
> the information.
> 
> Here is what I have in my struts-config.xml file:
>  type="register.RegisterAction"
> name="registerForm"
> scope="request"
> input="register.index"
> validate="true">
>redirect="true"/>
> 
> 
> Any ideas why that did not work?
> 
> Thanks,
>   Neil
> 
> 
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> 
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> > Sent: Wednesday, February 09, 2005 10:23 PM
> > To: user@struts.apache.org
> > Subject: Re: Redirect instead of forward in action mapping
> > 
> > 
> > Set the redirect attribute on the forward to true:
> > 
> > 
> > 
> > Of course, if the success page displays data you will need to 
> > make sure 
> > that is is available in the session since it you will be 
> > issuing a new 
> > request. (You may want to look into the saveMessages(HttpSession 
> > session) method).
> > 
> > Neil Aggarwal wrote:
> > 
> > > Hello:
> > > 
> > > When I set up a form in struts, I am using this action
> > > mapping:
> > > 
> > >  > > type="register.RegisterAction"
> > > name="registerForm"
> > > scope="request"
> > > input="register.index"
> > > validate="true">
> > >   
> > > 
> > > 
> > > When the form is posted successfully, the user is forwarded
> > > to a page that says their information was entered successfully.
> > > 
> > > Unfortunately, if they hit reload on that page, it will re-execute
> > > the form and their data will be posted again.
> > > 
> > > To get around this, I use a redirect instead of forward in many
> > > of my apps.
> > > 
> > > Is there a way to do that within struts?
> > > 
> > > Thanks,
> > >   Neil
> > > 
> > > 
> > > --
> > > Neil Aggarwal, JAMM Consulting, (972)612-6056, 
> > www.JAMMConsulting.com
> > > FREE! Valuable info on how your business can reduce 
> > operating costs by
> > > 17% or more in 6 months or less! 
> > http://newsletter.JAMMConsulting.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]
> 
> 
> 
> 
> --
> 
> Notice:  This e-mail message, together with any attachments, 
> contains information of Merck & Co., Inc. (One Merck Drive, 
> Whitehouse Station, New Jersey, USA 08889), and/or its 
> affiliates (which may be known outside the United States as 
> Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
> Banyu) that may be confidential, proprietary copyrighted 
> and/or legally privileged.

RE: Redirect instead of forward in action mapping

2005-02-10 Thread Neil Aggarwal
Paul:

I see.  

I did this which worked:


  



Is there a better approach to doing this?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: Benedict, Paul C [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 11:30 AM
> To: 'Struts Users Mailing List'
> Cc: 'Neil Aggarwal'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Neil,
> 
> You cannot redirect to a Tile. A Redirect is specific to a URI.
> 
> Thanks,
> Paul
> 
> -Original Message-
> From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 12:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Redirect instead of forward in action mapping
> 
> 
> Bill:
> 
> I tried adding the redirect="true" parameter to my success
> forward and it does not seem to have an effect.  When
> I get to the success page and hit the reload button on my
> browser, the form data is posted again.
> 
> You can try it by going to:
> https://dev.jammconsulting.com/pricetracker/register.do
> enter something (junk is OK) in the email address field
> and hit the Save button.  When you get to the
> success page, hit the reload button on the browser.
> You will get a pop up that tells you it is resending
> the information.
> 
> Here is what I have in my struts-config.xml file:
>  type="register.RegisterAction"
> name="registerForm"
> scope="request"
> input="register.index"
> validate="true">
>redirect="true"/>
> 
> 
> Any ideas why that did not work?
> 
> Thanks,
>   Neil
> 
> 
> --
> Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
> 
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> > Sent: Wednesday, February 09, 2005 10:23 PM
> > To: user@struts.apache.org
> > Subject: Re: Redirect instead of forward in action mapping
> > 
> > 
> > Set the redirect attribute on the forward to true:
> > 
> > 
> > 
> > Of course, if the success page displays data you will need to 
> > make sure 
> > that is is available in the session since it you will be 
> > issuing a new 
> > request. (You may want to look into the saveMessages(HttpSession 
> > session) method).
> > 
> > Neil Aggarwal wrote:
> > 
> > > Hello:
> > > 
> > > When I set up a form in struts, I am using this action
> > > mapping:
> > > 
> > >  > > type="register.RegisterAction"
> > > name="registerForm"
> > > scope="request"
> > > input="register.index"
> > > validate="true">
> > >   
> > > 
> > > 
> > > When the form is posted successfully, the user is forwarded
> > > to a page that says their information was entered successfully.
> > > 
> > > Unfortunately, if they hit reload on that page, it will re-execute
> > > the form and their data will be posted again.
> > > 
> > > To get around this, I use a redirect instead of forward in many
> > > of my apps.
> > > 
> > > Is there a way to do that within struts?
> > > 
> > > Thanks,
> > >   Neil
> > > 
> > > 
> > > --
> > > Neil Aggarwal, JAMM Consulting, (972)612-6056, 
> > www.JAMMConsulting.com
> > > FREE! Valuable info on how your business can reduce 
> > operating costs by
> > > 17% or more in 6 months or less! 
> > http://newsletter.JAMMConsulting.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]
> 
> 
> 
> 
> --
> 
> Notice:  This e-mail message, together with any attachments, 
> contains information of Merck & Co., Inc. (One Merck Drive, 
> Whitehouse Station, New Jersey, USA 08889), and/or its 
> affiliates (which may be known outside the United States as 
> Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
> Banyu) that may be confidential, proprietary copyrighted 
> and/or legally privileged. It is intended solely for the use 
> of the individual or entity named on this message.  If you 
> are not the intended recipient, and have received this 
> message in error, please notify us immediately by reply 
> e-mail and then delete it from your system.
> --
> 
> 
> -
> To uns

RE: archives

2005-02-10 Thread Jason Long
Is there a way to batch download archived struts messages for my own search
implementation?

Thank you for your time,
 
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineerring
http://www.supernovasoftware.com

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 10:35 AM
To: Struts Users Mailing List
Subject: Re: archives

Try http://marc.theaimsgroup.com/?l=struts-user


On Thu, 10 Feb 2005 12:04:19 +, draegoon Z <[EMAIL PROTECTED]>
wrote:
> Is there anywhere to get the most recent emails from an archive for
struts?
> 
> Meaning Feb 2005.
> 
> Thanks.
> 
> -
> 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: archives

2005-02-10 Thread Jason Long
Is there a way to batch download archived struts messages for my own search
implementation?

Thank you for your time,
 
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineerring
http://www.supernovasoftware.com

-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 10:35 AM
To: Struts Users Mailing List
Subject: Re: archives

Try http://marc.theaimsgroup.com/?l=struts-user


On Thu, 10 Feb 2005 12:04:19 +, draegoon Z <[EMAIL PROTECTED]>
wrote:
> Is there anywhere to get the most recent emails from an archive for
struts?
> 
> Meaning Feb 2005.
> 
> Thanks.
> 
> -
> 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]



Constants for property names

2005-02-10 Thread Daffin, Miles (Company IT)
Hi All,
 
What do people feel about using constants for property names?
 
In general I feel one should use constants for such things, but it is
far from easy in a web app to do so.
 
If I define a constants class (e.g. com.plok.app.constants.Keys) I can
use this in everywhere in java code and in *most* (not all) places in
the jsps. For example this works: 
 

 
but this does not:
 

 
I have the same problem if I want to refer to this property in any of
the following places:
 
- jstl tags
- xml files (e.g. struts-config, validation)
 
Do you see what I mean?
 
 
So, what am I doing/thinking wrong? Should I forget about defining
constants? 
 
Am I getting my knickers in a twist over nothing?
 
-Miles
 
Miles Daffin
Morgan Stanley
20 Cabot Square | Canary Wharf | London E14 4QA | UK
Tel: +44 (0) 20 767 75119
[EMAIL PROTECTED]  

 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited. 
 


RE: Redirect instead of forward in action mapping

2005-02-10 Thread Benedict, Paul C
Neil,

You cannot redirect to a Tile. A Redirect is specific to a URI.

Thanks,
Paul

-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 12:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Redirect instead of forward in action mapping


Bill:

I tried adding the redirect="true" parameter to my success
forward and it does not seem to have an effect.  When
I get to the success page and hit the reload button on my
browser, the form data is posted again.

You can try it by going to:
https://dev.jammconsulting.com/pricetracker/register.do
enter something (junk is OK) in the email address field
and hit the Save button.  When you get to the
success page, hit the reload button on the browser.
You will get a pop up that tells you it is resending
the information.

Here is what I have in my struts-config.xml file:

  


Any ideas why that did not work?

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> Sent: Wednesday, February 09, 2005 10:23 PM
> To: user@struts.apache.org
> Subject: Re: Redirect instead of forward in action mapping
> 
> 
> Set the redirect attribute on the forward to true:
> 
> 
> 
> Of course, if the success page displays data you will need to 
> make sure 
> that is is available in the session since it you will be 
> issuing a new 
> request. (You may want to look into the saveMessages(HttpSession 
> session) method).
> 
> Neil Aggarwal wrote:
> 
> > Hello:
> > 
> > When I set up a form in struts, I am using this action
> > mapping:
> > 
> >  > type="register.RegisterAction"
> > name="registerForm"
> > scope="request"
> > input="register.index"
> > validate="true">
> >   
> > 
> > 
> > When the form is posted successfully, the user is forwarded
> > to a page that says their information was entered successfully.
> > 
> > Unfortunately, if they hit reload on that page, it will re-execute
> > the form and their data will be posted again.
> > 
> > To get around this, I use a redirect instead of forward in many
> > of my apps.
> > 
> > Is there a way to do that within struts?
> > 
> > Thanks,
> > Neil
> > 
> > 
> > --
> > Neil Aggarwal, JAMM Consulting, (972)612-6056, 
> www.JAMMConsulting.com
> > FREE! Valuable info on how your business can reduce 
> operating costs by
> > 17% or more in 6 months or less! 
> http://newsletter.JAMMConsulting.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]




--
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
--

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



Re: Handle images path in one place

2005-02-10 Thread Dakota Jack

On Thu, 10 Feb 2005 15:18:27 +0100, Gaet <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I'm writting a web application using J2EE where several pages can contains 
> the same images.
> I would like to have the path to these images into one place an if possible 
> into the same place for all images.
> For instance in a file and have a tag to access like this
> 
> 
> like this I can move my images from one folder to another, I will have only 
> one file to update
> 
> Does somebody use something similar?


Yes.  I do this.  My HTML is a little different, e.g.
resource.do?alias='dog'>  or  but
the idea is the same.  The difference in the tag should tell you how
it is done.

Jack

-- 
"You can lead a horse to water but you cannot make it float on its back."
"Heaven has changed.  The Sky now goes all the way to our feet.

~Dakota Jack~

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



RE: Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
All good points

-Original Message-
From: Soaring Eagle [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:18 PM
To: Struts Users Mailing List
Subject: Re: Hibernate object relational mapping


Well, hibernate does the one thing of database access very well, but
one still has to learn hibernate - just as one would have to learn SQL
or JDBC and one still has to maintain hibernate when your business
object design or data schema changes - just as one would have to
maintain SQL and Data Access Objects.

I would not say that one is better than other. I would in fact suggest
using hibernate for one reason - not because they do the "database
thing" well - but because hibernate provides very good seperation of
database logic and any other logic - leading to more maintainability,
reuse(perhaps) and ease of portability etc etc..


On Thu, 10 Feb 2005 12:07:40 -0500, Bryce Fischer
<[EMAIL PROTECTED]> wrote:
> I honestly don't know how much different using Hibernate will degrade as
> compared to using Stored Procedures... But, on top of the advice
> everyone else has given you, you might look at Ibatis. I personally have
> never used it, but I mean to soon.
> 
> My thought is this: Its fairly easy to write your own persistence layer,
> but at what cost? A day? A week? Hibernate (and others) do one thing,
> and they do it good. Why reinvent the wheel.
> 
> Just my unworthy opinion.. I'm far from a SQL Guru, but I think I can
> write pretty good SQL.
> 
> Brian McGovern wrote:
> > That was my question.  From what i understand hibernate uses sql statements 
> > not stored procs.  And i assumed that even though it was more coding on my 
> > part, that using stored procs and JDBC i could achieve faster db 
> > interaction.
> >
> > But we all know what happens when we assume.. haha
> 
> -
> 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: Hibernate object relational mapping

2005-02-10 Thread Soaring Eagle
Well, hibernate does the one thing of database access very well, but
one still has to learn hibernate - just as one would have to learn SQL
or JDBC and one still has to maintain hibernate when your business
object design or data schema changes - just as one would have to
maintain SQL and Data Access Objects.

I would not say that one is better than other. I would in fact suggest
using hibernate for one reason - not because they do the "database
thing" well - but because hibernate provides very good seperation of
database logic and any other logic - leading to more maintainability,
reuse(perhaps) and ease of portability etc etc..


On Thu, 10 Feb 2005 12:07:40 -0500, Bryce Fischer
<[EMAIL PROTECTED]> wrote:
> I honestly don't know how much different using Hibernate will degrade as
> compared to using Stored Procedures... But, on top of the advice
> everyone else has given you, you might look at Ibatis. I personally have
> never used it, but I mean to soon.
> 
> My thought is this: Its fairly easy to write your own persistence layer,
> but at what cost? A day? A week? Hibernate (and others) do one thing,
> and they do it good. Why reinvent the wheel.
> 
> Just my unworthy opinion.. I'm far from a SQL Guru, but I think I can
> write pretty good SQL.
> 
> Brian McGovern wrote:
> > That was my question.  From what i understand hibernate uses sql statements 
> > not stored procs.  And i assumed that even though it was more coding on my 
> > part, that using stored procs and JDBC i could achieve faster db 
> > interaction.
> >
> > But we all know what happens when we assume.. haha
> 
> -
> 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: Redirect instead of forward in action mapping

2005-02-10 Thread Neil Aggarwal
Bill:

I tried adding the redirect="true" parameter to my success
forward and it does not seem to have an effect.  When
I get to the success page and hit the reload button on my
browser, the form data is posted again.

You can try it by going to:
https://dev.jammconsulting.com/pricetracker/register.do
enter something (junk is OK) in the email address field
and hit the Save button.  When you get to the
success page, hit the reload button on the browser.
You will get a pop up that tells you it is resending
the information.

Here is what I have in my struts-config.xml file:

  


Any ideas why that did not work?

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow
> Sent: Wednesday, February 09, 2005 10:23 PM
> To: user@struts.apache.org
> Subject: Re: Redirect instead of forward in action mapping
> 
> 
> Set the redirect attribute on the forward to true:
> 
> 
> 
> Of course, if the success page displays data you will need to 
> make sure 
> that is is available in the session since it you will be 
> issuing a new 
> request. (You may want to look into the saveMessages(HttpSession 
> session) method).
> 
> Neil Aggarwal wrote:
> 
> > Hello:
> > 
> > When I set up a form in struts, I am using this action
> > mapping:
> > 
> >  > type="register.RegisterAction"
> > name="registerForm"
> > scope="request"
> > input="register.index"
> > validate="true">
> >   
> > 
> > 
> > When the form is posted successfully, the user is forwarded
> > to a page that says their information was entered successfully.
> > 
> > Unfortunately, if they hit reload on that page, it will re-execute
> > the form and their data will be posted again.
> > 
> > To get around this, I use a redirect instead of forward in many
> > of my apps.
> > 
> > Is there a way to do that within struts?
> > 
> > Thanks,
> > Neil
> > 
> > 
> > --
> > Neil Aggarwal, JAMM Consulting, (972)612-6056, 
> www.JAMMConsulting.com
> > FREE! Valuable info on how your business can reduce 
> operating costs by
> > 17% or more in 6 months or less! 
> http://newsletter.JAMMConsulting.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: Hibernate object relational mapping

2005-02-10 Thread Bryce Fischer
I honestly don't know how much different using Hibernate will degrade as 
compared to using Stored Procedures... But, on top of the advice 
everyone else has given you, you might look at Ibatis. I personally have 
never used it, but I mean to soon.

My thought is this: Its fairly easy to write your own persistence layer, 
but at what cost? A day? A week? Hibernate (and others) do one thing, 
and they do it good. Why reinvent the wheel.

Just my unworthy opinion.. I'm far from a SQL Guru, but I think I can 
write pretty good SQL.

Brian McGovern wrote:
That was my question.  From what i understand hibernate uses sql statements not stored procs.  And i assumed that even though it was more coding on my part, that using stored procs and JDBC i could achieve faster db interaction. 

But we all know what happens when we assume.. haha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Handle images path in one place

2005-02-10 Thread Bill Siggelkow
One alternative is to use the "srcKey" attribute for both the 
 and  tags to specify a key in your Message 
Resources properties file whose value is the URL.

-Bill Siggelkow
Gaet wrote:
Hello,
I'm writting a web application using J2EE where several pages can contains the 
same images.
I would like to have the path to these images into one place an if possible 
into the same place for all images.
For instance in a file and have a tag to access like this

like this I can move my images from one folder to another, I will have only one 
file to update
Does somebody use something similar?
TIA
Gaet

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


Re: archives

2005-02-10 Thread Hubert Rabago
Try http://marc.theaimsgroup.com/?l=struts-user


On Thu, 10 Feb 2005 12:04:19 +, draegoon Z <[EMAIL PROTECTED]> wrote:
> Is there anywhere to get the most recent emails from an archive for struts?
> 
> Meaning Feb 2005.
> 
> Thanks.
> 
> -
> 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: Hibernate object relational mapping

2005-02-10 Thread Daniel Watrous
Hibernate 3 (now in beta) will support stored procedures.  I think they may 
even be available in the current 2.x branch.

DW
- Original Message - 
From: "Brian McGovern" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Soaring Eagle" 
<[EMAIL PROTECTED]>
Sent: Thursday, February 10, 2005 9:19 AM
Subject: RE: Hibernate object relational mapping

That was my question.  From what i understand hibernate uses sql statements 
not stored procs.  And i assumed that even though it was more coding on my 
part, that using stored procs and JDBC i could achieve faster db 
interaction.

But we all know what happens when we assume.. haha
-Original Message-
From: Soaring Eagle [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 11:10 AM
To: Struts Users Mailing List
Subject: Re: Hibernate object relational mapping
why would app speed be threatened? is it a big threat (like 50 %
downgrade or 10% downgrade?). Whats the problem with stored
procedures? I thought they were better than pure java.
On Thu, 10 Feb 2005 10:40:52 -0500, Brian McGovern
<[EMAIL PROTECTED]> wrote:
Don't get me wrong, i wasn't knocking it. But my main concern is app speed 
difference using stored procs or hibernate.

-Original Message-
From: Lee Harrington [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 10:10 AM
To: Struts Users Mailing List
Subject: Re: Hibernate object relational mapping
I use hibernate...it's not a "tool for those who don't know sql" -- as
I've been a database developer for 20+ years.
It's a tool for those who:
1.  don't want to have to write a lot of redundant code just to
insert, update, delete
2. don't want to have to hand code "class.property =
recordset.getField("fieldName")" out the yin yang
3.  don't want to have to hand code different data layers for
different database systems
Consider on form submit
You could write:
sqlStr = "insert into mytable (field1, field2.field15') values (" +
form.field1 + ",'" +
form.field2 + "','" +
.
form.field15 + "')"
and write your own handling of database errors
or  could write:
// copy form variable to an instance of your data class
BeanUtils.copyProperties(metric,dynaForm);
// Call to "persist" (save) the record
MetricService.getInstance().makePersistent(metric);
And there are MANY more reasons to use Hibernate over handcoding your
own sql.  None of it having to do with "not having to know sql".
Lee
-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
That was my question.  From what i understand hibernate uses sql statements not 
stored procs.  And i assumed that even though it was more coding on my part, 
that using stored procs and JDBC i could achieve faster db interaction. 

But we all know what happens when we assume.. haha


-Original Message-
From: Soaring Eagle [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 11:10 AM
To: Struts Users Mailing List
Subject: Re: Hibernate object relational mapping


why would app speed be threatened? is it a big threat (like 50 %
downgrade or 10% downgrade?). Whats the problem with stored
procedures? I thought they were better than pure java.


On Thu, 10 Feb 2005 10:40:52 -0500, Brian McGovern
<[EMAIL PROTECTED]> wrote:
> Don't get me wrong, i wasn't knocking it. But my main concern is app speed 
> difference using stored procs or hibernate.
> 
> -Original Message-
> From: Lee Harrington [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 10:10 AM
> To: Struts Users Mailing List
> Subject: Re: Hibernate object relational mapping
> 
> I use hibernate...it's not a "tool for those who don't know sql" -- as
> I've been a database developer for 20+ years.
> 
> It's a tool for those who:
> 1.  don't want to have to write a lot of redundant code just to
> insert, update, delete
> 2. don't want to have to hand code "class.property =
> recordset.getField("fieldName")" out the yin yang
> 3.  don't want to have to hand code different data layers for
> different database systems
> 
> Consider on form submit
> 
> You could write:
> 
> sqlStr = "insert into mytable (field1, field2.field15') values (" +
> form.field1 + ",'" +
> form.field2 + "','" +
> .
> form.field15 + "')"
> 
> and write your own handling of database errors
> 
> or  could write:
> 
> // copy form variable to an instance of your data class
> BeanUtils.copyProperties(metric,dynaForm);
> 
> // Call to "persist" (save) the record
> MetricService.getInstance().makePersistent(metric);
> 
> And there are MANY more reasons to use Hibernate over handcoding your
> own sql.  None of it having to do with "not having to know sql".
> 
> Lee
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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


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



Re: Hibernate object relational mapping

2005-02-10 Thread Soaring Eagle
why would app speed be threatened? is it a big threat (like 50 %
downgrade or 10% downgrade?). Whats the problem with stored
procedures? I thought they were better than pure java.


On Thu, 10 Feb 2005 10:40:52 -0500, Brian McGovern
<[EMAIL PROTECTED]> wrote:
> Don't get me wrong, i wasn't knocking it. But my main concern is app speed 
> difference using stored procs or hibernate.
> 
> -Original Message-
> From: Lee Harrington [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 10:10 AM
> To: Struts Users Mailing List
> Subject: Re: Hibernate object relational mapping
> 
> I use hibernate...it's not a "tool for those who don't know sql" -- as
> I've been a database developer for 20+ years.
> 
> It's a tool for those who:
> 1.  don't want to have to write a lot of redundant code just to
> insert, update, delete
> 2. don't want to have to hand code "class.property =
> recordset.getField("fieldName")" out the yin yang
> 3.  don't want to have to hand code different data layers for
> different database systems
> 
> Consider on form submit
> 
> You could write:
> 
> sqlStr = "insert into mytable (field1, field2.field15') values (" +
> form.field1 + ",'" +
> form.field2 + "','" +
> .
> form.field15 + "')"
> 
> and write your own handling of database errors
> 
> or  could write:
> 
> // copy form variable to an instance of your data class
> BeanUtils.copyProperties(metric,dynaForm);
> 
> // Call to "persist" (save) the record
> MetricService.getInstance().makePersistent(metric);
> 
> And there are MANY more reasons to use Hibernate over handcoding your
> own sql.  None of it having to do with "not having to know sql".
> 
> Lee
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: [OT] Identify web user in intranet

2005-02-10 Thread PA
On Feb 10, 2005, at 16:44, PA wrote:
Well... there is no simply solution to this problem... to make matter 
worst, you have dynamic IP address... sigh...

Couple of options:
Forgot one more option:
- If your are in a Windows environment, you could leverage information 
from CIFS's UniAddress.

Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hibernate object relational mapping

2005-02-10 Thread Keith Sader
For 95% of your application, this won't be a problem. It's the 5% that
you will have to take out of the persistance layer and tune that will
be where your optimization of they query will be required.


On Thu, 10 Feb 2005 10:40:52 -0500, Brian McGovern
<[EMAIL PROTECTED]> wrote:
> Don't get me wrong, i wasn't knocking it. But my main concern is app speed 
> difference using stored procs or hibernate.
> 
> -Original Message-
> From: Lee Harrington [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 10:10 AM
> To: Struts Users Mailing List
> Subject: Re: Hibernate object relational mapping
> 
> I use hibernate...it's not a "tool for those who don't know sql" -- as
> I've been a database developer for 20+ years.
> 
> It's a tool for those who:
> 1.  don't want to have to write a lot of redundant code just to
> insert, update, delete
> 2. don't want to have to hand code "class.property =
> recordset.getField("fieldName")" out the yin yang
> 3.  don't want to have to hand code different data layers for
> different database systems
> 
> Consider on form submit
> 
> You could write:
> 
> sqlStr = "insert into mytable (field1, field2.field15') values (" +
> form.field1 + ",'" +
> form.field2 + "','" +
> .
> form.field15 + "')"
> 
> and write your own handling of database errors
> 
> or  could write:
> 
> // copy form variable to an instance of your data class
> BeanUtils.copyProperties(metric,dynaForm);
> 
> // Call to "persist" (save) the record
> MetricService.getInstance().makePersistent(metric);
> 
> And there are MANY more reasons to use Hibernate over handcoding your
> own sql.  None of it having to do with "not having to know sql".
> 
> Lee
> 
> -
> 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]
> 
> 


-- 
Keith Sader
[EMAIL PROTECTED]
http://www.saderfamily.org/roller/page/ksader

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



Re: [OT] Identify web user in intranet

2005-02-10 Thread PA
On Feb 09, 2005, at 21:39, Ashish Kulkarni wrote:
Is there any thing unique to identify the client
machine(desktop) other then IP address?
I have a situtation where in my intranet, i need to
identify the machine uniquely and do some processing,
But the problem is that we dont haev static IP
address, but dynamic IP address.
I want to display a particular screen if the user is
using a perticular computer or network node
Well... there is no simply solution to this problem... to make matter 
worst, you have dynamic IP address... sigh...

Couple of options:
- Plain, old DNS. Each machine could have a name as well as an address. 
Discriminate on the name.

- If you cannot change your DNS system, use Zeroconf's DNS Service 
Discovery. In that scenario, each machine advertises it's name and IP 
address without the need for a centralize DNS server. Out-of-the-box, 
this only works in a subnet through.

http://www.zeroconf.org/
http://www.dns-sd.org/
- Use a X509 client certificate.
- An oldy, but a goody... use ident (aka Identification Protocol):
http://www.faqs.org/rfcs/rfc1413.html
None of those solution are perfect, but at the very least you should be 
able to automatically identify a machine on an intranet one way or 
another if you really want to :)

Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Identify web user in intranet

2005-02-10 Thread Ashish Kulkarni
Hi
This is not the exact requirement to display floor
plan, i have production line in factory and the worker
needs to know his production plan for that, and he is
not allowed to touch the screen or enter book mark, 
this is very crucial to display the correct line, or
else he will end up manufactoring some thing else...

How to tackle this issue

Ashish
--- Jeff Beal <[EMAIL PROTECTED]> wrote:

> If I were to be given this requirement, I'd just
> create a bookmark with 
> the appropriate floor number on each computer.  For
> computers on the 
> fourth floor, I'd create a bookmark 
> 'http://somecomputer/showmap?floor=4'.  I think that
> the problem of 
> mapping dynamically allocated IP addresses to
> computers is too hard for 
> the task at hand (displaying floor plans).  Of
> course, it's not as if 
> it's a hard thing for users to go to a central page
> that has a link to 
> all floor plans and click on the one they want.  (As
> a side note, Adobe 
> once had an SVG demonstration that had a 3-D model
> of their building 
> that users could click on to see floor plans of each
> floor.  *that* was 
> cool.)
> 
> Just my two bits.
> 
> -- Jeff
> 
> Ashish Kulkarni wrote:
> > Hi
> > thanx for the mail, here is my problem we have
> > machines installed on different floors of
> building,
> > and we have to design a web page which will give
> floor
> > plan and display it on that machine browser, so if
> the
> > machine is on 4th floor we want to display the
> plan of
> > fourth floor, if the machine had static ip address
> > then i would have a cross reference table and make
> it
> > work, but since there is dynamic IP address, i
> cannot
> > do this..
> > how can we handle this situation, 
> > 
> > Ashish
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



RE: Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
Don't get me wrong, i wasn't knocking it. But my main concern is app speed 
difference using stored procs or hibernate.

-Original Message-
From: Lee Harrington [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 10:10 AM
To: Struts Users Mailing List
Subject: Re: Hibernate object relational mapping


I use hibernate...it's not a "tool for those who don't know sql" -- as
I've been a database developer for 20+ years.

It's a tool for those who:
1.  don't want to have to write a lot of redundant code just to
insert, update, delete
2. don't want to have to hand code "class.property =
recordset.getField("fieldName")" out the yin yang
3.  don't want to have to hand code different data layers for
different database systems

Consider on form submit

You could write:

sqlStr = "insert into mytable (field1, field2.field15') values (" +
form.field1 + ",'" +
form.field2 + "','" +
.
form.field15 + "')"

and write your own handling of database errors

or  could write:

// copy form variable to an instance of your data class
BeanUtils.copyProperties(metric,dynaForm);

// Call to "persist" (save) the record
MetricService.getInstance().makePersistent(metric);

And there are MANY more reasons to use Hibernate over handcoding your
own sql.  None of it having to do with "not having to know sql".

Lee

-
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: Handle images path in one place

2005-02-10 Thread Erik Weber
You implement org.apache.struts.action.Plugin, something like this:
 public void init(ActionServlet controller, ModuleConfig config) throws 
ServletException {
   ServletContext app = controller.getServletContext();
   app.setAttribute("somePath", getSomePath(controller));
 }

. . .
 protected String getSomePath(ActionServlet controller) {
   String somePath = controller.getInitParameter("somePath");
   if (somePath == null) somePath = "";
   return somePath;
 }
And register that plugin in struts-config.xml (see docs). When the app 
initializes, the plugin's init method will be invoked.

Note the difference between the src and page attributes to html:img. 
Depending on whether your images are in the war (or not as Wendy 
suggested) you might or might not want the application context to be the 
prefix of your URLs.

Erik

Gaet wrote:
Thanks very much for your help Erik.
Do I abuse if I ask you your Struts' plugin you are talking about?
TIA
Gaet
- Original Message -
From: "Erik Weber" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 10, 2005 4:02 PM
Subject: Re: Handle images path in one place
 

Using the expression language, you can build paths like this:

The "somePath" variable could be an application scope attribute
(ServletContext attribute). I have done this before by writing a
(Struts) plugin that gets "somePath" from web.xml (init-param) and
stores it as a ServletContext attribute. Then it's availabe (as shown
above) in all tags in all your JSPs.
Not sure if there is a better way but that works. You can change your
image URL prefix simply by editing web.xml.
Erik
Gaet wrote:
   

Hello,
I'm writting a web application using J2EE where several pages can
 

contains the same images.
 

I would like to have the path to these images into one place an if
 

possible into the same place for all images.
 

For instance in a file and have a tag to access like this

like this I can move my images from one folder to another, I will have
 

only one file to update
 

Does somebody use something similar?
TIA
Gaet
 

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


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

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


Re: [OT] Identify web user in intranet

2005-02-10 Thread Jeff Beal
If I were to be given this requirement, I'd just create a bookmark with 
the appropriate floor number on each computer.  For computers on the 
fourth floor, I'd create a bookmark 
'http://somecomputer/showmap?floor=4'.  I think that the problem of 
mapping dynamically allocated IP addresses to computers is too hard for 
the task at hand (displaying floor plans).  Of course, it's not as if 
it's a hard thing for users to go to a central page that has a link to 
all floor plans and click on the one they want.  (As a side note, Adobe 
once had an SVG demonstration that had a 3-D model of their building 
that users could click on to see floor plans of each floor.  *that* was 
cool.)

Just my two bits.
-- Jeff
Ashish Kulkarni wrote:
Hi
thanx for the mail, here is my problem we have
machines installed on different floors of building,
and we have to design a web page which will give floor
plan and display it on that machine browser, so if the
machine is on 4th floor we want to display the plan of
fourth floor, if the machine had static ip address
then i would have a cross reference table and make it
work, but since there is dynamic IP address, i cannot
do this..
how can we handle this situation, 

Ashish

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


Re: One more time, Input Array :(

2005-02-10 Thread Paulo César M. Jeveaux
  Hi Bill, I am happy for having answered:)
  
  Good, they are some parts of the source code there:







  I do not want that ID, NAME and X are OBJ Array inside, but yes, to
have a OBJ Array and to validate the data using this Array.



On Thu, 10 Feb 2005 09:01:09 -0500, Bill Siggelkow
<[EMAIL PROTECTED]> wrote:
> Please provide some specifics, e.g. snippet from your validation.xml.
> You can use the validator to validate indexed fields using the "indexed"
> attribute.
> 
> -Bill Siggelkow
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
/**
* @author Paulo César M. Jeveaux
* Java Consultant
* @version 21.0
* http://www.portaljava.com
* @deprecated
*/

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



Re: Hibernate object relational mapping

2005-02-10 Thread Daniel Watrous
Brian,
I use hibernate for a couple of reasons, some of which have already been 
mentioned.  In some cases using hibernates sophisticated caching system can 
greatly improve the speed of an application.  I have also found that the 
more I can think about the OBJECTS in my application without the concern for 
how those objects are persisted, the truer my design is to general OO 
principles.

Also since various of my programs require both web interfaces and rich 
client interfaces I benefit from using a single set of DAOs that map through 
hibernate.  This way if I need to communicate with an HSQL DB using the rich 
client and later synchronize with the main database, this is possible by 
changing a single line in the hibernate configuration.

Good Luck!
DW
- Original Message - 
From: "Lee Harrington" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 10, 2005 8:10 AM
Subject: Re: Hibernate object relational mapping


I use hibernate...it's not a "tool for those who don't know sql" -- as
I've been a database developer for 20+ years.
It's a tool for those who:
1.  don't want to have to write a lot of redundant code just to
insert, update, delete
2. don't want to have to hand code "class.property =
recordset.getField("fieldName")" out the yin yang
3.  don't want to have to hand code different data layers for
different database systems
Consider on form submit
You could write:
sqlStr = "insert into mytable (field1, field2.field15') values (" +
form.field1 + ",'" +
form.field2 + "','" +
.
form.field15 + "')"
and write your own handling of database errors
or  could write:
// copy form variable to an instance of your data class
BeanUtils.copyProperties(metric,dynaForm);
// Call to "persist" (save) the record
MetricService.getInstance().makePersistent(metric);
And there are MANY more reasons to use Hibernate over handcoding your
own sql.  None of it having to do with "not having to know sql".
Lee
-
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: Handle images path in one place

2005-02-10 Thread Wendy Smoak
From: "Gaet" <[EMAIL PROTECTED]>
> I'm writting a web application using J2EE where
> several pages can contains the same images.
> I would like to have the path to these images into
> one place an if possible into the same place for all images.

I have Apache serve images directly, so all my webapps have  and those files live under Apache's document root.
(For development which I do with Tomcat alone, they're under the ROOT
webapp.)

-- 
Wendy Smoak


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



Re: Hibernate object relational mapping

2005-02-10 Thread Lee Harrington
I use hibernate...it's not a "tool for those who don't know sql" -- as
I've been a database developer for 20+ years.

It's a tool for those who:
1.  don't want to have to write a lot of redundant code just to
insert, update, delete
2. don't want to have to hand code "class.property =
recordset.getField("fieldName")" out the yin yang
3.  don't want to have to hand code different data layers for
different database systems

Consider on form submit

You could write:

sqlStr = "insert into mytable (field1, field2.field15') values (" +
form.field1 + ",'" +
form.field2 + "','" +
.
form.field15 + "')"

and write your own handling of database errors

or  could write:

// copy form variable to an instance of your data class
BeanUtils.copyProperties(metric,dynaForm);

// Call to "persist" (save) the record
MetricService.getInstance().makePersistent(metric);

And there are MANY more reasons to use Hibernate over handcoding your
own sql.  None of it having to do with "not having to know sql".

Lee

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



Re: Handle images path in one place

2005-02-10 Thread Gaet
Thanks very much for your help Erik.

Do I abuse if I ask you your Struts' plugin you are talking about?

TIA

Gaet

- Original Message -
From: "Erik Weber" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 10, 2005 4:02 PM
Subject: Re: Handle images path in one place


> Using the expression language, you can build paths like this:
>
> 
>
> The "somePath" variable could be an application scope attribute
> (ServletContext attribute). I have done this before by writing a
> (Struts) plugin that gets "somePath" from web.xml (init-param) and
> stores it as a ServletContext attribute. Then it's availabe (as shown
> above) in all tags in all your JSPs.
>
> Not sure if there is a better way but that works. You can change your
> image URL prefix simply by editing web.xml.
>
> Erik
>
>
> Gaet wrote:
>
> >Hello,
> >
> >I'm writting a web application using J2EE where several pages can
contains the same images.
> >I would like to have the path to these images into one place an if
possible into the same place for all images.
> >For instance in a file and have a tag to access like this
> >
> >
> >like this I can move my images from one folder to another, I will have
only one file to update
> >
> >Does somebody use something similar?
> >
> >TIA
> >
> >Gaet
> >
> >
>
> -
> 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: Taglib vs. Action To Populate LOVs.

2005-02-10 Thread Joe Germuska
At 7:34 AM -0500 2/10/05, CRANFORD, CHRIS wrote:
I have a form which needs to display several dropdown combo boxes, one in
particular is to be populated with values as follows:
  Today
  Yesterday
  This Week
  Last Week
  This Month
  Last Month
  Last 3 Months
  This Year
  Last Year
  series of Month/Day/Year values
  All
I wanted to ask others opinion on which is the better approach to populating
this combo-box values?  I could use a taglib similar to the following:
  
The above would do a bean lookup for transactionForm with property date and
output the necessary HTML select/option tags needed to show the form's
selection box.
Or my action which forwards to the JSP could populate a collection of
LabelValueBean objects and then the JSP could iterate over the collection
using html:options.
For a menu like this (which appears as though it might be constant in 
the scope of the application), I would suggest making the list of 
LVBs in a ServletContextListener or PlugIn and storing them in 
application scope; then you may not even need a prep-action.

You can use the Digesting PlugIn and the stock 
"lvb-digester-rules.xml" and do this very easily.   See 
http://svn.apache.org/repos/asf/struts/apps/trunk/shared/src/webapp/WEB-INF/struts-config.xml 
for an example of how to configure, and other files near that in the 
SVN repository for examples of the XML for the menu options and the 
digester rules.

Joe
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex

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


Re: [OT] Identify web user in intranet

2005-02-10 Thread Ashish Kulkarni
Hi
thanx for the mail, here is my problem we have
machines installed on different floors of building,
and we have to design a web page which will give floor
plan and display it on that machine browser, so if the
machine is on 4th floor we want to display the plan of
fourth floor, if the machine had static ip address
then i would have a cross reference table and make it
work, but since there is dynamic IP address, i cannot
do this..
how can we handle this situation, 

Ashish
--- [EMAIL PROTECTED] wrote:

> There is the MAC address, but only if you are
> connected to the same
> switch/hub. Otherwise, it will fail because the MAC
> address is usually the
> one of the default gateway.
> The big big problem is that almost everything can be
> spoofed. IP address
> can be spoofed (well at least the response never
> arrives...), MAC address
> can be spoofed, even cookies can be spoofed. In
> fact, before writing this
> email, I thought about setting a cookie on the
> client machine, but:
> 1) maybe the client sometimes deletes all of his
> cookies;
> 2) the cookie itself is insecure and can be spoofed.
> In SSH (the Secure SHell, that permits secure remote
> shells), both client
> and server have criptography and electronic
> signatures enabled, so that
> the server is sure that the legitimate owner of the
> private key is the one
> who is communicating. But not in HTTP or at least in
> normal HTTP.
> The SET technology, usually used in money
> transactions (but I have to say
> I never saw that in action!), gives a certificate to
> everyone: client,
> seller and bank.
> Anyway, these technologies identify THE PERSON and
> not THE MACHINE because
> you can simply copy certificates and key pairs on
> another machine (though
> usually, except of extreme cases of stupidity, the
> one which does such a
> thing is the legitimate owner).
> Maybe you can rely on the header of HTTP request, to
> see its OS,
> machine,etc. But again it can be spoofed.
> So I think the most viable way is to use SSL with a
> login phase
> (eventually with a cookie). To identify the agent,
> you should analyze the
> header of HTTP requests, hoping it is not spoofed,
> but only for view
> reasons (different page organizations, different
> colours, etc.) because
> relying on header of HTTP requests is pretty
> dangerous.
> I thought in this email that security is your main
> problem. But if you
> only want to display something different while a
> user is on a different
> machine, I think you should see Dimensions:
> http://mutidimensions.sourceforge.net/
> Hope it helps
> Antonio Petrelli
> 
> Ashish Kulkarni wrote:
> 
> >Hi
> >Is there any thing unique to identify the client
> >machine(desktop) other then IP address?
> >I have a situtation where in my intranet, i need to
> >identify the machine uniquely and do some
> processing,
> >But the problem is that we dont haev static IP
> >address, but dynamic IP address.
> >I want to display a particular screen if the user
> is
> >using a perticular computer or network node
> >
> >Ashish
> >
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Re: Handle images path in one place

2005-02-10 Thread Erik Weber
Using the expression language, you can build paths like this:

The "somePath" variable could be an application scope attribute 
(ServletContext attribute). I have done this before by writing a 
(Struts) plugin that gets "somePath" from web.xml (init-param) and 
stores it as a ServletContext attribute. Then it's availabe (as shown 
above) in all tags in all your JSPs.

Not sure if there is a better way but that works. You can change your 
image URL prefix simply by editing web.xml.

Erik
Gaet wrote:
Hello,
I'm writting a web application using J2EE where several pages can contains the 
same images.
I would like to have the path to these images into one place an if possible 
into the same place for all images.
For instance in a file and have a tag to access like this

like this I can move my images from one folder to another, I will have only one 
file to update
Does somebody use something similar?
TIA
Gaet
 

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


Hibernate object relational mapping

2005-02-10 Thread Brian McGovern
I'm looking for opinions on using Hibernate with struts.  Pro's /cons. etc.

My approach for data driven apps where the data changes rather frequently, 
would be jdbc interaction with stored procedures that populate beans that get 
passed around the app.  But im hearing so much about how hibernate is terrific. 
 Im not sure if its because it makes working with a DB easier for non sql 
experts or because there are legitimate benefits.  It appears that it generates 
ansi sql statements from the objects it creates which to my seems slower db 
interaction than using a cachable stored procs while creating more objects to 
do the interaction.  

What does everyone think?

-Thanks
-Brian


Handle images path in one place

2005-02-10 Thread Gaet
Hello,

I'm writting a web application using J2EE where several pages can contains the 
same images.
I would like to have the path to these images into one place an if possible 
into the same place for all images.
For instance in a file and have a tag to access like this


like this I can move my images from one folder to another, I will have only one 
file to update

Does somebody use something similar?

TIA

Gaet

Re: One more time, Input Array :(

2005-02-10 Thread Bill Siggelkow
Please provide some specifics, e.g. snippet from your validation.xml. 
You can use the validator to validate indexed fields using the "indexed" 
attribute.

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


Re: using modules

2005-02-10 Thread Bill Siggelkow
You should *not* navigate directly to that page; instead you need to go 
through an Action; the only way that Struts will switch the module is if 
 the request is processed by the Struts RequestProcessor. While the JSP 
might display when accessing it directly, any module-specific resources 
(e.g. using  to access module-specific MessageResources) 
will not resolve to the other module.

-Bill Siggelkow
Kalra, Ashwani wrote:
hi,
I have configured one module "module1" apart from the default module. Can I
navigate to the jsp files directly  in that module or I have to always make
a switch from default to module1 and vice versa ?
Here is my directory structure
rootContext\file1.jsp
rootContext\module1\file2.jsp

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


RE: session race / transfer issue

2005-02-10 Thread Frank W. Zammetti
I had a very similar problem some months back.  It turned out to be a proxy 
server in the network caching pages too aggressively.  We have a welcome screen 
that says hello to the user by name, based on a value pulled from session.  
Many times, anyone who logged in would be greeted by the wrong name, and always 
the name of the first person that logged on that day.  The proxy was returning 
a cached copy of the page rather than sending the request through to the app 
server (verified by logging a message any time the Action that logged the user 
on fired, which is where the session was set up... I noticed the Action wasn't 
getting executed, yet the user was getting in, which could only be explained by 
the proxy returning a cached copy).  Solution was to configure IE to not use 
the proxy for the address of this application.  Coukd something like this be 
the case here too?

-Original Message-
From: "Jesse Alexander (KBSA 21)"<[EMAIL PROTECTED]>
Sent: 2/10/05 8:01:43 AM
To: "Struts Users Mailing List"
Subject: RE: session race / transfer issue

-Original Message-
From: Brown, James [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005 4:30 PM
To: user@struts.apache.org
Subject: session race / transfer issue

We have encountered a problem in which it appears (from user's
description, transaction records, web application logs, and web server
access logs), that user sessions are being transferred from one user to
another.
 
<--- snipped --->
 
We have inspected our web application code (all jsp, javascript, and
java) and to our knowledge we are handling session creation,
invalidation and access properly.  In addition, we are using the html
taglib and/or explicit encodeURL calls to insure URL rewriting is being
enforced.
 
<--- snipped --->



-- James 

the last time we have encountered such a problem it turned out to be 
something 
homemade within the application. The had stored that kind of data in a 
Action-instance variable.

hop you find that bugger. Good luck
Alexander

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





[Message truncated. Tap Edit->Mark for Download to get remaining portion.]


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



RE: session race / transfer issue

2005-02-10 Thread Frank W. Zammetti
I had a very similar problem some months back.  It turned out to be a proxy 
server in the network caching pages too aggressively.  We have a welcome screen 
that says hello to the user by name, based on a value pulled from session.  
Many times, anyone who logged in would be greeted by the wrong name, and always 
the name of the first person that logged on that day.  The proxy was returning 
a cached copy of the page rather than sending the request through to the app 
server (verified by logging a message any time the Action that logged the user 
on fired, which is where the session was set up... I noticed the Action wasn't 
getting executed, yet the user was getting in, which could only be explained by 
the proxy returning a cached copy).  Solution was to configure IE to not use 
the proxy for the address of this application.  Coukd something like this be 
the case here too?

-Original Message-
From: "Jesse Alexander (KBSA 21)"<[EMAIL PROTECTED]>
Sent: 2/10/05 8:01:43 AM
To: "Struts Users Mailing List"
Subject: RE: session race / transfer issue

-Original Message-
From: Brown, James [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005 4:30 PM
To: user@struts.apache.org
Subject: session race / transfer issue

We have encountered a problem in which it appears (from user's
description, transaction records, web application logs, and web server
access logs), that user sessions are being transferred from one user to
another.
 
<--- snipped --->
 
We have inspected our web application code (all jsp, javascript, and
java) and to our knowledge we are handling session creation,
invalidation and access properly.  In addition, we are using the html
taglib and/or explicit encodeURL calls to insure URL rewriting is being
enforced.
 
<--- snipped --->



-- James 

the last time we have encountered such a problem it turned out to be 
something 
homemade within the application. The had stored that kind of data in a 
Action-instance variable.

hop you find that bugger. Good luck
Alexander

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





[Message truncated. Tap Edit->Mark for Download to get remaining portion.]


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



Re: How to Resize the window in my popup

2005-02-10 Thread Jeff Beal
Here's a bit of code to put into the onload() event handler of your 
dialog.  (This has only been tested on IE.)

   var chromeHeight = /^[0-9]+/.exec(window.dialogHeight) - 
document.body.clientHeight;
   var contentHeight = document.all.mainLayer.offsetHeight;
   window.dialogHeight = (contentHeight + chromeHeight) +"px";

The chromeHeight variable determines the total height of the window 
chrome (title bar, border, etc.).  The content height gets the height of 
the document's content (all of our content in this window is contained 
in a single div named 'mainLayer')

-- Jeff
Frank W. Zammetti wrote:
I don't think that's possible, unless you can figure out a way to calculate the size 
of the content that will appear.  You might be able to open the window and place 
everything within a , then read it's innerwidth style attribute and set 
the size of the window (it is possible to resize an existing windows through CSS).  
Not sure that will work, just thinking out loud.
Frank
-Original Message-
From: "senthil Kumar"<[EMAIL PROTECTED]>
Sent: 2/10/05 1:46:24 AM
To: "Struts Users Mailing List", "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>
Subject: Re: How to Resize the window in my popup
  Sir.,


 Now it is comming, thanks.
 How to set autosize of the Window.
I mean without scroll bar the window size show according to the data
available in window.


Thanks in advance.



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


Re: JSP produces invalid XML?

2005-02-10 Thread Jeff Beal
Jason Long wrote:
I always use numeric references such as & = &
Thank you for your time,
 
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineerring
http://www.supernovasoftware.com
In Laurent's case, this would have the same problem.  & and & 
are completely equivalent, anyway.  & is just a little bit easier to 
remember.

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


One more time, Input Array :(

2005-02-10 Thread Paulo César M. Jeveaux
Hi

  Friends of the list, I am having a great problem with input Array,
as much with ActionForm how much with DynaActionForm... I obtain to
perfectly validate with ActionForm an Array of String, but I do not
obtain with an Array of another object, as for example, a class of the
project... It will be that somebody of the list has an example of this
type of validation there?

T+

-- 
/**
* @author Paulo César M. Jeveaux
* Java Consultant
* @version 21.0
* http://www.portaljava.com
* @deprecated
*/

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



RE: session race / transfer issue

2005-02-10 Thread Jesse Alexander (KBSA 21)
-Original Message-
From: Brown, James [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005 4:30 PM
To: user@struts.apache.org
Subject: session race / transfer issue

We have encountered a problem in which it appears (from user's
description, transaction records, web application logs, and web server
access logs), that user sessions are being transferred from one user to
another.
 
<--- snipped --->
 
We have inspected our web application code (all jsp, javascript, and
java) and to our knowledge we are handling session creation,
invalidation and access properly.  In addition, we are using the html
taglib and/or explicit encodeURL calls to insure URL rewriting is being
enforced.
 
<--- snipped --->



-- James 

the last time we have encountered such a problem it turned out to be something 
homemade within the application. The had stored that kind of data in a 
Action-instance variable.

hop you find that bugger. Good luck
Alexander

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



RE: using modules

2005-02-10 Thread Krishna Srinivasan, ISDC Chennai

directly you can call that file.


-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 6:34 PM
To: Struts Users Mailing List
Subject: using modules



hi,
I have configured one module "module1" apart from the default module. Can I
navigate to the jsp files directly  in that module or I have to always make
a switch from default to module1 and vice versa ?

Here is my directory structure
rootContext\file1.jsp
rootContext\module1\file2.jsp

Thanks
Ashwani






This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient,  you are not
authorized 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.


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



using modules

2005-02-10 Thread Kalra, Ashwani

hi,
I have configured one module "module1" apart from the default module. Can I
navigate to the jsp files directly  in that module or I have to always make
a switch from default to module1 and vice versa ?

Here is my directory structure
rootContext\file1.jsp
rootContext\module1\file2.jsp

Thanks
Ashwani






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
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.


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



RE: Taglib vs. Action To Populate LOVs.

2005-02-10 Thread Krishna Srinivasan, ISDC Chennai
ok

-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 6:18 PM
To: 'Struts Users Mailing List'
Subject: RE: Taglib vs. Action To Populate LOVs.


Great, thanks for the input ...

-Original Message-
From: Krishna Srinivasan, ISDC Chennai [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 7:48 AM
To: Struts Users Mailing List
Subject: RE: Taglib vs. Action To Populate LOVs.



It would be better to use options tag.




-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 6:04 PM
To: 'user@struts.apache.org'
Subject: Taglib vs. Action To Populate LOVs.


I have a form which needs to display several dropdown combo boxes, one in
particular is to be populated with values as follows:

  Today
  Yesterday
  This Week
  Last Week
  This Month
  Last Month
  Last 3 Months
  This Year
  Last Year
  series of Month/Day/Year values
  All

I wanted to ask others opinion on which is the better approach to populating
this combo-box values?  I could use a taglib similar to the following:

  

The above would do a bean lookup for transactionForm with property date and
output the necessary HTML select/option tags needed to show the form's
selection box.

Or my action which forwards to the JSP could populate a collection of
LabelValueBean objects and then the JSP could iterate over the collection
using html:options.

Anyone have any suggestion on which is a better approach long-term?  

Thanks
Chris

-
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: Taglib vs. Action To Populate LOVs.

2005-02-10 Thread CRANFORD, CHRIS
Great, thanks for the input ...

-Original Message-
From: Krishna Srinivasan, ISDC Chennai [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 7:48 AM
To: Struts Users Mailing List
Subject: RE: Taglib vs. Action To Populate LOVs.



It would be better to use options tag.




-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 6:04 PM
To: 'user@struts.apache.org'
Subject: Taglib vs. Action To Populate LOVs.


I have a form which needs to display several dropdown combo boxes, one in
particular is to be populated with values as follows:

  Today
  Yesterday
  This Week
  Last Week
  This Month
  Last Month
  Last 3 Months
  This Year
  Last Year
  series of Month/Day/Year values
  All

I wanted to ask others opinion on which is the better approach to populating
this combo-box values?  I could use a taglib similar to the following:

  

The above would do a bean lookup for transactionForm with property date and
output the necessary HTML select/option tags needed to show the form's
selection box.

Or my action which forwards to the JSP could populate a collection of
LabelValueBean objects and then the JSP could iterate over the collection
using html:options.

Anyone have any suggestion on which is a better approach long-term?  

Thanks
Chris

-
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: Taglib vs. Action To Populate LOVs.

2005-02-10 Thread Krishna Srinivasan, ISDC Chennai

It would be better to use options tag.




-Original Message-
From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 6:04 PM
To: 'user@struts.apache.org'
Subject: Taglib vs. Action To Populate LOVs.


I have a form which needs to display several dropdown combo boxes, one in
particular is to be populated with values as follows:

  Today
  Yesterday
  This Week
  Last Week
  This Month
  Last Month
  Last 3 Months
  This Year
  Last Year
  series of Month/Day/Year values
  All

I wanted to ask others opinion on which is the better approach to populating
this combo-box values?  I could use a taglib similar to the following:

  

The above would do a bean lookup for transactionForm with property date and
output the necessary HTML select/option tags needed to show the form's
selection box.

Or my action which forwards to the JSP could populate a collection of
LabelValueBean objects and then the JSP could iterate over the collection
using html:options.

Anyone have any suggestion on which is a better approach long-term?  

Thanks
Chris

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



Taglib vs. Action To Populate LOVs.

2005-02-10 Thread CRANFORD, CHRIS
I have a form which needs to display several dropdown combo boxes, one in
particular is to be populated with values as follows:

  Today
  Yesterday
  This Week
  Last Week
  This Month
  Last Month
  Last 3 Months
  This Year
  Last Year
  series of Month/Day/Year values
  All

I wanted to ask others opinion on which is the better approach to populating
this combo-box values?  I could use a taglib similar to the following:

  

The above would do a bean lookup for transactionForm with property date and
output the necessary HTML select/option tags needed to show the form's
selection box.

Or my action which forwards to the JSP could populate a collection of
LabelValueBean objects and then the JSP could iterate over the collection
using html:options.

Anyone have any suggestion on which is a better approach long-term?  

Thanks
Chris

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



archives

2005-02-10 Thread draegoon Z
Is there anywhere to get the most recent emails from an archive for struts?
Meaning Feb 2005.
Thanks.

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


Re: How to Resize the window in my popup

2005-02-10 Thread Frank W. Zammetti
I don't think that's possible, unless you can figure out a way to calculate the 
size of the content that will appear.  You might be able to open the window and 
place everything within a , then read it's innerwidth style attribute and 
set the size of the window (it is possible to resize an existing windows 
through CSS).  Not sure that will work, just thinking out loud.

Frank

-Original Message-
From: "senthil Kumar"<[EMAIL PROTECTED]>
Sent: 2/10/05 1:46:24 AM
To: "Struts Users Mailing List", "[EMAIL 
PROTECTED]"<[EMAIL PROTECTED]>
Subject: Re: How to Resize the window in my popup
  Sir.,


 Now it is comming, thanks.
 How to set autosize of the Window.
I mean without scroll bar the window size show according to the data
available in window.


Thanks in advance.



- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 10, 2005 10:57 AM
Subject: Re: How to Resize the window in my popup


> Simply add width and height to your window.open() call parameters...
>
> function MM_callProjectSummary() {
>
>previewSummary =
>
window.open("ViewProjectSummary.do?projectId="+document.forms[0].projectId.v
alue
>
+"","previewwin","previewwin","width=1180,height=924,scrollbars=yes,resizabl
e=yes,
> location=no ");
>previewSummary.focus();
>
> }
>
> ...just change them to the size you want.
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
>
> senthil Kumar wrote:
> > my code is here.
> >
> >
> >
> >
> > function MM_callProjectSummary() {
> >
> > previewSummary =
window.open("ViewProjectSummary.do?projectId="+document.forms[0].projectId.v
alue +"","previewwin","previewwin","scrollbars=yes,resizable=yes,
location=no ");
> >  previewSummary.focus();
> >}
> >
>
>
>
> -



[Message truncated. Tap Edit->Mark for Download to get remaining portion.]


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



Re: How to Resize the window in my popup

2005-02-10 Thread Frank W. Zammetti
I don't think that's possible, unless you can figure out a way to calculate the 
size of the content that will appear.  You might be able to open the window and 
place everything within a , then read it's innerwidth style attribute and 
set the size of the window (it is possible to resize an existing windows 
through CSS).  Not sure that will work, just thinking out loud.

Frank

-Original Message-
From: "senthil Kumar"<[EMAIL PROTECTED]>
Sent: 2/10/05 1:46:24 AM
To: "Struts Users Mailing List", "[EMAIL 
PROTECTED]"<[EMAIL PROTECTED]>
Subject: Re: How to Resize the window in my popup
  Sir.,


 Now it is comming, thanks.
 How to set autosize of the Window.
I mean without scroll bar the window size show according to the data
available in window.


Thanks in advance.



- Original Message -
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, February 10, 2005 10:57 AM
Subject: Re: How to Resize the window in my popup


> Simply add width and height to your window.open() call parameters...
>
> function MM_callProjectSummary() {
>
>previewSummary =
>
window.open("ViewProjectSummary.do?projectId="+document.forms[0].projectId.v
alue
>
+"","previewwin","previewwin","width=1180,height=924,scrollbars=yes,resizabl
e=yes,
> location=no ");
>previewSummary.focus();
>
> }
>
> ...just change them to the size you want.
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
>
> senthil Kumar wrote:
> > my code is here.
> >
> >
> >
> >
> > function MM_callProjectSummary() {
> >
> > previewSummary =
window.open("ViewProjectSummary.do?projectId="+document.forms[0].projectId.v
alue +"","previewwin","previewwin","scrollbars=yes,resizable=yes,
location=no ");
> >  previewSummary.focus();
> >}
> >
>
>
>
> -



[Message truncated. Tap Edit->Mark for Download to get remaining portion.]


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



Re: Problem with checkbox

2005-02-10 Thread Cédric Levieux
Because when you uncheck a checkbox you don't send this field and the
form process let the previous value in place

One of tips of mine is to put a hidden field with the same name and to
see the field as an array : when it contains only one value the
checkbox is unchecked, checked otherwise

Hope it will help,

Cedric


On Tue, 8 Feb 2005 13:58:22 -0800 (PST), Norris Shelton
<[EMAIL PROTECTED]> wrote:
> I have a checkbox drawn by:
>  onclick="javascript:${recordType.name}BoxDisplay();" />
> ${recordType.description} 
> 
> The form is defined as:
>  type="org.apache.struts.validator.LazyValidatorForm" >
> ...
> 
>  type="java.lang.Boolean" initial="true"/>
> ...
> 
> 
> The check box displays correct and even defaults.  If I uncheck
> the box and submit, when it failes validation, it is still
> checked.
> 
> =
> 
> Norris Shelton
> Software Engineer
> Sun Certified Java 1.1 Programmer
> Appriss, Inc.
> ICQ# 26487421
> AIM NorrisEShelton
> YIM norrisshelton
> 
> __
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: SessionState vs. request state.

2005-02-10 Thread brenmcguire
For storing user info, using sessions is the best way. Think about not
using sessions: you should someway propagate an "ID" of the user between
requests. Luckily, J2EE applications store a session ID as a cookie or (if
cookies are not enabled) propagates it in URLs.
But be cautious using session, don't abuse it. If you want to use it only
to store user information, it is correct. But if you want to store, for
example, data between request to realize a wizard, it is wrong. In this
case, you should propagate temporary acquired values between requests,
because you could reach inconsistence. For example, think about opening
two different windows with the same "wizard". The session ID is the same,
then data could cross themselves, making a real mess!
But this is not your case, so use session.
Ciao
Antonio Petrelli

Brian McGovern wrote:

>Hi,
>
>I'm planning my approach to a data driven app that I have to write in the
near future.  I've used struts before in more of a demo-type, proof of
concept scenarios, and am no where near and expert, but now need to build
a production level system.
>
>For a web app that needed to display a username on every screen I was
previously doing it like this:
>
>   HttpSession zCurrentSession = request.getSession(false);
>   if (zCurrentSession == null){
>   zCurrentSession = request.getSession(true);
>}
>   try {
>   zUserInfoBn = zUserData.getUserInfo(sEmailAddress);
>zUserInfoBn.setIsLoggedIn(true);
> }catch (ApplicationException zAppEx){
>  throw zAppEx;  //stubbed out not complete
> }
> zCurrentSession.setAttribute(sUSERINFO_BN, zUserInfoBn);
>
>So I'm hoping I can get some opinions on how to display things like user
information on the screens in an intelligent way.  I'm not sure where the
trade offs are between hitting the DB every time and storing at the
request level, using cookies, or storing it some other way.
>
>Any ideas would be helpful.  I'm in the rare position of being able to
take my time and think out the approach and would love input from people
who've got more experience than me.
>
>My env is linux, tomcat 5.0.28, latest jdk, struts, separate box running
db (sql server 2000 w/ stored procs) on a 2.8ghz xeon box with 1 gig mem.
To start the app shouldnt get more than 50,000 page views a month.
>
>Thanks
>-Brian
>



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



Re: [OT] Identify web user in intranet

2005-02-10 Thread brenmcguire
There is the MAC address, but only if you are connected to the same
switch/hub. Otherwise, it will fail because the MAC address is usually the
one of the default gateway.
The big big problem is that almost everything can be spoofed. IP address
can be spoofed (well at least the response never arrives...), MAC address
can be spoofed, even cookies can be spoofed. In fact, before writing this
email, I thought about setting a cookie on the client machine, but:
1) maybe the client sometimes deletes all of his cookies;
2) the cookie itself is insecure and can be spoofed.
In SSH (the Secure SHell, that permits secure remote shells), both client
and server have criptography and electronic signatures enabled, so that
the server is sure that the legitimate owner of the private key is the one
who is communicating. But not in HTTP or at least in normal HTTP.
The SET technology, usually used in money transactions (but I have to say
I never saw that in action!), gives a certificate to everyone: client,
seller and bank.
Anyway, these technologies identify THE PERSON and not THE MACHINE because
you can simply copy certificates and key pairs on another machine (though
usually, except of extreme cases of stupidity, the one which does such a
thing is the legitimate owner).
Maybe you can rely on the header of HTTP request, to see its OS,
machine,etc. But again it can be spoofed.
So I think the most viable way is to use SSL with a login phase
(eventually with a cookie). To identify the agent, you should analyze the
header of HTTP requests, hoping it is not spoofed, but only for view
reasons (different page organizations, different colours, etc.) because
relying on header of HTTP requests is pretty dangerous.
I thought in this email that security is your main problem. But if you
only want to display something different while a user is on a different
machine, I think you should see Dimensions:
http://mutidimensions.sourceforge.net/
Hope it helps
Antonio Petrelli

Ashish Kulkarni wrote:

>Hi
>Is there any thing unique to identify the client
>machine(desktop) other then IP address?
>I have a situtation where in my intranet, i need to
>identify the machine uniquely and do some processing,
>But the problem is that we dont haev static IP
>address, but dynamic IP address.
>I want to display a particular screen if the user is
>using a perticular computer or network node
>
>Ashish
>



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