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: 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: 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: 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: 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: AW: setting a request parameter in JavaScript

2003-02-11 Thread Nicolas De Loof
When you use a form in HTML, you set a method attribute. This method can be GET or POST: POST puts form parameters in HTTP body (you cannot see them in URL) GET add parameters to the URL (?parameter=value) You can change your form action in javascript : document.form.MyForm.action =

Re: newbie question - usebean

2003-02-10 Thread Nicolas De Loof
Your code doesn't show any html:form tag. This tag is used by struts to set the targeted action, and so the associated bean in some scope. You can use html:text without html:form by setting it's name attribute (name=user in your case). But if your HTML form has to be commited to a Struts action,

Re: newbie question - usebean

2003-02-10 Thread Nicolas De Loof
I do have html:form action=action/editUser in the code I just did not included in the email. I also have the following in my jsp: jsp:useBean id=user scope=request class=com.basf.plasticsportal.data.User jsp:setProperty name=user property=* / /jsp:useBean thanks, Diego. You don't

Re: href

2003-02-10 Thread Nicolas De Loof
bean:write name=links property=url//a bean:write only print your bean property value in JSP outputStream. You should look at data type used for your url property, and it's toString() method. Nico. - To unsubscribe,

Re: Difference between Tiles and Templates ?

2003-02-10 Thread Nicolas De Loof
Is there any difference between teh template tags and the Tiles tag lbraries ? They seem to be very similar in their usage. Cheers, Naggi They're is a major difference IMHO : you will find more support for Tiles on this list than for template ! Nico.

Re: newbie question: what to use for non-form data population?

2003-02-10 Thread Nicolas De Loof
You can iterate over any Collection (or javaBean that as a property that is a Collection) stored in some scope (request / session / application). For example I used to put List in application scope for allowed values of select inputs. Nico. If i want to use logic:iterate (or something

Re: [OT] Modeling tools

2003-02-10 Thread Nicolas De Loof
Perhaps Rational XDE ? ;) Nico. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 9:30 AM There is no alternative to Rose. -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Monday, February 10, 2003 10:04 AM

Re: How to handle Collections (List,Map etc.)

2003-02-10 Thread Nicolas De Loof
logic:interate http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate - An array of Java objects (but not primitive data types such as int) - An implementation of java.util.Collection, including ArrayList and Vector. - An implementation of java.util.Enumeration. - An implementation

Re: [OT] Modeling tools

2003-02-10 Thread Nicolas De Loof
And http://www.objecteering.com/ (Not tried myseld, but a colleague of mine tells us since 6 months it's great) Nico. You're very welcome. Oh yea, there is MagicDraw too :-) - Robert Durham David Cntr 805CSS/SCBE wrote: Thank you. -Dave -Original Message- From:

Re: Hi

2003-02-06 Thread Nicolas De Loof
You could create a servlet (or an action) that uses user Locale object to put the localized image in HttpResponse (a binary stream). Doing so you would have to define a mapping in web.xml (/images/localized/*.gif - LocalizedImageServlet) as I don't think browser will accept image without good

Re: Responses without Requests

2003-02-04 Thread Nicolas De Loof
I think what you're looking for is request whithout response, aren't you ? If you want to use HTTP using an URLConnection you have to use HTTP syntax in the string you send to the server : open a connection on http://www.otherserver.com; (this will be like a telnet session on this server on port

Re: AW: javax.servlet.jsp.JspException: Cannot retrieve mapping fora ction /submit

2003-02-04 Thread Nicolas De Loof
check your web.xml Deployment Descriptor for *.do mapping. It should map to struts ActionServlet. Nico. - Original Message - From: Jefferson Magno [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 1:27 PM Subject: RE: AW:

Re: Values not populated correctly from JSP

2003-02-03 Thread Nicolas De Loof
Could you give us - your JSP code (the part where input fields are included) - your formbean (setters method for not initialized your properties) Nico. Hi, Values from my JSP are not getting initialized properyt to my Form bean. Is there any place which could go wrong The values are

Re: Getting Request Parameters After validate()

2003-02-03 Thread Nicolas De Loof
When validation send you back your request scope is empty as you have submited a new request ! Your test attribute will be present in your formbean, because formbean population has occured. For beeing able to display back your JSP you will have to use session scope beans or use formbean

Re: Getting Request Parameters After validate()

2003-02-03 Thread Nicolas De Loof
completely off and stand corrected? Vinh -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 8:54 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Getting Request Parameters After validate() When validation send you

Re: Getting Request Parameters After validate()

2003-02-03 Thread Nicolas De Loof
IMHO request scope should be used to put volatile datas, such as error messages or computation result. A JSP that uses validation should be able to display back without preprocessing, I mean needed datas should be present as properties of the formbean (or other session scoped bean). Using

Re: automated way to pass args to bean:message

2003-02-03 Thread Nicolas De Loof
What you call a macro is simply a JSP custom Tag. You can create tag for your application to add the behaviour you need, such as searching some scope for XXX and adding it to the message that you can get the way MessageTag does (you can grab struts MessageTag code for this !) Nico. Is there a

Re: Sample Code for combo box

2003-01-27 Thread Nicolas De Loof
JSP tags attribute must be String or Object (toString method is used). You are using an int as value attribute, so just convert it to String : html:option value=%= String.valueOf(i) % %= getMonthName (i) % /html:option Nico. Hi, I'm having trouble with the following piece of

Re: bean:define, logic:equal problem with rt expr values

2003-01-24 Thread Nicolas De Loof
You typed % =myint % instead of %= myint % ! I used this a lot of time : logic:equal name=topicsList property=topicid value=%= MyClass.CONSTANT_VALUE % foo /logic:equal Nico. Hi, I'm using Struts 1.1b and want to use logic:equal to compare values and I'm

Re: forward to same page

2003-01-23 Thread Nicolas De Loof
Here is a quick and dirty solution : In your JSP you can add a form with an origine hidden field : form action=/changeLocale.do method=post input type=hidden name=origine value=%= request.getRequestURL() % Language : select.../select input type=submit value=translate /form This way,

Re: How to iterate over Arraylist

2003-01-23 Thread Nicolas De Loof
You just have to add at begining of your JSP : %@ taglib uri=/WEB-INF/struts-loigc.tld prefix=logic% Without that, you can see that logic:xx tags appears in resulting HTML not beeing interpreted by JSP parser. Nico. My JSP: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib

Re: forward to same page

2003-01-23 Thread Nicolas De Loof
That is what I understood. The localeform is sugested can be added in every JSP (that is able to redisplay fine). It has to take as parameter the locale selected and the incoming JSP page, to be able to set Locale and to redisplay the JSP. You can get a JSP URL when rendering using

Re: How to iterate over Arraylist

2003-01-23 Thread Nicolas De Loof
Tag, then he says: org.apache.jasper.JasperException: Cannot find bean person in any scope What is Tomcat's problem ? I think he don't know what he want ! thanks, Fredy -Ursprüngliche Nachricht- Von: Nicolas De Loof [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 23. Januar 2003

Re: AW: How to iterate over Arraylist

2003-01-23 Thread Nicolas De Loof
What version of tomcat are you using ? Nico. That's really stupid ;-) But now there's the next error: I think the use Bean Tag is wrong, because the Error ist: It is a bug in tomcat 4.1.10 afaik. Upgrade to 4.1.18. Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Nicolas De Loof
1. Struts find the formbean on scope or creates a new one 2. formbean.reset() is called to set all properties to default values 3. formbean is populated from request parameters 4. formbean.validate() is called (if configured) 5. formbean is passed to action reset() is used to set all property to

Re: AW: How to iterate over Arraylist

2003-01-23 Thread Nicolas De Loof
Could you please add this dump code in your JSP, replacing your bean:write so that we could see what logic:iterate has done with your person. (Please post resulting HTML) Nico. h3PAGE_SCOPE/h3 % for (java.util.Enumeration e = pageContext.getAttributeNamesInScope(

Re: Why is the reset method called when I submit the form?

2003-01-23 Thread Nicolas De Loof
A long time ago, someone suggested to add a control in the struts-config.xml so the reset() is not always mandatory but can be disabled in the struts-config.xml. May be it sounds like an anti-pattern from the gurus, but to me, it sounds like a very interesting option, for real-life apps.

Re: Packaging struts business logic and action classes

2003-01-23 Thread Nicolas De Loof
I think Value Object is the J2EE BluePrint name of Data transfer objects design pattern. This is a way to transfert multiple datas as a simple bundle (so you doesn't need to make multiple getter calls, especially on remote obects). Data Access Objects (DAO) is a pattern to encapsulate ressource

Re: Tag as an attribute

2003-01-23 Thread Nicolas De Loof
JSP Tags use a XML style syntax, so you can't use a tag as attribute of another tag. bean:define can help you, as it creates a script variable : bean:define id=imageSrc scope=application name=myImage/ html:image property=submit src=%= imageSrc %/ Nico. html:image property=submit src=bean:write

Re: Question about nested tags.

2003-01-22 Thread Nicolas De Loof
It seems that this limitation has been changed in JSP 1.2, and now it is possible to flush from inside a custom tag only if this tag extends IteratedTags. I presume that the implementation of nested:iterate I use (Struts-1.1b2) does not extend IteratedTags. You would like some

Re: Question about nested tags.

2003-01-22 Thread Nicolas De Loof
In fact, logic:iterate extends BodyTags and implements IterateTag. So for a newbie like me, everything looks ok. Of course, I misunderstand all the problem. That's why I ask for additionnal informations. tiles:insert is using JSP include mecanism. In JSP 1.1, include MUST use the flush

Re: Question about nested tags.

2003-01-22 Thread Nicolas De Loof
Reading tiles tld, I've seen they're is a flush attribute, that can be optionaly set to false, so that no flush is done. On a JSP 1.2 compliant container this should allow you to use tiles:insert into your nested:iterate tag. It should be great for tiles not to flush if a JSP 1.2 container is

Re: pageContext beans

2003-01-22 Thread Nicolas De Loof
ServletContext = application scope ! bean:write ... scope=application / Nico. Hi, Does Struts provide any tag to access attributes set in a ServletContext? Thanks, Suresh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: [OT] Standardised Environments (was RE: [OT] Eclipse IDE)

2003-01-21 Thread Nicolas De Loof
Waaa ! It took us 2 years to come to struts + log4j. I'm trying to promote tomcat and eclipse as test/development platform... for 2004 ? Perhaps Linux and PostgreSQL in 2020. Nico. Suddenly my life doesn't look so bad. :) When I first started working for my company we were using Websphere

Re: combine tags

2003-01-20 Thread Nicolas De Loof
JSP custom tags use a XML-compliant syntax, so attribute value of a Tag cannot contain another JSP tag. The only way to dynamicaly set attribute value is using expression (scriptlet). bean:define tag can help you doing this : bean:define id=page_url tiles:getAsString name=tbl_1/ /bean:define

Re: Sample Code for combo box

2003-01-20 Thread Nicolas De Loof
* Use with collection : html:select property=selected_item html:options collection=itemAllowedValues property=value labelProperty=label html:select itemAllowedValues is a Collection in some scope that contains beans with value and label property for selectable values

Re: combine tags

2003-01-20 Thread Nicolas De Loof
It looks like your JSP doesn't include tiles taglib def : %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % Nico. % String tiles =/tiles:getAsString name=\tbl_1\/; % unfortunately the value of tiles var is /tiles:getAsString name=\tbl_1\/ -- To unsubscribe, e-mail:

Re: A form with a List

2003-01-20 Thread Nicolas De Loof
If I've understand your formBean is NOT a DynaActionForm or subclass of DynaActionForm. If I'm right, form-property will have no effect on struts configuration (they are used only for dynabeans, see DTD) form-bean dynamic=false name=MyActionForm

Re: Most Stable Struts Build

2003-01-17 Thread Nicolas De Loof
I think I allready read this question somewhere http://jakarta.apache.org/struts/faqs/helping.html#release Nico. When is the next release coming out? -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 11:01 AM 1.1 beta 3 --

Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof
perform() method in any action MAY return an ActionForward, but CAN return null if it has build the response for the client browser. This is commonly used for PDF or Excel generation, where they're is no need for a JSP. I don't understand why you cannot directly use the PDF-generator servlet, by

Re: How to set a parameter in an action

2003-01-16 Thread Nicolas De Loof
Servlet API doesn't allow you to write request attributes (parameters, headers...) You can try to forward to a new ActionForward object, build with the mapping to your another action, adding needed parameter with GET syntax : ... return new ActionForward( NEXT_ACTION_URL + ?param= + paramValue );

Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof
It writes the binary value(pdf) into the response.getOutputStream, with content-Type application/pdf und with content-length set. But in the browser nothing can be seen, even though the pdf that gets created correctly, and the browser is loading the pdf-plugin. Any ideas ? marcus I

Re: Comparing values of variables

2003-01-16 Thread Nicolas De Loof
Is there a taglib in struts which would allow me to compare a value of a variable with a value of another variable. I went thru struts docs and found only constants can be compared with logic:equal tag -Hari Try this : bean:define id=variable1_value name=variable1 property=value /

Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof
I never set content-length when generating response (PDF or not). Perhaps you have a mistake in length calculation and browser waits for EOF ? Try without. Nope. I know it works as it works without Struts. So, why don't you just add a mapping in web.xml for your PDF-maker servlet ?

Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof
Can't you just have the action that fronts the PDF servlet return a forward that represents the path to that servlet? web.xml: servlet-mapping servlet-namepdfServlet/servlet-name url-pattern/pdf/url-pattern servlet-mapping You could also include a security-constraint element to

Re: newbie question

2003-01-15 Thread Nicolas De Loof
You can use a bean as a flag this user has allready been count. Let's call it user. Your welcome page should be a struts URL (welcome.do). Corresponding WelcomeAction would look for user in session. If not found, it does increment user counter, create user bean and put it in session, so that

Re: Beginner question: pages without forms (simple anchors)

2003-01-15 Thread Nicolas De Loof
You can use struts framework without formbean, without validation, without error handling ... But doing so, struts will be a less powerfull framework. You can begin with just a mapping, an Action that does what you want and a JSP. Adding a formbean will allow you see that Struts maintains data

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: [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: 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: 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: 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: 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: 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: 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: 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: set Attribute in PageContext

2002-06-04 Thread Nicolas De Loof
Page scope does only exist during the execution of your JSP page (compiled as a Servlet). As your action is called by ActionServlet, JspFactory.getDefaultFactory(); returns a pageContext for the ActionServlet (that has not been generated from a JSP file, so it's strange to call this method from a

Re: How i can execute the tag bean:write ../ inside the tag html:hidden

2002-06-03 Thread Nicolas De Loof
JSP tags use XML syntax and so they cannot be nested as attribute values this way. You can use scriptlet notation to define tags attributes at run time : html:hidden property=id value='%= myData % / So you just have to define a scripting variable to handle your datas bean:define id=myData

pageContext.removeAttribute(String) (no scope)

2002-05-31 Thread Nicolas De Loof
Hello, I would like to know if Struts (1.0.2) uses Servlet API 2.3 or 2.2 definition of pageContext.removeAttribute(String) behaviour: in 2.2, javadoc only says remove the object reference associated with the specified name (no precision about scopes) in 2.3 Remove the object reference

redirect=true mappings with Websphere 4

2002-05-29 Thread Nicolas De Loof
Hi, My application (based on Struts 1.0.2) uses the context greco, and I have some Actions with forward defined like this with a redirect flag : action path=/oneAction type=greco.webapp.MyAction name=MyForm scope=request

Re: redirect=true mappings with Websphere 4

2002-05-29 Thread Nicolas De Loof
same behaviour ... What happens if you take the slash out of the path? ie path =otherAction.do Nicolas De Loof [EMAIL PROTECTED] on 05/29/2002 06:28:35 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc

Question : usage of getSession() in Struts

2002-05-28 Thread Nicolas De Loof
Hello, I noticed Struts custom tags use some code like this one to get the user session : HttpSession session = pageContext.getSession(); if (session == null)) session = ((HttpServletRequest) pageContext.getRequest()).getSession(); if (session == null) return (null); notice the

Re: Not all characters are allowed in Resource Bundle

2002-05-24 Thread Nicolas De Loof
I have Traditional Chinese and English resource files in my web application. Everything worked fine at first. I could switch between these two languages without difficulties. But it was found that when there were certain Chinese characters in the Chinese resource file, error Unmatched

how to set environment entry values a deployment time

2002-05-23 Thread Nicolas De Loof
Hi, This doesn't looks like a Struts question, but please help. Conforming to a question I asked on this list last week, I defined an environment entry in my web.xml to configure some properties my client has to set when installing the application. I tested this successfully on tomcat. This

Re: Bug in struts-logic.tld - equal tag?

2002-05-21 Thread Nicolas De Loof
I remember such an error reported on this list some weeks ago, the explanation was that JavaBean spec defines some special behaviour with upper-case properties. To build getter method names conforming to this behaviour, BeanUtil looks at the two first charcacters of a property name and, if

Propertie files in a war file

2002-05-17 Thread Nicolas De Loof
Hello, I will have to deploy a webapp (on WAS4) using a war file, but I'm not sure on how to let my client set some configuration datas that are placed in propertie files (in WEB-INF/classes), or update the ApplicationResource.propertie to change application texts. I would like it to be simple

Re: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Nicolas De Loof
I've tested struts-example successfully with websphere 4 fixpack 2 (with no-changed struts 1.0.2 binary distrib) on IBM AIX Perhaps you would have to upgrade to fixpack 2 (websphere 4.0.2) ? Nico Do I need to make change to the struts source and rebuild it to deploy on WebSphere 4.0? I would

Re: Getting Struts Example work with WebSphere 4.0

2002-05-17 Thread Nicolas De Loof
Thanks Nicolas for the quick response. I will try with the fixpack 2. Did u get any special struts.jar or used the onle from binary distribution? I used the web-application war files (in struts 1.0.2 bin distrib) and so the included struts.jar. Nico -- To unsubscribe, e-mail:

Re: class cast exception

2002-05-16 Thread Nicolas De Loof
Could you please insert in your action class the line : System.out.println(form.getClass().getName()); (or another logging method) so we can have more infos about what's happening with your form ? and please give us the complete java source code of your FormBean as attachement Nico Im

Re: class cast exception

2002-05-16 Thread Nicolas De Loof
) at weblogic.socket.MuxableSocketHTTP.invokeServlet(Unknown Source) at weblogic.socket.MuxableSocketHTTP.execute(Unknown Source) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129) _form: Do Mai 16 12:42:51 CEST 2002:E WebAppServletContext-det Servlet failed with Exception Nicolas De Loof wrote: Could you

Re: Problem with iterate tag

2002-05-15 Thread Nicolas De Loof
I think you just have to use: logic:iterate collection=memberBeans id=memberBean So iteratetag will look into scopes for a memberBeans object that should be a Collection. What you do is tell iterate tag to look for a Collection named ... the result of

Re: Problem with iterate tag

2002-05-15 Thread Nicolas De Loof
, before the iterate tag, to have the memberBeans object in the scope ? Pierre -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 May, 2002 11:27 To: Struts Users Mailing List Subject: Re: Problem with iterate tag I think you just have to use

Re: Interesting question?

2002-05-15 Thread Nicolas De Loof
Your myVector object is placed in request scope, so it is not present anymore in the next request, when the user submits the form. To display the JSP after validation error detection you need to put this object in session scope. using jsp:useBean id=myVector class=java.util.Vector scope=request

Re: logic:match question

2002-05-15 Thread Nicolas De Loof
logic:match tag looks for value substring in it's body or in bean setted by name and optionnaly property (using toString() for non String objects). Your index is an Integer, and this tag uses toString() value, taht is decimal view of your index. So 0 and 10 and so on have the 0 substring and

Re: class cast exception

2002-05-15 Thread Nicolas De Loof
Please give us your mapping (struts-config) for this StrutsAction. hi there ... i always get a class cast excpetion when trying to cast the form-class is there anybody who is able to tell me what is wrong in my form-class public class StrutsAction extends Action{ public

Re: Cannot find message resources - DESPERATION

2002-05-07 Thread Nicolas De Loof
Your struts-config: message-resources key=org.apache.struts.action.MESSAGE name=ApplicationResources.properties / I'm using Struts 1.0.2, so I cannot test it, but i think your message ressource bundle should be declared in struts-config with a parameter attribute without the .properties

org.apache.struts.action.ReloadAction and other administrative actions : deprecated ?

2002-05-06 Thread Nicolas De Loof
Hi I use struts-blank application as a canvas for a new struts 1.1 application, and so looked into included struts-config.xml. I'm surprised to see that administrative actions (like AddFormBeanAction or ReloadAction) are not any more in struts 1.1 b1 distribution (zip), but are referenced by

Re: Getting index inside iterate / pager tag

2002-04-30 Thread Nicolas De Loof
indexId defines the name of the Integer stored in page scope AND the name of a scripting variable created in your JSP. so in example you can use bean:write name=inx/ or %= inx % You can so use the first html:link syntax Second one is illegal because JSP tag cannot be used as attribute value of

Re: Accessing form beans

2002-04-30 Thread Nicolas De Loof
If /foo is mapped to FooForm bean, you can use bean:write name=FooForm property=xxx / without changes to your html:form. bean:write will look in scopes for an object called FooForm. This has no effect with using html:form or not - assuming FooForm is in session or request scope ! If you've

Re: logic:iterate question

2002-04-25 Thread Nicolas De Loof
logic:iterate id='element' name='attribute' scope='page' type='java.lang.String' indexId='index' bean:write name='MAP_STATE_KEY' property='mapController.dataConnection.attributeNames[%= index %]' scope='session'/ Correct your bean:write tag

Re: form bean with ArrayList

2002-04-25 Thread Nicolas De Loof
That's pretty weird, considering an ArrayList has an initial capacity of 10 and grows automatically. Are you sure you are re-instantiating the List after (I assume) dereferencing it in reset()? This grows automatically part is something that I think is not completely right. If you

<    1   2   3   4   >