RE: I need an html:submit to act as html:link

2004-05-28 Thread Mick . Knutson
Is there a JavaScript item that will do that? Or CSS?

-Original Message-
From: ksitron [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 2:47 PM
To: Struts Users Mailing List
Subject: I need an html:submit to act as html:link


I need the cursor to change when over an html:submit button, similiar in 
behavior
to an html:link.

Possible or Not ??


Thanks in advance.


-- 





-
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]: StatefulSessionBeans and HTTPSession

2004-05-28 Thread Kunal H. Parikh
Given that my stateful sessionbeans are already taking up a lot of memory, I
want to keep my HTTPSession as light as possible.

It'll help to keep an ID rather than an object as a parameter.

Any suggestions ?


Cheers,

Kunal

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Friday, 28 May 2004 21:37
To: Struts Users Mailing List
Subject: RE: [OT]: StatefulSessionBeans and HTTPSession

Why? It appears that you already have the appropriate "best practices"
solution. Are you trying to avoid using a BusinessDelegate?

robert

> -Original Message-
> From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 27, 2004 9:15 PM
> To: Struts Users Mailing List
> Subject: [OT]: StatefulSessionBeans and HTTPSession
> 
> 
> Hi All!
> 
> Just wanted to know if there is a better strategy to do this.
> 
> My current implementation:
> Struts/JSP --> BusinessDelegate --> StatefulSessionBean --> Multiple
> EntityBeans
> 
> Now, I add the BusinessDelegate to my HttpSession, effectively keeping the
> handle to my StatefulSessionBean.
> 
> Instead, I was hoping, if it were possible, to store a
StatefulSessionBeanID
> in my HttpSession and recall the StatefulSessionBean using the ID from my
> EJB tier.
> 
> Let me know of your thoughts on this structure.
> 
> 
> TIA,
> 
> Kunal
> 
> 
> 
> -
> 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: What was the name of this application? [was] Re: Are there any IDE's that understand Struts tags?

2004-05-28 Thread Michael McGrady
Isn't that "HOOyah!"?  LOL
At 03:04 AM 5/28/2004, bOOyah wrote:
Rick Reumann wrote:
Actually there was a struts application/IDE  that was for demo that was 
quite impressive but now I forgot the name.
Was it NitroX from M7?  http://www.m7.com/
The pricetag isn't *that* hefty.
--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
This is an excellent suggestion.  I tried hard coding the value that 
layout1.layout should be giving and everything worked.  I also tried 
testing to see if layout1 was null, and it was.  Since layout1.layout is a 
value I want to use throughout the session, always, and is a value that is 
only used in the session, it seems that the session is the proper place to 
put this value.  I am setting the value of the default layout in 
application scope with a plugin.  Then, I am putting that value into a 
session Layout when people come on board.  They can then choose their own 
layout later, or their "host" can have prefigured the Layout for them.  The 
same site has multiple hosts with their own "guests".

Michael
At 07:50 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I probably should have added that in my ForwardAction I convert a path 
from the ActionMapping so that users can be allocated a particular look 
and feel that they have chosen on the website.  The line that is related 
to the Opera failure is:
return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in 
the session on my index page.  This difficulty is overcome by putting 
code in to log that the Layout object has been put into the session.
That mystifies me.  Any demystification chiefs on this one?
I'm still a bit confused. I'm guessing the NPE is coming from not being 
able to find the forward created by the layout1.layout + "_" + path 
section? Setting it up like:

String forwardName = layout1.layout + "_" + path;
log.debug( forwardname );
return new ActionForward( forwardName );
I'd be curious if that forwardName looks the same under all situations? 
Are you sure you are following the exact same steps for each browser after 
bouning the server? In otherwords, maybe you aren't getting the NPE on 
netscape/IE because you are having layout1.layout set into Session scope 
at some other point that you aren't doing when testing with Opera? Using 
Session vars for this seems a bit odd anyway. Could you avoid using 
layout1.layout as Session attribute?

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



RE: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
Everyone is saying sensible things and these are my thoughts exactly.  But, 
that is not what I am getting.  I am tending to think that the only option 
is that the problem has happened to appear when Opera is running and that 
really there is something wrong with the session management.  That is the 
direction I have started to go.  I have been buoyed by the fact that you 
all agree that the problem with Opera seems nuts to you too.  Thanks.

Michael
At 08:19 AM 5/28/2004, [EMAIL PROTECTED] wrote:
If that were the case, wouldn't it be a constant, and not an imtermediate, 
problem?

Dennis

"Slattery, Tim - BLS" <[EMAIL PROTECTED]>
05/28/2004 10:54 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc
Subject
RE: Problems with Opera and Struts?

> I am not spawning a new window, Rick, but it is a session
> variable problem as explained in prior emails.
Sessions are kept track of by a cookie. Is it possible that your Opera
browser has been configured to not send or accept cookies?
--
Tim Slattery
[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: Problems with Opera and Struts?

2004-05-28 Thread DGraham

If that were the case, wouldn't it be
a constant, and not an imtermediate, problem?

Dennis






"Slattery, Tim - BLS"
<[EMAIL PROTECTED]> 
05/28/2004 10:54 AM



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





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


cc



Subject
RE: Problems with Opera and
Struts?








> I am not spawning a new window, Rick, but it
is a session 
> variable problem as explained in prior emails.  

Sessions are kept track of by a cookie. Is it possible that your Opera
browser has been configured to not send or accept cookies?

--
Tim Slattery
[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]

nested tiles:insert tags

2004-05-28 Thread Colm Garvey
Has anyone been able to nest tiles such that 
placeholders in the topmost frame can be populated by another tile 2 levels
down?

For example, I have a base.jsp tile (which is used by all my pages) which is
responsible for color, global scripts etc..
I would like to set up a generic search.jsp tile for use in search pages as
well as a generic list.jsp tile which could contain my datagrid controls.

So the page structure looks like this

 widgetSearchResults.jsp inserts listTile.jsp which in turn inserts
baseTile.jsp

baseTile.jsp sets up most of the page structure, including the page title,
like so: 
but I want to declare the pageTitle on my widgetsearchresults.jsp page.

I've tried nesting  tags within  tags but I'm
getting an error thrown back at me. (see sample code)

Here's some sample code:

baseTile.jsp

 START

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
%><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
%><%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"
%><%@ page contentType="text/html; charset=utf-8" language="java"
import="java.sql.*" errorPage="/error.jsp" %>











 >







 END



listTile.jsp
 START
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
%><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
%><%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"
%><%@ page contentType="text/html; charset=UTF-8" language="java"
import="java.sql.*" errorPage="/error.jsp" %>

 
  











 

Re: I need an html:submit to act as html:link

2004-05-28 Thread ksitron
Thanks, but


did not work.
Hubert Rabago wrote:
See if adding style="cursor: hand" works.
--- ksitron <[EMAIL PROTECTED]> wrote:
 

I need the cursor to change when over an html:submit button, similiar in 
behavior
to an html:link.

Possible or Not ??
Thanks in advance.
--

   


	
		
__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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

--
Kevin J Citron
Sr. Object Imagineer
Optimized Objects, Inc.
EL Paso, Texas 79930
(915) 565-7785/566-2403


Logging in new user

2004-05-28 Thread fastbob
Greetings,
I have an application using Struts 1.1 and JBoss 3.2.3. Authentication is
Forms-based using JAAS. The username and password are pulled from the
database through j_security_check and several authorization levels are
defined through security-constraints. Login works fine. 

I'm now trying to add a new user registration page. If the registration
succeeds, the user should be logged in automatically and taken to a welcome
page. From the welcome page they should be able the access the application.

The registration info is added to the database and the user is logged in via
javax.security.auth.loginjavax.security.auth.login. Then my registration
forwards to the welcome page. Unfortunately, when the welcome page is
displayed, the user does not appear to be logged in. Clicking on any link
for the application takes them to the login page.

What am I missing?

Thanks.

fastbob




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



Logging in new user

2004-05-28 Thread fastbob
Greetings,
I have an application using Struts 1.1 and JBoss 3.2.3. Authentication is
Forms-based using JAAS. The username and password are pulled from the
database through j_security_check and several authorization levels are
defined through security-constraints. Login works fine. 

I'm now trying to add a new user registration page. If the registration
succeeds, the user should be logged in automatically and taken to a welcome
page. From the welcome page they should be able the access the application.

The registration info is added to the database and the user is logged in via
javax.security.auth.loginjavax.security.auth.login. Then my registration
forwards to the welcome page. Unfortunately, when the welcome page is
displayed, the user does not appear to be logged in. Clicking on any link
for the application takes them to the login page.

What am I missing?

Thanks.

fastbob




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



Re: is OJB a good choice for Modeling ?

2004-05-28 Thread Rick Reumann
Navjot Singh wrote:
IMO, ibatis +1
+1 from me also.
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: is OJB a good choice for Modeling ?

2004-05-28 Thread David Friedman
Now, now IMO Hibernate +1. :)

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 4:47 AM
To: Struts Users Mailing List
Subject: RE: is OJB a good choice for Modeling ?


IMO, ibatis +1

>-Original Message-
>From: Zaid [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 28, 2004 1:53 PM
>To: Struts Users Mailing List
>Subject: is OJB a good choice for Modeling ?
>
>
>Hi all,
>
>is OJB(http://db.apache.org/ojb) is a good ORM ? please advise me, I have
>3 types for choicing:IBatis, Hibernate and ODMG as well.
>
>Regards
>
>-
>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]



memFileSize property for upload

2004-05-28 Thread Ayoub, Ashraf A
Dears,

I know I posted this question before but I'm really disprate trying to
make this work, my problem is on SUN ONE application server 7 platform
edition update 2, I try upload file and I get access denied problem, it
is a problem as starting from JDK 1.4 there is a server policy file
controlling the permissions, and the default is don't allow write from
application, so what I have to do is to load everything in memory and
put it directly to DB without writing it to file.

I looked in struts and it says it support this, by using the property
memFileSize, I tried it and no use also the same error.

I'm using struts 1.1

 

  



  

 

Here is the part of configuration, and hope that anyone give me a
solution.

 

I tried also to use the file upload commons upload 1.0 from jakarta with
struts 1.1 but I got strange behaviour, also someone faced the same
trouble and posted it on here:

http://groups.google.com/groups?q=struts+commons+upload+empty+List+from+
the+parseRequest

&hl=en&lr=&ie=UTF-8&selm=3fcf1c2f.0306142303.507f6703%40posting.google.c
om&rnum=1

 

 

Thanks, best regards

 

Ashraf Fouad

 



Re: Problems with Opera and Struts?

2004-05-28 Thread Rick Reumann
Michael McGrady wrote:
java.lang.NullPointerException
com.crackwillow.struts.action.ForwardAction.execute(ForwardAction.java:30)
Are you doing something funky in this custom Action? Why did you need to 
create your own ForwardAction?

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


Re: I need an html:submit to act as html:link

2004-05-28 Thread Hubert Rabago
See if adding style="cursor: hand" works.

--- ksitron <[EMAIL PROTECTED]> wrote:
> I need the cursor to change when over an html:submit button, similiar in 
> behavior
> to an html:link.
> 
> Possible or Not ??
> 
> 
> Thanks in advance.
> 
> 
> -- 
> 
> 
> 





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: I need an html:submit to act as html:link

2004-05-28 Thread Favio
ksitron wrote:
I need the cursor to change when over an html:submit button, similiar in 
behavior
to an html:link.

Possible or Not ??
It is possible with CSS on CSS2 compliant browsers:

--
Favio D. DeMarco
SIB
<[EMAIL PROTECTED]>
Tel.: 4326 2861
NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.

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


I need an html:submit to act as html:link

2004-05-28 Thread ksitron
I need the cursor to change when over an html:submit button, similiar in 
behavior
to an html:link.

Possible or Not ??
Thanks in advance.
--


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


Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
Heh, Rick, I said it was impossible first.  I agree with everything you say 
and I know the computer is always right.  But, this is what I see and I 
have reported it accurately, I think.

Regarding what you did not know I meant.  I thought I explained it but I 
will try again, and try to do better.  I provide different look and feels 
to different clients.  They choose.  Thus, my urls are modified so that I 
can have a constant url in the struts-conf.xml under, e.g. "input" for the 
action mapping, and a variable one in the tiles.xml.  Thus, I have to have 
between the struts xml and the tiles xml readings a way of converting.  I 
do this with a Layout object that is spawned from the ServletContext and 
placed in the session on the index.jsp page.  This is the object that is 
showing null in Opera but is not null in IE or Netscape and I have checked 
to make sure that it is there.  This should not, I know, affect 
Opera.  But, these are the facts and all the facts I know.

The fact is I don't have trouble with IE and Netscape and I do with 
Opera.  Here is the code that Opera seems (in impossible terms) to conflict 
with and is in my index.jsp page which merely FORWARDS to  another page:

  
session.setAttribute(SiteConstant.LAYOUT,session.getServletContext().getAttribute(SiteConstant.LAYOUT));
The FORWARD is  where String 
indexUrl = layout + "_index"; and where layout is presently hardcoded for 
these tests.  When the session gets to "indexUrl", with Opera sometimes the 
session does not have the default layout object in the session.  I can cure 
this in Opera by having the index.jsp FORWARD page contain the following code:

At 11:54 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
No, this is not correct, Rick.  The null pointer is for the reference to 
the Layout object in the session, which in fact is there.  When I have 
the index page check to see if the object is there, Opera does not have a 
problem on OTHER pages.  Odd?  It is as if the placement of that object 
in the session does not happen with Opera unless you check that it has 
happened.  BUT THAT IS ABSURD.  Opera has no knowledge of any of this.  RIght?
If you are sure you haven't changed some cookie settings and you aren't 
spawning a new window, then my guess is there will be a way to duplicate 
the exact same problem in IE/Netscape/Mozilla. I don't get what you mean by:

"The null pointer is for the reference to
the Layout object in the session, which in fact is there."
The above would have nothing to do with a browser and is impossible, 
unless you think you are refering to the same Session but you are not.

In other words, you are setting something in Session scope and then later 
on you do some stuff which somehow spawns a new Session.

To say you are getting a null pointer for a reference to an object that 
really is there in Session is impossible:) In other words if you do

Object obj = session.getAttribute("someOjbect");
and obj is null then there is no way "someObject" is refering to a handle 
to an object in this session.

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



Re: only with bean?

2004-05-28 Thread Henrique VIECILI
Well,

in that case I would put into some scope a collection with beans containing the values 
and labels and access like this:



or, if you want to retrieve from the Form, you can try this:



where the collection is obtained from myForm.getArrayList(), and the beans in the 
collection having getLabel() and getValue()

Henrique Viecili
  - Original Message - 
  From: Samuel Rochas 
  To: Struts Users Mailing List 
  Sent: Friday, May 28, 2004 2:47 PM
  Subject: Re:  only with bean?


  Hello Henrique,

  Thanks for your answer.

  Your solution suppose I maintain two lists of objects, one for the 
  labels and one for the values.
  Is it not possible to give a list of object, and to use the object 
  properties for the value and for the label?

  Samuel



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


Re: Memory Issues

2004-05-28 Thread Vinita Keswani
You can also try increasing the heap size of tomcat at
startup but this again depends on how much RAM ur
machine has??
Out of memory is usually because you have lots of
session objects still out there causing an overflow.

--- Mark Lowe <[EMAIL PROTECTED]> wrote:
> If its on a live deployment and your using tc 5.019
> with jk 1 then 
> upgrade to 5.024 (Look for the decoding error in the
> logs).
> 
> If its a dev server and you get this when you reload
> webapps, it just 
> happens. TC5 is better than 4.1 but still eventually
> happens.
> 
> Scoping to request will help reduce this, but it
> will still happen 
> sooner or later. But on a live server, where reloads
> are non existent 
> or hopefully rare then this is unlikely to happen.
> The only condition I 
> found where this did happen was as I mentioned
> before the coyote apj 
> service on the tomcat side having trouble talking to
> mod_jk.
> 
> 
> 
> On 28 May 2004, at 20:29, Ciaran Hanley wrote:
> 
> > Hi,
> >
> >
> >
> > My struts webapp seems to be using up a lot of
> memory and quite often 
> > get
> > OutOfMemory errors or crash Tomcat requiring a
> restart. How do I go 
> > about
> > freeing up memory? I have started by storing as
> many objects as 
> > possible at
> > request scope rather that at session scope, is
> there any other things I
> > should look out for?
> >
> >
> >
> > Thanks
> >
> > CH
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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



Re: Memory Issues

2004-05-28 Thread Mark Lowe
If its on a live deployment and your using tc 5.019 with jk 1 then 
upgrade to 5.024 (Look for the decoding error in the logs).

If its a dev server and you get this when you reload webapps, it just 
happens. TC5 is better than 4.1 but still eventually happens.

Scoping to request will help reduce this, but it will still happen 
sooner or later. But on a live server, where reloads are non existent 
or hopefully rare then this is unlikely to happen. The only condition I 
found where this did happen was as I mentioned before the coyote apj 
service on the tomcat side having trouble talking to mod_jk.


On 28 May 2004, at 20:29, Ciaran Hanley wrote:
Hi,

My struts webapp seems to be using up a lot of memory and quite often 
get
OutOfMemory errors or crash Tomcat requiring a restart. How do I go 
about
freeing up memory? I have started by storing as many objects as 
possible at
request scope rather that at session scope, is there any other things I
should look out for?


Thanks
CH


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


Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Rick Reumann
Michael McGrady wrote:
No, this is not correct, Rick.  The null pointer is for the reference to 
the Layout object in the session, which in fact is there.  When I have 
the index page check to see if the object is there, Opera does not have 
a problem on OTHER pages.  Odd?  It is as if the placement of that 
object in the session does not happen with Opera unless you check that 
it has happened.  BUT THAT IS ABSURD.  Opera has no knowledge of any of 
this.  RIght?
If you are sure you haven't changed some cookie settings and you aren't 
spawning a new window, then my guess is there will be a way to duplicate 
the exact same problem in IE/Netscape/Mozilla. I don't get what you mean 
by:

"The null pointer is for the reference to
the Layout object in the session, which in fact is there."
The above would have nothing to do with a browser and is impossible, 
unless you think you are refering to the same Session but you are not.

In other words, you are setting something in Session scope and then 
later on you do some stuff which somehow spawns a new Session.

To say you are getting a null pointer for a reference to an object that 
really is there in Session is impossible:) In other words if you do

Object obj = session.getAttribute("someOjbect");
and obj is null then there is no way "someObject" is refering to a 
handle to an object in this session.

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


RE: only with bean?

2004-05-28 Thread Kathy Zhou
LabelValueBean in struts 1.1 as I remember.

Kathy

-Original Message-
From:   Samuel Rochas [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 28, 2004 1:48 PM
To: Struts Users Mailing List
Subject:Re:  only with bean?

Hello Henrique,

Thanks for your answer.

Your solution suppose I maintain two lists of objects, one for the 
labels and one for the values.
Is it not possible to give a list of object, and to use the object 
properties for the value and for the label?

Samuel



-
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: only with bean?

2004-05-28 Thread Samuel Rochas
Hello Henrique,
Thanks for your answer.
Your solution suppose I maintain two lists of objects, one for the 
labels and one for the values.
Is it not possible to give a list of object, and to use the object 
properties for the value and for the label?

Samuel

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


RE: Memory Issues - reply

2004-05-28 Thread Kathy Zhou
Ciaran,

To clean up the memory, you could restart the web app sever once every 
night if this could quickly solve your issues. We did this on Jrun web 
server.

For those common objects used by everybody, you could set them in 
application scope.
Just a thought.

Kathy

-Original Message-
From:   Ciaran Hanley [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 28, 2004 2:30 PM
To: Struts User Mailing List
Subject:Memory Issues

Hi,


My struts webapp seems to be using up a lot of memory and quite often get
OutOfMemory errors or crash Tomcat requiring a restart. How do I go about
freeing up memory? I have started by storing as many objects as possible at
request scope rather that at session scope, is there any other things I
should look out for?



Thanks

CH



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



Memory Issues

2004-05-28 Thread Ciaran Hanley
Hi,

 

My struts webapp seems to be using up a lot of memory and quite often get
OutOfMemory errors or crash Tomcat requiring a restart. How do I go about
freeing up memory? I have started by storing as many objects as possible at
request scope rather that at session scope, is there any other things I
should look out for?

 

Thanks

CH



RE: tag

2004-05-28 Thread Kathy Zhou
Nathan,

Thanks for the response.

I am using HashMap and it could be handled better with  tag than
multibox tag does.
You are right. I need to set a hidden field to store the value of indexes if
there is no such tag which lets me stop the loop manually in .

Sorry if this msg is sent twice again this time. I have unsubscribed and
subscribed to the list in order to solve the problem. It did not work. I
emailed the owner of the list to see if he could help me on this. 

Thanks,

Kathy

> -Original Message-
> From: Nathan Maves [SMTP:[EMAIL PROTECTED]
> Sent: Friday, May 28, 2004 1:11 PM
> To:   Struts Users Mailing List
> Subject:  Re:  tag
> 
> I have not seen any way to do this.
> 
> You could do a work around by setting a var inside of your loop then 
> checking that on every iteration of the loop.  This is still causing 
> the loop to finish execution but you would get the result you were 
> looking for.
> 
> You might look into the multibox tag for auto-population of checkboxes.
> 
> Nathan
> On May 28, 2004, at 9:21 AM, Kathy Zhou wrote:
> 
> > I hope I would not send this msg twice this time. :)
> >
> > I have a question on  tag.
> >
> > Is there any way I could use something like <% break; %> within 
> > 
> > loop? The reason I am asking is that I am using  to find a value.
> > Once the value has been found,  loop do not have to be
> > continued,. the process moves on to the next tag. I am using this on a
> > group of checkboxes. It defines which checkbox has been checked after
> > submitting.
> >
> > I checked the JSTL tag and did not find the one I could use within
> >  tag. I may miss something here. Any ideas?
> >
> > Thank you.
> >
> > Kathy
> >
> >
> >
> > -
> > 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: tag

2004-05-28 Thread Kathy Zhou
Nathan,

Thanks for the response.

I am using HashMap and it could be handled better with  tag than 
multibox tag does.
You are right. I need to set a hidden field to store the value of indexes 
if there is no such tag which lets me stop the loop manually in 
.

Sorry if this msg is sent twice again this time. I have unsubscribed and 
subscribed to the list in order to solve the problem. It did not work. I 
emailed the owner of the list to see if he could help me on this.

Thanks,

Kathy

-Original Message-
From:   Nathan Maves [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 28, 2004 1:11 PM
To: Struts Users Mailing List
Subject:Re:  tag

I have not seen any way to do this.

You could do a work around by setting a var inside of your loop then
checking that on every iteration of the loop.  This is still causing
the loop to finish execution but you would get the result you were
looking for.

You might look into the multibox tag for auto-population of checkboxes.

Nathan
On May 28, 2004, at 9:21 AM, Kathy Zhou wrote:

> I hope I would not send this msg twice this time. :)
>
> I have a question on  tag.
>
> Is there any way I could use something like <% break; %> within
> 
> loop? The reason I am asking is that I am using  to find a value.
> Once the value has been found,  loop do not have to be
> continued,. the process moves on to the next tag. I am using this on a
> group of checkboxes. It defines which checkbox has been checked after
> submitting.
>
> I checked the JSTL tag and did not find the one I could use within
>  tag. I may miss something here. Any ideas?
>
> Thank you.
>
> Kathy
>
>
>
> -
> 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: public static properties in JSPs

2004-05-28 Thread Danilo Gurovich
You need to import the class. 

Danilo Gurovich
Manager, Web Development
LowerMyBills.com
[EMAIL PROTECTED]
2401 Colorado Ave., 2nd Floor 
Santa Monica, CA 90404
(310) 998-6412

 


-Original Message-
From: Lesaint Sébastien [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 28, 2004 9:48 AM
To: '[EMAIL PROTECTED]'
Subject: public static properties in JSPs

Hello all!

First message ever on a mailing list, would you believe it? :)

Anybody knows how to access a public static (final btw) variable of a bean
inside a JSP ? preferably using struts tags or EL ?


 [...any HTML code...]


Exactly, I'd like to replace to "1" in the 's test by something like
"__DeskMenuConfigBean__.CONTRACT_MODE"

Thanks

-- 
Seb'


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



Re: tag

2004-05-28 Thread Nathan Maves
I have not seen any way to do this.
You could do a work around by setting a var inside of your loop then 
checking that on every iteration of the loop.  This is still causing 
the loop to finish execution but you would get the result you were 
looking for.

You might look into the multibox tag for auto-population of checkboxes.
Nathan
On May 28, 2004, at 9:21 AM, Kathy Zhou wrote:
I hope I would not send this msg twice this time. :)
I have a question on  tag.
Is there any way I could use something like <% break; %> within 

loop? The reason I am asking is that I am using  to find a value.
Once the value has been found,  loop do not have to be
continued,. the process moves on to the next tag. I am using this on a
group of checkboxes. It defines which checkbox has been checked after
submitting.

I checked the JSTL tag and did not find the one I could use within
 tag. I may miss something here. Any ideas?
Thank you.
Kathy

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


[friday]Re: [OT] Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
Who rattled you cage? shouldn't you be trying to fix opera?
On 28 May 2004, at 18:54, Michael McGrady wrote:
No, mine was the only sensible answer.  LOL  ///;-)  Heh, the guy just  
made a mistake.  Leave the poor bugger some dignity.  Someday he is  
going to know a lot more and be of help to us all, in the Xtreme view  
of things.  LOL  I love giving Mark advice because he is such a  
sweetheart as a rule and rarely provides one the opportunity to be all  
puffy.  LOL

Michael
At 06:27 AM 5/28/2004, Mark Lowe wrote:
But then again, the only sensible answer on this thread was martin's.

On 28 May 2004, at 15:25, Mark Lowe wrote:
Interesting.. Didn't work as i originally predicted..
But as you said this puppy did..
" />
On 28 May 2004, at 14:38, David Gagnon wrote:
Hi
If I remembrer correctly
1) Use: 
/>
2) For the original example do it this way:

onblur='<%="doThis(" + index.intValue() + ")" %>'/>
When using <%= %> you need to put everything in it.

Hope it help .. hope I'm right :-)
Ciao
/David

-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED]
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function
I've just done the following in a struts html:text tag
" />
This is using the 1.1 release version of struts.. On TC5 and with el
enabled on the page to boot.
The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like  
to
go up against such a confident statement, but I fear I'm right.

On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true

This means we can specify the onblur value as a run time  
expression.

Regards,
Janarthan S
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function

Scirptlets will not work within a html struts tag. If you want to
use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is
configured)
to

Despite my gratitude for your insights into this, may I be as bold  
as
to ask "Are you absolutely sure?" ,because I'd say perhaps with  
less
degree of certainty than your unambiguous statement communicates,
that
"scriptlets work in html struts tags" which I'd hesitate in putting
forward in the face of such conviction.

On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to
use
scriplets use a normal html tag instead.
 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
I tried that, Im getting '<%= index.intValue()%>' in
doThis()
and not the value.
Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 
 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
This is my jsp.

indexed="true"
onblur="doThis()"/>

how to send the 'index' as input to 'doThis()'  
[javascript

Function]
 Thanks
 Subramaniam

ForwardSourceID:NTD4D2
 
-- --
-

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]

ForwardSourceID:NTA1F6
 
-- --
-

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]


---

public static properties in JSPs

2004-05-28 Thread Lesaint Sébastien
Hello all!

First message ever on a mailing list, would you believe it? :)

Anybody knows how to access a public static (final btw) variable of a bean
inside a JSP ? preferably using struts tags or EL ?


 [...any HTML code...]


Exactly, I'd like to replace to "1" in the 's test by something like
"__DeskMenuConfigBean__.CONTRACT_MODE"

Thanks

-- 
Seb'



Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
No, this is not correct, Rick.  The null pointer is for the reference to 
the Layout object in the session, which in fact is there.  When I have the 
index page check to see if the object is there, Opera does not have a 
problem on OTHER pages.  Odd?  It is as if the placement of that object in 
the session does not happen with Opera unless you check that it has 
happened.  BUT THAT IS ABSURD.  Opera has no knowledge of any of this.  RIght?

Michael
At 07:50 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I probably should have added that in my ForwardAction I convert a path 
from the ActionMapping so that users can be allocated a particular look 
and feel that they have chosen on the website.  The line that is related 
to the Opera failure is:
return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in 
the session on my index page.  This difficulty is overcome by putting 
code in to log that the Layout object has been put into the session.
That mystifies me.  Any demystification chiefs on this one?
I'm still a bit confused. I'm guessing the NPE is coming from not being 
able to find the forward created by the layout1.layout + "_" + path 
section? Setting it up like:

String forwardName = layout1.layout + "_" + path;
log.debug( forwardname );
return new ActionForward( forwardName );
I'd be curious if that forwardName looks the same under all situations? 
Are you sure you are following the exact same steps for each browser after 
bouning the server? In otherwords, maybe you aren't getting the NPE on 
netscape/IE because you are having layout1.layout set into Session scope 
at some other point that you aren't doing when testing with Opera? Using 
Session vars for this seems a bit odd anyway. Could you avoid using 
layout1.layout as Session attribute?

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



RE: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
I am not sure why this would be affected.  I put a value in the session 
myself.  Opera should not have to know anything about this, right?  I am 
mystified by this, since it seems that Opera should be unaffected by the 
situation and the problem is intermittant.

Michael
At 07:54 AM 5/28/2004, Slattery, Tim - BLS wrote:
> I am not spawning a new window, Rick, but it is a session
> variable problem as explained in prior emails.
Sessions are kept track of by a cookie. Is it possible that your Opera
browser has been configured to not send or accept cookies?
--
Tim Slattery
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Michael McGrady
No, mine was the only sensible answer.  LOL  ///;-)  Heh, the guy just made 
a mistake.  Leave the poor bugger some dignity.  Someday he is going to 
know a lot more and be of help to us all, in the Xtreme view of 
things.  LOL  I love giving Mark advice because he is such a sweetheart as 
a rule and rarely provides one the opportunity to be all puffy.  LOL

Michael
At 06:27 AM 5/28/2004, Mark Lowe wrote:
But then again, the only sensible answer on this thread was martin's.

On 28 May 2004, at 15:25, Mark Lowe wrote:
Interesting.. Didn't work as i originally predicted..
But as you said this puppy did..
" />
On 28 May 2004, at 14:38, David Gagnon wrote:
Hi
If I remembrer correctly
1) Use: 
2) For the original example do it this way:

When using <%= %> you need to put everything in it.
Hope it help .. hope I'm right :-)
Ciao
/David

-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED]
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function
I've just done the following in a struts html:text tag
" />
This is using the 1.1 release version of struts.. On TC5 and with el
enabled on the page to boot.
The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like to
go up against such a confident statement, but I fear I'm right.
On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true

This means we can specify the onblur value as a run time expression.
Regards,
Janarthan S
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function

Scirptlets will not work within a html struts tag. If you want to
use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is
configured)
to

Despite my gratitude for your insights into this, may I be as bold as
to ask "Are you absolutely sure?" ,because I'd say perhaps with less
degree of certainty than your unambiguous statement communicates,
that
"scriptlets work in html struts tags" which I'd hesitate in putting
forward in the face of such conviction.
On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to
use
scriplets use a normal html tag instead.
 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
I tried that, Im getting '<%= index.intValue()%>' in
doThis()
and not the value.
Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 
 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
This is my jsp.

indexed="true"
onblur="doThis()"/>

how to send the 'index' as input to 'doThis()' [javascript
Function]
 Thanks
 Subramaniam

ForwardSourceID:NTD4D2
-- --
-

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]
ForwardSourceID:NTA1F6
-- --
-

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

RE : how to send the 'index' to javascript function

2004-05-28 Thread subramaniam . o

Hi,

        Thanks
David. It Works

Subramaniam






"David Gagnon"
<[EMAIL PROTECTED]> 
05/28/2004 06:08 PM




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





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


cc



Subject
RE : how to send the 'index'
to _javascript_ function








Hi 

If I remembrer correctly

1) Use:   
2) For the original example do it this way:
                
 
                
                 />
                
                 When
using <%= %> you need to put everything in it.

Hope it help .. hope I'm right :-)

Ciao
/David



-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED] 
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to _javascript_ function

I've just done the following in a struts html:text tag

" />

This is using the 1.1 release version of struts.. On TC5 and with el  
enabled on the page to boot.

The page rendered as I predicted.

Perhaps just a freak accident, and as I said before I wouldn't like to
 
go up against such a confident statement, but I fear I'm right.

On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:

> Hey Mark,
> I am sure you r wrong.
> If u check the struts-html.tld for 'text' u find -
> 
>    onblur
>    false
>     true
> 
>
> This means we can specify the onblur value as a run time _expression_.
>
> Regards,
> Janarthan S
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 28, 2004 3:07 PM
> To: Struts Users Mailing List
> Subject: Re: how to send the 'index' to _javascript_ function
>
>
>> Scirptlets will not work within a html struts tag. If you want
to use
>> scriplets use a normal html tag instead.
>
> Thats the first I ever heard that.. Thanks for the tip Brati.
>
> So you're saying that
>
> " />
>
> wouldn't render (assuming the form and with the property foo is
> configured)
> to
> 
>
> Despite my gratitude for your insights into this, may I be as bold
as
> to ask "Are you absolutely sure?" ,because I'd say perhaps
with less
> degree of certainty than your unambiguous statement communicates,
that
> "scriptlets work in html struts tags" which I'd hesitate
in putting
> forward in the face of such conviction.
>
>
> On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
>
>>
>> Scirptlets will not work within a html struts tag. If you want
to use
>> scriplets use a normal html tag instead.
>>
>>  Brati Sankar Ghosh
>>  Tata Consultancy Services
>>  Mailto: [EMAIL PROTECTED]
>>  Website: http://www.tcs.com
>>
>>
>>
>>
>> Mark Lowe <[EMAIL PROTECTED]>
>>
>> 05/28/2004 02:47 PM
>>
>>
>> Please respond to
>>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>
>>
>>
>> To
>> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>
>> cc
>>
>> Subject
>> Re: how to send the 'index' to _javascript_ function
>>
>>
>>
>>
>>
>>
>>
>> What happens if you try this in your page?
>>
>>  <%= "JSP Works!!!" %>
>>
>>
>>  On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
>>
>>>
>>> Hi Janarthanan,
>>>
>>>         I tried that, Im getting '<%=
index.intValue()%>' in
>> doThis()  
>>> and not the value.
>>>
>>> Regards
>>>  Subramaniam
>>>
>>>
>>>
>>>
>>>
>>> "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
>>>
>>> 05/28/2004 02:12 PM
>>>
>>>
>>> Please respond to
>>>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>>
>>>
>>>
>>> To
>>> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>>
>>> cc
>>>
>>> Subject
>>> RE: how to send the 'index' to _javascript_ function
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> try this -
>>>  
>>>  index.intValue() %>')"/>
>>>
>>>  Regards,
>>>  Janarthan S
>>>
>>>  -Original Message-
>>>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>>  Sent: Friday, May 28, 2004 9:55 AM
>>>  To: Struts Users Mailing List
>>>  Subject: how to send the 'index' to _javascript_ function
>>>
>>>
>>>
>>>  Hi,
>>>         This is my jsp.
>>>         
>>>                 
>> indexed="true"  
>>> >
>>>         
>>>         
>>>         how to send the 'index' as
input to 'doThis()' [_javascript_  
>>> Function]
>>>
>>>  Thanks
>>>  Subramaniam
>>>
>>>
>>>
>>> ForwardSourceID:NTD4D2    
>>>
>> 

>> -
>>> 
>>> 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]
>>
>>
>> ForwardSourceID:NTA1F6    
>> 

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

Getting nested table information from the database to the JSP using ROWSETDYNACLASS

2004-05-28 Thread milind.2.bhagwat
All,

I need to get some information from the database and pass it up to the JSP. And 
example of the database schema would be..
I need to get back all orders for a customer. Each order has multiple order lines and 
multiple order notes. I can create new collection of OrderVO(value objs) and the 
OrderVO contains a collection of OrderLineVo and OrderNoteVO. However This means I an 
copying data by value when I create these value objects. 

I was thinking of using the RowsetDynaClass. Mu question is, How can I use the 
RowsetDynaclass to get this information back to the JSP.

Thanks,

Milind  

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



tag

2004-05-28 Thread Kathy Zhou
I hope I would not send this msg twice this time. :)

I have a question on  tag.

Is there any way I could use something like <% break; %> within 
loop? The reason I am asking is that I am using  to find a value. Once
the value has been found,  loop do not have to be continued,. the
process moves on to the next tag. I am using this on a group of checkboxes.
It defines which checkbox has been checked after submitting.

I checked the JSTL tag and did not find the one I could use within
 tag. I may miss something here. Any ideas?

Thank you.

Kathy



tag

2004-05-28 Thread Kathy Zhou
I hope I would not send this msg twice this time. :)

I have a question on  tag.

Is there any way I could use something like <% break; %> within  
loop? The reason I am asking is that I am using  to find a value. 
Once the value has been found,  loop do not have to be 
continued,. the process moves on to the next tag. I am using this on a 
group of checkboxes. It defines which checkbox has been checked after 
submitting.

I checked the JSTL tag and did not find the one I could use within 
 tag. I may miss something here. Any ideas?

Thank you.

Kathy



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



Re: Help me, Set data in filed text - reply

2004-05-28 Thread croffman
If you want to set in the JSP, you can do as follows:

If you are using DynavalidatorForm, you can set the values in the form-beans
properties.
If you want to set the values in the action class, then get the values using
set method of DynaValidatorForm.

Hope this helps.
Croffman



- Original Message - 
From: "Kathy Zhou" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, May 28, 2004 9:30 AM
Subject: RE: Help me, Set data in filed text - reply


> You can prepopulate the data in your ActionForm.
>
> Kathy
>
> > -Original Message-
> > From: Teixeira, Jorge (Informaker) [SMTP:[EMAIL PROTECTED]
> > Sent: Friday, May 28, 2004 10:13 AM
> > To: 'Struts Users Mailing List'
> > Subject: Help me, Set data in filed text
> > Importance: High
> >
> > Good morning,
> >
> > I want set the values in on fields  > I want do one page to alter data, but I need first load data in fields
of
> > this page.
> > I have one Action.do and next go to (by forward) one page where show
data
> > to
> > user change.
> >
> > What i must do to do such?
> >
> > tks
> >
> > -
> > 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] Struts Users BOF in London in Monday 7th June 2004

2004-05-28 Thread Pilgrim, Peter
UK Struts Users

We have more people (including myself) who are meeting for informal
drinks on Monday 7th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub) 
in central London, the West End.

Peter Pilgrim / CSFB
Tim Penhey 
Niall Pemberton
Mike Raath / Bar Cap
Charles Cordingley

If there's anyone else interested please contact me off-list.

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



RE: Problems with Opera and Struts?

2004-05-28 Thread Slattery, Tim - BLS
> I am not spawning a new window, Rick, but it is a session 
> variable problem as explained in prior emails.  

Sessions are kept track of by a cookie. Is it possible that your Opera
browser has been configured to not send or accept cookies?

--
Tim Slattery
[EMAIL PROTECTED]


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



Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Rick Reumann
Michael McGrady wrote:
I probably should have added that in my ForwardAction I convert a path 
from the ActionMapping so that users can be allocated a particular look 
and feel that they have chosen on the website.  The line that is related 
to the Opera failure is:

return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in 
the session on my index page.  This difficulty is overcome by putting 
code in to log that the Layout object has been put into the session.  
That mystifies me.  Any demystification chiefs on this one?
I'm still a bit confused. I'm guessing the NPE is coming from not being 
able to find the forward created by the layout1.layout + "_" + path 
section? Setting it up like:

String forwardName = layout1.layout + "_" + path;
log.debug( forwardname );
return new ActionForward( forwardName );
I'd be curious if that forwardName looks the same under all situations? 
Are you sure you are following the exact same steps for each browser 
after bouning the server? In otherwords, maybe you aren't getting the 
NPE on netscape/IE because you are having layout1.layout set into 
Session scope at some other point that you aren't doing when testing 
with Opera? Using Session vars for this seems a bit odd anyway. Could 
you avoid using layout1.layout as Session attribute?

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


Re: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
I am not spawning a new window, Rick, but it is a session variable problem 
as explained in prior emails.  It also is an intermittant 
problem.  Sometimes it happens, and sometimes it does not.  There is no 
apparent reason for the changes.  So, hacks to fix it are regarded by me as 
equally suspicious.  The intermittant problem does not occur with IE and 
Netscape.

Michael McGrady
At 07:03 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera fails.
Can you provide any more information? I highly doubt this is an Opera 
problem. I use Opera every day for my development and haven't run into a 
single "J2EE" problem ( javascript/DHTML/css challenges.. sure .. but 
that's not Opera's fault :)

Are you spawning a new window maybe and trying to use a Session variable? 
Different browsers handle the Session differently in child windows.

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



Sending email twice.

2004-05-28 Thread Kathy Zhou
Sorry, guys, I donot know why my emails always were sent twice each time. I 
am going to check my account setting in the mailing list. Or the admin of 
the list could help me on this.

Kathy

-Original Message-
From:   Kathy Zhou [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 28, 2004 10:30 AM
To: 'Struts Users Mailing List'
Subject:RE: Help me, Set data in filed text - reply

You can prepopulate the data in your ActionForm.

Kathy

-Original Message-
From:   Teixeira, Jorge (Informaker) [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 28, 2004 10:13 AM
To: 'Struts Users Mailing List'
Subject:Help me, Set data in filed text
Importance: High

Good morning,

I want set the values in on fields 

RE: Help me, Set data in filed text - reply

2004-05-28 Thread Kathy Zhou
You can prepopulate the data in your ActionForm.

Kathy

-Original Message-
From:   Teixeira, Jorge (Informaker) [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 28, 2004 10:13 AM
To: 'Struts Users Mailing List'
Subject:Help me, Set data in filed text
Importance: High

Good morning,

I want set the values in on fields 

RE: Help me, Set data in filed text - reply

2004-05-28 Thread Kathy Zhou
You can prepopulate the data in your ActionForm.

Kathy

> -Original Message-
> From: Teixeira, Jorge (Informaker) [SMTP:[EMAIL PROTECTED]
> Sent: Friday, May 28, 2004 10:13 AM
> To:   'Struts Users Mailing List'
> Subject:  Help me, Set data in filed text
> Importance:   High
> 
> Good morning,
> 
> I want set the values in on fields  I want do one page to alter data, but I need first load data in fields of
> this page.
> I have one Action.do and next go to (by forward) one page where show data
> to
> user change.
> 
> What i must do to do such?
> 
> tks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
Hi, Rick,
I am an Opera fan myself, but this problem ONLY occurs with Opera and not 
the other browsers.  I have posted some more details on this.  Take a look 
at my next posting and get the more mysterious details.  What do you think 
is up?

Michael McGrady
At 07:03 AM 5/28/2004, Rick Reumann wrote:
Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera fails.
Can you provide any more information? I highly doubt this is an Opera 
problem. I use Opera every day for my development and haven't run into a 
single "J2EE" problem ( javascript/DHTML/css challenges.. sure .. but 
that's not Opera's fault :)

Are you spawning a new window maybe and trying to use a Session variable? 
Different browsers handle the Session differently in child windows.

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



Re: Problems with Opera, Struts and Session Management?

2004-05-28 Thread Michael McGrady
I probably should have added that in my ForwardAction I convert a path from 
the ActionMapping so that users can be allocated a particular look and feel 
that they have chosen on the website.  The line that is related to the 
Opera failure is:

return new ActionForward(layout1.layout + "_" + path);
With Opera, the Layout object referenced as layout1 here is not set in the 
session on my index page.  This difficulty is overcome by putting code in 
to log that the Layout object has been put into the session.  That 
mystifies me.  Any demystification chiefs on this one?

Michael McGrady

At 06:52 AM 5/28/2004, Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera 
fails.  Here is the readout I get:

javax.servlet.ServletException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
com.crackwillow.struts.action.ForwardAction.execute(ForwardAction.java:30)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

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



Help me, Set data in filed text

2004-05-28 Thread Teixeira, Jorge (Informaker)
Good morning,

I want set the values in on fields 

Re: Problems with Opera and Struts?

2004-05-28 Thread Rick Reumann
Michael McGrady wrote:
I have no difficulty running my site with Netscape or IE but Opera 
fails.  
Can you provide any more information? I highly doubt this is an Opera 
problem. I use Opera every day for my development and haven't run into a 
single "J2EE" problem ( javascript/DHTML/css challenges.. sure .. but 
that's not Opera's fault :)

Are you spawning a new window maybe and trying to use a Session 
variable? Different browsers handle the Session differently in child 
windows.

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


Problems with Opera and Struts?

2004-05-28 Thread Michael McGrady
I have no difficulty running my site with Netscape or IE but Opera 
fails.  Here is the readout I get:

javax.servlet.ServletException
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.NullPointerException
com.crackwillow.struts.action.ForwardAction.execute(ForwardAction.java:30)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

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


Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
But then again, the only sensible answer on this thread was martin's.

On 28 May 2004, at 15:25, Mark Lowe wrote:
Interesting.. Didn't work as i originally predicted..
But as you said this puppy did..
" />

On 28 May 2004, at 14:38, David Gagnon wrote:
Hi
If I remembrer correctly
1) Use: 
2) For the original example do it this way:
	 
		onblur='<%="doThis(" + index.intValue() + ")" %>'/>
		When using <%= %> you need to put everything in it.

Hope it help .. hope I'm right :-)
Ciao
/David

-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED]
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function
I've just done the following in a struts html:text tag
" />
This is using the 1.1 release version of struts.. On TC5 and with el
enabled on the page to boot.
The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like to
go up against such a confident statement, but I fear I'm right.
On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true

This means we can specify the onblur value as a run time expression.
Regards,
Janarthan S
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function

Scirptlets will not work within a html struts tag. If you want to  
use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is
configured)
to

Despite my gratitude for your insights into this, may I be as bold as
to ask "Are you absolutely sure?" ,because I'd say perhaps with less
degree of certainty than your unambiguous statement communicates,  
that
"scriptlets work in html struts tags" which I'd hesitate in putting
forward in the face of such conviction.

On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to  
use
scriplets use a normal html tag instead.

 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
        I tried that, Im getting '<%= index.intValue()%>' in
doThis()  
and not the value.
Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 
 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
        This is my jsp.
        
                indexed="true"  
onblur="doThis()"/>
        
        
        how to send the 'index' as input to 'doThis()' [javascript  
 
Function]

 Thanks
 Subramaniam

ForwardSourceID:NTD4D2    
-- 
--
-

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]

ForwardSourceID:NTA1F6    
-- 
--
-

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]


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


-
To unsubscribe, e-ma

Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
Interesting.. Didn't work as i originally predicted..
But as you said this puppy did..
"  
/>

On 28 May 2004, at 14:38, David Gagnon wrote:
Hi
If I remembrer correctly
1) Use: 
2) For the original example do it this way:
	 
		onblur='<%="doThis(" + index.intValue() + ")" %>'/>
		When using <%= %> you need to put everything in it.

Hope it help .. hope I'm right :-)
Ciao
/David

-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED]
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function
I've just done the following in a struts html:text tag
" />
This is using the 1.1 release version of struts.. On TC5 and with el
enabled on the page to boot.
The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like to
go up against such a confident statement, but I fear I'm right.
On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true

This means we can specify the onblur value as a run time expression.
Regards,
Janarthan S
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function

Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is
configured)
to

Despite my gratitude for your insights into this, may I be as bold as
to ask "Are you absolutely sure?" ,because I'd say perhaps with less
degree of certainty than your unambiguous statement communicates, that
"scriptlets work in html struts tags" which I'd hesitate in putting
forward in the face of such conviction.
On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
        I tried that, Im getting '<%= index.intValue()%>' in
doThis()  
and not the value.
Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 
 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
        This is my jsp.
        
                indexed="true"  
onblur="doThis()"/>
        
        
        how to send the 'index' as input to 'doThis()' [javascript  
Function]
 Thanks
 Subramaniam

ForwardSourceID:NTD4D2    
--- 
-
-

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]

ForwardSourceID:NTA1F6    
--- 
-
-

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]


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


Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
Which bit?
The no scriptlets in jsp tags? or vice versa..?

On 28 May 2004, at 15:04, Michael McGrady wrote:
This is not true.
At 02:36 AM 5/28/2004, Mark Lowe wrote:
Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" /> wouldn't render (assuming the form and with the property foo is 
configured) to Despite my gratitude for your insights into this, may 
I be as bold as to ask "Are you absolutely sure?" ,because I'd say 
perhaps with less degree of certainty than your unambiguous statement 
communicates, that "scriptlets work in html struts tags" which I'd 
hesitate in putting forward in the face of such conviction. On 28 May 
2004, at 11:25, [EMAIL PROTECTED] wrote: > > Scirptlets will 
not work within a html struts tag. If you want to use > scriplets use 
a normal html tag instead. > > Brati Sankar Ghosh > Tata Consultancy 
Services > Mailto: [EMAIL PROTECTED] > Website: 
http://www.tcs.com > > > > > Mark Lowe > > 05/28/2004 02:47 PM > > > 
Please respond to > "Struts Users Mailing List" > > > > To > "Struts 
Users Mailing List" > > cc > > Subject > Re: how to send the 'index' 
to javascript function > > > > > > > > What happens if you try this 
in your page? > > <%= "JSP Works!!!" %> > > > On 28 May 2004, at 
11:05, [EMAIL PROTECTED] wrote: > > > > > Hi Janarthanan, > > > > 
I tried that, Im getting '<%= index.intValue()%>' in > 
doThis()   > > and not the value. > > > > Regards > >  Subramaniam > 
> > > > > > > > > > > "Janarthan Sathiamurthy" > > > > 05/28/2004 
02:12 PM > > > > > > Please respond to > >  "Struts Users Mailing 
List" > > > > > > > > To > > "Struts Users Mailing List" > > > > cc > 
> > > Subject > > RE: how to send the 'index' to javascript function 
> > > > > > > > > > > > > > > > try this - > >   > 
onblur="doThis('<%= index.intValue() %>')"/> > > > >  Regards, > >  
Janarthan S > > > >  -Original Message- > >  From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > >  Sent: 
Friday, May 28, 2004 9:55 AM > >  To: Struts Users Mailing List > >  
Subject: how to send the 'index' to javascript function > > > > > > > 
>  Hi, > > This is my jsp. > >  > >  
indexed="true"   > > onblur="doThis()"/> > >  > >  > 
> how to send the 'index' as input to 'doThis()' [javascript  
 > > Function] > > > >  Thanks > >  Subramaniam > > > > > > > > 
ForwardSourceID:NTD4D2 > > > 
- > > 
 > > 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] > > > 
ForwardSourceID:NTA1F6 > 
- > 
 > 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: Undeliverable Message

2004-05-28 Thread Henrique VIECILI
Ok, then the list moderator could take some attitude to avoid this, ok?!

Henrique Viecili
  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: Struts Users Mailing List 
  Sent: Friday, May 28, 2004 9:30 AM
  Subject: Re: Undeliverable Message


  Yes so do I.





  "Henrique VIECILI" <[EMAIL PROTECTED]>
  05/28/2004 09:00 AM
  Please respond to "Struts Users Mailing List"




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

  Subject:Undeliverable Message


  Hi all,
   
  every time I send a message to the [EMAIL PROTECTED] I receive the message bellow. 
I´d like to know if you guys are receiving 
  this message too.
   
  Regards,
   
  Henrique Viecili
   
   
  - Original Message - 
  From: System Administrator 
  To: viecili 
  Sent: Friday, May 28, 2004 8:53 AM
  Subject: Undeliverable:Re:  only with bean?

  Your message

To:  Struts Users Mailing List
Subject: Re:  only with bean?
Sent:Fri, 28 May 2004 08:46:29 -0300

  did not reach the following recipient(s):

  [EMAIL PROTECTED] on Fri, 28 May 2004 08:55:14 -0300
  The e-mail account does not exist at the organization this message
  was sent to.  Check the e-mail address, or contact the recipient
  directly to find out the correct address.
  

  - Message from "viecili" <[EMAIL PROTECTED]> on Fri, 28 May 2004 
  08:46:29 -0300 -
  To:
  "Struts Users Mailing List" <[EMAIL PROTECTED]>
  Subject:
  Re:  only with bean?
  Hi Samuel,

  let´s suppose in your form you have the method getArrayListValues() 
  returning the ArrayList containing the values and the method 
  getArrayListLabels() returning the ArrayList containing the values for 
  each option you wanna render. Then:

  
  
   
  
  
  

  I think it will work, but you can try this too: (I´m not sure it works)

  struts-config.xml
  

  in MyForm there is a method (getValuesAndLabels()) returning a collection 
  containing beans holding the label (getLabel()) and value (getValue()) for 
  each option. Then:

  , or maybe:
  

  Just thoughts,

  Henrique Viecili



- Original Message -
From: Samuel Rochas
To: Struts Users Mailing List
Sent: Thursday, May 27, 2004 6:58 PM
Subject:  only with bean?


Hello there,

I am able to create a html select with struts when the collection to
display in the options tag is a collection stored in the session or
request and to use the selected value for my form. Fine.

But now I have a Form representing a bean. This form has an attribute of
type ArrayList. I'd like the select/options tag to show me the content
of the ArrayList for the actual Form property value. I want to use the
form attribute and not create a collection to store in a scope.

My JSP looks like:






My form DataForm has the attributes identification, selectedItems and
allItems.

But it is not working. Anybody a hint?

Sincerly
Samuel

---  andinasoft SA - Software y Consulting  ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18  Cel. +593 9 946 4046
-  http://www.andinasoft.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: how to send the 'index' to javascript function

2004-05-28 Thread Michael McGrady
This is not true.
At 02:36 AM 5/28/2004, Mark Lowe wrote:
Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" /> wouldn't render (assuming the form and with the property foo is 
configured) to Despite my gratitude for your insights into this, may I be 
as bold as to ask "Are you absolutely sure?" ,because I'd say perhaps with 
less degree of certainty than your unambiguous statement communicates, 
that "scriptlets work in html struts tags" which I'd hesitate in putting 
forward in the face of such conviction. On 28 May 2004, at 11:25, 
[EMAIL PROTECTED] wrote: > > Scirptlets will not work within a 
html struts tag. If you want to use > scriplets use a normal html tag 
instead. > > Brati Sankar Ghosh > Tata Consultancy Services > Mailto: 
[EMAIL PROTECTED] > Website: http://www.tcs.com > > > > > Mark 
Lowe > > 05/28/2004 02:47 PM > > > Please respond to > "Struts Users 
Mailing List" > > > > To > "Struts Users Mailing List" > > cc > > 
Subject > Re: how to send the 'index' to javascript 
function > > > > > > > > What happens if you try this in your page? > > 
<%= "JSP Works!!!" %> > > > On 28 May 2004, at 11:05, 
[EMAIL PROTECTED] wrote: > > > > > Hi Janarthanan, > > > > I 
tried that, Im getting '<%= index.intValue()%>' in > doThis()   > > and 
not the value. > > > > Regards > >  Subramaniam > > > > > > > > > > > > 
"Janarthan Sathiamurthy" > > > > 05/28/2004 02:12 PM > > > > > > Please 
respond to > >  "Struts Users Mailing List" > > > > > > > > To > > "Struts 
Users Mailing List" > > > > cc > > > > Subject > > RE: how to send the 
'index' to javascript function > > > > > > > > > > > > > > > > try this 
- > >   > onblur="doThis('<%= index.intValue() 
%>')"/> > > > >  Regards, > >  Janarthan S > > > >  -Original 
Message- > >  From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] > >  Sent: Friday, May 28, 2004 9:55 
AM > >  To: Struts Users Mailing List > >  Subject: how to send the 
'index' to javascript function > > > > > > > >  Hi, > > This is my 
jsp. > >  > >  indexed="true"   > > 
onblur="doThis()"/> > >  > >  > > how to send the 
'index' as input to 'doThis()' [javascript   > > 
Function] > > > >  Thanks > >  Subramaniam > > > > > > > > 
ForwardSourceID:NTD4D2 > > > 
- > > 
 > > 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] > > > 
ForwardSourceID:NTA1F6 > 
- >  > 
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: What was the name of this application? [was] Re: Are there any IDE's that understand Struts tags?

2004-05-28 Thread Rick Reumann
bOOyah wrote:
Actually there was a struts application/IDE  that was for demo that 
was quite impressive but now I forgot the name. 

Was it NitroX from M7?  http://www.m7.com/
Yes! That was the one thanks. That's the only one that I've found that 
will actually complete the difficult/annoying part of tag completion 
(property fields).

Thanks, I might check it out.
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: attribute name for forward

2004-05-28 Thread Paul McCulloch
The simplest solution to this is to use a constant (or the closest Java can
manage) for the attribute name.

Paul

> -Original Message-
> From: Mark Stacey [mailto:[EMAIL PROTECTED]
> Sent: 28 May 2004 13:45
> To: [EMAIL PROTECTED]
> Subject: attribute name for forward
> 
> 
> Hi,
> 
> I have a chain of actions that require the first action to 
> place a bean
> in the session for a second action to retrieve. Is it 
> possible to figure
> out in the first action the name of the attribute the second 
> action will
> search for its bean under?
> 
> for instance, instead of saying:
> 
> session.setAttribute("userForm", userForm);
> return mapping.findForward("success");
> 
> and then in the second action: 
> 
> session.getAttribute(mapping.getAttributeName())
> 
> Is there something similar to the following I can say?
> 
> session.setAttribute(mapping.findForward("success").get().
> getAttributeName(),
> userForm);
> 
> this way if the attribute of the second action changes, I 
> won't have to
> change the code for the first action
> 
> thanks
> 
> Mark
> Mark Stacey
> 
> I'm using Vodafone Mail - to get your free mobile email 
> account go to http://www.vodafone.ie
> Use of Vodafone Mail is subject to Terms and Conditions  
http://www.vodafone.ie/terms/website




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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**


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



attribute name for forward

2004-05-28 Thread Mark Stacey
Hi,

I have a chain of actions that require the first action to place a bean
in the session for a second action to retrieve. Is it possible to figure
out in the first action the name of the attribute the second action will
search for its bean under?

for instance, instead of saying:

session.setAttribute("userForm", userForm);
return mapping.findForward("success");

and then in the second action:

session.getAttribute(mapping.getAttributeName())

Is there something similar to the following I can say?

session.setAttribute(mapping.findForward("success").get().getAttributeName(),
userForm);

this way if the attribute of the second action changes, I won't have to
change the code for the first action

thanks

Mark
Mark Stacey

I'm using Vodafone Mail - to get your free mobile email account go to 
http://www.vodafone.ie
Use of Vodafone Mail is subject to Terms and Conditions  
http://www.vodafone.ie/terms/website




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



RE : how to send the 'index' to javascript function

2004-05-28 Thread David Gagnon
Hi 

If I remembrer correctly

1) Use:   
2) For the original example do it this way:
 
When using <%= %> you need to put everything in it.

Hope it help .. hope I'm right :-)

Ciao
/David



-Message d'origine-
De : Mark Lowe [mailto:[EMAIL PROTECTED] 
Envoyé : May 28, 2004 05:54
À : Struts Users Mailing List
Objet : Re: how to send the 'index' to javascript function

I've just done the following in a struts html:text tag

" />

This is using the 1.1 release version of struts.. On TC5 and with el  
enabled on the page to boot.

The page rendered as I predicted.

Perhaps just a freak accident, and as I said before I wouldn't like to  
go up against such a confident statement, but I fear I'm right.

On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:

> Hey Mark,
> I am sure you r wrong.
> If u check the struts-html.tld for 'text' u find -
> 
>onblur
>false
> true
> 
>
> This means we can specify the onblur value as a run time expression.
>
> Regards,
> Janarthan S
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 28, 2004 3:07 PM
> To: Struts Users Mailing List
> Subject: Re: how to send the 'index' to javascript function
>
>
>> Scirptlets will not work within a html struts tag. If you want to use
>> scriplets use a normal html tag instead.
>
> Thats the first I ever heard that.. Thanks for the tip Brati.
>
> So you're saying that
>
> " />
>
> wouldn't render (assuming the form and with the property foo is
> configured)
> to
> 
>
> Despite my gratitude for your insights into this, may I be as bold as
> to ask "Are you absolutely sure?" ,because I'd say perhaps with less
> degree of certainty than your unambiguous statement communicates, that
> "scriptlets work in html struts tags" which I'd hesitate in putting
> forward in the face of such conviction.
>
>
> On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
>
>>
>> Scirptlets will not work within a html struts tag. If you want to use
>> scriplets use a normal html tag instead.
>>
>>  Brati Sankar Ghosh
>>  Tata Consultancy Services
>>  Mailto: [EMAIL PROTECTED]
>>  Website: http://www.tcs.com
>>
>>
>>
>>
>> Mark Lowe <[EMAIL PROTECTED]>
>>
>> 05/28/2004 02:47 PM
>>
>>
>> Please respond to
>>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>
>>
>>
>> To
>> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>
>> cc
>>
>> Subject
>> Re: how to send the 'index' to javascript function
>>
>>
>>
>>
>>
>>
>>
>> What happens if you try this in your page?
>>
>>  <%= "JSP Works!!!" %>
>>
>>
>>  On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
>>
>>>
>>> Hi Janarthanan,
>>>
>>>         I tried that, Im getting '<%= index.intValue()%>' in
>> doThis()  
>>> and not the value.
>>>
>>> Regards
>>>  Subramaniam
>>>
>>>
>>>
>>>
>>>
>>> "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
>>>
>>> 05/28/2004 02:12 PM
>>>
>>>
>>> Please respond to
>>>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>>
>>>
>>>
>>> To
>>> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>>>
>>> cc
>>>
>>> Subject
>>> RE: how to send the 'index' to javascript function
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> try this -
>>>  >> onblur="doThis('<%= index.intValue() %>')"/>
>>>
>>>  Regards,
>>>  Janarthan S
>>>
>>>  -Original Message-
>>>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>>  Sent: Friday, May 28, 2004 9:55 AM
>>>  To: Struts Users Mailing List
>>>  Subject: how to send the 'index' to javascript function
>>>
>>>
>>>
>>>  Hi,
>>>         This is my jsp.
>>>         
>>>                 > indexed="true"  
>>> onblur="doThis()"/>
>>>         
>>>         
>>>         how to send the 'index' as input to 'doThis()' [javascript  
>>> Function]
>>>
>>>  Thanks
>>>  Subramaniam
>>>
>>>
>>>
>>> ForwardSourceID:NTD4D2    
>>>
>>  
>> -
>>> 
>>> 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]
>>
>>
>> ForwardSourceID:NTA1F6    
>>  
>> -
>> 
>> 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:

Re: Undeliverable Message

2004-05-28 Thread gdeschen
Yes so do I.





"Henrique VIECILI" <[EMAIL PROTECTED]>
05/28/2004 09:00 AM
Please respond to "Struts Users Mailing List"




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

Subject:Undeliverable Message


Hi all,
 
every time I send a message to the [EMAIL PROTECTED] I receive the message bellow. I´d 
like to know if you guys are receiving 
this message too.
 
Regards,
 
Henrique Viecili
 
 
- Original Message - 
From: System Administrator 
To: viecili 
Sent: Friday, May 28, 2004 8:53 AM
Subject: Undeliverable:Re:  only with bean?

Your message

  To:  Struts Users Mailing List
  Subject: Re:  only with bean?
  Sent:Fri, 28 May 2004 08:46:29 -0300

did not reach the following recipient(s):

[EMAIL PROTECTED] on Fri, 28 May 2004 08:55:14 -0300
The e-mail account does not exist at the organization this message
was sent to.  Check the e-mail address, or contact the recipient
directly to find out the correct address.


- Message from "viecili" <[EMAIL PROTECTED]> on Fri, 28 May 2004 
08:46:29 -0300 -
To:
"Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject:
Re:  only with bean?
Hi Samuel,

let´s suppose in your form you have the method getArrayListValues() 
returning the ArrayList containing the values and the method 
getArrayListLabels() returning the ArrayList containing the values for 
each option you wanna render. Then:



 




I think it will work, but you can try this too: (I´m not sure it works)

struts-config.xml


in MyForm there is a method (getValuesAndLabels()) returning a collection 
containing beans holding the label (getLabel()) and value (getValue()) for 
each option. Then:

, or maybe:


Just thoughts,

Henrique Viecili



  - Original Message -
  From: Samuel Rochas
  To: Struts Users Mailing List
  Sent: Thursday, May 27, 2004 6:58 PM
  Subject:  only with bean?


  Hello there,

  I am able to create a html select with struts when the collection to
  display in the options tag is a collection stored in the session or
  request and to use the selected value for my form. Fine.

  But now I have a Form representing a bean. This form has an attribute of
  type ArrayList. I'd like the select/options tag to show me the content
  of the ArrayList for the actual Form property value. I want to use the
  form attribute and not create a collection to store in a scope.

  My JSP looks like:
  
  
  
  
  

  My form DataForm has the attributes identification, selectedItems and
  allItems.

  But it is not working. Anybody a hint?

  Sincerly
  Samuel

  ---  andinasoft SA - Software y Consulting  ---
  Mariano Aguilera 276 y Almagro - Quito, Ecuador
  Tel. +593 2 290 55 18  Cel. +593 9 946 4046
  -  http://www.andinasoft.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: What's best practice to determine correct jsp buffer size?

2004-05-28 Thread Kris Schneider
Couple of comments that don't directly answer the question ;-). The buffers for
ServletResponse and JspWriter are independent entities. So, even if you set
your JSP page to be unbuffered:

<%@ page buffer="none" %>

it won't change the buffer size of your response. Also, the spec language for
setting the size of the buffers is, "at least as large as the size requested"
and "not less than that specified". So, in theory, these two directives:

<%@ page buffer="1kb" %>
<%@ page buffer="100kb" %>

could result in the same size buffer. I don't have any data on how different
containers behave in practice.

Quoting Mick Wever <[EMAIL PROTECTED]>:

> Read in a couple of places setting the jsp buffer size helps performance..
> atleast you can tweak between performance and memory usage...
> 
> 
> Anyone know how to determine what is the best size for setting
> the jsp buffer size [response.setBufferSize(..)] ?
> 
> 
> I'm using tiles, and when I use:
> 
> LOG.info("Buffer size: "+response.getBufferSize());
> 
> in a filter after struts action has performed,
> I always get "40960". Seems a little big for me, and I thought the value
> would change for each different page?
> 
> Mick
> 
> 
> -- 
> -- 
> "One of the easiest ways to avoid many common problems is to stop using
> Microsoft software." Mark Ward, BBC
>  --- http://www.harryspractice.com.au>Harry's Practice --- 

-- 
Kris Schneider 
D.O.Tech   

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



Undeliverable Message

2004-05-28 Thread Henrique VIECILI



Hi all,
 
every time I send a message to the [EMAIL PROTECTED] I receive the message bellow. I´d like 
to know if you guys are receiving this message too.
 
Regards,
 
Henrique Viecili
 
 
- Original Message - 
From: System 
Administrator 
To: viecili 
Sent: Friday, May 28, 2004 8:53 AM
Subject: Undeliverable:Re:  only with 
bean?
Your message  To:  
Struts Users Mailing List  Subject: Re:  only with 
bean?  Sent:    Fri, 28 May 2004 08:46:29 
-0300did not reach the following recipient(s):[EMAIL PROTECTED] on 
Fri, 28 May 2004 08:55:14 -0300    The e-mail account does 
not exist at the organization this messagewas sent to.  Check the 
e-mail address, or contact the recipientdirectly to find out the correct 
address.    
--- Begin Message ---
Title: Re:  only with bean?






Hi Samuel,

let´s suppose in your form you have the method getArrayListValues() returning the ArrayList containing the values and the method getArrayListLabels() returning the ArrayList containing the values for each option you wanna render. Then:



 




I think it will work, but you can try this too: (I´m not sure it works)

struts-config.xml


in MyForm there is a method (getValuesAndLabels()) returning a collection containing beans holding the label (getLabel()) and value (getValue()) for each option. Then:

, or maybe:


Just thoughts,

Henrique Viecili



  - Original Message -
  From: Samuel Rochas
  To: Struts Users Mailing List
  Sent: Thursday, May 27, 2004 6:58 PM
  Subject:  only with bean?


  Hello there,

  I am able to create a html select with struts when the collection to
  display in the options tag is a collection stored in the session or
  request and to use the selected value for my form. Fine.

  But now I have a Form representing a bean. This form has an attribute of
  type ArrayList. I'd like the select/options tag to show me the content
  of the ArrayList for the actual Form property value. I want to use the
  form attribute and not create a collection to store in a scope.

  My JSP looks like:
  
  
  
  
  property="id" labelProperty="description"/>
  

  My form DataForm has the attributes identification, selectedItems and
  allItems.

  But it is not working. Anybody a hint?

  Sincerly
  Samuel

  ---  andinasoft SA - Software y Consulting  ---
  Mariano Aguilera 276 y Almagro - Quito, Ecuador
  Tel. +593 2 290 55 18  Cel. +593 9 946 4046
  -  http://www.andinasoft.com  -


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






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

Re: how to send the 'index' to javascript function

2004-05-28 Thread Martin Gainty
The onBlur event handler uses the following Event object properties.

type - this property indicates the type of event. 
target - this property indicates the object to which the event was originally sent.

In other words once inside doThis(type, target)

then...
function doThis(type, target)
{
for (var i=0;i 
   
   
  
  how to send the 'index' as input to 'doThis()' [javascript Function] 

  Thanks
  Subramaniam




--


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

What's best practice to determine correct jsp buffer size?

2004-05-28 Thread Mick Wever
Read in a couple of places setting the jsp buffer size helps performance..
atleast you can tweak between performance and memory usage...


Anyone know how to determine what is the best size for setting
the jsp buffer size [response.setBufferSize(..)] ?


I'm using tiles, and when I use:

LOG.info("Buffer size: "+response.getBufferSize());

in a filter after struts action has performed,
I always get "40960". Seems a little big for me, and I thought the value
would change for each different page?

Mick


-- 
-- 
"One of the easiest ways to avoid many common problems is to stop using Microsoft 
software." Mark Ward, BBC
 --- http://www.harryspractice.com.au>Harry's Practice --- 



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



Re: only with bean?

2004-05-28 Thread Henrique VIECILI
Hi Samuel,

let´s suppose in your form you have the method getArrayListValues() returning the 
ArrayList containing the values and the method getArrayListLabels() returning the 
ArrayList containing the values for each option you wanna render. Then:



 




I think it will work, but you can try this too: (I´m not sure it works)

struts-config.xml


in MyForm there is a method (getValuesAndLabels()) returning a collection containing 
beans holding the label (getLabel()) and value (getValue()) for each option. Then:

, or maybe:


Just thoughts,

Henrique Viecili



  - Original Message - 
  From: Samuel Rochas 
  To: Struts Users Mailing List 
  Sent: Thursday, May 27, 2004 6:58 PM
  Subject:  only with bean?


  Hello there,

  I am able to create a html select with struts when the collection to 
  display in the options tag is a collection stored in the session or 
  request and to use the selected value for my form. Fine.

  But now I have a Form representing a bean. This form has an attribute of 
  type ArrayList. I'd like the select/options tag to show me the content 
  of the ArrayList for the actual Form property value. I want to use the 
  form attribute and not create a collection to store in a scope.

  My JSP looks like:
  
  
  
  
  

  My form DataForm has the attributes identification, selectedItems and 
  allItems.

  But it is not working. Anybody a hint?

  Sincerly
  Samuel

  ---  andinasoft SA - Software y Consulting  ---
  Mariano Aguilera 276 y Almagro - Quito, Ecuador
  Tel. +593 2 290 55 18  Cel. +593 9 946 4046
  -  http://www.andinasoft.com  -


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


RE: [OT]: StatefulSessionBeans and HTTPSession

2004-05-28 Thread Robert Taylor
Why? It appears that you already have the appropriate "best practices"
solution. Are you trying to avoid using a BusinessDelegate?

robert

> -Original Message-
> From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 27, 2004 9:15 PM
> To: Struts Users Mailing List
> Subject: [OT]: StatefulSessionBeans and HTTPSession
> 
> 
> Hi All!
> 
> Just wanted to know if there is a better strategy to do this.
> 
> My current implementation:
> Struts/JSP --> BusinessDelegate --> StatefulSessionBean --> Multiple
> EntityBeans
> 
> Now, I add the BusinessDelegate to my HttpSession, effectively keeping the
> handle to my StatefulSessionBean.
> 
> Instead, I was hoping, if it were possible, to store a StatefulSessionBeanID
> in my HttpSession and recall the StatefulSessionBean using the ID from my
> EJB tier.
> 
> Let me know of your thoughts on this structure.
> 
> 
> TIA,
> 
> Kunal
> 
> 
> 
> -
> 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: Problem!! TreeView [Struts-Layout]

2004-05-28 Thread Alvaro Martinez
Are You using the Blue Shoes' solution?.
I have had to modify the solution TreeView using the event ['onChange']
Alvaro

- Original Message - 
From: "Tushar Kharbanda" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, May 28, 2004 9:50 AM
Subject: Problem!! TreeView [Struts-Layout]



I am making a dynamic tree by getting the data from some webservices and
hence populating the tree.

But I do not want to load the entire tree at one go... instead I want to
load the children only if the parent is clicked upon... i.e. clicked on the
(+) icon next to the Tree Node

Now the problem is that (+) icon next to the parent will not be shown as I
am not loading the children in the parent initially.Also I cannot load
the children by making the user click on the parent's name coz that click
has a different action which is to show the parent details in the right
frame

So I thought if I can provide 2 links at one level of a node, one for
loading children and one for showing details of parent in the right
frame but not sure if that's possible...

Is there a soln  to above prob or else is there a way by which (+) icon
can be shown without loading children and then some method call back  when
user clicks on (+)

Regards
Tushar

Yahoo! India Matrimony: Find your partner online.


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



RE: Problem!! TreeView [Struts-Layout]

2004-05-28 Thread Saurabh Bobde
Here's a thought:
Providing 2 links at one level could be equivalent to "always displaying the
+ icon along-side the parent ALWAYS".
That way, you can associate the necessary [seperate] actions for the
parent-click and load-children click;

Some other options:
a. You can have a default child for each parent (say) "None" - whenever the
parent has no children.
b. If its not too expensive, you could attempt to find out if a parent has
at least one child, and only then show the (+) - this would not necessarily
mean loading the children, but just checking for presence.

-Saurabh

-Original Message-
From: Tushar Kharbanda [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 1:20 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Problem!! TreeView [Struts-Layout]



I am making a dynamic tree by getting the data from some webservices and
hence populating the tree.

But I do not want to load the entire tree at one go... instead I want to
load the children only if the parent is clicked upon... i.e. clicked on the
(+) icon next to the Tree Node

Now the problem is that (+) icon next to the parent will not be shown as I
am not loading the children in the parent initially.Also I cannot load
the children by making the user click on the parent's name coz that click
has a different action which is to show the parent details in the right
frame

So I thought if I can provide 2 links at one level of a node, one for
loading children and one for showing details of parent in the right
frame but not sure if that's possible...

Is there a soln  to above prob or else is there a way by which (+) icon
can be shown without loading children and then some method call back  when
user clicks on (+)

Regards
Tushar

Yahoo! India Matrimony: Find your partner online.


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



Re: What was the name of this application? [was] Re: Are there any IDE's that understand Struts tags?

2004-05-28 Thread bOOyah
Rick Reumann wrote:
Actually there was a struts application/IDE  that was for demo that was 
quite impressive but now I forgot the name. 
Was it NitroX from M7?  http://www.m7.com/
The pricetag isn't *that* hefty.
--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
I've just done the following in a struts html:text tag
" />
This is using the 1.1 release version of struts.. On TC5 and with el  
enabled on the page to boot.

The page rendered as I predicted.
Perhaps just a freak accident, and as I said before I wouldn't like to  
go up against such a confident statement, but I fear I'm right.

On 28 May 2004, at 11:46, Janarthan Sathiamurthy wrote:
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true

This means we can specify the onblur value as a run time expression.
Regards,
Janarthan S
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function

Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is
configured)
to

Despite my gratitude for your insights into this, may I be as bold as
to ask "Are you absolutely sure?" ,because I'd say perhaps with less
degree of certainty than your unambiguous statement communicates, that
"scriptlets work in html struts tags" which I'd hesitate in putting
forward in the face of such conviction.
On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead.
 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
        I tried that, Im getting '<%= index.intValue()%>' in
doThis()  
and not the value.
Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 
 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
        This is my jsp.
        
                indexed="true"  
onblur="doThis()"/>
        
        
        how to send the 'index' as input to 'doThis()' [javascript  
Function]
 Thanks
 Subramaniam

ForwardSourceID:NTD4D2    
 
-

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]
ForwardSourceID:NTA1F6    
 
-

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

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


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


RE: how to send the 'index' to javascript function

2004-05-28 Thread Janarthan Sathiamurthy
Hey Mark,
I am sure you r wrong.
If u check the struts-html.tld for 'text' u find -

   onblur
   false
true


This means we can specify the onblur value as a run time expression.

Regards,
Janarthan S

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 3:07 PM
To: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function


> Scirptlets will not work within a html struts tag. If you want to use  
> scriplets use a normal html tag instead.

Thats the first I ever heard that.. Thanks for the tip Brati.

So you're saying that

" />

wouldn't render (assuming the form and with the property foo is  
configured)
to


Despite my gratitude for your insights into this, may I be as bold as  
to ask "Are you absolutely sure?" ,because I'd say perhaps with less  
degree of certainty than your unambiguous statement communicates, that  
"scriptlets work in html struts tags" which I'd hesitate in putting  
forward in the face of such conviction.


On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:

>
> Scirptlets will not work within a html struts tag. If you want to use  
> scriplets use a normal html tag instead.
>
>  Brati Sankar Ghosh
>  Tata Consultancy Services
>  Mailto: [EMAIL PROTECTED]
>  Website: http://www.tcs.com
>
>
>
>
> Mark Lowe <[EMAIL PROTECTED]>
>
> 05/28/2004 02:47 PM
>
>
> Please respond to
>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>
>
> To
> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
> cc
>
> Subject
> Re: how to send the 'index' to javascript function
>
>
>
>
>
>
>
> What happens if you try this in your page?
>
>  <%= "JSP Works!!!" %>
>
>
>  On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
>
>  >
>  > Hi Janarthanan,
>  >
>  >         I tried that, Im getting '<%= index.intValue()%>' in  
> doThis()  
>  > and not the value.
>  >
>  > Regards
>  >  Subramaniam
>  >
>  >
>  >
>  >
>  >
>  > "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
>  >
>  > 05/28/2004 02:12 PM
>  >
>  >
>  > Please respond to
>  >  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>  >
>  >
>  >
>  > To
>  > "Struts Users Mailing List" <[EMAIL PROTECTED]>
>  >
>  > cc
>  >
>  > Subject
>  > RE: how to send the 'index' to javascript function
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  > try this -
>  >    > onblur="doThis('<%= index.intValue() %>')"/>
>  >
>  >  Regards,
>  >  Janarthan S
>  >
>  >  -Original Message-
>  >  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  >  Sent: Friday, May 28, 2004 9:55 AM
>  >  To: Struts Users Mailing List
>  >  Subject: how to send the 'index' to javascript function
>  >
>  >
>  >
>  >  Hi,
>  >         This is my jsp.
>  >         
>  >                  indexed="true"  
>  > onblur="doThis()"/>
>  >         
>  >         
>  >         how to send the 'index' as input to 'doThis()' [javascript  
>  > Function]
>  >
>  >  Thanks
>  >  Subramaniam
>  >
>  >
>  >
>  > ForwardSourceID:NTD4D2    
>  >  
> -
>  > 
>  > 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]
>
>
> ForwardSourceID:NTA1F6    
> - 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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



Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
Scirptlets will not work within a html struts tag. If you want to use  
scriplets use a normal html tag instead.
Thats the first I ever heard that.. Thanks for the tip Brati.
So you're saying that
" />
wouldn't render (assuming the form and with the property foo is  
configured)
to


Despite my gratitude for your insights into this, may I be as bold as  
to ask "Are you absolutely sure?" ,because I'd say perhaps with less  
degree of certainty than your unambiguous statement communicates, that  
"scriptlets work in html struts tags" which I'd hesitate in putting  
forward in the face of such conviction.

On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote:
Scirptlets will not work within a html struts tag. If you want to use  
scriplets use a normal html tag instead.

 Brati Sankar Ghosh
 Tata Consultancy Services
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com

Mark Lowe <[EMAIL PROTECTED]>
05/28/2004 02:47 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
Re: how to send the 'index' to javascript function



What happens if you try this in your page?
 <%= "JSP Works!!!" %>
 On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
 >
 > Hi Janarthanan,
 >
 >         I tried that, Im getting '<%= index.intValue()%>' in  
doThis()  
 > and not the value.
 >
 > Regards
 >  Subramaniam
 >
 >
 >
 >
 >
 > "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
 >
 > 05/28/2004 02:12 PM
 >
 >
 > Please respond to
 >  "Struts Users Mailing List" <[EMAIL PROTECTED]>
 >
 >
 >
 > To
 > "Struts Users Mailing List" <[EMAIL PROTECTED]>
 >
 > cc
 >
 > Subject
 > RE: how to send the 'index' to javascript function
 >
 >
 >
 >
 >
 >
 >
 > try this -
 >  
 > onblur="doThis('<%= index.intValue() %>')"/>
 >
 >  Regards,
 >  Janarthan S
 >
 >  -Original Message-
 >  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 >  Sent: Friday, May 28, 2004 9:55 AM
 >  To: Struts Users Mailing List
 >  Subject: how to send the 'index' to javascript function
 >
 >
 >
 >  Hi,
 >         This is my jsp.
 >         
 >                 
 > onblur="doThis()"/>
 >         
 >         
 >         how to send the 'index' as input to 'doThis()' [javascript  
 > Function]
 >
 >  Thanks
 >  Subramaniam
 >
 >
 >
 > ForwardSourceID:NTD4D2    
 >  
-
 > 
 > 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]
ForwardSourceID:NTA1F6    
- 

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]


Exception argument

2004-05-28 Thread Alvaro Martinez

Hello,
How can I include an argument in an exception tag?
For example, this is a piece of my "struts_config.xml":
...
  

   
  
...

Could I have a "errors.deleted" with the following sentence(next key): "{0}
is
an invalid number."
I would like to include an argument in my "errors.deleted" which I can throw
from servlet "companies.actions.CompaniesDeleteAction" when an Exception
occurs.
Thanks in advance...
Alvaro







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



RE: how to send the 'index' to javascript function

2004-05-28 Thread Paul McCulloch
Scriptlets do work in the Struts html tags. They are defined as RT
attributes in the TLD, and it's the container that implements RT, not the
tag itself.

Perhaps the original poster is using the html-el taglib. In this case the RT
expression won't work - an EL equivalent shoule be used.

Paul


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 28 May 2004 10:25
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: how to send the 'index' to javascript function



Scirptlets will not work within a html struts tag. If you want to use
scriplets use a normal html tag instead. 

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com 


Mark Lowe <[EMAIL PROTECTED]> 
05/28/2004 02:47 PM 
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>

To"Struts Users Mailing List" <[EMAIL PROTECTED]> 
cc
SubjectRe: how to send the 'index' to javascript function







What happens if you try this in your page?

<%= "JSP Works!!!" %>


On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:

>
> Hi Janarthanan,
>
> I tried that, Im getting '<%= index.intValue()%>' in doThis()  
> and not the value.
>
> Regards
>  Subramaniam
>
>
>
>
>
> "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
>
> 05/28/2004 02:12 PM
>
>
> Please respond to
>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>
>
> To
> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
> cc
>
> Subject
> RE: how to send the 'index' to javascript function
>
>
>
>
>
>
>
> try this -
>   onblur="doThis('<%= index.intValue() %>')"/>
>
>  Regards,
>  Janarthan S
>
>  -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  Sent: Friday, May 28, 2004 9:55 AM
>  To: Struts Users Mailing List
>  Subject: how to send the 'index' to javascript function
>
>
>
>  Hi,
> This is my jsp.
> 
>  onblur="doThis()"/>
> 
> 
> how to send the 'index' as input to 'doThis()' [javascript  
> Function]
>
>  Thanks
>  Subramaniam
>
>
>
> ForwardSourceID:NTD4D2
> - 
> 
> 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]


ForwardSourceID:NTA1F6 


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**


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



RE: Delivery Status Notification (Failure)

2004-05-28 Thread Andrew Hill
+-1

-Original Message-
From: Daniel Perry +AFs-mailto:d.perry+AEA-netcase.co.uk+AF0-
Sent: Friday, 28 May 2004 17:20
To: Struts User List
Subject: FW: Delivery Status Notification (Failure)


Everytime i post to the struts list, i get an email back for one person:

Could an admin unscuscribe this user please :)

Daniel.

-Original Message-
From: postmaster+AEA-rave-tech.com +AFs-mailto:postmaster+AEA-rave-tech.com+AF0-
Sent: 28 May 2004 10:16
To: d.perry+AEA-netcase.co.uk
Subject: Delivery Status Notification (Failure)


This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

   shaikh.sohrab+AEA-rave-tech.com





-
To unsubscribe, e-mail: user-unsubscribe+AEA-struts.apache.org
For additional commands, e-mail: user-help+AEA-struts.apache.org



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



Re: how to send the 'index' to javascript function

2004-05-28 Thread brati . sankarghosh

Scirptlets will not work within a html
struts tag. If you want to use scriplets use a normal html tag instead.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com





Mark Lowe <[EMAIL PROTECTED]>

05/28/2004 02:47 PM




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





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


cc



Subject
Re: how to send the 'index'
to _javascript_ function








What happens if you try this in your page?

<%= "JSP Works!!!" %>


On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:

>
> Hi Janarthanan,
>
>         I tried that, Im getting '<%= index.intValue()%>'
in doThis()  
> and not the value.
>
> Regards
>  Subramaniam
>
>
>
>
>
> "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
>
> 05/28/2004 02:12 PM
>
>
> Please respond to
>  "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>
>
> To
> "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
> cc
>
> Subject
> RE: how to send the 'index' to _javascript_ function
>
>
>
>
>
>
>
> try this -
>  
>  index.intValue() %>')"/>
>
>  Regards,
>  Janarthan S
>
>  -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  Sent: Friday, May 28, 2004 9:55 AM
>  To: Struts Users Mailing List
>  Subject: how to send the 'index' to _javascript_ function
>
>
>
>  Hi,
>         This is my jsp.
>         
>                 
> >
>         
>         
>         how to send the 'index' as input
to 'doThis()' [_javascript_  
> Function]
>
>  Thanks
>  Subramaniam
>
>
>
> ForwardSourceID:NTD4D2    
> -

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


ForwardSourceID:NTA1F6
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

FW: Delivery Status Notification (Failure)

2004-05-28 Thread Daniel Perry
Everytime i post to the struts list, i get an email back for one person:

Could an admin unscuscribe this user please :)

Daniel.

-Original Message-
From: postmaster+AEA-rave-tech.com +AFs-mailto:postmaster+AEA-rave-tech.com+AF0-
Sent: 28 May 2004 10:16
To: d.perry+AEA-netcase.co.uk
Subject: Delivery Status Notification (Failure)


This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

   shaikh.sohrab+AEA-rave-tech.com





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



Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
What happens if you try this in your page?
<%= "JSP Works!!!" %>
On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote:
Hi Janarthanan,
        I tried that, Im getting '<%= index.intValue()%>' in doThis()  
and not the value.

Regards
 Subramaniam


"Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
05/28/2004 02:12 PM
Please respond to
 "Struts Users Mailing List" <[EMAIL PROTECTED]>

To
"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc
Subject
RE: how to send the 'index' to javascript function



try this -
 

 Regards,
 Janarthan S
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 28, 2004 9:55 AM
 To: Struts Users Mailing List
 Subject: how to send the 'index' to javascript function

 Hi,
        This is my jsp.
        
                
        
        
        how to send the 'index' as input to 'doThis()' [javascript  
Function]

 Thanks
 Subramaniam

ForwardSourceID:NTD4D2    
- 

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: is OJB a good choice for Modeling ?

2004-05-28 Thread Daniel Perry
I've been using OJB for 6 months now, and have found it works nicely.

If you do go for ojb, join the user mailing list, as it can be very helpful
when trying to figure out what's going wrong, especially to begin with!

Daniel.



> -Original Message-
> From: Zaid [mailto:[EMAIL PROTECTED]
> Sent: 28 May 2004 09:23
> To: Struts Users Mailing List
> Subject: is OJB a good choice for Modeling ?
>
>
> Hi all,
>
> is OJB(http://db.apache.org/ojb) is a good ORM ? please advise me, I have
> 3 types for choicing:IBatis, Hibernate and ODMG as well.
>
> Regards
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: how to send the 'index' to javascript function

2004-05-28 Thread subramaniam . o

Hi Janarthanan,

        I
tried that, Im getting '<%= index.intValue()%>'
in doThis() and not the value. 

Regards
Subramaniam






"Janarthan Sathiamurthy"
<[EMAIL PROTECTED]> 
05/28/2004 02:12 PM




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





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


cc



Subject
RE: how to send the 'index'
to _javascript_ function








try this -
')"/> 

Regards,
Janarthan S

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 9:55 AM
To: Struts Users Mailing List
Subject: how to send the 'index' to _javascript_ function



Hi, 
        This is my jsp. 
         
                
         
        
        how to send the 'index' as input to 'doThis()'
[_javascript_ Function] 

Thanks
Subramaniam



ForwardSourceID:NTD4D2
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the
addressee. Unauthorized use, disclosure or copying is strictly prohibited and may 
constitute unlawful act and can possibly attract legal action, civil and/or criminal. 
The contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services
on any subject matter. Any action taken or omitted to be taken based on this message 
is entirely at your risk and neither the originator of this message nor Tata 
Consultancy Services takes any responsibility or liability towards the same. Opinions, 
conclusions and any other
information contained in this message that do not relate to the official business of 
Tata Consultancy Services shall be understood as neither given nor endorsed by Tata 
Consultancy Services or any affiliate of Tata Consultancy Services. If you have 
received this message in error,
you should destroy this message and may please notify the sender by e-mail. Thank you.


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

RE: html:options tag with ArrayList of Strings

2004-05-28 Thread Janarthan Sathiamurthy
Yes, U can do that

-Original Message-
From: Nestor Boscan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 10:23 AM
To: [EMAIL PROTECTED]
Subject: html:options tag with ArrayList of Strings


Hi

I'm working with the html:select and html:options tag and wanted to know if
I can create a list box based on an ArrayList that contains Strings.

Thanks in advance




-
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: is OJB a good choice for Modeling ?

2004-05-28 Thread Navjot Singh
IMO, ibatis +1

>-Original Message-
>From: Zaid [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 28, 2004 1:53 PM
>To: Struts Users Mailing List
>Subject: is OJB a good choice for Modeling ?
>
>
>Hi all,
>
>is OJB(http://db.apache.org/ojb) is a good ORM ? please advise me, I have
>3 types for choicing:IBatis, Hibernate and ODMG as well.
>
>Regards
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: how to send the 'index' to javascript function

2004-05-28 Thread Janarthan Sathiamurthy
try this -
 

Regards,
Janarthan S

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 28, 2004 9:55 AM
To: Struts Users Mailing List
Subject: how to send the 'index' to javascript function



Hi, 
This is my jsp. 
 
 
 

how to send the 'index' as input to 'doThis()' [javascript Function] 

Thanks
Subramaniam




is OJB a good choice for Modeling ?

2004-05-28 Thread Zaid
Hi all,

is OJB(http://db.apache.org/ojb) is a good ORM ? please advise me, I have
3 types for choicing:IBatis, Hibernate and ODMG as well.

Regards

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



Problem!! TreeView [Struts-Layout]

2004-05-28 Thread Tushar Kharbanda

I am making a dynamic tree by getting the data from some webservices and hence 
populating the tree.

But I do not want to load the entire tree at one go... instead I want to load the 
children only if the parent is clicked upon... i.e. clicked on the (+) icon next to 
the Tree Node

Now the problem is that (+) icon next to the parent will not be shown as I am not 
loading the children in the parent initially.Also I cannot load the children by 
making the user click on the parent's name coz that click has a different action which 
is to show the parent details in the right frame

So I thought if I can provide 2 links at one level of a node, one for loading children 
and one for showing details of parent in the right frame but not sure if that's 
possible...

Is there a soln  to above prob or else is there a way by which (+) icon can be 
shown without loading children and then some method call back  when user clicks on (+)

Regards
Tushar

Yahoo! India Matrimony: Find your partner online.

AW: What was the name of this application? [was] Re: Are there any IDE's that understand Struts tags?

2004-05-28 Thread Andreas Solarik
A while ago we evaluated Scioworks' Camino. Awesome tool: previewing JSP's
with dummy data, a graph of actions, beans, forwards etc. If you like
working with wizards and code generation tools, then this might just be what
you are looking for.

Camino can even load an existing struts application source and then generate
all the nice graphs for you. Think documentation :)

Anyway, check it out. We don't use it here, as the pricetag is extremely
hefty.

Andreas

-Ursprungliche Nachricht-
Von: Rick Reumann [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. Mai 2004 20:32
An: Struts Users Mailing List
Betreff: What was the name of this application? [was] Re: Are there any
IDE's that understand Struts tags?


Adam Lipscombe wrote:

> I am developing a J2EE server using Struts. The JSPs will be constructed
by
> a web developer who is used to DreamWeaver.

Actually there was a struts application/IDE  that was for demo that was
quite impressive but now I forgot the name. It wasn't one of the ones
mentioned so far. At the time they didnt' have a Linux version so I
didn't pursue it, but now back on Windows, I want to look into it.

The thing that was cool about this application is that it was actually
context aware of your form properties. So that you could do ...


RE: html:options tag with ArrayList of Strings

2004-05-28 Thread Dincer Mola \(Yazilim Muh. - Proje Gel. ve Uyg. Gr.\)
Yes, you can do it.
Btw, you can do the same thing using Vectors too.
 

> -Original Message-
> From: Nestor Boscan [mailto:[EMAIL PROTECTED] 
> Sent: Friday, May 28, 2004 7:53 AM
> To: [EMAIL PROTECTED]
> Subject: html:options tag with ArrayList of Strings
> 
> Hi
> 
> I'm working with the html:select and html:options tag and 
> wanted to know if I can create a list box based on an 
> ArrayList that contains Strings.
> 
> Thanks in advance
> 
> 
> 
> 
> -
> 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]