Re: [OT] JSTL : test the first char of a String

2004-03-23 Thread nicolas De Loof
I've found this way :

 

Not so pretty, but working !

Nico.

nicolas De Loof a écrit :

Hello,

I'm using JSTL and Struts-EL. I would like to test the first char of a 
String.

The string is a URL, and can be a path to some action on my webapp or 
any external URL.
I'd like to test if the url starts with '/' to select the   
attriibute to use : page or href.

-
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] JSTL : test the first char of a String

2004-03-23 Thread nicolas De Loof
Hello,

I'm using JSTL and Struts-EL. I would like to test the first char of a 
String.

The string is a URL, and can be a path to some action on my webapp or 
any external URL.
I'd like to test if the url starts with '/' to select the   
attriibute to use : page or href.

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


Re: adding items to list in a tile definition using extension

2004-03-18 Thread nicolas De Loof
OK, I've done it another way :

I put ALL items used in the webapp in a list :


  


...
and I extend it for every page :


 

I use  to get indexes in "locations" (0, 1 & 2) from 
currentLocation" and print ${locations[index].value} in the JSP.

Nico.

Axel Groß a écrit :

On 2004-03-18 at 14:11:43 +0100, nicolas De Loof wrote:
 

Hello,

Is it possible when extending a tile definition to ADD some items to an 
existing list (defined by parent tile definition) ?
   

no, not with the current tiles implementation 
i posted a generic request for solving this a while ago, but didnt get much
answers to it (maybe I should repost)

 

I would like to do this :
My web pages have a top line that describe flow in app, something like 
this :

  home > catalog > search > result

I'm using a tile definition for this using the  and  
tags. But I need to set the full list on every definition. I would like 
to use definition extends mecanism to have a "home" tile definition, 
extend it in a "home.catalog", itself extended by a 
"home.catalog.search" and so on. Every tile definition should only have 
to ADD it's item to the existing list.

Is they're a way to do it ?
   

suppose you should use another tiles:putList for each of the following
extensions and treat the values of them like they were in just one list.
but its evil! should be already in tiles ;)
also you have to decide if want to be able to override old items (then you
just have to implement it)
i.e. (without markup :)
definition name="justOne"
putList name="bla1"
 item name="itemX" value="valueX"
 ...
definition name="alreadyTwo" extends="justOne"
putList name="bla2"
 item name="itemY" value="valueY"
 ...
when using it search for blaN until you don't find that blaN anymor (using
logic:iterate and logic:exists and/or EL syntax)
 

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


adding items to list in a tile definition using extension

2004-03-18 Thread nicolas De Loof
Hello,

Is it possible when extending a tile definition to ADD some items to an 
existing list (defined by parent tile definition) ?

I would like to do this :
My web pages have a top line that describe flow in app, something like 
this :

   home > catalog > search > result

I'm using a tile definition for this using the  and  
tags. But I need to set the full list on every definition. I would like 
to use definition extends mecanism to have a "home" tile definition, 
extend it in a "home.catalog", itself extended by a 
"home.catalog.search" and so on. Every tile definition should only have 
to ADD it's item to the existing list.

Is they're a way to do it ?

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


Re: Using ExpressionEvaluatorManager in Struts Action execute() method

2004-03-17 Thread nicolas De Loof
Not beeing in a real JSP (your servlet doesn't extend any "JspServlet") 
may cause some troubles to your servlet container.
To evaluate EL expression, you should consider using Jelly and Jexl 
language from jakarta-commons. I did it with success.

Nico.

f. a écrit :

Hi,

I am currently developping custom tags library for my company.

We use ExpressionEvaluatorManager  in our custom tags. That works 
really fine.

But one of our action class will be called from cells in a table of 
data (Html DataTable).
The Web Developper should be able to specify what to put in the 
session under a given name when this
kind of link is clicked. And the way to do that is an expression in 
Expression Language (JSTL).

So my Struts Action code should be able to evaluate the (request 
Parameter) expression
in the Action execute() method to be able to put the right object in 
session before next forward.

I got the Page context with:
PageContext pc = 
javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(
  this.getServlet(),request, response, null, true, 4096 , 
false );

I evaluated the expression
  evaluatedDetailRef = 
ExpressionEvaluatorManager.evaluate(null, detailRef, Object.class, pc);

I released the Page Context
  
javax.servlet.jsp.JspFactory.getDefaultFactory().releasePageContext(pc);

And now my servlet container (Jetty) seems crazy and instead of 
processing JSP file and sending result to browser,
it sends JSP source directly to browser 

Does it make sense for you ? Is it crazy to use EL in Action execute( 
) method ??  (Was  an idea  of my Team leader  )
I am stuck. Thanks for your help.

Regards,
Thanks
Denis.



-
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] RE: web.xml DTD for Servlet 2.3 & Struts 1.1

2004-03-04 Thread nicolas De Loof
Assuming this resources are right :
http://www.searchwin.net/doctype.htm
http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm
.. I thing the last (optional) part of a DOCTYPE declaration has to be a 
valid URL to the referenced DTD. Perhaps I'm wrong, because I didn't 
found a normative document about this.

Actualy, XML parsers are using this URL to look the Internet for a DTD 
when they don't have a local one for the PUBLIC identifier found in the 
document.

Nico.

Wendy Smoak a écrit :

A long time ago, Craig McClanahan wrote:
 

It is a common misconception that the public identifiers of a DTD like
this *must* actually be working URLs [...].
They are just unique strings of characters that
(often) happen to look like URLs.  
Blame the XML community for that :-).
   



And then Yuan Saul asked:
 

If a local copy of DTD is not available, then an Internet connection
   

is
 

required, in this case, does the URI has to be pointing to a working
   

URL
 

where the DTD file can be retrieved?
   

Which is also my question, but there is no reply in the archives.
Anyone?
Today we got a note from campus IT saying that they believed some
problems in their J2EE apps were related to "code that connects to
http://java.sun.com behind-the-scenes to download various DTD files
related to parsing XML documents."
In addition to whether it happens at all (going out to the internet to
retrieve the DTD) I'm also curious if it's the XML parser, or the
Servlet container, etc.  What component would make the call out to get
the DTD?
I've always wondered...

 

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


Re: Question about DTDs ...

2004-03-03 Thread nicolas De Loof
DOCTYPE syntax uses an optional URI for the DTD, so that a validating 
XML parser can download an unknown DTD and validate the document. Struts 
registers local copy of it's configuration DTD to the XML parser 
(struts, tiles & validator). This way they're is no need to have access 
to the Internet 

Nico.

Alain Van Vyve a écrit :

A lot of things have to be parsed : web.xml, struts-config.xml  and so on

so for example, lines like that are already present in our XML files :

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
or


 "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>



I understand the concept of DTD but
does it mean that each time a XML file is parsed, a connection to SUN 
or Jakarta is established in order to retrieve the DTD ?

Thank's

Alain

-
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: [ANNOUNCE] Struts 1.2.0 Test Build available

2004-02-27 Thread nicolas De Loof
I've built Struts 1.2.0 from the sources package uising maven 1.0RC1 
without trouble.

When I run "maven site", the generated m-target/docs has no "index.html" 
and "faqs", "proposals", "tiles" and "userGuide" are empty directory. Is 
this a known build problem (waiting for update for an *official* release) ?

Nico.

Martin Cooper a écrit :

The Struts 1.2.0 Test Build is now available here:

http://www.apache.org/~martinc/struts/v1.2.0/

This is the first Struts build being made available following the same
test-and-release process that has been used successfully by the Tomcat
team for some time. It is *not* an official Apache release.
Once feedback has been collected on the stability and general quality of
this build, a determination will be made as to whether it should be
promoted to Alpha status.
--
Martin Cooper
-
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: [RESOVLED] Re: File "/tags/struts-logic" not found

2004-01-30 Thread nicolas De Loof
If you're using a servlet 2.3 container (most recent servers) you 
doesn't need to configure taglibs in web.xml, they're automatically 
searched by container in your webapp jars.

Just use this in your JSP :
<%@ taglib prefix="logic" 
uri="http://jakarta.apache.org/struts/tags-logic"%>

The URI "http://jakarta.apache.org/struts/tags-logic"; is declared by 
logic taglib in struts.jar

Nico.

Jiin-Her Lu a écrit :

If you use <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
in your jsp files, then you have to specify the mapping in your web.xml file since 
there is no /tags/ folder (in general)  since the *.tld normally located in /WEB-INF/ 
folder.
if you  use <%@ taglib uri="/web-inf/struts-logic" prefix="logic" %>  then if you move 
*tld to folder other than /WEB-INF/ then you have to change all of your JSPs
There is a better way to do it. Instead of doing as above, use following in your jsp,then you don't have to define the mapping in web.xml neither change your jsp

<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"; prefix="logic" %>





Jiin-Her Lu
(816) 926-2145
 

[EMAIL PROTECTED] 01/30/04 06:17AM >>>
   

Thank you guys,

appartently it was just that in my index page i was reffering to
/tags/struts-logic
rather than /WEB-INF/struts-logic.tld The strange thing is that I did not
make ANY changes between deleting the temp file and reaccessing my app !
Theo

- Original Message - 
From: "Ramachandran" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 5:03 AM
Subject: RE: File "/tags/struts-logic" not found

 

Hi !
No problem will occurs by deleting the files in work folder. If u
restarted the server then it will have new compiled files.
   i thought your tld file for struts-logic is corrupted. So relace
that one. It will work
Ram

-Original Message-
From: shankarr [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 30, 2004 10:20 AM
To: Struts Users Mailing List
Subject: Re: File "/tags/struts-logic" not found

Hi!

I am not much aware of the application's temp directory part.
But, it seems that you have accidentally deleted the struts-logic.tld file
in WEB-INF folder.
Richie

At 01:26 AM 1/30/2004 +, you wrote:

   

Hi all,

I had to delete my application's temporary directory in Tomcat's
\work\Standalone\localhost  because it was not running using my latest
compiled files. Now when I access my application I get the following
 

error
 

and I don't have a clue why that is so! Any ideas?

Thank you for your time,
Theo
HTTP Status 500 -

 

---
-
   

type Exception report

message

description The server encountered an internal error () that prevented it
 

from fulfilling this request.
   

exception

org.apache.jasper.JasperException: File "/tags/struts-logic" not found
 

"To achieve all that is possible, one must attempt the impossible"



-
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: Using "bean:write" as a tag's value atrribute

2004-01-29 Thread Nicolas De Loof




Nico.



> 
> Dear All;
> 
> Using  works properly
> in my jsp page body. But when I want to use it in a tag to fill its
> attribute, it fails.
>  Actually I don't know the syntax of using bean:write, obviously the below
> way is wrong:
> 
> ">
> 
> Using expression is wrong, too:
> 
>   value="<%=%>">
> 
> So how could I use bean:write in my tags?!
> 
> Any help would be greatly appreciated
> Nafise
> 
> 
> -
> 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 with huge session memory and ActionForm

2004-01-28 Thread Nicolas De Loof
AFAIK ActionForm has a reference to ActionServlet to write to servlet log and to get 
application scoped datas (ie.
getServlet().getServletContext(); )

Nico.


- Original Message - 
From: "Jose Ramon Diaz" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 28, 2004 3:18 PM
Subject: RE: Problem with huge session memory and ActionForm


>
> Thanks Shirish.
> That´s the solution we are trying now, but  I still don´t understand why an
> ActionForm has a reference to the ActionServlet.
> Does anybody know, please? Or am I missing something?
>
> thanks!
>
>
> > -Mensaje original-
> > De: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Enviado el: miércoles, 28 de enero de 2004 14:35
> > Para: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Asunto: RE: Problem with huge session memory and ActionForm
> >
> >
> > Why not change those forms to request scope instead?Where
> > ever feasible I mean.If any data is not shared across pages
> > in a wizard like flow, just put that form in request.This
> > should be applicable to 90% of the cases.
> >
> > But It may not be as simple as that.You may have to retest
> > entire application because of that.
> >
> > HTH.
> > regards,
> > Shirish
> >
> > -Original Message-
> > From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 28, 2004 1:48 PM
> > To: 'Struts Users Mailing List'
> > Subject: Problem with huge session memory and ActionForm
> >
> >
> >
> > Hi all,
> >
> > We have detected a problem with the amount of memory we
> > use in the session
> > when we use classes extending org.apache.struts.action.ActionForm and
> > DynaActionForm too.
> > We are using 9iAS 9.0.3.
> > We take a look to the memory using JPRobe profiler, and
> > we see that the
> > forms stored in session (we define the scope to session in
> > struts-config.xml
> > for an action) are using more than 20Mb(!!)
> > Those actionForms have a reference to ActionServlet in
> > servlet attribute.
> >
> > Of course, this is a lot of memory to have several
> > hundreds of users. I
> > imagine this is not a Struts bug, and please help us to detect what´s
> > happening or which is the error in our code.
> >
> > Thanks a lot.
> >
> > Jose R.
> > 
> > E-mail: [EMAIL PROTECTED] 
> > Editorial Aranzadi: www.aranzadi.es 
> > Camino de Galar, 15
> > 31190- Cizur Menor - SPAIN
> > Tlfno.: +34 948 297297 Fax: +34 948 297200
> > __
> > Este e-mail y cualquier documento anexo contienen información
> > privada y
> > confidencial única y exclusivamente para el destinatario. Si
> > usted no es el
> > destinatario, no tiene autorización para leer, copiar, usar o
> > distribuir el
> > e-mail y el/los documento anexos. En caso de haber recibido esta
> > comunicación por error, le rogamos que lo remita al emisor y
> > lo destruya
> > posteriormente.
> > This e-mail and any attachment contain information, which is
> > private and
> > confidential and is intended for the addressee only. If you are not an
> > addressee, you are not authorized to read, copy, use or
> > distribute this
> > communication. If you have received this e-mail in error,
> > please notify the
> > sender by return e-mail.
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > 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: Problem with huge session memory and ActionForm

2004-01-28 Thread Nicolas De Loof
ActionForm has this attribute :
protected transient ActionServlet servlet

All ActionForms share the same ActionServlet instance. As this attribute is transient, 
it will not be serialized if form
is put in session (and session itself is serialized).

So I think the "session size" is not well computed by JPRobe profiler, as every 
referenced objet are included in size
computation, even if they're shared between objects or declared transient.

A better way sould be to run the app without any session created, get JVM memory usage 
(mem1), then open N user
sessions, and get JVM memory usage (mem2). (mem2 - mem1) / N is *real* session size.

Nico.



Why not change those forms to request scope instead?Where ever feasible I mean.If any 
data is not shared across pages in
a wizard like flow, just put that form in request.This should be applicable to 90% of 
the cases.

But It may not be as simple as that.You may have to retest entire application because 
of that.

HTH.
regards,
Shirish

-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 1:48 PM
To: 'Struts Users Mailing List'
Subject: Problem with huge session memory and ActionForm



Hi all,

We have detected a problem with the amount of memory we use in the session
when we use classes extending org.apache.struts.action.ActionForm and
DynaActionForm too.
We are using 9iAS 9.0.3.
We take a look to the memory using JPRobe profiler, and we see that the
forms stored in session (we define the scope to session in struts-config.xml
for an action) are using more than 20Mb(!!)
Those actionForms have a reference to ActionServlet in servlet attribute.

Of course, this is a lot of memory to have several hundreds of users. I
imagine this is not a Struts bug, and please help us to detect what´s
happening or which is the error in our code.

Thanks a lot.

Jose R.

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




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


-
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: Response not XHTML-comliant when using

2004-01-28 Thread Nicolas De Loof

Put  in any tiles or includes.

Nico.

> Mark Lowe  talk21.com> writes:
> 
> > 
> > Put  in any tiles or includes.
> > 
> 
> That does not work for me, 
> because it only adds additional  elements.
> 
> 
> 
> -
> 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: Regarding :

2004-01-28 Thread Nicolas De Loof
Use this :



...


They're is a JSTL way to do this too, but I don't use it so cannot tell you how.
Nico.

> 
> 
> - Original Message - 
> From: "Ramachandran" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 28, 2004 1:43 PM
> Subject: Regarding : 
> 
> 
> > 
> > Hi All,
> >Can any one please tell me, how to assign a values to a string
> > using 
> > 
> > Example:
> > 
> > 
> > 
> >In this iterator, i am having values in the name
> > 'maxreqiddetails" as primary_skill and location.
> > 
> >I know how to print the values...by using< bean:write
> > name="maxrediddetail" property="primary_skill"/>
> > 
> > But i wanto assing those values to a String. How can i do that one.
> > 
> > Please anu body having any idea plase reply me
> > 
> > 
> > -
> > 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: White space problem

2004-01-28 Thread Nicolas De Loof
You can use the  tag from jakarta taglibs

Nico.



Hi all
I am using struts with jstl. I have a problem that is a bit annoying.
In the navigation jsp on one of my sites I have 2 nested c:forEach tags that have c:if 
tags inside them. If a bean
element meets the c:if condition
it gets c:out to the page, if not the loop skips over it until all the outer c:forEach 
beans have been looped.

The problem is however when the c:if condition is not met a white line is written out 
by the c:forEach (ie one white
line for each iteration regardless of the c:if condition). This ends up with a MASS of 
white space on the page. Is there
anyway to stop the c:forEach writing out the white space ?

tia
Chris

***
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please
notify the sender immediately and delete this
e-mail from your system.
You must take no action based on this, nor must
you copy or disclose it or any part of its contents
to any person or organisation.
Statements and opinions contained in this email may
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.



-
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: Logic:iterate and logic:equalquestion

2004-01-26 Thread Nicolas De Loof
Solution 1 : 

Active
...

Solution 2 : 
Active
...


Nico.


> Hi all,
> I need to use the logic:equal inside a logic iterate..and I am
> Having problems..
> My case is that I hae in an ActionForm an HashMap property which
> contains
> Pairs of  String, MyObject.  My object has a Boolean property called
> status
> 
> What I want to do is to loop thru all the objects in my hashmap and, if
> the property status has a value of true I want to display button A,
> while if it is false I want to display button B.
> 
> For testing purposes I am now displaying some text...
> 
> 
> I tried with following loop, but seems that is not working properly
> 
> // Loop thru all the objects contained in the hashmap
>  
>   
>  
> 
> // Here I got myObject   , and its property 'type'
> 
>  
>  
>  
>
> // Now I should reuse MyObject herebut below code raises
> // exception (obviously)
> 
>  value="true">Active
>  value="false">Inactive
>  
>
>  
> 
> 
> I believe I should go for a bean:define  tag but I m not sure how to use
> it
> 
> Anyone can help?
> 
> Thanx in advance and regards
> marco
> 
> 
> 
> 
> -
> 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] Classloader troubles

2004-01-15 Thread Nicolas De Loof
Api is in a separate jar (api.jar) that is both in webapp & commons :
when I don't put it in commons, I get a NoClassDefFoundError from line (1) :

Class clazz = Class.forName(className);

I can't exclude it from webapp (WEB-INF/lib) as it is part of webapp with the 
production implementation jar.

I need some way to force ClassLoading to search webapp first, even when it delegates a 
class search to commons
ClassLoader. Perhaps they're is no solution...

Nico.


> Where is the JAR file that contains IExternalSystem?
>
> Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
>
> > the webapp hasn't trouble to load ExternalSystemMockImpl. It uses reflexion
> > to do it from some configuration data that
> > is use to set implementation (production | mock).
> >
> > The problem is that the resulting object has to be casted to an interface
> > from the API : IExternalSystem:
> >
> > (1)Class clazz = Class.forName(className);
> > (2)return (IExternalSystem) clazz.newInstance();
> >
> > from webapp, I think IExternalSystem is loaded by webapp ClassLoader. As
> > ExternalSystemMockImpl is loaded from tomcat
> > "commons" ClassLoader, it doesn implements the IExternalSystem loaded by this
> > commons-ClassLoader, that cannot be casted
> > in IExternalSystem  loaded by webapp-ClassLoader.
> >
> > I get a ClassCastException on line 2.
> >
> > Nico.
> >
> >
> >
> > > If ExternalSystemMockImpl is contained in a JAR file that's in
> > > $CATALINA_HOME/common/lib, I don't see why the app wouldn't be able to load
> > it.
> > > For example, I've got a JAR file for the Oracle JDBC driver in common/lib
> > and I
> > > can do the following just fine in a JSP:
> > >
> > > <%
> > > ClassLoader cl = getClass().getClassLoader();
> > > Class clazz = cl.loadClass("oracle.jdbc.OracleDriver");
> > > Object obj = clazz.newInstance();
> > > %>
> > >
> > > If there's code in the external JAR file that needs to make use of a
> > class
> > > loader, it should probably use the result of
> > > Thread.currentThread().getContextClassLoader(). Can you provide a little
> > more
> > > detail on how the app is using reflection to locate
> > ExternalSystemMockImpl?
> > >
> > > Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
> > >
> > > > Hi all,
> > > >
> > > > I'm posting on Struts list because I know they're is lot's of J2EE
> > experts
> > > > here.
> > > >
> > > > I want to test my webapp on Tomcat, but it depends on some external
> > system.
> > > > I've got a jar that emulates it. When I
> > > > package it with the webapp (WEB-INF/lib) it works fine.
> > > >
> > > > I would like to test the webapp packaged without this emulator jar. I
> > tried
> > > > putting it in $TOMCAT/common/lib. I get a
> > > > ClassCastException. I think it comes from this :
> > > >
> > > > webapp requires the external API, let's say a class named
> > "ExternalSystem".
> > > > It is configured to search for an
> > > > implementation class named "ExternalSystemMockImpl" (using reflexion
> > API).
> > > >
> > > > Webapp classloader doesn't find it, and delegate class searh to it's
> > parent
> > > > classloader (tomcat ones). Parent
> > > > classloader finds the class from my emulator jar, run it and return
> > some
> > > > "MockResult" object, that implements
> > > > "ExternalResult" from the external API
> > > >
> > > > Calling webapp tries to cast resulting object to "ExternalResult", class
> > that
> > > > is visible to webapp classloader.
> > > >
> > > > Then my code is doing :
> > > >
> > > > ExternalResult result = (ExternalResult) obj;
> > > >
> > > > where obj is my MockResult instance, that implements ExternalResult
> > from
> > > > parent-Classloader, and casting it to a
> > > > webapp-Classloader ExternalResult fails !
> > > >
> > > >
> > > > How can I solve this ClasLoader conflict ?
> > > >
> > > > Nico.
> > >
> > > -- 
> > > Kris Schneider <mailto:[EMAIL PROTECTED]>
> > > D.O.Tech   <http://www.dotech.com/>
>
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.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: [OT] Classloader troubles

2004-01-15 Thread Nicolas De Loof
the webapp hasn't trouble to load ExternalSystemMockImpl. It uses reflexion to do it 
from some configuration data that
is use to set implementation (production | mock).

The problem is that the resulting object has to be casted to an interface from the API 
: IExternalSystem:

(1)Class clazz = Class.forName(className);
(2)return (IExternalSystem) clazz.newInstance();

from webapp, I think IExternalSystem is loaded by webapp ClassLoader. As 
ExternalSystemMockImpl is loaded from tomcat
"commons" ClassLoader, it doesn implements the IExternalSystem loaded by this 
commons-ClassLoader, that cannot be casted
in IExternalSystem  loaded by webapp-ClassLoader.

I get a ClassCastException on line 2.

Nico.



> If ExternalSystemMockImpl is contained in a JAR file that's in
> $CATALINA_HOME/common/lib, I don't see why the app wouldn't be able to load it.
> For example, I've got a JAR file for the Oracle JDBC driver in common/lib and I
> can do the following just fine in a JSP:
>
> <%
> ClassLoader cl = getClass().getClassLoader();
> Class clazz = cl.loadClass("oracle.jdbc.OracleDriver");
> Object obj = clazz.newInstance();
> %>
>
> If there's code in the external JAR file that needs to make use of a class
> loader, it should probably use the result of
> Thread.currentThread().getContextClassLoader(). Can you provide a little more
> detail on how the app is using reflection to locate ExternalSystemMockImpl?
>
> Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
>
> > Hi all,
> >
> > I'm posting on Struts list because I know they're is lot's of J2EE experts
> > here.
> >
> > I want to test my webapp on Tomcat, but it depends on some external system.
> > I've got a jar that emulates it. When I
> > package it with the webapp (WEB-INF/lib) it works fine.
> >
> > I would like to test the webapp packaged without this emulator jar. I tried
> > putting it in $TOMCAT/common/lib. I get a
> > ClassCastException. I think it comes from this :
> >
> > webapp requires the external API, let's say a class named "ExternalSystem".
> > It is configured to search for an
> > implementation class named "ExternalSystemMockImpl" (using reflexion API).
> >
> > Webapp classloader doesn't find it, and delegate class searh to it's parent
> > classloader (tomcat ones). Parent
> > classloader finds the class from my emulator jar, run it and return some
> > "MockResult" object, that implements
> > "ExternalResult" from the external API
> >
> > Calling webapp tries to cast resulting object to "ExternalResult", class that
> > is visible to webapp classloader.
> >
> > Then my code is doing :
> >
> > ExternalResult result = (ExternalResult) obj;
> >
> > where obj is my MockResult instance, that implements ExternalResult from
> > parent-Classloader, and casting it to a
> > webapp-Classloader ExternalResult fails !
> >
> >
> > How can I solve this ClasLoader conflict ?
> >
> > Nico.
>
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.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]



[OT] Classloader troubles

2004-01-15 Thread Nicolas De Loof
Hi all,

I'm posting on Struts list because I know they're is lot's of J2EE experts here.

I want to test my webapp on Tomcat, but it depends on some external system. I've got a 
jar that emulates it. When I
package it with the webapp (WEB-INF/lib) it works fine.

I would like to test the webapp packaged without this emulator jar. I tried putting it 
in $TOMCAT/common/lib. I get a
ClassCastException. I think it comes from this :

webapp requires the external API, let's say a class named "ExternalSystem". It is 
configured to search for an
implementation class named "ExternalSystemMockImpl" (using reflexion API).

Webapp classloader doesn't find it, and delegate class searh to it's parent 
classloader (tomcat ones). Parent
classloader finds the class from my emulator jar, run it and return some "MockResult" 
object, that implements
"ExternalResult" from the external API

Calling webapp tries to cast resulting object to "ExternalResult", class that is 
visible to webapp classloader.

Then my code is doing :

ExternalResult result = (ExternalResult) obj;

where obj is my MockResult instance, that implements ExternalResult from 
parent-Classloader, and casting it to a
webapp-Classloader ExternalResult fails !


How can I solve this ClasLoader conflict ?

Nico.


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



Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-09 Thread Nicolas De Loof
I just woud have some more info from Struts/J2EE masters :

Is this on-unauthentified-uri-session-is-created scenario a possible DOS attack ?

Nico.



> Hi Nicolas
> 
> Glad you figured it out, and thanks for sharing it, with the rest of us.
> 
> Peace,
> 
> Henrik
> 
> - Original Message - 
> From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, January 09, 2004 9:41 AM
> Subject: Re: Configuring Struts NOT to create (unauthentified) sessions
> 
> 
> > Here is what I need to do to avoid creating session before the user has
> been authentificated :
> >
> >
> > . add <%@ page session="false" %> to the JSP used by my login tile
> definition (layout & tiles)
> > => requesting login.jsp doesn't create a session
> >
> > . set  in struts-config.xml
> > . set validate="false" for the login action
> > (. set scope="requet" for the login action)
> > => requesting login.do doesn't create a session until I create it myself
> when authentification has succeded (or some
> > action-mapping has scope="session").
> >
> >
> > Thank you all for help.
> >
> > Nico.
> >
> >
> >
> >
> >
> > > Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
> > >
> > > > I've made a grep on Struts 1.1 sources. I noticed some case where a
> session
> > > > is created that seems to me 'uncontroled' :
> > > >
> > > >
> > > > RequestProcessor uses request.getSession() :
> > > > - in processLocale if controller is configured to use Locale (default
> =
> > > > true)
> > > >
> > > > HTMLTag uses request.getSession() :
> > > > - in currentLocale() : if any JSP uses  a session is
> created !
> > > >
> > > > o.a.s.validator.Ressouces uses request.getSession() :
> > > > - in getLocale(request) : If validator is used (for example to
> validate login
> > > > page) a session will allways be created
> > > >
> > > >
> > > > Isn't they're any way NOT to create a session for a user that hasn't
> been
> > > > authentified ?
> > > >
> > > > Nico.
> > > >
> > >
> > > Besides the places where Struts itself creates a session, if you're
> using JSP
> > > you should be aware that every JSP page will create a session unless you
> tell
> > > it not to:
> > >
> > >   <%@ page session="false" %>
> > >
> > > Craig
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-09 Thread Nicolas De Loof
Here is what I need to do to avoid creating session before the user has been 
authentificated :


. add <%@ page session="false" %> to the JSP used by my login tile definition (layout 
& tiles)
=> requesting login.jsp doesn't create a session

. set  in struts-config.xml
. set validate="false" for the login action
(. set scope="requet" for the login action)
=> requesting login.do doesn't create a session until I create it myself when 
authentification has succeded (or some
action-mapping has scope="session").


Thank you all for help.

Nico.





> Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
>
> > I've made a grep on Struts 1.1 sources. I noticed some case where a session
> > is created that seems to me 'uncontroled' :
> >
> >
> > RequestProcessor uses request.getSession() :
> > - in processLocale if controller is configured to use Locale (default =
> > true)
> >
> > HTMLTag uses request.getSession() :
> > - in currentLocale() : if any JSP uses  a session is created !
> >
> > o.a.s.validator.Ressouces uses request.getSession() :
> > - in getLocale(request) : If validator is used (for example to validate login
> > page) a session will allways be created
> >
> >
> > Isn't they're any way NOT to create a session for a user that hasn't been
> > authentified ?
> >
> > Nico.
> >
>
> Besides the places where Struts itself creates a session, if you're using JSP
> you should be aware that every JSP page will create a session unless you tell
> it not to:
>
>   <%@ page session="false" %>
>
> Craig
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-08 Thread Nicolas De Loof
I would like to set my login JSP to have this directive (<%@ page session="false" %>)
and others ones to be in WEB-INF (not visible to users)

I use an application specific authentification.

I would like any user (friend or hacker) to get access to the (internationalized) 
login page, be able commit login form
to "/login.do", and use struts-validator to validate required inputs. For all this no 
session should be created. When
user is authentified, access to other URIs of the applicaton are granted by a custom 
processRole.

Nico.



> How are you performing authentication? Depending on the process you're using, it
> may be possible to avoid hitting any of those conditions until after it's
> successful.
>
> P.S.
> By default, a JSP will create a session if one doesn't already exist (nothing to
> do with Struts), so any pages that can be hit by unauthenticated users should do:
>
> <%@ page session="false" %>
>
> Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
>
> > I've made a grep on Struts 1.1 sources. I noticed some case where a session
> > is created that seems to me 'uncontroled' :
> >
> >
> > RequestProcessor uses request.getSession() :
> > - in processLocale if controller is configured to use Locale (default =
> > true)
> >
> > HTMLTag uses request.getSession() :
> > - in currentLocale() : if any JSP uses  a session is created !
> >
> > o.a.s.validator.Ressouces uses request.getSession() :
> > - in getLocale(request) : If validator is used (for example to validate login
> > page) a session will allways be created
> >
> >
> > Isn't they're any way NOT to create a session for a user that hasn't been
> > authentified ?
> >
> > Nico.
> >
> >
> >
> >
> >
> > >
> > > This is exactly what I'm looking for.
> > >
> > > For some of the applications I'm working on, my customers are paranoiac
> > about security. I think that if a
> > unauthentified
> > > user is able to create a session on the server, it can expose the server to
> > DOS attack, because every created session
> > > will use some memory.
> > >
> > > It is realy simple to write a client that sends hundred of request to the
> > server. If a session is created on each
> > > request, server will quickly be out of memory (Session object + stored
> > objects (Locale) size).
> > >
> > > If a session is created only for authentified users, server will survive
> > such (simple) attack.
> > >
> > > Perhaps I'm wrong about this, if this scenario is stupid please tell me.
> > >
> > > For example, I've seen that RequestUtils.retrieveUserLocale() uses request
> > scope if no session exists. This way, no
> > > session is created when displaying a login JSP that uses i18n.
> > >
> > > With locale="true" (default) a new session is created when ActionServlet
> > process a request. We need to set it to false
> > > to control session creation. I want to know if they're is other Struts
> > properties to set to avoid creating new session
> > > for non-authentified user.
> > >
> > >
> > > Nico.
> > >
> > >
> > >
> > > > Hi Manfred
> > > >
> > > > I think Nicolas is trying to find all places where Struts manipulates
> > the
> > > > session in some way..
> > > >
> > > > Locale=True does indeed manipulate the session..thus resulting in the
> > > > session being created, if not already there.
> > > >
> > > > When no one (action, object, tag, whatever) has requested attributes to
> > be
> > > > stored in the session, no session object will exist..Session info
> > (cookie,
> > > > URL rewriting, etc) is only created if there are attributes on the
> > Session
> > > > object. Am I correct on this one??
> > > >
> > > > I don't understand WHY Nicolas does not want the session to be
> > created...Is
> > > > it because of memory usage...denial of service attacks...?
> > > >
> > > > Maybe, I don't understand, Nicolas, too...but it did gave my few
> > pennies
> > > > away :-)
> > > >
> > > > Regards
> > > >
> > > > Henrik
> > > >
> > > > - Original Message - 
> > > > From: "Manfred Wolff" <[EMAIL PROTECTED]>
> > > > To: 

Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-08 Thread Nicolas De Loof
I've made a grep on Struts 1.1 sources. I noticed some case where a session is created 
that seems to me 'uncontroled' :


RequestProcessor uses request.getSession() :
- in processLocale if controller is configured to use Locale (default = true)

HTMLTag uses request.getSession() :
- in currentLocale() : if any JSP uses  a session is created !

o.a.s.validator.Ressouces uses request.getSession() :
- in getLocale(request) : If validator is used (for example to validate login page) a 
session will allways be created


Isn't they're any way NOT to create a session for a user that hasn't been authentified 
?

Nico.





>
> This is exactly what I'm looking for.
>
> For some of the applications I'm working on, my customers are paranoiac about 
> security. I think that if a
unauthentified
> user is able to create a session on the server, it can expose the server to DOS 
> attack, because every created session
> will use some memory.
>
> It is realy simple to write a client that sends hundred of request to the server. If 
> a session is created on each
> request, server will quickly be out of memory (Session object + stored objects 
> (Locale) size).
>
> If a session is created only for authentified users, server will survive such 
> (simple) attack.
>
> Perhaps I'm wrong about this, if this scenario is stupid please tell me.
>
> For example, I've seen that RequestUtils.retrieveUserLocale() uses request scope if 
> no session exists. This way, no
> session is created when displaying a login JSP that uses i18n.
>
> With locale="true" (default) a new session is created when ActionServlet process a 
> request. We need to set it to false
> to control session creation. I want to know if they're is other Struts properties to 
> set to avoid creating new session
> for non-authentified user.
>
>
> Nico.
>
>
>
> > Hi Manfred
> >
> > I think Nicolas is trying to find all places where Struts manipulates the
> > session in some way..
> >
> > Locale=True does indeed manipulate the session..thus resulting in the
> > session being created, if not already there.
> >
> > When no one (action, object, tag, whatever) has requested attributes to be
> > stored in the session, no session object will exist..Session info (cookie,
> > URL rewriting, etc) is only created if there are attributes on the Session
> > object. Am I correct on this one??
> >
> > I don't understand WHY Nicolas does not want the session to be created...Is
> > it because of memory usage...denial of service attacks...?
> >
> > Maybe, I don't understand, Nicolas, too...but it did gave my few pennies
> > away :-)
> >
> > Regards
> >
> > Henrik
> >
> > - Original Message - 
> > From: "Manfred Wolff" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 08, 2004 3:22 PM
> > Subject: Re: Configuring Struts NOT to create (unauthentified) sessions
> >
> >
> > > Nicolas.
> > >
> > > I perhaps don't understand you. but (!) The locale attribut has nothing
> > > to do with creating sessions! The locale attribute tells struts to save
> > > a Locale-Object in the session, if there is nothing stored.
> > >
> > > Manfred
> > >
> > > Nicolas De Loof wrote:
> > >
> > > >Hy all,
> > > >
> > > >I would like Struts NOT to create a session for an unauthentified user.
> > As far as I understand Struts code, I need to
> > > >set locale="false" in struts-config.xml .
> > > >
> > > >Is they're any ohter Struts mecanism that can create a session (excluding
> > action-mapping declared as scope="session") ?
> > > >
> > > >Doesn't the "locale" default value (true) expose lot's of struts
> > application to attack ? (server Out of Memory because
> > > >to much sessions have been created - isn't this what is called "Deny Of
> > Service" ?)
> > > >
> > > >Nico.
> > > >
> > > >
> > > >-
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > >
> > > -- 
> > > ===
> > > Dipl.-Inf. Manfred Wolff
> > > -

Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-08 Thread Nicolas De Loof
A session CONTEXT is created when some code uses
request.getSession() or request.getSession(true)

session tracking (using coockie or URL rewriting) is used keep association between 
user and contexte. Session tracking
mecanism use a random number generator but doesn't use memory to store some data until 
a CONTEXT is created.

Nico.



> HG.
>
> I _don't_ think you are right. A session object exsists with and without
> struts. The documentation says:
>
> -->
> The Hypertext Transfer Protocol (HTTP) is by design a stateless
> protocol. To build
> effective web applications, it is imperative that requests from a
> particular client be
> associated with each other. Many strategies for session tracking have
> evolved over
> time, but all are difficult or troublesome for the programmer to use
> directly.
> This specification defines a simple HttpSession interface that allows a
> servlet
> container to use any of several approaches to track a user’s session without
> involving the Application Developer in the nuances of any one approach.
> <--
>
> The session is more than the attributes, struts can put into it ;-)
>
> Manfred
>
> HG wrote:
>
> >Hi Manfred
> >
> >I think Nicolas is trying to find all places where Struts manipulates the
> >session in some way..
> >
> >Locale=True does indeed manipulate the session..thus resulting in the
> >session being created, if not already there.
> >
> >When no one (action, object, tag, whatever) has requested attributes to be
> >stored in the session, no session object will exist..Session info (cookie,
> >URL rewriting, etc) is only created if there are attributes on the Session
> >object. Am I correct on this one??
> >
> >I don't understand WHY Nicolas does not want the session to be created...Is
> >it because of memory usage...denial of service attacks...?
> >
> >Maybe, I don't understand, Nicolas, too...but it did gave my few pennies
> >away :-)
> >
> >Regards
> >
> >Henrik
> >
> >- Original Message - 
> >From: "Manfred Wolff" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Thursday, January 08, 2004 3:22 PM
> >Subject: Re: Configuring Struts NOT to create (unauthentified) sessions
> >
> >
> >
> >
> >>Nicolas.
> >>
> >>I perhaps don't understand you. but (!) The locale attribut has nothing
> >>to do with creating sessions! The locale attribute tells struts to save
> >>a Locale-Object in the session, if there is nothing stored.
> >>
> >>Manfred
> >>
> >>Nicolas De Loof wrote:
> >>
> >>
> >>
> >>>Hy all,
> >>>
> >>>I would like Struts NOT to create a session for an unauthentified user.
> >>>
> >>>
> >As far as I understand Struts code, I need to
> >
> >
> >>>set locale="false" in struts-config.xml .
> >>>
> >>>Is they're any ohter Struts mecanism that can create a session (excluding
> >>>
> >>>
> >action-mapping declared as scope="session") ?
> >
> >
> >>>Doesn't the "locale" default value (true) expose lot's of struts
> >>>
> >>>
> >application to attack ? (server Out of Memory because
> >
> >
> >>>to much sessions have been created - isn't this what is called "Deny Of
> >>>
> >>>
> >Service" ?)
> >
> >
> >>>Nico.
> >>>
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>-- 
> >>===
> >>Dipl.-Inf. Manfred Wolff
> >>---
> >>phone neusta  : +49 421 20696-27
> >>phone : +49 421 534522
> >>mobil : +49 178 49 18 434
> >>eFax  : +49 1212 6 626 63 965 33
> >>---
> >>
> >>Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich
> >>
> >>
> >geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder
> >diese

Re: Configuring Struts NOT to create (unauthentified) sessions

2004-01-08 Thread Nicolas De Loof

This is exactly what I'm looking for.

For some of the applications I'm working on, my customers are paranoiac about 
security. I think that if a unauthentified
user is able to create a session on the server, it can expose the server to DOS 
attack, because every created session
will use some memory.

It is realy simple to write a client that sends hundred of request to the server. If a 
session is created on each
request, server will quickly be out of memory (Session object + stored objects 
(Locale) size).

If a session is created only for authentified users, server will survive such (simple) 
attack.

Perhaps I'm wrong about this, if this scenario is stupid please tell me.

For example, I've seen that RequestUtils.retrieveUserLocale() uses request scope if no 
session exists. This way, no
session is created when displaying a login JSP that uses i18n.

With locale="true" (default) a new session is created when ActionServlet process a 
request. We need to set it to false
to control session creation. I want to know if they're is other Struts properties to 
set to avoid creating new session
for non-authentified user.


Nico.



> Hi Manfred
>
> I think Nicolas is trying to find all places where Struts manipulates the
> session in some way..
>
> Locale=True does indeed manipulate the session..thus resulting in the
> session being created, if not already there.
>
> When no one (action, object, tag, whatever) has requested attributes to be
> stored in the session, no session object will exist..Session info (cookie,
> URL rewriting, etc) is only created if there are attributes on the Session
> object. Am I correct on this one??
>
> I don't understand WHY Nicolas does not want the session to be created...Is
> it because of memory usage...denial of service attacks...?
>
> Maybe, I don't understand, Nicolas, too...but it did gave my few pennies
> away :-)
>
> Regards
>
> Henrik
>
> - Original Message - 
> From: "Manfred Wolff" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, January 08, 2004 3:22 PM
> Subject: Re: Configuring Struts NOT to create (unauthentified) sessions
>
>
> > Nicolas.
> >
> > I perhaps don't understand you. but (!) The locale attribut has nothing
> > to do with creating sessions! The locale attribute tells struts to save
> > a Locale-Object in the session, if there is nothing stored.
> >
> > Manfred
> >
> > Nicolas De Loof wrote:
> >
> > >Hy all,
> > >
> > >I would like Struts NOT to create a session for an unauthentified user.
> As far as I understand Struts code, I need to
> > >set locale="false" in struts-config.xml .
> > >
> > >Is they're any ohter Struts mecanism that can create a session (excluding
> action-mapping declared as scope="session") ?
> > >
> > >Doesn't the "locale" default value (true) expose lot's of struts
> application to attack ? (server Out of Memory because
> > >to much sessions have been created - isn't this what is called "Deny Of
> Service" ?)
> > >
> > >Nico.
> > >
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > -- 
> > ===
> > Dipl.-Inf. Manfred Wolff
> > ---
> > phone neusta  : +49 421 20696-27
> > phone : +49 421 534522
> > mobil : +49 178 49 18 434
> > eFax  : +49 1212 6 626 63 965 33
> > ---
> > 
> > Diese E-Mail enthält möglicherweise vertrauliche und/oder rechtlich
> geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder
> diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die
> unbefugte Weitergabe dieser Mail ist nicht gestattet.
> >
> > This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorised copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
> >
> >
> >
> > -
> > 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]



Configuring Struts NOT to create (unauthentified) sessions

2004-01-08 Thread Nicolas De Loof
Hy all,

I would like Struts NOT to create a session for an unauthentified user. As far as I 
understand Struts code, I need to
set locale="false" in struts-config.xml .

Is they're any ohter Struts mecanism that can create a session (excluding 
action-mapping declared as scope="session") ?

Doesn't the "locale" default value (true) expose lot's of struts application to attack 
? (server Out of Memory because
to much sessions have been created - isn't this what is called "Deny Of Service" ?)

Nico.


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



Re: simple question

2004-01-05 Thread Nicolas De Loof
It should work (I use it !)

Did you include the taglib directive for struts-bean ?

Nico.



How can i have a dynamic value in the action ?

The following is not working .







Thanks !


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



Re: Custom page for roles rejection

2004-01-05 Thread Nicolas De Loof
You have to write the response before returning from processRole. For example, you can 
set response status to some error
so that default associated error-page is displayed :

response.sendError(HttpServletResponse.SC_FORBIDDEN, 
getInternal().getMessage("notAuthorized", mapping.getPath()));



Nico.



- Original Message - 
From: "Paul-J Woodward" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 05, 2004 1:05 PM
Subject: Custom page for roles rejection


> Dear All,
>
> I have extended the RequestProcessor.processRoles() function. When it returns false 
> (i.e. user rejected) I get a blank
screen. How/where do I set a custom page or action to perform?
>
> Thanks, Paul
> 
> Global Equity Derivatives Technology
> Deutsche Bank [/]
> Office  +44 (0)20 754 55458
> Mobile +44 (0)7736 299483
> Fax  +44 (0)20 7547 2752
> 
>
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not 
> the intended recipient (or have
received this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is strictly forbidden.
>
>
>
> -
> 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: Custom Link Tag

2004-01-05 Thread Nicolas De Loof
You have to copy/paste extended taglib description in your custom tld.

You should write a simplest custom tag that includes it's body into response (the way 
logic: tags do) on some
application-specific conditions, and use it this way :


test


Your tag will be reusable for various presentation items.

Nico.


> Thanks Nico.
>
> However, I'm facing a problem with using my custom linktag.
>
> I am trying to specify the "href" attribute from which I shall get the
> "path" by using:
> test tag
>
> However, my jsp is giving me the error: "Error(12): Attribute: href is not a
> valid attribute name"
>
> I suspect that since it is looking up the tld which I've written, which
> doesn't have the href attribute, that's causing the error.
>
> Now, my tag class extends the struts html LinkTag, but how do I get it (my
> TLD) to include the attributes of the LinkTag in the original
> struts-html.tld.
>
> Thanks.
> Sanjay
>
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 02, 2004 3:32 PM
> To: Struts Users Mailing List
> Subject: Re: Custom Link Tag
>
>
> public int doStartTag() {
>
> if (skip_condition) {
> return SKIP_BODY;
> }
> return super.doStartTag()
> }
>
> Nico.
>
> > Nico,
> >
> > Thanks for your response.
> > However, what will happen to the existing code in the doStartTag of the
> > org.apache.struts.taglib.html.LinkTag?
> > Because I will still need the existing functionality of the
> > org.apache.struts.taglib.html.LinkTag as well !!
> > Should I make a call to the super.doStartTag()?
> >
> > Please advise.
> >
> > Thanks.
> > Sanjay
> >
> > -Original Message-
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 31, 2003 6:25 PM
> > To: Struts Users Mailing List
> > Subject: Re: Custom Link Tag
> >
> >
> > Place your code in doStartTag as it can return SKIP_BODY to exclude body
> > from resulting HTML.
> >
> > return EVAL_BODY_INCLUDE if you want the body to be included
> >
> > Nico.
> >
> > > Hi,
> > >
> > > I am writing a custom tag: MyLinkTag that extends the
> > > org.apache.struts.taglib.html.LinkTag.
> > >
> > > MyLinkTag has two fields. They are
> > > showAlways : Boolean & alternateLink : String.
> > >
> > > The functionality of the MyLinkTag is captured in the following code
> > > snippet:
> > >
> >
> 
> > > ***
> > > HttpServletRequest request = pageContext.getRequest();
> > > ActionMappings actionMappings =
> > > (ActionMappings)request.getAttribute(Action.MAPPINGS_KEY);
> > > String path = getHref();
> > > ActionMapping actionMapping = actionMappings.findMapping(path);
> > > String[] roleNames = actionMapping.getRoleNames();
> > > boolean userInRole = false;
> > > for(int i=0; i > > {
> > > userInRole = request.isUserInRole(roleNames);
> > > if(!userInRole){
> > > if((alternateLink != null) && !("".equals(alternateLink))){
> > > setHref(alternateLink);
> > > }
> > > else{
> > > if(showAlways){
> > > setDisabled(true);
> > > }
> > > else{
> > > //don't show the link
> > > return SKIP_BODY;
> > > }
> > > }
> > > }//end if !userInRole
> > > }//end for loop
> > >
> >
> 
> > > ***
> > >
> > > The problem is I don't know where to place this code i.e. in which
> method:
> > > doStartTag() or doEndTag() or doAfterBody() or any other??
> > > What method should I override??
> > > And what should be the return [integer] values??
> > >
> > > Thanks in advance.
> > > Sanjay
> > >
>
> 
> This message contains information that may be privileged or confidential and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
>
> -
> 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 with BeanUtils.copyProperties()

2004-01-02 Thread Nicolas De Loof
I think the javabean spec doesn't allow multiple setters for a single property.
If I'm right, you cannot have two setXXX method with different parameters types, as 
beanutils just looks for a method
named "setXXX" without using parameter types.

Nico.


> Ivan De La Pena wrote:
> > Hope this helps :
> Thanks Ivan, It did help :-).
>
> The problem I had was a bit strange: in my business object a had a method
> setSomeProperty(String[] data) and a method setSomeProperty(Vector data).
> copyProperties() called setSomeProperty(Vector data) on my business bean
> although the method signature of the source bean has the first method signature
> (witch a String[]).
> If there are multiple methods with the same name, shouldn't copyProperties()
> pick the one with the same method signature as in the source bean??? In my
> opinion this would at least be a desirable default behavior
>
> Has anybody else experienced this problem?
>
> Patrick
>
>
>
> -
> 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: Custom Link Tag

2004-01-02 Thread Nicolas De Loof
public int doStartTag() {

if (skip_condition) {
return SKIP_BODY;
}
return super.doStartTag()
}

Nico.

> Nico,
> 
> Thanks for your response.
> However, what will happen to the existing code in the doStartTag of the
> org.apache.struts.taglib.html.LinkTag?
> Because I will still need the existing functionality of the
> org.apache.struts.taglib.html.LinkTag as well !!
> Should I make a call to the super.doStartTag()?
> 
> Please advise.
> 
> Thanks.
> Sanjay
> 
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 31, 2003 6:25 PM
> To: Struts Users Mailing List
> Subject: Re: Custom Link Tag
> 
> 
> Place your code in doStartTag as it can return SKIP_BODY to exclude body
> from resulting HTML.
> 
> return EVAL_BODY_INCLUDE if you want the body to be included
> 
> Nico.
> 
> > Hi,
> > 
> > I am writing a custom tag: MyLinkTag that extends the
> > org.apache.struts.taglib.html.LinkTag.
> > 
> > MyLinkTag has two fields. They are 
> > showAlways : Boolean & alternateLink : String. 
> > 
> > The functionality of the MyLinkTag is captured in the following code
> > snippet:
> >
> 
> > ***
> > HttpServletRequest request = pageContext.getRequest();
> > ActionMappings actionMappings =
> > (ActionMappings)request.getAttribute(Action.MAPPINGS_KEY); 
> > String path = getHref();
> > ActionMapping actionMapping = actionMappings.findMapping(path);
> > String[] roleNames = actionMapping.getRoleNames();
> > boolean userInRole = false;
> > for(int i=0; i > {
> > userInRole = request.isUserInRole(roleNames);
> > if(!userInRole){
> > if((alternateLink != null) && !("".equals(alternateLink))){
> > setHref(alternateLink);
> > }
> > else{
> > if(showAlways){
> > setDisabled(true);
> > }
> > else{
> > //don't show the link
> > return SKIP_BODY;
> > }
> > }
> > }//end if !userInRole
> > }//end for loop
> >
> 
> > ***
> > 
> > The problem is I don't know where to place this code i.e. in which method:
> > doStartTag() or doEndTag() or doAfterBody() or any other?? 
> > What method should I override??
> > And what should be the return [integer] values?? 
> > 
> > Thanks in advance.
> > Sanjay
> > 
> > 
> > This message contains information that may be privileged or confidential
> and
> > is the property of the Cap Gemini Ernst & Young Group. It is intended only
> > for the person to whom it is addressed. If you are not the intended
> > recipient, you are not authorised to read, print, retain, copy,
> disseminate,
> > distribute, or use this message or any part thereof. If you receive this
> > message in error, please notify the sender immediately and delete all
> copies
> > of this message.
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> This message contains information that may be privileged or confidential and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
> 
> -
> 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: creating a class that extends Action Mapping...what is the purpose of it?

2003-12-31 Thread Nicolas De Loof
Sometime we need to add some info to struts mappings, and for this we use a class that 
extends ActionMapping. As an
example, we need for a webapp to add a "description" to any mapping to build some 
stats.

DescActionMapping defines a "description" attribute.

every action-mapping in struts-config sets this property :










(...)

Nico.



> Hi,
>
> I was trying one struts example. In that example, it has created one class
> whcih extends ActionMapping class. I was just wondering why we need to
> create this class and when is it used and whether we define this class in
> struts-config or web.xml?
>
> Regards
> Deepak Saini
>
> _
> Contact brides & grooms FREE! Only on www.shaadi.com.
> http://www.shaadi.com/ptnr.php?ptnr=hmltag Register now!
>
>
> -
> 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: Custom Link Tag

2003-12-31 Thread Nicolas De Loof
Place your code in doStartTag as it can return SKIP_BODY to exclude body from 
resulting HTML.

return EVAL_BODY_INCLUDE if you want the body to be included

Nico.

> Hi,
> 
> I am writing a custom tag: MyLinkTag that extends the
> org.apache.struts.taglib.html.LinkTag.
> 
> MyLinkTag has two fields. They are 
> showAlways : Boolean & alternateLink : String. 
> 
> The functionality of the MyLinkTag is captured in the following code
> snippet:
> 
> ***
> HttpServletRequest request = pageContext.getRequest();
> ActionMappings actionMappings =
> (ActionMappings)request.getAttribute(Action.MAPPINGS_KEY); 
> String path = getHref();
> ActionMapping actionMapping = actionMappings.findMapping(path);
> String[] roleNames = actionMapping.getRoleNames();
> boolean userInRole = false;
> for(int i=0; i {
> userInRole = request.isUserInRole(roleNames);
> if(!userInRole){
> if((alternateLink != null) && !("".equals(alternateLink))){
> setHref(alternateLink);
> }
> else{
> if(showAlways){
> setDisabled(true);
> }
> else{
> //don't show the link
> return SKIP_BODY;
> }
> }
> }//end if !userInRole
> }//end for loop
> 
> ***
> 
> The problem is I don't know where to place this code i.e. in which method:
> doStartTag() or doEndTag() or doAfterBody() or any other?? 
> What method should I override??
> And what should be the return [integer] values?? 
> 
> Thanks in advance.
> Sanjay
> 
> 
> This message contains information that may be privileged or confidential and
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all copies
> of this message.
> 
> -
> 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: dynamic arg0 in bean:message?

2003-12-29 Thread Nicolas De Loof
Your first example is invalid :

" />

A JSP tag cannot be used as attribute value of another tag (XML syntax)

This should work :




Nico.


- Original Message - 
From: "Domingo A. Rodriguez S." <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 29, 2003 1:48 PM
Subject: Re: dynamic arg0 in bean:message?


>
> Either escape the double quotes (" property=\"minChars\" />" ) or use single quotes (" name='globals' property='minChars' />" ).
>
>  --- Frank Maritato <[EMAIL PROTECTED]> escribió: > Hi,
> >
> > What I want to do is something like this:
> >
> >  >   arg0="" />
> >
> > or
> >
> >  >   arg0="<%=minChars%>" />
> >
> > Where arg0 is the result of a bean property, but I can't seem to get it
> > to work. If I hard-code the value
> >
> > 
> >
> > It works, but it kinda defeats the purpose.
> >
> > What am I doing wrong, or is there a better way to accomplish this?
> >
> > Thanks
> > --
> > Frank
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Do You Yahoo!?
> Información de Estados Unidos y América Latina, en Yahoo! Noticias.
> Visítanos en http://noticias.espanol.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Dynamic html:image

2003-12-19 Thread Nicolas De Loof
Assuming imageList contains String taht are absolute (in application context) path to 
your images, this should work :






Nico.

- Original Message - 
From: "gentyjp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 11:04 AM
Subject: Dynamic html:image 


> 
> 
>  Hi
> 
>   Struts and tags newbie again !!
> 
>   I have a string vector of image name.
> I wish to view them using html:image.
> 
> My question is how can I initialize my page attribute ?
> 
> 
>  
>
>  
> 
>   Thanks
> 
>Jean-Paul
> 
> 
> -
> 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: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
Oups, sory :





On a jsp1.2+ container you can use jstl and struts-el tags too.


Nico.

- Original Message - 
From: "struts" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 11:25 AM
Subject: Re: Question dynamic value for a logic:iterate


> Got the following error.
> 
> symbol  : method setValue (java.lang.Object)
> location: class org.apache.struts.taglib.logic.EqualTag
>   _jspx_th_logic_equal_1.setValue(foo);
> ^
> 1 error
> 
> 
> Thx !
> 
> 
> - Original Message - 
> From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, December 18, 2003 11:12 AM
> Subject: Re: Question dynamic value for a logic:iterate
> 
> 
> > use this :
> >
> > 
> > 
> > ...
> >
> > Nico
> >
> >
> > - Original Message - 
> > From: "struts" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Thursday, December 18, 2003 11:09 AM
> > Subject: Question dynamic value for a logic:iterate
> >
> >
> > How can i have a dynamic value ?
> >
> > eg:
> >
> > 
> >
> > should be something like
> >
> > ">
> >
> > but that is not working.
> >
> > Any Idea ?
> >
> > Thanks
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Question dynamic value for a logic:iterate

2003-12-18 Thread Nicolas De Loof
use this :



...

Nico


- Original Message - 
From: "struts" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 11:09 AM
Subject: Question dynamic value for a logic:iterate


How can i have a dynamic value ?

eg:



should be something like

">

but that is not working.

Any Idea ?

Thanks

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



Re: [OT] using tld inside jar

2003-12-10 Thread Nicolas De Loof
So simple I didn't thik about it !

Thanks.


- Original Message - 
From: "Kris Schneider" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 4:06 PM
Subject: Re: [OT] using tld inside jar


> Don't put anything in web.xml. Just do this in your JSP:
> 
> <%@ taglib prefix="string"
>uri="http://jakarta.apache.org/taglibs/string-1.0.1"; %>
> 
> Quoting Nicolas De Loof <[EMAIL PROTECTED]>:
> 
> > Hi all,
> > 
> > I would like to use the jakarta String-1.0.1 taglib in my app, but tld is
> > packaged inside jar.
> > 
> > I use tomcat 4.1.27, that is servlet 2.3 compliant so taht should be able to
> > use this taglib "as is", but I don't know
> > what to set in web.xml as  element (especially for
> > )
> > 
> > Could you help me please ?
> > 
> > Nico.
> 
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.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]



[OT] using tld inside jar

2003-12-10 Thread Nicolas De Loof
Hi all,

I would like to use the jakarta String-1.0.1 taglib in my app, but tld is packaged 
inside jar.

I use tomcat 4.1.27, that is servlet 2.3 compliant so taht should be able to use this 
taglib "as is", but I don't know
what to set in web.xml as  element (especially for )

Could you help me please ?

Nico.


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



[OT] problem with binary ressource when packaged in jar (war)

2003-11-26 Thread Nicolas De Loof
Hello all,

This is'nt a Struts related question, but I know lot's off peoples here are java 
experts ;)


My application uses a binary ressource - a gif file - that is loaded from classpath 
(the application changes some colors
and put it into response.out)


When testing the code (a simple java class + the gif file) inside the WEB-INF classes 
dir, it works fine.

When used inside the webapp, generated gif is incorect : it has lot's of strange 
binary errors.

When putting the classe and the gif file into a jar, it fails too.


I use java 1.4.2 on windows 2000.
I get the exact same behaviour on sun solaris with java 1.4.1_03


Do you know any problem when putting binary files inside a jar file ?



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



Re: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Very interesting thread, Thanks a lot

Nico.


Hi,
There was a long discussion about action chainning some time ago.
http://marc.theaimsgroup.com/?l=struts-user&m=104427309720653&w=2
And as summarized in the above discussion, I think if you are using 2 actions to 
complete 1 logical function, then it is
bad design.And that is what I think the approach suggested by you looks like.


To answer you specific question,like already suggested, I will put the validation 
logic in the form bean(SO that same
validation can be used in some other action if it is using same form ) and then put 
the validation call in the
action(Something like form.validate) and forward to error if the validation fails.

And if validation succeeds, go ahead with normal data processing(which is data 
retrieval in this case.)

HTH.
regards,
Shirish



-Original Message-
From: Krishnakumar N [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 10:56 AM
To: Struts Users Mailing List
Subject: RE: best practice to avoid chaining actions




> -Original Message-----
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 21, 2003 2:58 PM
> To: Struts Users Mailing List
> Subject: Re: best practice to avoid chaining actions
>
>
>
>
> > Hello,
> >
> > If action chaining is a design error, then the struts-example that
> > comes with struts distributions has a design error, saveSubscription
> > forwards to editRegistration.do!
> >
> > Anyway, what I do is keep validation off action classes, by moving
> > them off to action forms using validator and/or overridden
> validate()
> > methods. (Business logic validations that need access to
> the data model must
> > be in the model ofcourse, and not in action classes.)
>
> You're right, my description was a little short about this :
>
> In Action1, we use business model validation methods to
> validate some form datas : to know if user is allowed to use
> some datas he entered for the business process he want's to begin.
>
If the logic itself is in the model and action1 only makes the call to
validate the user's inputs, I would guess it is ok to put it in the same
action that fetches and populates data for page2.
>
> >
> > Cheers,
> > Krishna
> >
>
>
> -
> 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: best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof


> Hello,
>
> If action chaining is a design error, then the struts-example that
> comes with struts distributions has a design error, saveSubscription
> forwards to editRegistration.do!
>
> Anyway, what I do is keep validation off action classes, by moving
> them off to action forms using validator and/or overridden validate()
> methods. (Business logic validations that need access to the data model must
> be in the model ofcourse, and not in action classes.)

You're right, my description was a little short about this :

In Action1, we use business model validation methods to validate some form datas : to 
know if user is allowed to use
some datas he entered for the business process he want's to begin.

>
> Cheers,
> Krishna
>


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



best practice to avoid chaining actions

2003-11-21 Thread Nicolas De Loof
Hi all,

I've read on this list that chaining actions is considered as a design error.

On the project I'm working on, some developers need to make some business validation 
on a form before going to the next
page. This validation occurs in an Action class, let's say Action1.
>From business validation point of view, Action1 return "success" or "error".

Next page needs some pre-computing to select JSP and display, because of some list of 
values that are time and
user-dependant.
>From next-page precomputing point of view, forward can be "simple-select" or 
>"multi-select"

What is the best way :

- Action1 validates, Action2 computes datas before page2 display, and we need to chain 
Action1 and Action2.

- Action1 both validates ans computes datas for page2. It doesn't seems to be good as 
this mix to roles in Action1 and
we cannot display page2 without validating.


Is they're a "good way" to do this without some workflow extension ?

Thanks for any help or suggestion.


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



Re: chained actions

2003-11-19 Thread Nicolas De Loof
Here is what happens :

reset() is called before every form population
form population occurs before every struts action url (*.do) is processed.

When an action forwards to another one using , struts 
actionServlet is called to handle this
second URL. FormBean is then reseted and populated from request.

If you doesn't use a redirect, request is the same an all parameters are still in it, 
so formbean is populated the same
way for the two actions.

If you use a redirect, when first action forwards, a HTTP Redirect response (with 
location="another.do") is sent to the
browser. Browser follows new location and builds a new request, but this new request 
hasn't any parameter. When form
population occurs for "another.do", form-bean is reseted and population has no effect 
(no parameters !).

Nico.


- Original Message - 
From: "Caroline Lauferon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 19, 2003 11:31 AM
Subject: Re: chained actions


> > Is it a multipart form (file upload)?
> yes. and since you asked me, I just changed it. and now it works???
> (but the reset method is called between the two action in both cases). I
> don't need this encoding, but I wanted to always use the same skeleton,
> that's why i used it.
> can you explain me what has been happening?
>
>
> Caroline, puzzled
>
>
> -
> 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: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof
excuse me for mistake.

You should read "response.sendRedirect()"
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String)

Nico.

- Original Message - 
From: "Marcella Turner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 4:06 PM
Subject: Re: Newbie questionredirect


> Nicolas,
>
> I think your reply will help me with my post too -> trying to switch web
> modules - help
> but I don't see a sendRedirect() method of the requestDispatcher object.
> How can I call this sendRedirect() - sounds like the solution to my problem!
>
> Thanks
>
>
> >From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Newbie questionredirect
> >Date: Wed, 5 Nov 2003 14:22:47 +0100
> >
> >
> >contextRelative is used to define a forward that is relative to the
> >application context and not to the module context
> >(default).
> >
> >You cannot redirect to an URL outside your app using struts-config
> >. Use a requestDispatcher in your action and
> >call sendRedirect(), or create a new JSP with a  >href="http://www.yahoo.com";> tag
> >
> >Nico.
> >
> >
> >- Original Message -
> >From: "Mathieu Grimault" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, November 05, 2003 2:16 PM
> >Subject: Newbie questionredirect
> >
> >
> >Hi all !
> >
> >Sorry, about a such stupid question but I try to have my application
> >redirects to an external web site with some
> >parameters.
> >
> >Here is an exemple : http://payOnline/$cashAmout/$name
> >
> >For the moment i'm just try to redirect to an external website like yahoo
> >but the search path is always
> >"/context/http://www.yahoo.fr";. What's wrong ?
> >
> >Here is a snipet from struts-config.xml :
> >
> > >
> >type = "BonjourAction"
> >
> >name = "BonjourForm"
> >
> >scope = "request"
> >
> >input = "/index.jsp"
> >
> >validate = "true"
> >
> > >
> >
> > http://www.yahoo.fr"; contextRelative="false"
> >redirect="true"/>
> >
> >
> >
> >
> >
> >Environment : struts 1.1, tomcat 4.1.27, jdk 1.4.2_02
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Is your computer infected with a virus?  Find out with a FREE computer virus
> scan from McAfee.  Take the FreeScan now!
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> 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: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof

contextRelative is used to define a forward that is relative to the application 
context and not to the module context
(default).

You cannot redirect to an URL outside your app using struts-config . Use a 
requestDispatcher in your action and
call sendRedirect(), or create a new JSP with a http://www.yahoo.com";> tag

Nico.


- Original Message - 
From: "Mathieu Grimault" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 2:16 PM
Subject: Newbie questionredirect


Hi all !

Sorry, about a such stupid question but I try to have my application redirects to an 
external web site with some
parameters.

Here is an exemple : http://payOnline/$cashAmout/$name

For the moment i'm just try to redirect to an external website like yahoo but the 
search path is always
"/context/http://www.yahoo.fr";. What's wrong ?

Here is a snipet from struts-config.xml :



http://www.yahoo.fr"; contextRelative="false" 
redirect="true"/>





Environment : struts 1.1, tomcat 4.1.27, jdk 1.4.2_02


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



Re: Help Req on Iterate Tag using HashMap

2003-11-05 Thread Nicolas De Loof
Sory if this has allready been proposed, I didn't read this thread from begining. 

Did you try something like this :


uid = 
Date of joining = 


Nico.


> Thanks for your reply boss,
>  but still its doesn't solves my problem .. I know this method of iterating
> thru an Array list taking out a bean from that .. but I want to USE A HASH
> MAP ...
> anyone who can help me out of this 
> waiting 4 ur reply guyz .
> chao ...
> shakti
> 
> - Original Message -
> From: "Sashi Ravipati" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 04, 2003 6:46 PM
> Subject: Re: Help Req on Iterate Tag using HashMap
> 
> 
> > Hi
> >
> > This is how we iterate in a jsp page
> >
> > 
> >  > property="assocSBList" indexId="i" >
> > 
> >  > size="10"  />
> >   > maxlength="10"size="10" />
> > 
> > 
> > 
> >
> > where addProviderForm is the Struts Form bean and assocSBList is the
> > ArrayList defined in the form bean.
> >
> > Hope this helps.
> >
> > Thanks
> >
> > >>> [EMAIL PROTECTED] 11/4/2003 6:43:27 AM >>>
> > Hi All,
> > I am keeping some table data in a HashMap .
> > My Table is in this form :
> > UID #EMP Details
> >-Date of joining
> >-Date of birth
> >-Misc Detail
> >
> > Now i am creating an EMPDetails bean and storing the bean in a hash map
> > with UID # as the key.
> >
> > Can anyone plz tell me how to show the data in a tabular form in jsp
> > using iterate tag . I am unable to make out as how to
> > iterate the EMPDetails bean which i am getting as value .
> >
> > Thanks & Regards,
> > Shakti
> >
> > -
> > 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: Converting to Struts, where to put Servlet init() code?

2003-10-15 Thread Nicolas De Loof
You can use the Struts PlugIn mecanism too, but your init code may need some changes.

Nico.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 2:11 PM
Subject: RE: Converting to Struts, where to put Servlet init() code?


You dont need to subclass the action servlet just for the init code...

Write u r own servlet(InitializationServlet)and put it in the init method of this 
servlet.

When configuring the servlets in web.xml have somethign like this.


InitializationServlet
InitializationServlet
com.urapp.InitializationServlet
1


And for all other servlets , the load-on-startupvalue should be greater than 
1.This ensures that when the servlets
are initialized(Loaded), the initialization servlet is loaded first which means also 
the init method will be called
before any requests are received.


Additionally u can have any startup code called from the init method of this servlet.

Hope this helps.
Regards,
Shirish

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 2:04 PM
To: Struts Users Mailing List
Subject: RE: Converting to Struts, where to put Servlet init() code?


subclass ActionServlet and put your inits there.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 7:43 PM
To: [EMAIL PROTECTED]
Subject: Converting to Struts, where to put Servlet init() code?



I'm converting an existing webapp to Struts.  I have some code in a
Servlet init() method, and I don't immediately see where I should put
it.  This is an authentication/authorization webapp, and the code in
question sets up an authentication handler object to be used by every
subsequent request.

What's guaranteed to get executed before the Action code?  (I'm almost
thinking Filter, and to put the object in Application scope, but I'm not
sure yet.)

Any advice?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM

-
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: outputting html with bean:write

2003-10-15 Thread Nicolas De Loof
What html result do you get ?

If generated HTML has "" check if you included struts-bean taglig 
header in your jsp.

If generated HTML has "hello ..." use filter="false" on bean:write to disable 
HTML markup filtering (active by
default)

Nico.


- Original Message - 
From: "Lars Hammer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 10:17 AM
Subject: outputting html with bean:write


Hello

I'm trying to write the content of a bean property containing html to my page, but the 
html doesn't get interpreted by
the browser.
The following code works :

< div style="height: 70; width: 200; border: 1px solid black; overflow: auto;" >
hello there
< /div >

but this doesn't

< div style="height: 70; width: 200; border: 1px solid black; overflow: auto;" >
 < bean:write name="hit" property="comment"/ >
< /div >


Is there something special about the way text is stored in a bean property?

-thanks

/Lars Hammer
http://www.dezide.com


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



Re: URGENT: html:options



create a scripting variable "agencyIds" and a page scope bean "agencyIds". This 
created vector is empty.

<%  agencyIds= MyUtils.getAgencyIds();   %>

chags the object referenced by the scripting variable, but not the page scoped bean.

You should use something like this, assuming populateAgencyIds(List) adds items to an 
existing List :

<% MyUtils.populateAgencyIds(agencyIds); %>

Nico.



- Original Message - 
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 3:18 PM
Subject: Re: URGENT: html:options


> hi!
> thanks for the reply.
> doesn't the jsp import statement followed by the usebean ie,
> %@ page import="MyUtils" %>
> 
> introduce the agencyIds into page scope.
> also with the example you gave me should
> >
> > > label="label"
> > value="value" />
> >
> shouldn't the value of collections be items, since that is the key you used.
> 
> thanks
> cheers
> ajay
> 
> 
> >From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: URGENT: html:options
> >Date: Tue, 14 Oct 2003 15:11:57 +0200
> >
> >collection attribute of  tag is used to set the name of a 
> >bean (in some scope) that is a collection of the
> >items off the select-box.
> >
> >You need to put your Vector into page or request scope to use this tag:
> >
> ><%
> > request.setAttribute("items", agencyIds);
> >%>
> >
> >
> > > label="label"
> > value="value" />
> >
> >
> >Nico.
> >
> >
> >- Original Message -
> >From: "ajay brar" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, October 14, 2003 2:53 PM
> >Subject: RE: URGENT: html:options
> >
> >
> > > hi!
> > >
> > > >I think your collection needs to implement the List interface (use an
> > > >ArrayList instead of a vector)
> > > but a vector implements the List interface, or so says the api
> > > any other ideas
> > >
> > >
> > >
> > > >
> > > >-Original Message-
> > > >From: ajay brar [mailto:[EMAIL PROTECTED]
> > > >Sent: 14 October 2003 12:45
> > > >To: [EMAIL PROTECTED]
> > > >Subject: URGENT: html:options
> > > >
> > > >hi!
> > > >i'm getting a problem with my html:options
> > > >what i have is a MyUtils class with a method to retrieve a list of 
> >agency
> > > >id's from the database
> > > >class MyUtils
> > > >{
> > > >//gets agencyIds creates LabelValueBeans and chucks them into a 
> >Vector
> > > >  public static Vector getAgencyIds()
> > > >}
> > > >
> > > >in my jsp page i had
> > > ><%@ page import="MyUtils" %>
> > > >
> > > ><%  agencyIds= MyUtils.getAgencyIds();   %>
> > > >i then had
> > > >
> > > >> > >labelProperty="label" />
> > > >
> > > >
> > > >this gave me an error, setCollection(java.lang.String) cannot be 
> >applied to
> > > >java.util.Vector
> > > >this was a compiler error.
> > > >
> > > >i tried doing,
> > > >changed MyUtils to
> > > >class MyUtils
> > > >{
> > > >private Vector agencyIds=new Vector();
> > > >//gets agencyIds creates LabelValueBeans and chucks them into a 
> >Vector
> > > >  public Vector getAgencyIds()
> > > >}
> > > ><%@ page import="MyUtils" %>
> > > >
> > > >
> > > >> > >label="label"
> > > >value="value" />
> > > >
> > > >
> > > >this gave me an error saying it couldn't find bean agencyId in any 
> >scope.
> > > >
> > > >could someone please help.
> > > >
> > > >thanks
> > > >cheers
> > > >ajay
> > > >
> > > >_
> > > >ninemsn Premium transforms your

Re: URGENT: html:options

collection attribute of  tag is used to set the name of a bean (in some 
scope) that is a collection of the
items off the select-box.

You need to put your Vector into page or request scope to use this tag:

<%
request.setAttribute("items", agencyIds);
%>


   


Nico.


- Original Message - 
From: "ajay brar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 2:53 PM
Subject: RE: URGENT: html:options


> hi!
>
> >I think your collection needs to implement the List interface (use an
> >ArrayList instead of a vector)
> but a vector implements the List interface, or so says the api
> any other ideas
>
>
>
> >
> >-Original Message-
> >From: ajay brar [mailto:[EMAIL PROTECTED]
> >Sent: 14 October 2003 12:45
> >To: [EMAIL PROTECTED]
> >Subject: URGENT: html:options
> >
> >hi!
> >i'm getting a problem with my html:options
> >what i have is a MyUtils class with a method to retrieve a list of agency
> >id's from the database
> >class MyUtils
> >{
> >//gets agencyIds creates LabelValueBeans and chucks them into a Vector
> >  public static Vector getAgencyIds()
> >}
> >
> >in my jsp page i had
> ><%@ page import="MyUtils" %>
> >
> ><%  agencyIds= MyUtils.getAgencyIds();   %>
> >i then had
> >
> >>labelProperty="label" />
> >
> >
> >this gave me an error, setCollection(java.lang.String) cannot be applied to
> >java.util.Vector
> >this was a compiler error.
> >
> >i tried doing,
> >changed MyUtils to
> >class MyUtils
> >{
> >private Vector agencyIds=new Vector();
> >//gets agencyIds creates LabelValueBeans and chucks them into a Vector
> >  public Vector getAgencyIds()
> >}
> ><%@ page import="MyUtils" %>
> >
> >
> >>label="label"
> >value="value" />
> >
> >
> >this gave me an error saying it couldn't find bean agencyId in any scope.
> >
> >could someone please help.
> >
> >thanks
> >cheers
> >ajay
> >
> >_
> >ninemsn Premium transforms your e-mail with colours, photos and animated
> >text. Click here  http://ninemsn.com.au/premium/landing.asp
> >
> >
> >-
> >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]
> >
>
> _
> E-mail just got a whole lot better. New ninemsn Premium. Click here
> http://ninemsn.com.au/premium/landing.asp
>
>
> -
> 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: why is there no attribute "name" for in struts???

the name of the form is the name of the form-bean it uses.

Nico.


- Original Message - 
From: "jagadeesh kumar movva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 11:59 AM
Subject: why is there no attribute "name" for  in struts???


> Hi,
>
> I want to submit a form from a frame, while the button
> I click to submit is in another frame. I am able to do
> this easily using the following code in Model 1
> architecture :
>
> if((parent.frames["frame3"].document.forms["roadinfo"].name)
> == ("roadinfo")){
>
>
parent.frames["frame3"].document.forms["roadinfo"].action="http://localhost:8080/examples/jsp/mppp_license/Licenses/road
infoHandler.jsp";
> //
> parent.frames["frame3"].document.forms["roadinfo"].target="_blank";
>
> parent.frames["frame3"].document.forms["roadinfo"].buttonType.value
> = buttonType;
>
> parent.frames["frame3"].document.forms["roadinfo"].submit();
> }
> }
>
> But, I find that in struts, there is no attribute
> called 'name' for . Then how can I identify the
> form which is in the first frame, from the frame in
> which the submit button is present?
>
> Please let me know if there is a way to do this in
> struts.
>
> Thanks
> Jag
>
> 
> Yahoo! India Matrimony: Find your partner online.
> Go to http://yahoo.shaadi.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: [SOLVED] RE: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations ????

You're welcome.

Nico.



> Nicolas, there was an error like you mentioned in the ending tag..
> 
> It did not give any compilation errors however...  SURPRISE!!
> 
> Anyway, I corrected that and its working now...
> 
> Great input people and thanks to all and specially to NICOLAS..
> 
> Cheers :)
> 
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 2:47 PM
> To: Struts Users Mailing List
> Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> Not R epeat Iterations 
> 
> 
> You're code has a XML error :
> 
> property="rateClassTCSGRTE" value="<%=ss%>"/>
> 
> The "/>" close the tag without body content, so the equal test has no effect
> 
> use :
> 
> 
> 
> 
>   System.out.println("THIS ALWAYS RUNS EVEN IF CONDITION FAILS") 
> 
> 
> Nico.
> 
> 
> > I am using property only...Was trying earlier to see if parameter will
> work
> > in case property does not work..Code below for your reference..
> > 
> >  > value="true">
> > 
> >  
> >  > property="rateClassTCSGRTE" value="<%=ss%>"/> 
> > System.out.println("THIS ALWAYS RUNS EVEN IF
> > CONDITION FAILS") 
> > 
> > 
> > 
> > 
> > Yogesh
> > 
> > -Original Message-
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 2:36 PM
> > To: Struts Users Mailing List
> > Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > Not R epeat Iterations 
> > 
> > 
> > You are missusing  tag :
> > 
> > 
> > - if you want to test a bean property, use name="" property=""
> > 
> > - if you want to test a request parameter, use parameter=""
> > 
> > using name + parameter has no sense.
> > 
> > Nico
> > 
> > 
> > > I can use the logic:NotEqual tag but I need to activate some display if
> > the
> > > condition is true.
> > > How to handle that if I use logic:notEqual tag..Becuase then I need to
> go
> > to
> > > the next counter in the iterate tag if the condition does not match..
> > > 
> > > 
> > >  
> > >  > > parameter="rateClassTCSGRTE" value="<%=ss%>"/>
> > >  > > property="rateClassTCSGRTE" size="3" />
> > > 
> > > 
> > > 
> > > 
> > > ALL suggestions welcome !!
> > > 
> > > 
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, October 14, 2003 2:07 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > > Not R epeat Iterations 
> > > 
> > > 
> > > Try a combination of logic:equal and logic:NotEqual...
> > > 
> > > Also try TRUE (In caps..)I had similar problems and i solved them using
> > > those techniques...
> > > 
> > > -Original Message-
> > > From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, October 14, 2003 10:25 AM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > > Not R epeat Iterations 
> > > 
> > > 
> > > I am specifying the complete values.  The e.g I had written was
> simplistic
> > > for getitng some help!
> > > 
> > > The code is something like this..
> > > 
> > >  > > value="true">
> > > 
> > >  
> > >  > > parameter="rateClassTCSGRTE" value="<%=ss%>"/> 
> > > Any ideas..
> > > 
> > > regards.
> > > 
> > > -Original Message-
> > > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, October 14, 2003 1:18 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > > Not R epeat Iterations 
> > > 
> > > 
> > > Sure it works, but you don't specify the property of the variable, name 
> > > of the variable to be compared to.
> > > So that's why it doesn't evaulate to equal.
> > > Here, take a peek :
> > > http:

Re: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations ????

You're code has a XML error :

property="rateClassTCSGRTE" value="<%=ss%>"/>

The "/>" close the tag without body content, so the equal test has no effect

use :


 
  System.out.println("THIS ALWAYS RUNS EVEN IF CONDITION FAILS") 


Nico.


> I am using property only...Was trying earlier to see if parameter will work
> in case property does not work..Code below for your reference..
> 
>  value="true">
> 
>  
>  property="rateClassTCSGRTE" value="<%=ss%>"/> 
> System.out.println("THIS ALWAYS RUNS EVEN IF
> CONDITION FAILS") 
> 
> 
> 
> 
> Yogesh
> 
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 2:36 PM
> To: Struts Users Mailing List
> Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> Not R epeat Iterations 
> 
> 
> You are missusing  tag :
> 
> 
> - if you want to test a bean property, use name="" property=""
> 
> - if you want to test a request parameter, use parameter=""
> 
> using name + parameter has no sense.
> 
> Nico
> 
> 
> > I can use the logic:NotEqual tag but I need to activate some display if
> the
> > condition is true.
> > How to handle that if I use logic:notEqual tag..Becuase then I need to go
> to
> > the next counter in the iterate tag if the condition does not match..
> > 
> > 
> >  
> >  > parameter="rateClassTCSGRTE" value="<%=ss%>"/>
> >  > property="rateClassTCSGRTE" size="3" />
> > 
> > 
> > 
> > 
> > ALL suggestions welcome !!
> > 
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 2:07 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > Not R epeat Iterations 
> > 
> > 
> > Try a combination of logic:equal and logic:NotEqual...
> > 
> > Also try TRUE (In caps..)I had similar problems and i solved them using
> > those techniques...
> > 
> > -Original Message-
> > From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 10:25 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > Not R epeat Iterations 
> > 
> > 
> > I am specifying the complete values.  The e.g I had written was simplistic
> > for getitng some help!
> > 
> > The code is something like this..
> > 
> >  > value="true">
> > 
> >  
> >  > parameter="rateClassTCSGRTE" value="<%=ss%>"/> 
> > Any ideas..
> > 
> > regards.
> > 
> > -Original Message-
> > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 14, 2003 1:18 PM
> > To: Struts Users Mailing List
> > Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> > Not R epeat Iterations 
> > 
> > 
> > Sure it works, but you don't specify the property of the variable, name 
> > of the variable to be compared to.
> > So that's why it doesn't evaulate to equal.
> > Here, take a peek :
> > http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal
> > 
> > Chawla, Yogesh wrote:
> > 
> > >Hello,
> > >
> > >I have a repeat nested tag logic like this :
> > >
> > >The Struts Documentation on ligoc tags mentions this for the logic:equal
> > >tag. Why is it that it can only be checked against one contant value ? 
> > >
> > >equal - Evaluate the nested body content of this tag if the requested
> > >variable is equal to the specified value. 
> > >Compares the variable specified by one of the selector attributes against
> > >the specified constant value. The nested body content of this tag is
> > >evaluated if the variable and value are equal. 
> > >
> > >Can I use something like this :
> > >
> > > 
> > > 
> > >  > >the results">
> > >  > >property="value1Text">
> > > 
> > > 
> > >
> > > 
> > >This is not working even if conditions are not matching. It prints the
> > >html:text even if equal is not matching !!
> > >
> > >Any inputs would be appreci

Re: URGENT :: LOGIC:EQUAL works only with one constant Value ?? Not R epeat Iterations ????

You are missusing  tag :


- if you want to test a bean property, use name="" property=""

- if you want to test a request parameter, use parameter=""

using name + parameter has no sense.

Nico


> I can use the logic:NotEqual tag but I need to activate some display if the
> condition is true.
> How to handle that if I use logic:notEqual tag..Becuase then I need to go to
> the next counter in the iterate tag if the condition does not match..
> 
> 
>  
>  parameter="rateClassTCSGRTE" value="<%=ss%>"/>
>  property="rateClassTCSGRTE" size="3" />
> 
> 
> 
> 
> ALL suggestions welcome !!
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> Not R epeat Iterations 
> 
> 
> Try a combination of logic:equal and logic:NotEqual...
> 
> Also try TRUE (In caps..)I had similar problems and i solved them using
> those techniques...
> 
> -Original Message-
> From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 10:25 AM
> To: 'Struts Users Mailing List'
> Subject: RE: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> Not R epeat Iterations 
> 
> 
> I am specifying the complete values.  The e.g I had written was simplistic
> for getitng some help!
> 
> The code is something like this..
> 
>  value="true">
> 
>  
>  parameter="rateClassTCSGRTE" value="<%=ss%>"/> 
> Any ideas..
> 
> regards.
> 
> -Original Message-
> From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 1:18 PM
> To: Struts Users Mailing List
> Subject: Re: URGENT :: LOGIC:EQUAL works only with one constant Value ??
> Not R epeat Iterations 
> 
> 
> Sure it works, but you don't specify the property of the variable, name 
> of the variable to be compared to.
> So that's why it doesn't evaulate to equal.
> Here, take a peek :
> http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal
> 
> Chawla, Yogesh wrote:
> 
> >Hello,
> >
> >I have a repeat nested tag logic like this :
> >
> >The Struts Documentation on ligoc tags mentions this for the logic:equal
> >tag. Why is it that it can only be checked against one contant value ? 
> >
> >equal - Evaluate the nested body content of this tag if the requested
> >variable is equal to the specified value. 
> >Compares the variable specified by one of the selector attributes against
> >the specified constant value. The nested body content of this tag is
> >evaluated if the variable and value are equal. 
> >
> >Can I use something like this :
> >
> > 
> > 
> >  >the results">
> >  >property="value1Text">
> > 
> > 
> >
> > 
> >This is not working even if conditions are not matching. It prints the
> >html:text even if equal is not matching !!
> >
> >Any inputs would be appreciated..
> >
> >Cheers :)
> >DISCLAIMER: The information in this message is confidential and may be
> >legally privileged. It is intended solely for the addressee.  Access to
> this
> >message by anyone else is unauthorised.  If you are not the intended
> >recipient, any disclosure, copying, or distribution of the message, or any
> >action or omission taken by you in reliance on it, is prohibited and may be
> >unlawful.  Please immediately contact the sender if you have received this
> >message in error. Thank you.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >  
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> DISCLAIMER: The information in this message is confidential and may be
> legally privileged. It is intended solely for the addressee.  Access to this
> message by anyone else is unauthorised.  If you are not the intended
> recipient, any disclosure, copying, or distribution of the message, or any
> action or omission taken by you in reliance on it, is prohibited and may be
> unlawful.  Please immediately contact the sender if you have received this
> message in error. Thank you.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> DISCLAIMER: The information in this message is confidential and may be
> legally privileged. It is intended solely for the addressee.  Access to this
> message by anyone else is unauthorised.  If you are not the intended
> recipient, any disclosure, copying, or distribution of the message, or any
> action or omission taken by you in reliance on it, is prohibited and may be
> unlaw

Re: JSP Expression inside Struts html:text property

When you want to use Runtime Expression in a JSP tag, the full tag attribute value 
must be RTexpression, not just part
of it :

" value=""/>


In your case you should think using indexed properties and logic:iterate to display 
your datas.

Nico.


- Original Message - 
From: "Jonathan Hawkins" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 13, 2003 4:26 PM
Subject: JSP Expression inside Struts html:text property


> Howdy -
>
> I have some JSP code that looks like this:
>
>
>
> <% for(int x=1;x <=7;x++){ %>
> 
> <% } %>
>
>
> of course I was expecting the HTML output to be something like:
>
> 
> 
> 
> 
> 
> 
> 
>
> Instead I am getting :
>
>
> 
> 
> 
> 
> 
> 
> 
>
> Anyone have another way to achieve the desired output? I looked into
> the html:logic tag and think that may be the way to go, but I can't
> find an example
> Please helpsuper powers..failing.must .stop
> evilbad code before it'stoo late
>
>
> thanks
> jonathan
>
>
> -
> 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: about initalization

in web.xml, struts controller servlet is set with a "load-on-startup" value.

You can configure another servlet in this file with a "load-on-startup" value greater 
that struts'one. This way your
servlet will load and configure after struts.

Another (better ?) way is to create a struts plugin that will start and stop with 
struts servlet and will be initialized
after struts has read it's configuration file.

Nico.


- Original Message - 
From: "Yan Zhu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 2:17 PM
Subject: about initalization


>
> at what point during application load does Struts preform
> its initalization? I need to insert an event right after that. How
> could I make sure of that?
>
> thanks
>
> yan
>
>
>
> -
> 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]



analyzing User-Agent

Hi all,

I need to produce some browser statistics for a webapp. Do you know some tool or 
user-agent database to get this infos ?

I was thinking about using regular expression to put user-agent into categories. Do 
you think about any other way to do
this ?

Nico.


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



Re: arrayList size

Use this :



 ...



Nico.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 9:39 AM
Subject: arrayList size


> Hi,
>  I am using an arrayList (list1) inside the form bean. How do I check the size 
> of the list
> (using logic:equal) in the jsp, without creating any other varibale in the form bean 
> (to store the
> size)?
> 
> Thanks,
> Pramod
> 
> 
> 
> 
> 
> This  electronic  mail  message  is  intended  solely  for  the  named  recipients  
> and  may contain
> confidential  and  proprietary  business information of eFunds Corporation and all 
> its subsidiaries.
> If  you  are  not a named recipient, please notify the sender immediately.  You may 
> not disclose the
> contents  to  any  other  person;  use  this  electronic  mail message or its 
> contents for any other
> purpose; or further store or copy its contents in any medium.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: actions best practice question

I use a Forward action-mapping :



You can use ForwardAction instead :



I think ForwardAction is prefered when you want this request to use a formbean and 
have validation.

Nico.


> Nico, thanks a lot for the prompt answers.
>  
> Do you use for that the org.apache.struts.actions.ForwardAction ?
> 
> Erez
> 
> 
> 
> -Original Message-----
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 18, 2003 2:48 PM
> To: Struts Users Mailing List
> Subject: Re: actions best practice question
> 
> I use to set a specialized action-mapping for such "init" request, that
> is a simple forward (no Action class needed)
> 
> /newUser/init.do  => forward to newUser.jsp
> 
> /newUser/register.do => RegiterUserAction => welcome.jsp^
> 
> if needed, forward to newUser.jsp can be easily changed by a full Action
> class (to init a form-bean with some default
> values for example)
> 
> Nico.
> 
> 
> 
> 
> > Nico,
> >
> > I agree with that, and that is basically how I did. But I was
> wondering
> > for the first time the action is called, basically just for displaying
> > the page letting the user type in the fields values and click submit,
> > what action do you use, if any? Cause, it's only the next time the
> > action is called that the action is going to do real action.
> >
> > Erez
> >
> > -Original Message-
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 18, 2003 2:24 PM
> > To: Struts Users Mailing List
> > Subject: Re: actions best practice question
> >
> > According to MVC pattern ,alway link to action, not to JSP. This way
> you
> > controler always knows what the user is doing,
> > and you can add some logic if needed.
> >
> > Using a request parameter to addapt action behaviour is a common
> Struts
> > use (take a look at DispatchAction).
> >
> > Nico.
> >
> >
> >
> >
> > > I have a login page with a link with "forgot password?" for users to
> > > retrieve the passwords to their email account in case they forgot
> it.
> > > It's pretty trivial but still using struts what is the best
> practice?
> > >
> > > Should the link inside the login page point to the
> ForgotPassword.jsp
> > or
> > > to a ForgotPassword.do action?
> > >
> > > Currently I used a ForgotPassword.do, and in the action I check if
> > > there's an 'action' parameter with the value of 'send'. If the
> > 'action'
> > > parameter does not exist then I locally forward to the
> > > ForgotPassword.jsp using struts-config.xml local forwards
> > configuration.
> > > If it does exist and equals to 'send' then I perform the actual
> > > operation of going to the EJB layer and do what is necessary to do.
> > > Is this the way to do it, or am I missing the point here?
> > >
> > > Any comment would be greatly appreciated here,
> > > Thanks,
> > > Erez
> > >
> > >
> > >
> > >
> > >
> -
> > > 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: actions best practice question

I use to set a specialized action-mapping for such "init" request, that is a simple 
forward (no Action class needed)

/newUser/init.do  => forward to newUser.jsp

/newUser/register.do => RegiterUserAction => welcome.jsp^

if needed, forward to newUser.jsp can be easily changed by a full Action class (to 
init a form-bean with some default
values for example)

Nico.




> Nico,
>
> I agree with that, and that is basically how I did. But I was wondering
> for the first time the action is called, basically just for displaying
> the page letting the user type in the fields values and click submit,
> what action do you use, if any? Cause, it's only the next time the
> action is called that the action is going to do real action.
>
> Erez
>
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 18, 2003 2:24 PM
> To: Struts Users Mailing List
> Subject: Re: actions best practice question
>
> According to MVC pattern ,alway link to action, not to JSP. This way you
> controler always knows what the user is doing,
> and you can add some logic if needed.
>
> Using a request parameter to addapt action behaviour is a common Struts
> use (take a look at DispatchAction).
>
> Nico.
>
>
>
>
> > I have a login page with a link with "forgot password?" for users to
> > retrieve the passwords to their email account in case they forgot it.
> > It's pretty trivial but still using struts what is the best practice?
> >
> > Should the link inside the login page point to the ForgotPassword.jsp
> or
> > to a ForgotPassword.do action?
> >
> > Currently I used a ForgotPassword.do, and in the action I check if
> > there's an 'action' parameter with the value of 'send'. If the
> 'action'
> > parameter does not exist then I locally forward to the
> > ForgotPassword.jsp using struts-config.xml local forwards
> configuration.
> > If it does exist and equals to 'send' then I perform the actual
> > operation of going to the EJB layer and do what is necessary to do.
> > Is this the way to do it, or am I missing the point here?
> >
> > Any comment would be greatly appreciated here,
> > Thanks,
> > Erez
> >
> >
> >
> >
> > -
> > 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: actions best practice question

According to MVC pattern ,alway link to action, not to JSP. This way you controler 
always knows what the user is doing,
and you can add some logic if needed.

Using a request parameter to addapt action behaviour is a common Struts use (take a 
look at DispatchAction).

Nico.




> I have a login page with a link with "forgot password?" for users to
> retrieve the passwords to their email account in case they forgot it.
> It's pretty trivial but still using struts what is the best practice?
>
> Should the link inside the login page point to the ForgotPassword.jsp or
> to a ForgotPassword.do action?
>
> Currently I used a ForgotPassword.do, and in the action I check if
> there's an 'action' parameter with the value of 'send'. If the 'action'
> parameter does not exist then I locally forward to the
> ForgotPassword.jsp using struts-config.xml local forwards configuration.
> If it does exist and equals to 'send' then I perform the actual
> operation of going to the EJB layer and do what is necessary to do.
> Is this the way to do it, or am I missing the point here?
>
> Any comment would be greatly appreciated here,
> Thanks,
> Erez
>
>
>
>
> -
> 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: question on heavy load website design using struts

Thanks Vic.

We allready used PostgreSQL on a "non strategic" project, but our customers aren't 
open-source addicts (until they need
to reduce costs !)

Nico.


> FYI, one site I worked on P&T (performance and tuning) we improved
> performance by removing replication.
> Also look at postgresql.org, it is much like Oracle.
>
> (self-promo: keep me in mind for engineering larger sites, I have some
> useful experience with good ROI)
>
> Nicolas De Loof wrote:
>
> > No problem, I'll be patient. I just want my boss to stop saying "Oracle 
> > replication" each time we get
load-ballancing
> > needs.
> >
> > Nico.
> >
> >
> >
> >
> >>Sure! Only a little bit patience,please.It may take me
> >>one or two weeks to go over the test.I used to meet a
> >>problem on container managed security using jboss
> >>cluster.That is,jboss'clusterring feature works fine
> >>except when I use declarative security model to
> >>protect my page,the authenticated principal will not
> >>get replicated across the members in the cluster.At
> >>this time,I want to find a work around to that too.
> >>
> >>Again,thaks for your info.
> >>
> >>Guo Yingshou
> >> --- Nicolas De Loof <[EMAIL PROTECTED]>
> >>的正文:> Please could you send me feedback if you
> >>experiment
> >>
> >>>this jdbc-cluster-driver ?
> >>>
> >>>Nico
> >>>
> >>>
> >>>
> >>>
> >>>>Nico,
> >>>>
> >>>>Great! That is exactly what I'm looking for.Maybe
> >>>
> >>>I'll
> >>>
> >>>>have some hard time to setup a testing environment
> >>>
> >>>and
> >>>
> >>>>write some code to see what will happen.
> >>>>
> >>>>Thanks a lot!
> >>>>
> >>>>Guo Yingshou
> >>>>
> >>>> --- Nicolas De Loof <[EMAIL PROTECTED]>
> >>>>的正文:> You could look at this :
> >>>>
> >>>>>http://c-jdbc.objectweb.org/
> >>>>>
> >>>>>this intermediate JDBC driver allow you to
> >>>
> >>>cluster
> >>>
> >>>>>databases. Notice I never used it, use it at
> >>>
> >>>your
> >>>
> >>>>>own risk ;-)
> >>>>>
> >>>>>Nico.
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi,
> >>>>>>
> >>>>>>I am sure that someone here must have worked
> >>>
> >>>on a
> >>>
> >>>>>>large website with heavy load using struts and
> >>>
> >>>I
> >>>
> >>>>>>wonder if you'll be kindly enough to give me
> >>>
> >>>some
> >>>
> >>>>>>suggestions in this occasion.
> >>>>>>
> >>>>>>I am using tomcat+jboss as application
> >>>
> >>>server.I
> >>>
> >>>>>have
> >>>>>
> >>>>>>setup several tomcat_jboss instances in a
> >>>
> >>>cluster
> >>>
> >>>>>>environment and of course I use struts in my
> >>>>>>application.HttpSession created in one
> >>>
> >>>instance
> >>>
> >>>>>will
> >>>>>
> >>>>>>get replicated across all members in the
> >>>>>
> >>>>>cluster.It's
> >>>>>
> >>>>>>just what I want.The problem is how should I
> >>>>>
> >>>>>connect
> >>>>>
> >>>>>>the app servers with the backend db server(s)?
> >>>
> >>>If
> >>>
> >>>>>I
> >>>>>
> >>>>>>use only one db instance,all app server can
> >>>>>
> >>>>>connect to
> >>>>>
> >>>>>>it without any problem,but here lies the
> >>>>>
> >>>>>bottleneck.I
> >>>>>
> >>>>>>want to use several db instances(preferrably
> >>>>>>mysql).How can I do that?
> >>>>>>
> >>>>&g

Re: question on heavy load website design using struts

No problem, I'll be patient. I just want my boss to stop saying "Oracle replication" 
each time we get load-ballancing
needs.

Nico.



> Sure! Only a little bit patience,please.It may take me
> one or two weeks to go over the test.I used to meet a
> problem on container managed security using jboss
> cluster.That is,jboss'clusterring feature works fine
> except when I use declarative security model to
> protect my page,the authenticated principal will not
> get replicated across the members in the cluster.At
> this time,I want to find a work around to that too.
>
> Again,thaks for your info.
>
> Guo Yingshou
>  --- Nicolas De Loof <[EMAIL PROTECTED]>
> 的正文:> Please could you send me feedback if you
> experiment
> > this jdbc-cluster-driver ?
> >
> > Nico
> >
> >
> >
> > > Nico,
> > >
> > > Great! That is exactly what I'm looking for.Maybe
> > I'll
> > > have some hard time to setup a testing environment
> > and
> > > write some code to see what will happen.
> > >
> > > Thanks a lot!
> > >
> > > Guo Yingshou
> > >
> > >  --- Nicolas De Loof <[EMAIL PROTECTED]>
> > > 的正文:> You could look at this :
> > > >
> > > > http://c-jdbc.objectweb.org/
> > > >
> > > > this intermediate JDBC driver allow you to
> > cluster
> > > > databases. Notice I never used it, use it at
> > your
> > > > own risk ;-)
> > > >
> > > > Nico.
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > I am sure that someone here must have worked
> > on a
> > > > > large website with heavy load using struts and
> > I
> > > > > wonder if you'll be kindly enough to give me
> > some
> > > > > suggestions in this occasion.
> > > > >
> > > > > I am using tomcat+jboss as application
> > server.I
> > > > have
> > > > > setup several tomcat_jboss instances in a
> > cluster
> > > > > environment and of course I use struts in my
> > > > > application.HttpSession created in one
> > instance
> > > > will
> > > > > get replicated across all members in the
> > > > cluster.It's
> > > > > just what I want.The problem is how should I
> > > > connect
> > > > > the app servers with the backend db server(s)?
> > If
> > > > I
> > > > > use only one db instance,all app server can
> > > > connect to
> > > > > it without any problem,but here lies the
> > > > bottleneck.I
> > > > > want to use several db instances(preferrably
> > > > > mysql).How can I do that?
> > > > >
> > > > > Thanks in advance!
> > > > >
> > > > > Guo Yingshou
> > > > >
> > > > >
> > > >
> > >
> >
> _
> > > > > Do You Yahoo!?
> > > > > 国内电邮用户反垃圾调查拉开帷幕
> > > > >
> > > >
> > >
> >
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
> > > > >
> > > > >
> > > >
> > >
> >
> -
> > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > >
> >
> -
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > >
> > >
> >
> _
> > > Do You Yahoo!?
> > > 国内电邮用户反垃圾调查拉开帷幕
> > >
> >
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
> _
> Do You Yahoo!?
> 国内电邮用户反垃圾调查拉开帷幕
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
>
> -
> 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: question on heavy load website design using struts

Please could you send me feedback if you experiment this jdbc-cluster-driver ?

Nico



> Nico,
>
> Great! That is exactly what I'm looking for.Maybe I'll
> have some hard time to setup a testing environment and
> write some code to see what will happen.
>
> Thanks a lot!
>
> Guo Yingshou
>
>  --- Nicolas De Loof <[EMAIL PROTECTED]>
> 的正文:> You could look at this :
> >
> > http://c-jdbc.objectweb.org/
> >
> > this intermediate JDBC driver allow you to cluster
> > databases. Notice I never used it, use it at your
> > own risk ;-)
> >
> > Nico.
> >
> >
> > > Hi,
> > >
> > > I am sure that someone here must have worked on a
> > > large website with heavy load using struts and I
> > > wonder if you'll be kindly enough to give me some
> > > suggestions in this occasion.
> > >
> > > I am using tomcat+jboss as application server.I
> > have
> > > setup several tomcat_jboss instances in a cluster
> > > environment and of course I use struts in my
> > > application.HttpSession created in one instance
> > will
> > > get replicated across all members in the
> > cluster.It's
> > > just what I want.The problem is how should I
> > connect
> > > the app servers with the backend db server(s)? If
> > I
> > > use only one db instance,all app server can
> > connect to
> > > it without any problem,but here lies the
> > bottleneck.I
> > > want to use several db instances(preferrably
> > > mysql).How can I do that?
> > >
> > > Thanks in advance!
> > >
> > > Guo Yingshou
> > >
> > >
> >
> _
> > > Do You Yahoo!?
> > > 国内电邮用户反垃圾调查拉开帷幕
> > >
> >
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
> _
> Do You Yahoo!?
> 国内电邮用户反垃圾调查拉开帷幕
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
>
> -
> 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: question on heavy load website design using struts

You could look at this :

http://c-jdbc.objectweb.org/

this intermediate JDBC driver allow you to cluster databases. Notice I never used it, 
use it at your own risk ;-)

Nico.


> Hi,
>
> I am sure that someone here must have worked on a
> large website with heavy load using struts and I
> wonder if you'll be kindly enough to give me some
> suggestions in this occasion.
>
> I am using tomcat+jboss as application server.I have
> setup several tomcat_jboss instances in a cluster
> environment and of course I use struts in my
> application.HttpSession created in one instance will
> get replicated across all members in the cluster.It's
> just what I want.The problem is how should I connect
> the app servers with the backend db server(s)? If I
> use only one db instance,all app server can connect to
> it without any problem,but here lies the bottleneck.I
> want to use several db instances(preferrably
> mysql).How can I do that?
>
> Thanks in advance!
>
> Guo Yingshou
>
> _
> Do You Yahoo!?
> 国内电邮用户反垃圾调查拉开帷幕
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.tech.yahoo.com/zhuanti/laji/index.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: File Upload size restriction ??

I submited a bug on bugzilla for this. I discovered that I get this strange "freeze" 
when generated HTML is *long*. As I
use the validator, I restricted the generated javascript to the 3 functions we use on 
the webapp and it works. If I add
some hundred of basic HTML at JSP end, if freeze.

You should try to limit generated HTML size, until someone founds the problem (no idea 
for myself, neither reading the
code nor using a debugger).

Nico.



> I'm experiencing the EXACT same problem (Win2000, Struts
> 1.1 RC 1, Weblogic 7, Sun JDK 1.3.1_07).
>
> I've noticed that if my input forward is a simple JSP, it
> works fine.  Also, it works fine if the input forward is a
> tile definition which simply specifies a JSP, like this:
>
>  path="/upload.jsp"/>
>
> However, it hangs if I try to get fancy and use some
> inheritance in my definitions, like this:
>
> extends="tile.main">
> value="key.title.window.home"/>
> value="tile.struts.upload.upload.body"/>
>
> extends="tile.main.body.internalTitle">
>
>
>
>
> It does eventually come back with the error message, but
> only after 5 - 10 minutes (and I see the second request
> just like Nico mentioned).  If I switch to JRockit 1.3.1,
> it hangs forever (well, at least as long as lunch :-)
>
> Nicolas, have you or anyone else discovered a
> solution/workaround?  Thanks!
>
> best,
>
> garthabrindoid
>
> Nicolas De Loof wrote:
> > That's what I was trying to do and discovered that upload
> > behaviour changes when going over Struts configured
> > file-size limit (4Mo in my case).
> >
> > With a 3Mo file it works fine. With a 4,4Mo file I get
> > errors on logs but upload goes on in the browser, and
> > after a  long while (3 minutes) I get others validate()
> > logs (related with no-file errors) and the errors are
> > displayed on browser.
> >
> > I don't understand why I get TWO TIMES validate() logs !!
> >
> > If i set the size-limit to "6M", 4,4Mo upload works well
> > in less than a seconds, but a  10Mo upload takes more
> than
> > 5 minutes. I get file-size error logs in the first
> request
> > seconds, browser stays for a  (long) while and I get
> > second validation error logs.
> >
> > Using IP or machine name doesn't change anything.
> >
> > Nico.
>
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: logic:equal

You can try this :




...


If you cahnge VIEW value, be carreful that your will have to force JSP recompilation 
because  final static (constant)
value will be compiled inline in generated servlet.

Nico.


- Original Message - 
From: "Vijay K Hegde" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 4:46 PM
Subject: logic:equal


Hi All,

  How do i use a static attribute of a class and compare with a value="N"
SystemConstants.VIEW
<[EMAIL PROTECTED] import="com.tgt.utility.SystemConstants"%>


  


Vijay K. Hegde



-
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: IMAGE DISPLAY PROBLEM - PLEASE HELP!!

As your serlvet-mapping is setted to "/" every request is 
handled by Struts.

Struts RequestProcessor extracts the extension to get the action path to process.
request = "/MyWebApp/pages/graphics/MyPicture.gif"

When your request is handled, they're is no action-mapping for
"/MyWebApp/pages/graphics/MyPicture"


You should use ".do" url-pattern for Struts actions, so that other types are directly 
handled by HTTP server (or
container)

Nico.


>
> Hello,
>
>
> I am having a simple problem regarding image displaying in a web
> application (.war).
>
>
> My directory structure is:
>
> MyWebApp.war
> - META-INF
> - WEB-INF
> - pages
> - graphics
> - MyPicture.gif
> - layout
> - upperBar.jsp
>
>
> The problem is: HOW to display MyPicture.gif from upperBar.jsp?
>
>
> I tried this:
>
> 
>
>
> In properties file I have:
>
> graphics.MyPicture=/pages/graphics/MyPicture.gif
>
>
> This works fine -- HTML generated contains this:
>
> 
>
>
> Unfortunately, when the browser tries to download the image I get this:
>
> 2003-07-17 15:17:05 org.apache.struts.action.RequestProcessor process
> INFO: Processing a 'GET' for path '/pages/graphics/MyPicture'
> 2003-07-17 15:17:05 org.apache.struts.action.RequestProcessor processMapping
> SEVERE: Invalid path /pages/graphics/MyPicture was requested
>
>
> There are two questions arising here:
>
>
> 1). WHERE did the file extension go? Because I get:
>
> INFO: Processing a 'GET' for path '/pages/graphics/MyPicture'
>
> and not
>
> INFO: Processing a 'GET' for path '/pages/graphics/MyPicture.gif'
>
>
> 2). WHY doesn't the image get loaded? I tried to refer it in a direct way:
>
> http://127.0.0.1:7001/MyWebApp/pages/graphics/MyPicture.gif
>
> which of course didn't work either.
>
>
> I am using Tomcat 4.1.24. My servlet is the 'default' servlet:
>
> 
> MyWebApp
> /
> 
>
>
>
> Any help??
> THANKS!!
>
>
>
> -- Stanislaw Findeisen  http://rainbow.mimuw.edu.pl/~sf
>
>Live life to the MAX.
>Follow JESUS.
>
>
>
> -
> 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: Acces form name in the jsp

No form-bean is "associated" with a JSP; Some JSP use  to use form-beans.

I use some constants for form-beans so that form-bean names are duplicated only one 
time : in constant definition class
and in struts-config.xml

public class Forms {

public final static String USERFORM = "UserForm";


}

Then mly JSP use such code :



This way I can change form-bean name without changing JSP (just need to force 
recompile them)

Nico.



Hi
I want to know if there is any way to obtain the form name associated to
a JSP without put it form the strut-config.

Because, if the name of the form change on the strut-config; i have to
change the name of the form in all of my JSP's.

Example of the problem:







...
...
...

...

Thanks.

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


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



Re: Regarding the strus1.1 final release

Moving Struts to commons-ressources is planned for 1.2. I think some struts commiters 
where so happy doing it that they
pre-include the jar in RC1, until it is not used.

Nico.



Hi,
   I had been using Jakarta-struts-1.1-rc1 version. As the final release has been 
done, I wanted to upgrade to it.
The release notes says, the Commons-DBCP and Commons-Pool dependencies have been 
removed.
These are replaced with a dependency on the Struts-Legacy package, containing the 
GenericDataSource and
GenericConnection classes from Struts 1.0.2.
 I wanted to know that version 1.1-rc1 also included commons-resources.jar, which 
I don't see in the final release.
Though there is a mention for the Commons-DBCP and Commons-Pool being replaced by the 
legacy package.
But there is no information about this jar. It's not bundled in the final release.

Can anyone let me know what has to be done?

Regards,
Ashutosh

-
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] Does any one know ....

Oups, mailing list doesn't allow attachements... and my website is down !

Sorry.

Nico.

> 
> Something like this ?
> 
> Nico.
> 
> 
> 
> > :o)... well great idea
> > 
> > F.
> > 
> > - Original Message - 
> > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 04, 2003 3:23 PM
> > Subject: Re: [OT] Does any one know 
> > 
> > 
> > > a bit like Tom when gets an electric shock in Tom & Jerry?
> > > 
> > > Firat TIRYAKI wrote:
> > > > the logo should be the skeleton of tomcat... will be cool...
> > > > 
> > > > F.
> > > > 
> > > > - Original Message - 
> > > > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Friday, July 04, 2003 2:48 PM
> > > > Subject: Re: [OT] Does any one know 
> > > > 
> > > > 
> > > > 
> > > >>hmm, you're right. I wasn't inspired by any of the struts bookcovers.
> > > >>
> > > >>Steve Raeburn wrote:
> > > >>
> > > >>>Yeah, but ants are cool whereas a strut is just | or /
> > > >>>
> > > >>>Steve
> > > >>>
> > > >>>
> > > >>>
> > > -Original Message-
> > > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> > > Sent: July 4, 2003 3:50 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: [OT] Does any one know 
> > > 
> > > 
> > > I can feel a competition coming on. An image as good as the ant logo 
> > > would be cool
> > > 
> > > Simon Kelly wrote:
> > > 
> > > 
> > > >Just what I was looking for.
> > > >
> > > >Thanks Steve.
> > > >
> > > >Simon
> > > >
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>-
> > > >>>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-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Does any one know ....


Something like this ?

Nico.



> :o)... well great idea
> 
> F.
> 
> - Original Message - 
> From: "Adam Hardy" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 04, 2003 3:23 PM
> Subject: Re: [OT] Does any one know 
> 
> 
> > a bit like Tom when gets an electric shock in Tom & Jerry?
> > 
> > Firat TIRYAKI wrote:
> > > the logo should be the skeleton of tomcat... will be cool...
> > > 
> > > F.
> > > 
> > > - Original Message - 
> > > From: "Adam Hardy" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, July 04, 2003 2:48 PM
> > > Subject: Re: [OT] Does any one know 
> > > 
> > > 
> > > 
> > >>hmm, you're right. I wasn't inspired by any of the struts bookcovers.
> > >>
> > >>Steve Raeburn wrote:
> > >>
> > >>>Yeah, but ants are cool whereas a strut is just | or /
> > >>>
> > >>>Steve
> > >>>
> > >>>
> > >>>
> > -Original Message-
> > From: Adam Hardy [mailto:[EMAIL PROTECTED]
> > Sent: July 4, 2003 3:50 AM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] Does any one know 
> > 
> > 
> > I can feel a competition coming on. An image as good as the ant logo 
> > would be cool
> > 
> > Simon Kelly wrote:
> > 
> > 
> > >Just what I was looking for.
> > >
> > >Thanks Steve.
> > >
> > >Simon
> > >
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>-
> > >>>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: GenericDataSource

That should be the reason why my "1.27 pm" brain looks so quick ! Don't panic, I'm on 
holiday next week, you will have
the whole day to respond to struts-users.

Nico.


> It's 4.25am here. My brain is a little bit s - l - o - w .
>
> Steve
>
> > -----Original Message-
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > Sent: July 4, 2003 4:24 AM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: GenericDataSource
> >
> >
> > I promise to let you respond first to the next one ! ;-)
> >
> > Nico.
> >
> >
> > > Stop doing that! :-)
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > > > Sent: July 4, 2003 4:15 AM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: GenericDataSource
> > > >
> > > >
> > > > Struts 1.1 has dependencies to some commons projects. First 1.1
> > > > pre-release of Struts used commons-dbcp for the
> > > > DataSource functionnality in replacement of GenericDataSource .
> > > >
> > > > Waiting for this commons to get stable before releasing 1.1
> > > > final, Struts commiters agreed to go back to
> > > > GenericDataSource because commons-dbcp looked very unstable.
> > > >
> > > > Struts-legacy has been created to include this class outside of
> > > > Struts core as DefaultDataSource have been deprecated :
> > > > Future Struts version will set the  "type" attribute
> > > > to mandatory, so you will have to set your selected
> > > > DataSource (that can be commons-dbcp, and lot's of us use
> > > > container pool service and JNDI to get a DataSource).
> > > >
> > > > Nico.
> > > >
> > > >
> > > >
> > > > >
> > > > > Can someone explain why GenericDataSource was moved to lagacy?
> > > > >
> > > > > I have been using it successfully as a JINI DataSourse - have
> > > > others experienced
> > > > > problems? - if so, what problems?
> > > > >
> > > > > db
> > > > >
> > > > >
> > > > >
> > -
> > > > > 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: GenericDataSource

I promise to let you respond first to the next one ! ;-)

Nico.


> Stop doing that! :-)
> 
> Steve
> 
> > -Original Message-
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > Sent: July 4, 2003 4:15 AM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: GenericDataSource
> > 
> > 
> > Struts 1.1 has dependencies to some commons projects. First 1.1 
> > pre-release of Struts used commons-dbcp for the
> > DataSource functionnality in replacement of GenericDataSource .
> > 
> > Waiting for this commons to get stable before releasing 1.1 
> > final, Struts commiters agreed to go back to
> > GenericDataSource because commons-dbcp looked very unstable.
> > 
> > Struts-legacy has been created to include this class outside of 
> > Struts core as DefaultDataSource have been deprecated :
> > Future Struts version will set the  "type" attribute 
> > to mandatory, so you will have to set your selected
> > DataSource (that can be commons-dbcp, and lot's of us use 
> > container pool service and JNDI to get a DataSource).
> > 
> > Nico.
> > 
> > 
> > 
> > >
> > > Can someone explain why GenericDataSource was moved to lagacy?
> > >
> > > I have been using it successfully as a JINI DataSourse - have 
> > others experienced
> > > problems? - if so, what problems?
> > >
> > > db
> > >
> > >
> > > -
> > > 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: GenericDataSource

Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts 
used commons-dbcp for the
DataSource functionnality in replacement of GenericDataSource .

Waiting for this commons to get stable before releasing 1.1 final, Struts commiters 
agreed to go back to
GenericDataSource because commons-dbcp looked very unstable.

Struts-legacy has been created to include this class outside of Struts core as 
DefaultDataSource have been deprecated :
Future Struts version will set the  "type" attribute to mandatory, so you 
will have to set your selected
DataSource (that can be commons-dbcp, and lot's of us use container pool service and 
JNDI to get a DataSource).

Nico.



>
> Can someone explain why GenericDataSource was moved to lagacy?
>
> I have been using it successfully as a JINI DataSourse - have others experienced
> problems? - if so, what problems?
>
> db
>
>
> -
> 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: Réf. : Re: How to pass parameters to a javascript popup

When you use a relative url (without "/" as first char) browser request the ressource 
from it's current location:

For example, let's say the current URL is : http://server/context/news/consult.do

if you add a RELATIVE link to "list.do", browser will send a request for
"http://server/context/news/list.do";

if you add an ABSOLUTE link to "/list.do", browser will send a request for
"http://server/news/list.do";

 tag is used to create absolute URI, adding webapp context at runtime :

 will generate "/context/foo", regardless current URL is
"/context/subdir/another_subdir/action.do"

Nico.



Nicolas,
it works! thank you very much.
Can you explain me the magic of html rewrite tag.

Meissa





"Nicolas De Loof" <[EMAIL PROTECTED]>
04/07/2003 09:03
Veuillez répondre à "Struts Users Mailing List"


Pour :  "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc :
Objet : Re: How to pass parameters to a javascript popup


Perhaps you should try this :


?task=doThis');return false;">Help


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





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.


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



Re: NewBie:Populating objects in Jsp

Yeah, I get the first point !

Are you ready for the next question ?

Nico.

> Nicolas obviously types quicker then me :-)
> 
> Steve
> 
> > -Original Message-
> > From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> > Sent: July 3, 2003 11:45 PM
> > To: Struts Users Mailing List
> > Subject: Re: NewBie:Populating objects in Jsp
> > 
> > 
> > 1.
> >  type attribute is uses to set the java type of a 
> > JSP variable set by the tag for current item. By
> > default type is java.lang.Object, and if you don't use scriptlets 
> > (<% java %>) or Runtime Expression (<%= java %>) you
> > don't need to use it.
> > 
> > In the case you want to use type attribute, JSP has to import 
> > type declaration using a JSP directive <% @page
> > import="" %>.
> > 
> > In your case, I don't think PUPIL_LIST items are APFM01Action instances.
> > 
> > 2.
> > id attribute is used to set the name of a JSP variable and a page 
> > scoped bean for the current item. In your case, it
> > should be a "pupil", not a "pupilList".
> > 
> > 
> > 
> > Nico.
> > 
> > > The APFM02.jsp code is as follows :-
> > >
> > > 
> > > 
> > > 
> > >  
> > > 
> > > 
> > >
> > > and the Struts-config file is as follows :-
> > >
> > >  > > type="APFM01Form"/>
> > >   > > type="APFM02Form"/>
> > >   
> > >
> > >   
> > >   
> > >  > >type="APFM01Action"
> > >   name="APFM01Form"
> > >   input="/APFM01.jsp"
> > >   scope="session">
> > >
> > >   
> > >  
> > >> >type="APFM02Action"
> > >   name="APFM02Form"
> > >   scope="request">
> > >  
> > >
> > > Thanks
> > > Sushil
> > >
> > >
> > > -
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > 
> > 
> > -
> > 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 pass parameters to a javascript popup

Perhaps you should try this :


?task=doThis');return 
false;">Help


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



Re: NewBie:Populating objects in Jsp

1.
 type attribute is uses to set the java type of a JSP variable set by 
the tag for current item. By
default type is java.lang.Object, and if you don't use scriptlets (<% java %>) or 
Runtime Expression (<%= java %>) you
don't need to use it.

In the case you want to use type attribute, JSP has to import type declaration using a 
JSP directive <% @page
import="" %>.

In your case, I don't think PUPIL_LIST items are APFM01Action instances.

2.
id attribute is used to set the name of a JSP variable and a page scoped bean for the 
current item. In your case, it
should be a "pupil", not a "pupilList".



Nico.

> The APFM02.jsp code is as follows :-
>
> 
> 
> 
>  
> 
> 
>
> and the Struts-config file is as follows :-
>
>  type="APFM01Form"/>
>   type="APFM02Form"/>
>   
>
>   
>   
> type="APFM01Action"
>   name="APFM01Form"
>   input="/APFM01.jsp"
>   scope="session">
>
>   
>  
>   type="APFM02Action"
>   name="APFM02Form"
>   scope="request">
>  
>
> Thanks
> Sushil
>
>
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!


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



Re: struts-layout

struts-layout is a taglib developped by Improve to help building Struts app.

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

It is not currently part of Struts, and was noy included in 1.1rc1. It will not bee 
since Improve didn't donate code to
Apache Software Fundation.


Nico.

- Original Message - 
From: "McRobb, John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 3:12 PM
Subject: struts-layout


> I heard that this was in struts 1.1rc1, what happened to it that it didn't
> make 1.1 and what are the plans.
>
> Ta
>
> John
>
>
>
> Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
> plc and Tesco PLC. Tesco Personal
Finance Limited is registered in Scotland No 173199. Registered Office: 42 St Andrew 
Square, Edinburgh EH2 2YE.
>
> This e-mail message is confidential and for use by the addressee only. If you are 
> not the addressee, please return the
message to the sender by replying to it and then delete the message from your computer.
>
> Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
> accept responsibility for changes
made to this message after it was sent.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Using rewrite to reference HTML Assets - Tip #9 Question

About the syntax error, just change

> 
>SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
...

to

<SCRIPT language='javascript'
   SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
...
(no more ">" after language attribute)

About your context, I don't know why it would'nt work. What server are you using ?

Nico.

>
> Yes, the taglib def for html and other tags are in the header and all tags
> (html, logic, etc.) work fine everywhere else.
>
> Here's the generated html:
>
> <SCRIPT language='javascript'>
>SRC='/js/overlib_mini.js'>
> 
> 
>SRC='/js/calendar.js'>
> 
>
> Also, I noticed that I get a syntax error on the 2nd  when I load
> the page.
>
> Richard
>
>
>
>
>
> "Nicolas De
> Loof"  To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
>  @cgey.com> Subject: Re: Using rewrite to 
> reference HTML Assets - Tip #9 Question
>
> 07/02/2003
> 09:48 AM
> Please respond
> to "Struts
> Users Mailing
> List"
>
>
>
>
>
>
> Did you include the taglib definition on JSP header :
>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> Look at generated HTML to see if  tag has been fully
> translated by JSP compiler.
>
> Nico.
>
>
> > Just signed up to the mailing list a few minutes ago so as you would
> > probably expect, I have a question that I am hoping someone can help me
> > with.
> >
> >  I'm trying to reference two javascript files but am unable to do it
> > successfully using the example in tip#9.
> >
> > Everything works fine when I use
> >
> > 
> > 
> >
> > when I run the app in Netbeans with Tomcat but when I move the app to
> > another server and it gets an application name, it loses the context
> > relative URL so I tried to code it using the html rewrite as tip#9
> > suggested but get an object expected error (it can't find the js files)
> > when I click on the linked image.
> >
> > Can someone tell me what I am doing wrong or what else I can try to get
> > this to work? I have been unable to find any documentation or examples
> > elsewhere.
> >
> >
> > Here's the applicable code:
> >
> > 
> >
> > 
> >SRC='<html:rewrite page="/js/overlib_mini.js"/>'>
> > 
> > 
> >SRC='<html:rewrite page="/js/calendar.js"/>'>
> > 
> >
> > 
> >
> >
> > 
> > 
> >
> >  > border="0"/>
> >
> > 
> > 
> >
> >
> > Thanks!
> >
> > Richard
> >
> > **
> > This message is intended only for the designated recipient(s).  It may
> > contain confidential or proprietary information and may be subject to
> > the attorney-client privilege or other confidentiality protections.
> > If you are not a designated recipient, you may not review, use, copy
> > or distribute this message.  If you receive this in error, please
> > notify the sender by reply e-mail and delete this message.  Thank you.
> >
> > ***
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you.
>
> ***
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Using rewrite to reference HTML Assets - Tip #9 Question

Did you include the taglib definition on JSP header :

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

Look at generated HTML to see if  tag has been fully translated by JSP 
compiler.

Nico.


> Just signed up to the mailing list a few minutes ago so as you would
> probably expect, I have a question that I am hoping someone can help me
> with.
> 
>  I'm trying to reference two javascript files but am unable to do it
> successfully using the example in tip#9.
> 
> Everything works fine when I use
> 
> 
> 
> 
> when I run the app in Netbeans with Tomcat but when I move the app to
> another server and it gets an application name, it loses the context
> relative URL so I tried to code it using the html rewrite as tip#9
> suggested but get an object expected error (it can't find the js files)
> when I click on the linked image.
> 
> Can someone tell me what I am doing wrong or what else I can try to get
> this to work? I have been unable to find any documentation or examples
> elsewhere.
> 
> 
> Here's the applicable code:
> 
> 
> 
> 
>SRC=''>
> 
> 
>SRC=''>
> 
> 
> 
> 
> 
> 
> 
> 
>  border="0"/>
> 
> 
> 
> 
> 
> Thanks!
> 
> Richard
> 
> **
> This message is intended only for the designated recipient(s).  It may
> contain confidential or proprietary information and may be subject to
> the attorney-client privilege or other confidentiality protections.
> If you are not a designated recipient, you may not review, use, copy
> or distribute this message.  If you receive this in error, please
> notify the sender by reply e-mail and delete this message.  Thank you. 
> 
> ***
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Tag to remove jsp from cache???

use struts-config_1_1.dtd to get infos and validate your struts-config.

Your snapshot looks good. How do you know your "controller element is not at all 
getting called" ?

Nico.



> Hi Nicolas ,
> Thank u very much for ur response.
> I have done whatever u said in my struts-config but i dont know how come my 
> controller element is not at all getting
called..
> Here is my struts-config snapshot.
> 
> ..
> ..
> ..
>
>  type="gfgf"
>scope="request">
>
>   
>  
>
>  processorClass="org.apache.struts.action.RequestProcessor"
>debug="0"
>nocache="true"
> contentType="text/html"/>
>
>  
>
> Could u please help me in this regard.
> Where should i specify controller element??[in which part of struts-config.xml]
> Thanking u
> Prashanth
>
>
> Nicolas De Loof <[EMAIL PROTECTED]> wrote:
> You can configure Struts to ad HTTP no-cache headers to every response :
>
> in struts-config.xml :
>
>
> You can add some HTTP directives to your JSP (or tiles layouts) like this :
>
>
>
>
>
>
>
> Nico.
>
>
>
> > Before you send any data in the response you can
> > Send the following thru your response object:
> >
> > >response.setDateHeader ("Expires", 0);
> >response.setHeader ("Pragma", "no-cache");
> >if (request.getProtocol().equals ("HTTP/1.1")) {
> >   response.setHeader ("Cache-Control", "no-cache");
> >}
> > %>
> >
> > Note, however that users can still go back in history
> > And resubmit their data. Browsers maintain history list
> > And unfortunately they do remember form data too. So if
> > Your user submitted a request and then clicks back button,
> > The browser will ask him/her if he/she wants to resubmit
> > the data? I saw a note somewhere in Ted's (I think) book
> > about how you can prevent this kind of submission on the
> > server side but have not explored that further. Now I
> > can't even remember where I saw it.
> >
> > The gist of it is that before you send the form to be
> > submitted by the user you stamp it, and remember what is
> > it you still expecting from the user inside the Session
> > context. If user submits the form with the right stamp
> > the request is processed, otherwise you can tell the user
> > to stop resubmitting the same request.
> >
> > Alex.
> >
> > > -Original Message-
> > > From: Prashanth.S [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, July 01, 2003 8:08 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Tag to remove jsp from cache???
> > >
> > > Hi all,
> > > Is there any tag in struts to remove cache??
> > > Whenever i hit Browser 'Back' button it should not take from the
> > cache..
> > > Any help is appreciated..
> > > or is there any option to do that
> > > Thanks
> > > Prashanth
> > >
> > >
> > > -
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!


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



Re: FieldChecks.validateMinLengths()

I think this is the correct behaviour since "blank" fields have to be considered using 
the "required" rule.

You can use both required + minlength rules if field is mandatory.

Nico.



> I started using struts validator. I just copied a bunch of stuff from 
> the struts example and started using that, and found that the minlength 
> validation actually returns true when the text field is blank.
> 
> This was my first attempt and I was trying to make sure I had got the 
> validator plug-in functioning correctly, so I actually spent a few hours 
> hunting down the reason why my blank field was passing validation even 
> though the minlength had been set to 1.
> 
> I discovered in the source code that this is normal behaviour - surely 
> that can't be the case? I would expect a blank field to fail validation 
> for minimum length. Or is this actually the case for reasons I'm not 
> aware of?
> 
> Thanks
> Adam
> 
> 
> -
> 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 to remove jsp from cache???

You can configure Struts to ad HTTP no-cache headers to every response :

in struts-config.xml :


You can add some HTTP directives to your JSP (or tiles layouts) like this :







Nico.



> Before you send any data in the response you can 
> Send the following thru your response object:
> 
> <% 
>response.setDateHeader ("Expires", 0);
>response.setHeader ("Pragma", "no-cache");
>if (request.getProtocol().equals ("HTTP/1.1")) {
>   response.setHeader ("Cache-Control", "no-cache");
>}
> %>
> 
> Note, however that users can still go back in history
> And resubmit their data. Browsers maintain history list
> And unfortunately they do remember form data too. So if
> Your user submitted a request and then clicks back button,
> The browser will ask him/her if he/she wants to resubmit 
> the data? I saw a note somewhere in Ted's (I think) book 
> about how you can prevent this kind of submission on the 
> server side but have not explored that further. Now I 
> can't even remember where I saw it. 
> 
> The gist of it is that before you send the form to be 
> submitted by the user you stamp it, and remember what is 
> it you still expecting from the user inside the Session 
> context. If user submits the form with the right stamp 
> the request is processed, otherwise you can tell the user
> to stop resubmitting the same request.
> 
> Alex.
> 
> > -Original Message-
> > From: Prashanth.S [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 01, 2003 8:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tag to remove jsp from cache???
> > 
> > Hi all,
> > Is there any tag in struts to remove cache??
> > Whenever i hit  Browser 'Back' button it should not take from the
> cache..
> > Any help is appreciated..
> > or is there any option to do that
> > Thanks
> > Prashanth
> > 
> > 
> > -
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> 
> 
> -
> 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: External style sheets and tiles.

Struts  and HTML  tags are confusing.
 is used to create a hyperlink ( tag)

In your layout, you can use this :

" />

it use  to build the absolute path to your css stylesheet.

Nico.



> Is it possible to define a link to an external style sheet using 
> (or something similar)?
> I am using tiles and I have a base layout which contains the 
> part of each page.  Since my link to the style sheet must go inside
> , I will need to have the URL dynamically generated.
> How doable is this using my current tiles config?
> Will I need to define a layout for every level of the directory structure
> and use manual relative links?
> Am I doing something fundamentally wrong?
> 
> Any suggestions would be gratefully received.
> 
> Ta,
> Watto.
> 
> DISCLAIMER: This message contains confidential information and is intended
> for To: and Cc: (name). If you are not the intended recipient you are
> notified that disclosing, copying, distributing or taking any action in
> reliance on the contents of this information is strictly prohibited. E-mail
> transmission cannot be guaranteed to be secure or error-free as information
> could be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
> or contain viruses. The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a result
> of e-mail transmission. The content of this e-mail does not necessarily
> represent the company, its policies, or views, or those of its subsidiaries.
> If verification is required please request a hard-copy version.
> Please note that M2 Limited monitors incoming and outgoing mail for
> compliance with its email policy. This includes scanning incoming emails to
> detect Viruses. 
> 
> 

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



Re: with sessionAttributes

use the "scope" attribute (it is the same for lot's of struts tags)


...


http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal

Notice Struts will automatically look in scopes for you if you don't use scope :
page -> request -> session -> application

Nico.



> Hi,
> i need to check for the value of a specific session Attribute. I know that i
> can use  with request-parameters. Now how would i check if a
> session attribute "foo" equals the value of "bar"?
> 
> Thanks Filip
> 
> 
> 
> 





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

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



Re: File Upload size restriction ?? IT DOESN'T WORK ON STRUTS-EXAMPLE

I made some test on another Win2k PC with tomcat 4.1.24
I get the same "browser waiting" bug with *long* JSP on this config.

I can send a modified struts-upload.war file (1Mo) if you want to test
(upload.jsp changed to add 900 HTML lines)

Nico


> Making lot of tests, it seems that my problem does occur if the generated HTML is 
> long. I made this test on
> struts-upload example webapp :
>
> install struts-upload.war
> edit /upload.jsp to add long text (I use struts-validator javascript : 730 lines )
> try to upload a > 2Mo file
>
> -> jsp is compiled shortly after file submit
> -> browser wait for long time before displaying error messsage
>
> Could someone please make this test on his config ? I'm not sure this troubles 
> doesn't come from my environment
(tomcat
> 4.1.24 - eclipse - win2k - IE 6sp1).
>
>
>
> Nico.
>
>
>
>
> - Original Message - 
> From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, June 30, 2003 3:43 PM
> Subject: Re: File Upload size restriction ?? [TilesRequestProcessor ?]
>
>
> > I'm back with my FileUpload problem ...
> >
> > Here is what I've done to search the problem :
> > I added struts-upload example classes and mappings to my app : it works
> > I migrate it to use my classes (form-bean, actions) : it works
> > I migrate it to use my JSPs : it works
> > I migrate it to use my Tiles definition : it fails (browser waits 10 minutes...)
> >
> > Her is my mapping :
> >  > name="UploadForm"
> > scope="request"
> > input="select"
> > validate="true"
> > type="webapp.action.UploadAction">
> >  > path="tiles:upload.select" />
> >  > path="tiles:upload.done" />
> > 
> >
> > If I replace "tiles:upload.select" by "/upload.jsp" (that is used in body of this 
> > tile) it works fine : I get
quickly
> an
> > error saying file is too large.
> >
> > Any idea what I can do to go deeper in my bug tracking ?
> >
> > Nico.
> >
> >
>


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



Re: File Upload size restriction ?? IT DOESN'T WORK ON STRUTS-EXAMPLE

Making lot of tests, it seems that my problem does occur if the generated HTML is 
long. I made this test on
struts-upload example webapp :

install struts-upload.war
edit /upload.jsp to add long text (I use struts-validator javascript : 730 lines )
try to upload a > 2Mo file

-> jsp is compiled shortly after file submit
-> browser wait for long time before displaying error messsage

Could someone please make this test on his config ? I'm not sure this troubles doesn't 
come from my environment (tomcat
4.1.24 - eclipse - win2k - IE 6sp1).



Nico.




- Original Message ----- 
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, June 30, 2003 3:43 PM
Subject: Re: File Upload size restriction ?? [TilesRequestProcessor ?]


> I'm back with my FileUpload problem ...
>
> Here is what I've done to search the problem :
> I added struts-upload example classes and mappings to my app : it works
> I migrate it to use my classes (form-bean, actions) : it works
> I migrate it to use my JSPs : it works
> I migrate it to use my Tiles definition : it fails (browser waits 10 minutes...)
>
> Her is my mapping :
>  name="UploadForm"
> scope="request"
> input="select"
> validate="true"
> type="webapp.action.UploadAction">
>  path="tiles:upload.select" />
>  path="tiles:upload.done" />
> 
>
> If I replace "tiles:upload.select" by "/upload.jsp" (that is used in body of this 
> tile) it works fine : I get quickly
an
> error saying file is too large.
>
> Any idea what I can do to go deeper in my bug tracking ?
>
> Nico.
>
>


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



Re: File Upload size restriction ?? [TilesRequestProcessor ?]

I'm back with my FileUpload problem ...

Here is what I've done to search the problem :
I added struts-upload example classes and mappings to my app : it works
I migrate it to use my classes (form-bean, actions) : it works
I migrate it to use my JSPs : it works
I migrate it to use my Tiles definition : it fails (browser waits 10 minutes...)

Her is my mapping :





If I replace "tiles:upload.select" by "/upload.jsp" (that is used in body of this 
tile) it works fine : I get quickly an
error saying file is too large.

Any idea what I can do to go deeper in my bug tracking ?

Nico.



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



Re: File Upload size restriction ??

That's what I was trying to do and discovered that upload behaviour changes when going 
over Struts configured file-size
limit (4Mo in my case)

With a 3Mo file it works fine.
With a 4,4Mo file I get errors on logs but upload goes on in the browser, and after a 
long while (3 minutes) I get
others validate() logs (related with no-file errors) and the errors are displayed on 
browser.

I don't understand why I get TWO TIMES validate() logs !!

If i set the size-limit to "6M", 4,4Mo upload works well in less than a seconds, but a 
10Mo upload takes more than 5
minutes. I get file-size error logs in the first request seconds, browser stays for a 
(long) while and I get second
validation error logs.

Using IP or machine name doesn't change anything.

Nico.


> Tried a 135 MBytes upload on localhost. Took 10 sec to complete and the
> returned JSP-paged showed the correct error in the browser.
>
> Maybe you should check first, why the uploads takes so long on your machine.
>
> Regards
>
> Markus
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: File Upload size restriction ??

I Tried Struts upload example App and it works fine. So browser or tomcat conf are not 
responsible.

Do you have any idea what I can look at to discover what works wrong on my app ?

Nico.




> Nicolas De Loof wrote:
> > In fact I've got this strange behaviour :
> > 
> > - Form-bean is validated a first time. 
> > MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
> > ActionError is returned by validate().
> > 
> > - browser go on uploading for a long time ... (5 minutes for 10Mo upload on 
> > localhost)
> > 
> > - validate is called A SECOND TIME.
> > MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError 
> > is returned by validate().
> > 
> > - browser show errors.
> > 
> > 
> > My code looks like Struts upload example. I certainly not understood something !
> > 
> > Nico.
> 
> Tried a 135 MBytes upload on localhost. Took 10 sec to complete and the 
> returned JSP-paged showed the correct error in the browser.
> 
> Maybe you should check first, why the uploads takes so long on your machine.
> 
> Regards
> 
> Markus
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: File Upload size restriction ??

In fact I've got this strange behaviour :

- Form-bean is validated a first time. 
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an
ActionError is returned by validate().

- browser go on uploading for a long time ... (5 minutes for 10Mo upload on localhost)

- validate is called A SECOND TIME.
MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED is setted and an ActionError is 
returned by validate().

- browser show errors.


My code looks like Struts upload example. I certainly not understood something !

Nico.



> I'm using fileupload too and have difficulties to send errors about file size.
>
> Are you able to send an error message with this code ?
>
> In my application validate method returns errors (I can see it in logs) when file is 
> too large, but browser does'nt
> display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
> something like this.
>
> I'm using tomcat 4.1.24 an IE 6 on Windows 2000.
>
> Nico.
>
>
> > Uups,
> >
> > found the answer in one of the strus-examples.
> >
> > Here it is for those who are interested.
> >
> > Regards
> >
> > Markus
> >
> >
> >
> >
> >   /**
> >   * Check to make sure the client hasn't exceeded the maximum
> > allowed upload size inside of this
> >   * validate method.
> >   */
> >  public ActionErrors validate(ActionMapping mapping,
> > HttpServletRequest request)
> >  {
> >  ActionErrors errors = null;
> >  //has the maximum length been exceeded?
> >  Boolean maxLengthExceeded = (Boolean)
> >
> > request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
> >  if ((maxLengthExceeded != null) &&
> > (maxLengthExceeded.booleanValue()))
> >  {
> >  errors = new ActionErrors();
> >  errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
> > ActionError("maxLengthExceeded"));
> >  }
> >  return errors;
> >
> >  }
> >
> >
> >
> > -
> > 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: File Upload size restriction ??

I'm using fileupload too and have difficulties to send errors about file size.

Are you able to send an error message with this code ?

In my application validate method returns errors (I can see it in logs) when file is 
too large, but browser does'nt
display error JSP (waintg ...). I thing it is waiting for the file to be uploaded or 
something like this.

I'm using tomcat 4.1.24 an IE 6 on Windows 2000.

Nico.


> Uups,
>
> found the answer in one of the strus-examples.
>
> Here it is for those who are interested.
>
> Regards
>
> Markus
>
>
>
>
>   /**
>   * Check to make sure the client hasn't exceeded the maximum
> allowed upload size inside of this
>   * validate method.
>   */
>  public ActionErrors validate(ActionMapping mapping,
> HttpServletRequest request)
>  {
>  ActionErrors errors = null;
>  //has the maximum length been exceeded?
>  Boolean maxLengthExceeded = (Boolean)
>
> request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
>  if ((maxLengthExceeded != null) &&
> (maxLengthExceeded.booleanValue()))
>  {
>  errors = new ActionErrors();
>  errors.add(ERROR_PROPERTY_MAX_LENGTH_EXCEEDED, new
> ActionError("maxLengthExceeded"));
>  }
>  return errors;
>
>  }
>
>
>
> -
> 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: [ANNOUNCEMENT] Struts 1.1 Final released

Great ! We deliver our application to our customer ... this afternoon !
Perhaps it will be the first "Struts 1.1 FINAL application" ?

Nico.

- Original Message - 
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, June 30, 2003 9:47 AM
Subject: Re: [ANNOUNCEMENT] Struts 1.1 Final released


> Andrew Hill írta:
>
> >WOOHOO!
> >Great work guys :-)
> >
> >So does anyone know when 1.2 will be released? ;->
> >
> >
> I bet not in the next 2 ys.  :) However I don't care for releases, I
> just download nighties.
>
> Tib
>
>
>
> -
> 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: [ANNOUNCEMENT] Struts 1.1 Final released

Great ! We deliver our application to our customer ... this afternoon !
Perhaps it will be the first "Struts 1.1 FINAL application" ?

Nico.


- Original Message - 
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, June 30, 2003 9:39 AM
Subject: [ANNOUNCEMENT] Struts 1.1 Final released


> The Struts team is proud, and extremely pleased, to announce the Final
> release of Struts 1.1. This release includes significant new
> functionality, as well as numerous fixes for bugs which were reported
> against the previous release, and supersedes the earlier 1.0.2 version as
> the latest official release of Struts from the Apache Software Foundation.
> 
> The binary distribution is available at:
> 
> http://www.apache.org/dist/jakarta/struts/binaries/
> 
> and the source distribution is available at:
> 
> http://www.apache.org/dist/jakarta/struts/source/
> 
> In addition, the library distribution, which contains updated binaries
> without the sample applications, is available at:
> 
> http://www.apache.org/dist/jakarta/struts/library/
> 
> Details of the changes in this release are available in the Release Notes,
> which can be found here:
> 
> http://jakarta.apache.org/struts/userGuide/release-notes-1.1.html
> 
> --
> Martin Cooper
> 
> -
> 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: error handling

>
> But by doing in this way, for the forward name="failure" I will always end up in 
> StatuicUpload.jsp
> (for the below example) I don't want to goto that jsp. I need to goto the parent 
> page.
> Let me explain the scenario once again. From two different jsps (say a.jsp and 
> b.jsp) I am coming to
> an action (bt clicking the link in each jsp). From this action, upon an error I want 
> to go back to
> "a.jsp" (if the request came from a.jsp)  or to b.jsp (if the request came from 
> b.jsp). So here I
> won't be able to  hard code the path either as "a.jsp" or as "b.jsp" in the 
> struts-config.xml. In
> you example upon error, it will always forward to StaticUpload.jsp
>
> Thanks,
> Pramod

If you really cannot set multiples action-mappings in struts-config.xml (that is the 
cleaner way to do), you can add a
parameter to your request for the "incoming" JSP :



and build a new forward in your action when errors occurs :

if (!errors.isEmpty()) {
saveErrors(request, errors);
String commingFrom = request.getParameter("from");
return new ActionForward(from);
}


Nico.


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



Re:

if groupForm.getGroupname() returns null (or "") your first bean:define will have no 
body content, and will so have no
value to assign to the bean to create.

Nico.


> Hi,
> i get the following error message in my jsp and i don't really understand
> why:
>
> Define tag can contain only one of name attribute, value attribute, or body
> content
>
> Now i use two define tags in my jsp:
>
>  property="groupname"/>
>
> and
>
> 
>
> Any help would be appreciated.
>
> Thanks, Filip
>
>
>
>





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



and JSP 1.1 restriction

Hi all,

I can read in struts-bean doc this usage note for  tag :

"
There is a restriction in the JSP 1.1 Specification that disallows using the same 
value for an id attribute more than
once in a single JSP page. Therefore, you will not be able to use  for 
the same bean name more than once in
a single page."

Some of my JSPs use bean:define to "compute" a boolean value from other datas that is 
use in a  tag later in JSP.
It looks like this :






This code works fine on tomcat 4.1.24 and weblogic 6.1 SP5.
Reading the usage note, it should not work according to JSP 1.1 spec. Someone in my 
team uses tomcat 4.0.6 and got
errors with this "mutliple" .

- Does JSP 1.2 has this restriction to ?

- Do you think I should upgrade my JSP to be "JSP 1.1 compliant", assuming it works 
fine on target container (Weblogic)

- How to avoid using multiple times the same id (Do I need to build a custiom tag ?)


Nico.


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



  1   2   3   4   >