Struts validator for date field

2002-10-24 Thread Nicolas De Loof
? Nicolas De Loof -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: struts log4j

2003-02-13 Thread Nicolas De Loof
What developpement tool are you using ? I know that Visual Age can export your code as java byte code (classes), whenever it has compilation errors. It gived me such errors as .class is invalid and cannot be instanciated by ClassLoader. Nico. - Original Message - From: Dinesh

Re: Cannot Find Bean In Scope

2003-02-13 Thread Nicolas De Loof
You have to use the html:form tag : it's role is to find the formbean in some scope or create a new one. It allows your HTML form to display values that are stored in the formbean. Struts uses the html:form action attribute to get the ActionMapping, and so get the formBean name and scope (as

Re: import 2 different org package

2003-02-13 Thread Nicolas De Loof
They're is no conflict since apache packages are in java org.apache.* namespace and biojava in org.biojava.*. The same way you could have org.anything.* packages added. You only have conflicts if two jars have sames classes with different versions, and then the first jar in classpath order is

Re: Custom tags with Struts

2003-02-18 Thread Nicolas De Loof
To explain David's response : You can't use a JSP custom tag as input to another JSP custom tag's attributes. In JSP, HTML tags are just plain text (no matter how they are nested with JSP code), but JSP tags must be nested as XML style. Nico. but i was able to use the struts tag within a html

Re: cache the response of a request in struts?

2003-02-18 Thread Nicolas De Loof
Just declare your formbean as session scoped, so it will be avaible to build another view (another JSP) Nico. Hi, I think I need to make it clearer. I need to cache the response so I can give the user the option to represent the data in another format other than the one in the

Re: request object and frames

2003-02-18 Thread Nicolas De Loof
Here is what I undersand : 1. your action puts some beans into request scope 2. it forwards to a JSP, let's say A.jsp 3. A.jsp defines a framest, containing B.jsp 4. B.jsp looks in request for the bean. As frameset is the response your browser gets from the 1. request, it has to make a second

Re: Displaying

2003-02-19 Thread Nicolas De Loof
bean:write name=person property=personinfo.lastName/ this assumes you have getter and setters in your beans see more in http://jakarta.apache.org/struts/doc-1.0.2/api/org/apache/struts/taglib/bean /package-summary.html#package_description Nico. how to i display my bean using the tags

Re: Displaying

2003-02-19 Thread Nicolas De Loof
method for name. public void setName(String name){ this.name = name; } public String getName(){ return name; } - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 4:01 PM Subject: Re: Displaying

Re: Heeeeeeeeeeelllllllllpppppppppp

2003-02-20 Thread Nicolas De Loof
BlankCan you be a little bit more specific ? What is in your JSP ? Did you include logging to detect the JSP code generating this error ? What bean are you trying to get in your JSP ? Nico. - Original Message - From: Chetan Sahasrabudhe To: Struts Users Mailing List Sent:

Re: prepopulate a form with values

2003-02-20 Thread Nicolas De Loof
This is the way I set default values to my JPSs, so that I never need scriptlet code to initialyze them and keep them as simple as possible. I suggest using this workflow : HTTP request - struts populate formbean - action (does some business logic, puts some beans in request/session) -

Re: Multiple Forms on One Page

2003-02-20 Thread Nicolas De Loof
I don't understand what you need. If you want to have 2 HTML forms that post to 2 urls - only associated inputs will be submited - you can do it well (with or without struts). If you want the 2 urls to get ALL input fields as request parameters, you will need hidden inputs and some javascript.

Re: Help in html option tag

2003-02-21 Thread Nicolas De Loof
It looks like your html:select is not in the body of a html:form tag html:form puts the formbean in page scope under org.apache.struts.taglib.html.BEAN for others html:xxx to use it. Nico. anybody could help me this one, it takes me 2 days to figure this out and wheeeww 'til now I dont have

Re: Populating a html select in struts.

2003-02-21 Thread Nicolas De Loof
Having your formBean prepopulated in some scope (by a previous action), let's say you use foo property whith multiple getters : pulic String[] getFoo() pulic String getFoo(int index) You just need a html:select with html:option (or html:options) in your JSP - NOT select or option that are HTML

Re: Populating a html select in struts.

2003-02-21 Thread Nicolas De Loof
Hmm... I have this currently : String recipients [] ; public String [] getRecipients() { return this.recipients ; } I am using the html:select, which tells me the corresponding property has to be a array of any supported data type, then if you use the

Re: combining commons-*.jar

2003-02-21 Thread Nicolas De Loof
I suggest you to use a shell (.login ?) to build CLASSPATH from the content of a /lib directory. This way you can easyly maintain your jars. Nico. - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 3:54 PM Subject: Re:

Re: combining commons-*.jar

2003-02-21 Thread Nicolas De Loof
Here is what we used for a Weblogic 5.1 user (in .login) : # add all needed Java libraries foreach JAR ( ${HOME_APPLI}/lib/*.jar ) setenv CLASSPATH ${CLASSPATH}:${JAR} end # zip for Oracle classes12.zip foreach JAR ( ${HOME_APPLI}/lib/*.zip ) setenv CLASSPATH ${CLASSPATH}:${JAR} end Nico.

Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
use html:image http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#image Nico. - Original Message - From: Shabbir Khadir Mohammed [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 24, 2003 9:15 AM Subject: How to Show gif image instead of

Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
This should work too : bean:define id=localImage type=String bean:message key=images.buttons.url/ /bean:define html:image page=%= localImage % property=submit/ and this is browser-indepentend. as far as i know input type=image... is IE-specific. input type=image is HTML 3.2, not browser

Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
bean:define id=localImage type=String bean:message key=images.buttons.url/ /bean:define html:image page=%= localImage % property=submit/ 1. Might be. dont know. but you should avoid using scriptlets in your code. and this is scriptlet. Not scriplet ! JSP scriptlet is : %

Re: Printing tag size

2003-02-24 Thread Nicolas De Loof
i have this tag: bean:size id=size name=useraccounts/ now how can i display the value of size? what the getter method for the bean:size? thanks bean:size id=size name=useraccounts/ bean:write name=size / Nico. -

Re: How to Show gif image instead of html button in the forms for html:submit tag ?

2003-02-24 Thread Nicolas De Loof
tag ? you should, you should... don't forget... philosophical purity should always yield to pragmatism Nicolas De Loof wrote: 1. Might be. dont know. but you should avoid using scriptlets in your code. and this is scriptlet

Re: Assigning value from Application Resources to a java variable in JSP

2003-02-24 Thread Nicolas De Loof
Try this : bean:define id=myVariable type=String bean:message key=propmt.welcome/ /bean:define You can then use myVariable as a script variable or a bean in page scope. Nico. Hi All, I want to assign the value of a key from my Application Resources file to a Java variable in a JSP Page.

Re: Assigning value from Application Resources to a java variable in JSP

2003-02-24 Thread Nicolas De Loof
'define' requires that the body be empty. probably occurred due to an error in /jsp/Welcome.jsp line 6: bean:define id=myVariable type=String -Amit -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:30 PM To: Struts Users Mailing List

Re: Struts Installation

2003-02-24 Thread Nicolas De Loof
read INSTALL in your struts distrib If you encouter some specific problems you can ask this list... Nico. - Original Message - From: joseph agunpopo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:40 PM Subject: Struts Installation Hi Can anyone tell me

Re: What does this erroe mean

2003-03-03 Thread Nicolas De Loof
I think you have set validate to true for this path, and not setted input attribute, so struts is not able to forward to input JSP when validation errors occurs. Nico. I keep getting: no input attribute found for path ... Everything looks good in my config files... what causes this error?

Re: [HK] Resource substitution

2003-03-03 Thread Nicolas De Loof
This was exactly what I was looking for although I don't quite understand how it works. Doesn't bean:message../ write the value to the jsp writer? tag write to the current ouputstream. Nested inside another tag, they write to the bodycontent buffered ouputstream. This way parent tag can use

Re: What does this erroe mean

2003-03-03 Thread Nicolas De Loof
in struts-config.xml, input attribute of a path element defines the JSP (or ohter ressource) that can be used to display errors and let the user update it's submited (and erronous) datas In general use, input value is the JSP that submitted to this path. Nico. - Original Message - From:

Re: How to reset checkboxes in session ActionForms?

2003-03-03 Thread Nicolas De Loof
reset is allways called in processPopulate(). Nico. If I'm right, reset is not called by ActionForms with scope session. How can I then reset my checkboxes? -- Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Struts not parsing HTML correctly?

2003-03-04 Thread Nicolas De Loof
Firstly, I have the following snippet in one of my forms (user_add.jsp): !-- tr thContract User/th td html:checkbox property=contractUser/ /td /tr

Re: Form Beans: Design Question

2003-03-04 Thread Nicolas De Loof
Your right, formbean just get request parameter for you. But they are doing this too: - allow syntax validation, programatically or by rules (via validator.xml) - allow dotted and indexed syntax (like property1.property2[3]), and so a realy objet-oriented formbean design - can be dynabeans (so

Re: Association between Session object and Cookies/URL rewriting

2003-03-05 Thread Nicolas De Loof
Struts doesn't create coockies, J2EE servlet container does (tomcat). When you use request.getSession() in your code, J2EE server will a coockie (or a request parameter if URL rewriting is used, see your server config) to get the session ID. If no ID is set, it will generate a new session ID and

Re: Servlet Mapping

2003-03-05 Thread Nicolas De Loof
i am trying to give servletmapping for the following URL http://localhost:8080/context/test/0/struts-action in the above URL '0' is going to be changed dynamically depending on the link the user select.how i can give a servlet-mapping for such type of URL for the ActionServlet. is this

Re: Association between Session object and Cookies/URL rewriting

2003-03-06 Thread Nicolas De Loof
I well understand now that Sessions (object on the web server) are used either cookies or URL writing (in the client side). In the struts application I have to make changes if I want to use URL rewriting. But what I still do not understand (I am sorry to be also insistent) is why/or how each

Re: Association between Session object and Cookies/URL rewriting

2003-03-06 Thread Nicolas De Loof
://www.thomson.net/videochain Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 06 March 2003 10:32 To: Struts Users Mailing List Subject: Re: Association between Session object and Cookies/URL rewriting I well understand now that Sessions (object on the web

Re: CSS stylesheet

2003-03-06 Thread Nicolas De Loof
LINK rel=stylesheet href=html:rewrite page=/css/stileForm.css / type=text/css Nico. Does anyone knows how to render a LINK rel=stylesheet href=../stileForm.css type=text/css With struts ?? Thanks a lot. Renato Renato Romano Sistemi e

Re: Problem mapping/url

2003-03-07 Thread Nicolas De Loof
(with request.getRequestURI() )i obtain /index.jsp and not homeA.do getRequestURI() should return the exact address the client requested, minus query string. Perhaps you set redirect to true? But then the address displayed in the browser should have been updated to index.jsp as well.

Re: Problem mapping/url

2003-03-07 Thread Nicolas De Loof
(Sorry for previous empty message : too quickly clicked !) On tomcat, websphere and Weblogic I get CURRENT servlet (and JSP) URI when using request.getRequestURI(). API Javadoc says : Returns the part of this request's URL from the protocol name up to the query string in the first line of the

WebWork vs Struts

2003-03-07 Thread Nicolas De Loof
Hi, Reading Hibernate doc, I discovered xPetstore (http://xpetstore.sourceforge.net/index.html), an implementation of SUN java pet store with xDoclet. In fact, they're is 2 implementations : - one based on Struts EJB - the other based on WebWork Hibernate. As I don't know about Webwork

Re: How to compare two beans using logic tags

2003-03-07 Thread Nicolas De Loof
bean:define id=prop1 name=bean1 property=someProperty / logic:equals name=bean2 property=anotherProperty value=%= prop1 % ... /logic:equals Nico. Does anyone knows how to compare two beans (or beans properties) using logic:equal or logic:greaterThan tags ?In the docs it is said that the

Re: Sessions Again (Last Time)

2003-03-07 Thread Nicolas De Loof
Ok can somebody clarify this, I have one JSP that uses two actions, If I use Action A exclusively then only one session will be used but if I try to use Action B from the same JSP will a new session be created? Jon. Do you mean JSP has two forms (with different action) ? In any case, if a

Re: [OT] Simulating Concurrent Users

2003-03-10 Thread Nicolas De Loof
All scr= HTML tags does submit a new request (images, link to css or included javascript). With servlet API you will get a new request object (and context) for every request. For into, HTTP 1.1 browser can ask server to keep the connection alive, so that it can reuse the 1st connection for a new

Re: Struts bean:define tag questions

2003-03-10 Thread Nicolas De Loof
What do you want to do whith your city ? You can do : bean: name=UserVO property=adress.city Nico. Ok, Imagine I have an object User (package test.UserVO) which contains another object Address (package test.AddressVO)which has a String property city. User and Address are both java

Re: URL display problem

2003-03-12 Thread Nicolas De Loof
Could you please send us the rendered HTML ? They should be some silly think you've not seen. Nico. Have you checked if you are doing redirection somewhere in your action class? Or you have forward with redirect=true for that action? Are the parameters you have on your URL same as one you

Re: Errors in html corrected..

2003-03-12 Thread Nicolas De Loof
Sory, I tried it on my struts-app (adding a /find path and a dynabean) and not have the problem you expose. I don't understand what happens to your app... Nico. - Original Message - From: Jamesey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 10:55 AM Subject:

Re: Errors in html corrected..

2003-03-12 Thread Nicolas De Loof
For info I used IE6 SP1 / Win2k / Tomcat 4.1.18 Nico. ok nico... thanks for trying... i'll see what happens when i migrate to live.. Nicolas De Loof [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sory, I tried it on my struts-app (adding a /find path and a dynabean

Re: Html:options

2003-03-12 Thread Nicolas De Loof
if you use html:select with html:option or html:options, the option that equals the formbean property value will be automaticaly selected. (formbean initialized with name=foo) html:select property=name html:option value=foofoo/html:option html:option value=barbar/html:option

Re: Object going missing is session..

2003-03-12 Thread Nicolas De Loof
If you put it in session, why would it be in request ? try to log in your JSP request.getSession().getAttributeNames() Nico. I have an action declared as scope=request i perform request.getSession().setAttribute(blah,object) i have debug to list all attribute names in my action class (and

Re: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Nicolas De Loof
If I understand your problem, your JSP generates some img src=... or script scr=... and you get 404 broken link or something like this for this ressources. Perhaps you use relative path to your images and scripts (src=../../images/foo.gif). You should use absolute path with html:rewrite

Re: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Nicolas De Loof
Sory, I didn't well understand what you're looking for. You can create a servlet that looks for authentified user's session, user pathInfo to find the name of a ressource, looks for it in WEB-INF, and put it's content as binary in the response. Add a mapping to this servlet like /images/* -

Re: simple question

2003-03-14 Thread Nicolas De Loof
You can try this : form name=myLink action=html:rewrite page=/index.jsp/ method=POST input type=hidden name=in value=... /form a href=javascript:document.forms.myLink.submit()home/a Notice the (not visible) HTML form will add a visual line break in browser. You can avoid it by

Re: simple question

2003-03-14 Thread Nicolas De Loof
You don't need an ActionForm (but you can). You can use request.getParameter(in) in your action, you can use a dynaForm too if you don't wan't to create a formBean for this. As you can read in the code I sent, I did not used html:form, so action form definition is not needed. This beeing said,

Re: Form with a submit button without a form-bean?

2003-03-14 Thread Nicolas De Loof
You need a formbean only if you user html:xxx tags. you can use a HTML form by using : form action=html:rewrite page=/action.do/ input type=reset /form I you want to use struts tags, you can use a bynabean to set a formbean without having to code a javabean for it. Nico. Hi! I have an

Re: Can struts handle multiple forms in a post + Partial answer to - [Re: Loading complex forms with Struts.]

2003-03-14 Thread Nicolas De Loof
Be carreful, submiting your forms this way you will submit N request, and only the last one will get a response. If others one have validation or processing errors, you will not get them. I would suggest you to set a new form with hidden fields, and javascript to copy values. On submit, submit

Re: Tag Extension

2003-03-14 Thread Nicolas De Loof
Something like this : public class PoweredSelectTag extends SelectTag { /** * Add a sumbit button after the select list */ public int doEndTag() throws JspException { ... (code taken from other tags, like SubmitTag) ... } } Nico. - Original Message -

Re: Tag Extension

2003-03-14 Thread Nicolas De Loof
As you cannot inherit two classes, I don't think you can re-use this two existing tags code. You could create a new SumitTag instance to get it's code running from your tag, calling it's setters and doStart/doEnd methods, but I really don't think it's a good idea (I sometimes have very bad ideas).

Re: [NEWBIE]A very stupid question

2003-03-17 Thread Nicolas De Loof
You should use this (notice html:rewrite tag): script language=JavaScript document.write(trtd height='200'p class='enterLink'Welcome to XML-OPbra href='html:rewrite page=/xml-op/Login.do/' class='enterLink'Click here to log in/a/p/td/tr) /script My link is created as follows: script

Re: How to use forward parameters ? Newbie

2003-03-18 Thread Nicolas De Loof
set-property is used when using a class that extends ActionForward (using className=) to set it's properties, without having to extend ActionServlet or change struts DTD. If you want to pass some datas to another action, you can - use servlet context to put a javaBean - add (or overwrite) a

Re: confused about an action forms fields

2003-03-18 Thread Nicolas De Loof
As user can edit them, you should set all actionform fields as string. You can use Collection, arrays and references to obects with String fields. This way you can build a formbean model that has the same look as your business object model (or data transfert objects). You can the use

Re: confused about an action forms fields

2003-03-18 Thread Nicolas De Loof
You can register a new converter for your data types http://jakarta.apache.org/commons/beanutils/api/org/apache/commons/bea nutils/ConvertUtils.html#register(org.apache.commons.beanutils.Convert er, java.lang.Class) You will need to build a RoleConverter, that has access to your Role objetcs,

Re: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- Early Access Version Now Available

2003-03-19 Thread Nicolas De Loof
Early implementation of Java Server Face component using Struts framework http://www.mail-archive.com/[EMAIL PROTECTED]/msg62211.ht ml Nico. what is struts faces? -Original Message- From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 12:48 AM To:

Re: Re[2]: How to use forward parameters ? Newbie

2003-03-19 Thread Nicolas De Loof
I have some pages on my system who can be called from different places. The local from where they was called will determine the next page to show. One example of this is the login action. It can be called when the user press the login link on a application page. On this case after

Re: Multipage Validation - Show errors on page where first action occurs

2003-03-20 Thread Nicolas De Loof
use 3 actionMapping and 1 formBean with custom validate() : submit - /action1.do (validate form1 parameters) input=page1 - forward to /action2.do (validate form2 parameters) input=page2 - forward to /action3.do (validate form3 parameters) input=page3 /action1

Re: Multipage Validation - Show errors on page where first action occurs

2003-03-20 Thread Nicolas De Loof
De Loof [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:39 AM To: Struts Users Mailing List Subject: Re: Multipage Validation - Show errors on page where first action occurs use 3 actionMapping and 1 formBean with custom validate() : submit - /action1.do (validate form1

Re: A tag inside another: it will be not interpreted!

2003-03-21 Thread Nicolas De Loof
If I understand your case you have something like this : you want some XML to be processed by xsltags:style Tag, and produce some JSP code with html:xxx Struts tags. This fails because JSP compiler works this way : - scriptlets and JSP tags (that are declared by a %@ taglib %) are used to build

Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
You can use logic:iterate to get the content of your Vector, and then bean:write to get properties from your bean : logic:iterate id=data name=sample bean write name=data property=foo /logic:iterate Nico. Hi All, I want a help from you guys. I have created a sampleAction.class

Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
logic:iterate id=data name=sample City : bean write name=data property=address.city State : bean write name=data property=address.state Country : bean write name=data property=address.country /logic:iterate Nico. Hai Nicolas Thanx for your reply. My problem is that bean propery

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

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

Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
You should use the html:select tag with html:options 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

Re: Struts html:button tag and property attribute

2003-03-25 Thread Nicolas De Loof
html:button 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 html:submit,

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

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

Re: using Tokens with Tiles

2003-03-25 Thread Nicolas De Loof
! -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 You should ALWAYS use an action to display a page. I know lot it looks simplier to use JSP URL instead of defining

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: c:import url=sample.xml varReader=xmlSource

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=readCommentssid=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 jsp:useBean 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

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
- From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 11:27 Subject: Re: Using JSP struts tag logic:iterate You don't need jsp:useBean as struts tags look into scope themself. (usebean create a scriptlet variable from

Re: Using JSP struts tag logic:iterate

2003-03-27 Thread Nicolas De Loof
is performed but it works Thanks for your help. - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 27, 2003 12:24 Subject: Re: Using JSP struts tag logic:iterate YOu can read this on struts-logic

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. html:form 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: Please recommend a IDE

2002-06-05 Thread Nicolas De Loof
I use WSAD, it has some prety functionalities, but need a well powered PC (I've got a P3-500/256Mo and it goes very sloow !). My opinion is it is a too heavy environment for current PCs generation. You will need 512Mo as WSAD process uses 150Mo for itself... I used to make my development

Re: html:error tag

2002-06-06 Thread Nicolas De Loof
Property of the FormBean that is used by jsp tags to build HTML input fileds. if your JSP uses : html:form ... ... html:errors property=birthdate/ html:text property=birthdate / ... /html:form if validation failed on birthdate property, error will be displayed just before this text field Nico

Re: help me! Include java-code with a taglib

2002-06-18 Thread Nicolas De Loof
You can't. Tags can generate Output or skip body content from output, but they're is no java parsing of resulting output. Nico Hi all Can I include a file with java-code into a jsp with a taglib??? bean:include ??? cello/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Re: how to set initially the value of multibox to selected.

2002-06-19 Thread Nicolas De Loof
Hi, the selectedItems property of your formbean should be an indexed property (array/collection) containing all preselected qcTransMaster1.msQCStageId values. Struts multibox tag will compare its value attribute (or body content) with values from this array/collection. If one is equal, checkbox

Re: Variable

2002-06-21 Thread Nicolas De Loof
As bean:define tag sets a context bean + a script variable, I use this: logic:iterate indexId=count bean:define id=counter name=count html:text ... / html:button ... onclick='%= aaa( + counter +) %' / /logic:iterate Nico -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Re: Multibox intial selection problem

2002-06-24 Thread Nicolas De Loof
A cleaner (IMHO) way for generating such select in HTML would be : html:select property=monthstosave html:options collection=monthstosaveValues property=value labelProperty=label/ /html:select ... where monthstosaveValues is a collection of objects that

Re: Dynamic updation of a selection box based on other select box

2002-06-25 Thread Nicolas De Loof
Hi I have prob: I need to dynamically update the options in the 2nd html:select box based on the value selected in the first html:select box. I have the all possible values of 2nd box in same JSP. Can any one help me thx in advance gnan Solution 1: use javascript to add/remove values to

Re: using ApplicationResources dynamically

2002-06-25 Thread Nicolas De Loof
As expected, simply add quotes ! bean:message key=%=messageKey% / Nico Hi All, I'm trying to use the Application Resources as in the following: % String messageKey = dbListForm.getErrorMessage(); % tr tdbean:message key=%=messageKey%//td /tr The

Re: using ApplicationResources dynamically

2002-06-25 Thread Nicolas De Loof
For displaying error messages, you should use html:errors / and saveErrors() in your Action class. If so, don't forget to set errors.header and errors.footer in your ApplicationRessources.properties. (@see html:errors documentation) Nico Hi All, I'm trying to use the Application Resources as

Re: using ApplicationResources dynamically

2002-06-25 Thread Nicolas De Loof
Message- From: Nicolas De Loof [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Tuesday, June 25, 2002 10:30 AM To: Struts Users Mailing List Subject: Re: using ApplicationResources dynamically For displaying error messages, you should use html:errors / and saveErrors() in your

Re: Dynamic updation of a selection box based on other select box

2002-06-25 Thread Nicolas De Loof
Hi If you don't want to get to the server to update your 2d select box content, everything needs to be handled by javascript on client. What I sugested in 3d solution is that your action repopulates the 2d select depending on 1st selected item (this would be the pure MVC way : let the controler

Re: Dynamic updation of a selection box based on other select box

2002-06-25 Thread Nicolas De Loof
Really interesting ! thank you for links. Nico Subject: Re: Dynamic updation of a selection box based on other select box From: Matt Raible [EMAIL PROTECTED] === How about a solution where you can use populate the second box with out ever leaving the page!? It's called Javascript Remote

Re: bean:define question

2002-06-25 Thread Nicolas De Loof
only id is required. id set the name of the scripting variable AND context objet that tag will define for you. toScope set the scope to define the context object (PAGE by default) If you specify name and/or property, bean:define will look for this object/property in scope (or in all scopes if

Re: [Off Topic] Sending HTML e-mail via servlet

2002-07-04 Thread Nicolas De Loof
Here is an example of sending an HTML message via javaMail : Properties props = new Properties(); props.put(mail.smtp.host, SMTPHost); Session session = Session.getDefaultInstance(props, new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() {

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 work,

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,

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 =

  1   2   3   4   >