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

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

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

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

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

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

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: 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="

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

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: 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-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-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: [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: 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: 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: 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
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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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
City : State : Country : Nico. > Hai Nicolas > Thanx for your reply. My problem is that bean propery return a Object. > That's public Object getSampe() { > } > ie public addressgetAddress() { > } > > public class Address { >private String _city;

Re: Object inside another Object

2003-03-24 Thread Nicolas De Loof
You can use to get the content of your Vector, and then to get properties from your bean : Nico. > Hi All, > I want a help from you guys. I have created a sampleAction.class > using extend the Action class. This Action class create a Vector and put > it into Session. I have ret

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 Tag, and produce some JSP code with Struts tags. This fails because JSP compiler works this way : - scriptlets and JSP tags (that are declared by a <%@ taglib %>) are used to build the java code of the

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

2003-03-20 Thread Nicolas De Loof
our quick response Nicolas > > -Original Message- > From: Nicolas 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

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" /ac

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

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: 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, and

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 BeanUtil.co

Re: How to use forward parameters ? Newbie

2003-03-18 Thread Nicolas De Loof
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 request paramete

Re: [NEWBIE]A very stupid question

2003-03-17 Thread Nicolas De Loof
You should use this (notice tag): document.write("") > My link is created as follows: > > > document.write("

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

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 the

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 tags. you can use a HTML form by using : " > 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 action where i'm trying to implement an abort button. I know that >

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 , so action form definition is not needed. This beeing said, using a d

Re: simple question

2003-03-14 Thread Nicolas De Loof
You can try this : " method="POST"> home Notice the (not visible) HTML form will add a visual line break in browser. You can avoid it by putting it a page bottom or in an hidden div, or between two rows of a table. Nico. > > home > > > this obviously don't work...but there is a sy

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/*" -> se

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

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 clas

Re: Html:options

2003-03-12 Thread Nicolas De Loof
if you use with or , the option that equals the formbean property value will be automaticaly selected. (formbean initialized with name="foo") foo bar nop will render Nico. > Is there a way of obtaining a element where one of the > sub-elements has the SELECTED attribute ? >

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 s

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 Subje

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: Struts bean:define tag questions

2003-03-10 Thread Nicolas De Loof
What do you want to do whith your "city" ? You can do : 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 beans. "User" has been place

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 ne

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

Re: How to compare two beans using logic tags

2003-03-07 Thread Nicolas De Loof
... 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 > "value" attribute should be a constant value ... > Thanks > > > Renato Romano > Sistemi e Telemati

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 (http:

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 HT

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: CSS stylesheet

2003-03-06 Thread Nicolas De Loof
type="text/css"> Nico. > Does anyone knows how to render a > > > > With struts ?? > Thanks a lot. > Renato > > > Renato Romano > Sistemi e Telematica S.p.A. > Calata Grazie - Vial Al Molo Giano > 16127 - GENOVA > > e-mail: [EMAIL PROTECTED] > Tel.:

Re: Association between Session object and Cookies/URL rewriting

2003-03-06 Thread Nicolas De Loof
echnicolor, Grass Valley, RCA and THOMSON. > More about Thomson: http://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 ob

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

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

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): > > > > If this is present, struts fails with the following error: > > org.apache.jasper.JasperException: No getter method for property contractUser > of bean org.apache.struts.taglib.html.BEAN > > Th

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 PROTECTE

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 -

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 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 body as

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 th

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

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

2003-02-24 Thread Nicolas De Loof
n /jsp/Welcome.jsp line 6: -Amit -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 4:30 PM To: Struts Users Mailing List Subject: Re: Assigning value from Application Resources to a java variable in JSP Try this : You can then use

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

2003-02-24 Thread Nicolas De Loof
Try this : 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. e.g. In My Application Resource file i have prompt.welcome=Welcome In my JSP f

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

2003-02-24 Thread Nicolas De Loof
;button" in the forms for tag ? "you should", "you should"... don't forget... "philosophical purity should always yield to pragmatism" Nicolas De Loof wrote: >>1. Might be. dont know. >>

Re: Printing tag size

2003-02-24 Thread Nicolas De Loof
> i have this tag: > > > > now how can i display the value of size? what the getter method for the > bean:size? > > thanks > Nico. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

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

2003-02-24 Thread Nicolas De Loof
> > > > > > 1. Might be. dont know. >but you should avoid using scriptlets in your code. >and this is scriptlet. > Not scriplet ! JSP "scriptlet" is : <% String localImage = request.getAttribute(" .. %> JSP "runtime expression" (RTEXP) is : Notice the "=" in "<%= %>". Thi

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

2003-02-24 Thread Nicolas De Loof
This should work too : > and this is browser-indepentend. as far as i know IE-specific. input type="image" is HTML 3.2, not browser dependent (notice Struts doesn't use any browser specific tags). Nico. - To unsubscrib

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

2003-02-24 Thread Nicolas De Loof
use 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 html

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

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 , which tells me the corresponding property > has to be a array of any supported data type, then if you use the > to render the

<    1   2   3   4   >