Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
If you wan't the user to edit some datas, you should build a form-bean, put your model datas into it (use common-beanutil copyProperties, or an Adapter class) and use it in your JSP. When user submits, get the form-bean back with all updated datas inside it. What do you wan't to do (not technica

Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
Do you want your JSP to look different depending getAllowed() value or do you want your Action to get some checkbox or hidden value from HTML form ? Can you tell me what you want to do, not as technical but as application usage. I could so understand what you're looking for. Nico. > That is get

Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
You should use the tag with Define a form-bean that will have a "contry" property, and two collections that will maintain labels and values for your options. Look at tag doc : http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#options This way you will have current selected value aut

Re: Struts html:button tag and property attribute

2003-03-25 Thread Nicolas De Loof
is used when you want some HTML Form to have more than one submit button, and want to know witch one the user clicked. Property is used to define the form-bean property that will be set (to button value) whe the button is clicked. If you only need a submit button, use , witch property attribute

Re: getting javax.servlet.ServletException...

2003-03-25 Thread Nicolas De Loof
Attachement are removed on this mailing list. Paste your file in message body Nico. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Nicolas De Loof
HttpRequest -> (Struts) ActionServlet -> RequestProcessor -> create form-bean in request scope -> call reset() -> populate -> call validate() -> your Action -> forward to servlet [not redirect]

Re: At what point in the cycle does struts fill out the ActionForm

2003-03-25 Thread Nicolas De Loof
I suppose RequestSignalsDelegate is looking for datas in request as StrutsCXConstants.CURRENTFORM and "request.setAttribute(StrutsCXConstants.CURRENTFORM, currentForm);" is used to set formbean as datas. I don't know how RequestSignalsDelegate can NOT get form from request after that. You sa

Re: using Tokens with Tiles

2003-03-25 Thread Nicolas De Loof
You should ALWAYS use an action to display a page. I know lot it looks simplier to use JSP URL instead of defining a new action in struts-config... But in your case you see that not using the controler brings you to duplicate submit problems. Nico. > I'm trying to prevent the user from submitt

Re: using Tokens with Tiles

2003-03-25 Thread Nicolas De Loof
ly > like there has to be a better way! > > > -----Original Message- > > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > > Sent: mardi 25 mars 2003 15:45 > > To: Struts Users Mailing List > > Subject: Re: using Tokens with Tiles > > > > > >

Re: Variable in a Struts tag

2003-03-26 Thread Nicolas De Loof
It seems you use struts standard html taglib. use html-el taglib (in the contrib directory of struts RC1 distrib). standard taglib is "only" JSP1.1 compliant and doesn't compute JSP1.2 Expression Language. Nico. > I have the JSTL/Struts code: > > > > > > Cus

Re: Antwort: RE: Pull-down-menue for "language select" at logon

2003-03-26 Thread Nicolas De Loof
You just have to put a Locale object in session scope : session.setAttribute(Globals.LOCALE_KEY, new Locale(...)); Struts will use associated messagesRessources. Nico. This might be a tricky way, but our users should select the language at startup. Our login.jsp has this part:

Re: Arguments

2003-03-27 Thread Nicolas De Loof
If your boss can read french, be carreful he doesn't find this link: http://www.application-servers.com/comments.do?reqCode=readComments&sid=2003-03-23-22:17:22 To find good arguments, we have to know what you should use if NOT using struts : - nothing but J2EE (lots of servlets and JSP build for

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
You don't need as struts tags look into scope themself. (usebean create a scriptlet variable from a bean) Your code looks fine. Look at objB code, getter should not be well formed. - be carreful about uppercase beginig properties - be carreful not to have mulitple setters with different data typ

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
tionned in my first append, I used two ways to code the > logic:iterate tag. > I can understand the first error message as there is no mention anywhere of > the type of "objB" (as "objB" is stored as an Object type in the > Hashtable). But I don't understand the

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
> After some reading, I wrote the following code that works pretty well... > > > Next element is > [] > > > I don't fully understand how the cast from Object to ObjB is performed but > it works > Thanks for your help. > > > - Orig

Re: Cannot retrieve definition for form bean null - Whats the deal?

2003-03-27 Thread Nicolas De Loof
I think you don't have defined an action-mapping for path "insertUser". looks for the form-bean name in mappings that comes with the path that is set by action attribute. It find nothing so "null" is the name of the current bean that it is looking for, and you get this exception. Nico. >

Re: [OT] Library files interfering with each other!?!

2003-03-28 Thread Nicolas De Loof
Unjar the archive to a temp directory. Select the "needed" files an create a new jar with it. Use an explicit name so that you will remember what is inside, like "xmlparserv2-without-org_w3_dom.jar" ! You can use winzip for this as .jar and .zip are compatible formats. Nico. > Nope. Didn't wo

Re: Too many session scoped form beans!

2003-03-28 Thread Nicolas De Loof
I think you can use something like this in a request scoped form-bean : protected List item; public void setItem(int index, Object obj) { if (this.item == null) { this.item = new ArrayList(index); } else { this.item.ensureCapacity(index); } this.item.add(index, ob

Re: Too many session scoped form beans!

2003-03-28 Thread Nicolas De Loof
Reading my own post I realize this code will throw an IndexOutOfBoundsException You need to put 'empty' datas on the List as needed : protected List item; public void setItem(int index, Object obj) { if (this.item == null) { this.item = new ArrayList(index); } for (int i = t

Re: Too many session scoped form beans!

2003-03-30 Thread Nicolas De Loof
; Your great suggestion makes me nervous ... It is possible for a hacker to > change the index so big that it can hog the CPU, which busy creating empty > node, for each request. > > However, I cant come up with another solution > > Any comments? anyone? > > -D > - Ori

Re: Too many session scoped form beans!

2003-03-30 Thread Nicolas De Loof
any other action. Nico. > Of course, your newest solution is better, but it still does not feel right > regarding the MAX_INDEX allowed ;-) > > -D > - Original Message - > From: "Nicolas De Loof" <[EMAIL PROTECTED]> > To: "Struts Users Mailing Li

Re: html targets in forward tags

2003-03-31 Thread Nicolas De Loof
Anchor positionning is a browser tip. I think it will work if you use redirect=true, as browser URI wil become "/addAorBPage.jsp#addA" Nico. > When specifying an action forward in the struts-config.xml file is it > possible to also specify a anchor target within the page path being > forwarded t

localize messages in JSP without session

2003-04-01 Thread Nicolas De Loof
On logon.jsp I would like messages to be localized. AFAIK to do this with Struts I have to put this tags : ... This tags use a Locale objet stored in session scope. My boss doesn't want this logon JSP to create a new session to limit memory usage. Is they're a way to use Struts i18n with a

Re: Getting the id of an object in the value tag

2003-04-01 Thread Nicolas De Loof
JSP tags follow XML syntax, so you cannot embend a tag inside another like you do. You can use this : Nico. I wonder whether someboyd knows how to do the following: If I have: How do i change this so the value tag takes the id from a bean instead of "2" Is it like this: " property="

Re: a small query

2003-04-01 Thread Nicolas De Loof
Using resourceBundle for application messages has some advantages : - application can be localized easily if needed - messages can be updated without recompile - messages can be managed by customers on deployed app if they want - bundle can be sent to customer for update / validation - developers d

Re: Forwarding to an ActionClass

2003-04-01 Thread Nicolas De Loof
use this : - Don't forget the ".do" (or the servlet mapping you use) - use absolute path to avoid path errors Nico. > Hi, > does anybody know, how I can do a forwarding to an action class? > > I did this enty in the struts.config file, > but my IDE tells me, that the requested file is not fou

[RePosted] localize messages in JSP without session

2003-04-01 Thread Nicolas De Loof
On logon.jsp I would like messages to be localized. AFAIK to do this with Struts I have to put this tags : ... This tags use a Locale objet stored in session scope. My boss doesn't want this logon JSP to create a new session to limit memory usage. Is they're a way to use Struts i18

Re: Array of Beans used in an ActionForm

2003-04-02 Thread Nicolas De Loof
If you want to use an array for a property that your JSP uses as indexed (i.e. property="data(n)") you will have to define indexed getters and setters : public void setData(index i, String value) { this.data[i] = value; } public String getData(index i) { return this.data[i]; } Struts wi

Re: How to use Struts to show image from database (byte[])?

2003-04-02 Thread Nicolas De Loof
You can migrate your original ImageServlet as Struts action : Put servlet code inside execute() method of a new ImageAction class, that sends image byte[] and content-type headers in response, then returns null. Add an action-mapping for ImageAction (let's say "/image.do") and you will be able t

Re: [RePosted] localize messages in JSP without session

2003-04-02 Thread Nicolas De Loof
on to allow this to be done using only the request is a good > idea. This could be quite useful for higher throughput websites that dont > need to track sessions - though it may involve a bit more effort from the > garbage collector to clean up throwaway locale objects. > > -

Re: Array of Beans used in an ActionForm

2003-04-02 Thread Nicolas De Loof
JSP code: This works fine for showing the data, but not for updating: <% for (int i=0; i<=2; i++) { %> <% } %> I have also tried this code int eh JSP. Than I get the following error: No getter method for property testForm.arrayForm[0].name Any ideas? Regards, Arne > -

Re: Array of Beans used in an ActionForm

2003-04-02 Thread Nicolas De Loof
It resulted in the error: No getter method for property testForm.arrayForm(0).name of bean org.apache.struts.taglib.html.BEAN Regards, Arne > -----Ursprüngliche Nachricht- > Von: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 2. April 2003 12:14 > An: Struts Us

Re: Array of Beans used in an ActionForm

2003-04-02 Thread Nicolas De Loof
;testForm.getArrayForm(i).getName()" You know it is an Array of Benas inside an Form. Regards, Arne > -----Ursprüngliche Nachricht- > Von: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 2. April 2003 12:30 > An: Struts Users Mailing List > Betreff:

Re: Resetting checkboxes in a multipage form

2003-04-03 Thread Nicolas De Loof
As you suggest, a solution is to use hidden fields on all pages for boolean (checkboxed) properties from other pages of the "wizard-like" form. As reset() gets the mapping I would suggest this : - extend ActionMapping to add a new property "checkboxes" - use this extended ActionMapping for your

Re: How can one define a hypertext link on an image ?

2003-04-03 Thread Nicolas De Loof
Nico > try putting the image between the link tags, like this > > border="0" align="right"/> > > > -Original Message- > From: Heligon Sandra [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 11:01 AM > To: '[EMAIL PROTECTED]' > Subject: How can one define a hypertext lin

Re: Anyone else have this problem

2003-04-03 Thread Nicolas De Loof
use This will output : and your javascript will work. Nico. When using the tag in conjuction with on the same page, the second method of submitting a form does not work. Remove the and the latter method works fine. The html outputted by the is . This causes a naming conflict in JavaSc

Re: causes Cannot find bean ...

2003-04-04 Thread Nicolas De Loof
Add "logic" taglib <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> and drop "nested" one if you don't use it in your JSP Nico. > According to the literature I've seen, the following JSP should be fine: > > ---test.jsp > <%@ page import="java.util.ArrayList, >

Re: validator plugin gives "java.net.UnknownHostException: jakarta.apache.org" when loading validator-rules.xml

2003-05-28 Thread Nicolas De Loof
This is a known RC1 bug, use a nightly build that ionclud the needed DTD. Nico. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 10:07 AM Subject: validator plugin gives "java.net.UnknownHostException: jakarta.apache.org" when loading

Re: A few questions about and tags

2003-06-02 Thread Nicolas De Loof
> Hello, > > I have a few question about those tags. > > 1) How can I preselect a value in a dropdown? Meaning: I already have a > value (one that was selected before) and I want that to be selected when the > form gets displayed. if your formbean has a property "foo", using : none one t

Re: struts problems with usual links

2003-06-03 Thread Nicolas De Loof
use (instead of href) Nico. Hi, I´ve got Problems with struts Links.I loose the name of the webapp if I put "/" before the url. (I´m using tomcat) http://localhost:8082/WEBAPP_NAME/shop/basket/add wird z.B. http://localhost:8082/shop/basket/add.do And if I don´t use a "/" in my link the li

[struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
Hi all, our application uses URL rewriting to track session (for some obscure reasons...) We use struts-menu taglib, and it doesn't "urlrewrite" links in menu items. >From what I've seen in struts-menu sources, it is not possible because MenuDisplayer >doesn't have any HttpResponse param. Do you

Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
The problem we have is that URL are set in menu-config.xml, and struts-menu use it to set links in DHTML menu. Thank you for your help. Nico. > Try http://jakarta.apache.org/struts/userGuide/dev_html.html > > >From: "Nicolas De Loof" <[EMAIL PROTECTED]> > &

Re: [struts-menu] how to use URL rewriting ?

2003-06-19 Thread Nicolas De Loof
ing(String key, String content, > MenuComponent menu) > to see how the variable are prepared. > > Malik. > > Thursday, June 19, 2003 4:10 PM , Nicolas De Loof > <[EMAIL PROTECTED]> a écrit : > > The problem we have is that URL are set in menu-config.xml, and > >

bean:define in weblogic 6.1 SP5

2003-06-23 Thread Nicolas De Loof
Hi all, I got some troubles with Struts bean:define tag on Weblogic 6.10 SP5 : In generated java code for JSP no "script variable" is defined for bean:define tags (it works well on tomcat). for example doesn't declare a "String doLink" local variable in generated java (and I get some errors wh

Re: bean:define in weblogic 6.1 SP5

2003-06-23 Thread Nicolas De Loof
As extra info, it works fine on Weblogic 6.1 SP3. It looks like a WLS bug. Nico. > Hi all, > > I got some troubles with Struts bean:define tag on Weblogic 6.10 SP5 : > In generated java code for JSP no "script variable" is defined for bean:define tags > (it works well on tomcat). > > for example

Re: bean:define in weblogic 6.1 SP5

2003-06-23 Thread Nicolas De Loof
e my problem on Jboss/Tomcat either). > > I am thinking it is a SP5 bug, I am going to try and contact BEA today. > > - Jim Piper > > -Original Message- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2003 4:58 AM > To: Struts Users Mailin

Re: url-pattern

2003-06-24 Thread Nicolas De Loof
Struts controller uses extra path info to know which Action to execute (action-mapping). If you map "/logon" to Struts ActionServlet, they're no extra path info when requesting http:///Logon. You can map ActionServlet to "/do" and request "/do/Logon". I think struts modules will not work using t

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

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

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

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

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 c

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: Wedn

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: > > va

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 "ht

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

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

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 do

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 developpin

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 defin

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

2004-03-18 Thread nicolas De Loof
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

[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. -

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

Struts validator for date field

2002-10-24 Thread Nicolas De Loof
so I get the [errors.date] message. I use a pattern to validate this date formatted, possibly blank fields. Do you know a way to make date validation for not-mandatory fields ? Nicolas De Loof -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For addi

Struts 1.1 Beta 1 Released : newbee question

2002-03-20 Thread Nicolas De Loof
Hello, I try to install the sample applications included in this new release on Tomcat 3.2 (windows 2000). I put the war in the "webapps" directory and restarted Tomcat. The "struts-template", "struts-example", "struts-exercise-taglib" and "struts-documentation" applications work fine, but I get

Re: [Newbie] stupid problem with option tag

2002-03-21 Thread Nicolas De Loof
1. "> is not valid because JSP tag syntax is XML styled, i.e. a tag call cannot include another tag as attribute. Instead you can use scriplet notation if the tld file declare that the attribute can be JSP content (oposite to a constant value) : (...) 2. "> Would work because JSP parser don

Re: BUG in org.apache.struts.util.ResponseUtils.filter(String value) method in v.1.0.2

2002-03-21 Thread Nicolas De Loof
And why not converting "é" to "é" and so on whith all HTML entities ? > > All ok, but why this method does not converts '\n' to ? > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail:

Re: [Newbie] stupid problem with option tag

2002-03-21 Thread Nicolas De Loof
> Hi, > > Thanks for your answer, but I'm not sure I understood it. > > You say, if I understand it right, that my first try (using the html tag of > Struts) wasn't correct. > And that my second try (using simple html tag) should work. Your second try is mixing JSP tag with escaped and non-esca

Re: how to dynamically change form in a tag

2002-03-21 Thread Nicolas De Loof
JSP Tags use an XML syntax, so you must have the same number of opening and closing "html:form" jsp tags in your jsp. This is why your JSP engine failed. acording to struts-form.tld, action attribute in html:form tag can be JSP computed. Try this: <% String actionPath; if( something) {

Re: Struts html taglib

2002-03-21 Thread Nicolas De Loof
JSP Tag extension uses XML syntax, so JSP Tag calls cannot be nested (a JSP Tag attribute cannot be set by another tag). You can instead use scriptlet to set this value > Hi, > I am using struts 1.0.2 on weblogic 6.1sp2 jdk1.3.1. > I am facing the folowing problem: > > property="firstName"

Re: Application without cookies and sessions

2002-03-22 Thread Nicolas De Loof
Don't panic about session and cookies ! Session are used to maintain state in your application between 2 request from user : HTTP is a non connected protocol, so you cannot know where your user comes from where you perform a request. Session is just a Collection of objects in memory associated w

Re: Application without cookies and sessions

2002-03-22 Thread Nicolas De Loof
for ten minutes you have to login again. > > Is there any way to do a site without take care of session timeouts?? > > Regards, and pardon for my english. > > Enrique. > > _____ > Enrique Rodriguez Lasterra > > > > De: Nicolas De Loof &g

Re: [Re: how to dynamically change form in a tag]

2002-03-22 Thread Nicolas De Loof
Does "> work ? The solution you said works. but "> does not work although <% String id = (String)request.getParameter("id"); %> works. Is there anything that I am doing wrong in case 1. Thanks Sudipta -- To unsubscribe, e-mail: For addition

Using Struts with Websphere 4

2002-03-26 Thread Nicolas De Loof
Hi is there any known problem for using Struts 1.0.2 on webshpere 4 ? I'd like to use struts framework on a starting project, as the first use off it in my company, and so I'd like to demonstrate to my project manager the quality of opensource software and power off forum support. bye -- To u

Re: Form processing work flow

2002-03-26 Thread Nicolas De Loof
Object saved to request scope are destroyed when the request is completed (when the JSP has produced the HTML response). So you cannot get your "saved" Form after that. You have to put it in the session scope so that you can get it back for future requests. > The problem is that struts is not gi

Re: AW: struts get and set methods in formbeans

2002-03-26 Thread Nicolas De Loof
Struts builds getter methods call with the property name by adding "get" and upperCased first char. So you can call a "getPassword" method from a "password" property declaration (in JSP), even if the underlying attribute is private String this_is_not_password_but_anything_else; so that's ok, you

Re: Setting the value of a html:select with a bean:write

2002-03-26 Thread Nicolas De Loof
You cannot use jsp tag as attribute of other jsp tag (XML compliant notation). use sriptlet (value="<%= %>") instead. > " > > > > > This does not work. I got a work around to work, but there has got to be a > slicker way of doing it. any suggestions > > > > -- > To unsubscribe, e-mail:

Re: Accessing action object inside the form bean

2002-03-28 Thread Nicolas De Loof
Be carreful, your action class must be threadsafe, so you cannot store datas as intance variable. Use session scope instead. > Hi, > > I open a form, collect user input and on submit store it in the action class > (inside perform()) as > instance variables. Next time when the same form is opened,

Re: Preview OReilly Struts Chapters Online - Soon

2002-03-28 Thread Nicolas De Loof
so am I ! > i vote for the struts design strategies, packaging, and taglibs > as the most interesting. > > rjsjr > > > Chapter 2. The Web Server/Servlet Container Relationship > > Chapter 3. Overview of the Struts Framework > > Chapter 4. Configuring web.xml and struts-config.xml > > Chapter 5.

Ultradev extension for Struts JSP Tags

2002-03-29 Thread Nicolas De Loof
Hello, I'm trying to use DreamWeaver Ultradev 4 for Struts JSP developpement. I followed the tutorial of jakarta ultradev extension, but I've got a NullPointerException when Dreamweaver requests the http://localhost:8080/TLDParser/servlet/TLDParser Her is what I've done: I use a local Tomcat 3.

ServletException:NullPointerException using Taglib extension with ultradev ... solved

2002-04-02 Thread Nicolas De Loof
Solved by recompiling the TLDPARSER class with my local JDK 1.3 (???) -- To unsubscribe, e-mail: For additional commands, e-mail:

Struts.tld or Struts-form.tld ?

2002-04-03 Thread Nicolas De Loof
What the differences in 1.0.2 distribution of Struts between Struts.tld and the two Struts-html / Struts-form tlds ? Is it only refactoring of taglibs ? -- To unsubscribe, e-mail: For additional commands, e-mail:

Don't anderstand jsp:usebean mecanism

2002-04-03 Thread Nicolas De Loof
On tomcat 3.3.1 I tried the following JSP code: <% Object toto = pageContext.getAttribute("logonForm"); Object titi = pageContext.getRequest().getAttribute("logonForm"); Object tutu = pageContext.getSession().getAttribute("logonForm"); %> <%= toto %> <%= titi %> <%= tutu %> JSP 1.1 spec say

Re: Don't anderstand jsp:usebean mecanism :sory, I'm realy stupid

2002-04-03 Thread Nicolas De Loof
Sorry, I found I've to use jsp:useBean (with uppercase "B") ! - Original Message - From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 03, 2002 3:09 PM Subject: Don't

Re: Editor aware of Struts

2002-04-04 Thread Nicolas De Loof
> Please help if any one knows such tool to enable a developer to visually > edit a JSP page with Struts. Appreciate it very much, > > Yanhui I installed Dreamweaver CTLX extension. You need to install a Tomcat server (very simple) and put the TLDParser servlet on it (put its war file in webapp

Re: Ultradev Plug-in Problem with background color formatting and STRUTS

2002-04-05 Thread Nicolas De Loof
> When in live data mode, it seems that in ultradev the background color of my > tables always get set to a ligth yellow. This is even though my tables use a > CSS and are suppose to have a blue bg color. Interestingly enough, whenever > I make a change to the HTML code in ultradev, and hit the re

Re: Which HTML standard does the HTML taglib follow?

2002-04-09 Thread Nicolas De Loof
I don't thik so : html:text tags generate "" and not "", so it is not XHTML syntax. I think about HTML 4.01 (transitional) > XHTML 1.0 > > Mark > > -Original Message- > From: Durk Strooisma [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 10:17 AM > To: [EMAIL PROTECTED] > Subj

indexed - Nested property and Javascript

2002-04-12 Thread Nicolas De Loof
Hi, I have a HTML Form in wich I use iterate Tag to set same number of Text inputs as my data bean has : As you can see, my form is nested, so in javascript I must use elements notation like this : document.MyForm.elements['echeancier.date'] But here my text fields are indexed, so how

Re: indexed - Nested property and Javascript

2002-04-12 Thread Nicolas De Loof
OUPS sorry, while writing a clean example I've seen that document.forms.MyForm.elements['echeancier.date'][0] DOES work ... Thank you for help. -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Passing JavaScript variable to a Java Scriptlet on a JSP page

2002-04-15 Thread Nicolas De Loof
If I understand what you're tryin to do, you want your Javascript code to write JSP scriptlet (?) Javascript is executed on the client, instead JSP code is executed on the server. So a scriptlet can dynamicaly generate javascript code, but the oposite has no sense. You cannot execute any JSP code

Re: Passing JavaScript variable to a Java Scriptlet on a JSP page

2002-04-15 Thread Nicolas De Loof
You will have to write JavaScript code to repopulate your State-select on "onChange" event of your country-select. Your could define javascript "objects" to encapsulate the datas (as a javascript tree), that could be initialized by JSP code from your HashTable. Hi Oliver, The main issue here i

How to get ActionForward for input ?

2002-04-16 Thread Nicolas De Loof
In an action, how to forward the user to the input page ? ActionMapping.findForward("input") doesn't has a ActionForward for this. I use : RequestDispatcher rd = request.getRequestDispatcher(mapping.getInput()); rd.forward(request, response); Is there a better way ? -- To unsu

Re: [Q] bean:define dynamically

2002-04-17 Thread Nicolas De Loof
I don't know if it will help, but I had a problem with such syntax : try " type="java.util.ArrayList" scope="session"/> As property attribute is defined in TLD to be "rtexprvalue", it can be computed by a scriptlet, but the "property" attribute declaration must be XML compliant (so you m

form bean life cycle

2002-04-22 Thread Nicolas De Loof
[send in copy on Struts-dev list] In ActionServlet (Struts 1.0.2) you can read that formBean object found in scope is compared to the form name declared in ActionMapping by testing class name, not testing it using an "isInstance" or any other reflection mecanism that could allow using inheritanc

Re: form bean life cycle

2002-04-22 Thread Nicolas De Loof
[send in copy on Struts-dev list] In ActionServlet (Struts 1.0.2) you can read that formBean object found in scope is compared to the form name declared in ActionMapping by testing class name, not testing it using an "isInstance" or any other reflection mecanism that could allow using inheritanc

How to access Application scope at servlet initialization

2002-04-23 Thread Nicolas De Loof
I would like to use an InitServlet that runs before Struts ActionServlet, to put some datas in application scope. In the init() method I can get the servletContext using ServletConfig.getServletContext(), but how to access Application scope ? -- To unsubscribe, e-mail:

Re: How to access Application scope at servlet initialization

2002-04-23 Thread Nicolas De Loof
As I read my question it seems I would have to go to bed early toonight ! ServletContext() IS application scope ... Excuse me for this mail. I think my mind is filled by French elections disaster (I'm a french guy). > I would like to use an InitServlet that runs before Struts ActionServlet, to

Re: image button question

2002-04-24 Thread Nicolas De Loof
> value="terr1"> I had same problem with Tomcat 3.3.1. If you look at hte generated HTML code you see " ... (you must escape your quotes with a backslash (\) so that the attribute declaration is not broken) The generated HTML becomes mailto:[EMAIL PROTECTED]> For additional commands, e-mail:

Re: Using a tag to provide value for attribute of another tag

2002-04-24 Thread Nicolas De Loof
JSP tags use XML syntax, so while parsing your code JSP parser sees: "my:tag" tag begins "something" attribute setted to value " I don't think there is a way to use bean:message or bean:define to define such a variable from a key search in ApplicationRessources, perhaps it could be a request for

Re: Using a tag to provide value for attribute of another tag

2002-04-24 Thread Nicolas De Loof
> > door > mouse > > > Then 'door' and 'mouse' could be substituted by any valid XML > expression. > > Is this idea reasonable? I've little experience of writing tags. > > Cheers, > Alex I used this type of parameter declaration for some tags : door mouse argumentTag use reflecti

<    1   2   3   4   >