Re: Accessing form bean from inside a custom tag, take 2

2002-04-22 Thread Christian Bouessay
Form-bean is stored in request/session. And in a custom tag, you can access the property pageContext. Why not using a code like : MyFormBean form = (MyFormBean)pageContext.getAttribute("myFormBeanName", PageContext.SESSION_SCOPE); or MyFormBean form = (MyFormBe

Re: Struts Validator error messages

2002-04-18 Thread Christian Bouessay
I'm not using Struts Validator, but have the same pb with alert('') ... To solve it, I use a javascript regexp expression : function message(text) { alert(text.replace(//, "")); } But, this is not generic ... -- C. Bouessay [EMAIL PROTECTED] wrote: > Hello, > > > > How do I set up

Re: Multi-Lingual support

2002-04-18 Thread Christian Bouessay
With mozilla (netscape), Edit > Preferences >Navigator >Languages -- C Bouessay Yibing Li wrote: > Could you tell me how to set up the locale in my browser? The only thing I > know > is that I have set the encoding under the view ( for IE ) to the appropriate > language I expect. > > Thanks, >

Re: Warning when extending ActionMapping.

2002-04-18 Thread Christian Bouessay
Hi, I've added 4 lines in web.xml to tell ActionServlet not to read the DTD: validating false Then, warnings disappear. It's not a real solution, but for today, it's good :-). Thanks, for the link. -- C. Bouessay Adolfo Miguelez wrote: > >http://www.hpmiddleware.com/SaISAPI.dll/SaS

Re: Cannot retrieve definition for form bean null

2002-04-10 Thread Christian Bouessay
Ida Dorum wrote: > The error turned out to be in my mapping, I have never needed to add the > form to my request or session in my action to make it available in my > jsp? Why do you do that? Neither me (?) Could you send an extract of the JSP file? (kort_finn_kunde.jsp) -- C. Bouessay > -O

Re: Problem with caching

2002-03-27 Thread Christian Bouessay
For all actions, you could configure the ActionServlet in web.xml, like this: ... nocache true ... -- C. Bouessay Slimane Zouggari wrote: > Hi, > > When I try to follow a link to one of My action class. Sometimes, it > works correctly and sometimes, my browser just take the

Re: sorting of multiple records..

2002-03-12 Thread Christian Bouessay
I don't think you can sort directly with the tag iterate (maybe I'm wrong ?). But, you could use a TreeMap collection. (records in the TreeMap are sorted by the key, ie the specific sorted column would be the key). -- C. Bouessay Sachin wrote: >Could anyone explain about the sorting of multip

Re: Novell Bordermanager

2002-02-06 Thread Christian Bouessay
In web.xml, you could add: nocache true for Action Servlet configuration. -- C. Bouessay Jonathan Gibbons wrote: > My guess is that there is proxy caching going on someplace. Setting the >HttpServletResponse header fields should do it, not sure if there is a tag, but its >easy enou

Re: JRun/JNDI Question

2002-02-05 Thread Christian Bouessay
Have a look at: http://www.javaworld.com/javaworld/javatips/jw-javatip118.html (it should maybe help you (???)) -- C. Bouessay Galbreath, Mark wrote: > JRun's documentation sucks and it's code examples use deprecated methods. > Does anybody know the correct means to get a JNDI reference to an

Re: DTDS Required for Struts and Web Application.

2002-02-04 Thread Christian Bouessay
Sudhir S. Shetty wrote: > Hi All, > I have an Intranet application hosted on Weblogic Server , the > application is built on STRUTS, I need to know, whenever I start up > weblogic, the server downloads the DTD's for the application i.e. the struts > specific DTD's and the ones specific

Re: How to redirect to login page

2002-01-25 Thread Christian Bouessay
Reid Pinchback wrote: > Another alternative is used by the workflow extension > listed on the Struts resources page. You can create > a base action class that does the checking in its > perform method, then calls some other method > provided by the concrete subclass to do the normal > work if t

Re: persistance for wizard type forms

2002-01-24 Thread Christian Bouessay
Ted Husted wrote: > One approach to a wizard is to group the properties into pages, and pass > the page number as a hidden property. The reset and validation methods > can then use the page number to decide which set of properties to > validate. I'm using this approach, but don't store page n

Re: How to store a String[] in a hidden field?

2002-01-16 Thread Christian Bouessay
Well, I've found one solution: "> Is there a better way to do this? -- C. Bouessay Christian Bouessay wrote: > Hi, > I have a form with a multiple select box. > > class myForm1 extends ActionForm { > String[] getFields() { ...} >

Re: JDeveloper

2002-01-16 Thread Christian Bouessay
Barry Dreckmann wrote: > Hello there ! > > I was wondering if anybody was using Oracle9i JDeveloper with Struts. > > If someone is...How do you go about configuring JDeveloper to use it ? > I'm using struts with JDev O9iAS RC (Win NT). JDev seams to have some pbs using a .jar in the WEB-INF/

How to store a String[] in a hidden field?

2002-01-16 Thread Christian Bouessay
Hi, I have a form with a multiple select box. class myForm1 extends ActionForm { String[] getFields() { ...} void setFields(String[] fields ) ... } When I submit the form and validate() return null, it forwards to an other view of the same form where I would like to store

Re: The same name in scope, but different names in struts-config.xml

2002-01-11 Thread Christian Bouessay
> Would it be possible to have just 1 form with a "type" property and then > from the JSP's a hidden field that sets the type? Based on this "type" > you can control the proper validation. Having different classes with > the same form name could get messy. > Do you mean only one class (For

The same name in scope, but different names in struts-config.xml

2002-01-11 Thread Christian Bouessay
Hi, I would like to use something like this: with : Form1.java, Form2.java, Form3.java extend Form.java. Form1, Form2 and Form3 have the same properties, but different validate() methods. How to write that all these forms refer the same one. I mean, I would like struts to save these differe