Populate too much ...

2002-12-03 Thread Xavier Combelle

In MyAction1 I set a field of a form MyForm at null.
The I make a forward to MyAction2.
And when MyAction2 read the field, it is set with 
wich were before MyAction1 reseted it.

It seems that is because the struts framework
execute the populate between the MyAction1 and the MyAction2.
So I set the attribute redirect at "true" 
and the field still reseted.

So I'm perfectly happy, my project work, 
but I am still a little bit worried,
Is it really necessary to ask the client
to execute a redirect, since all the treatment
is done on the server side ?


Regards,
Xavier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using : Tomcat 3.2.2

2002-11-18 Thread Xavier Combelle
it seems that you did not used the id attribute
 

 
> -Message d'origine-
> De : vze49jqg [mailto:[EMAIL PROTECTED]]
> Envoyé : samedi 16 novembre 2002 17:32
> À : Struts Users Mailing List
> Objet : Using : Tomcat 3.2.2
>
>
> Hi I am using Tomcat 3.2.2 , struts 1.0
> I am having this problem :
>
> I have a ArrayList myArr which is populated by the Bean {A} , the
> arraylist contains object of another Bean {B}.
>
> if I say
> 
> Hello World
> 
>
> It iterates Hello world for the number of objects in myArrlst,
> but when I try to use a method call inside the logic:iterate tag it says
> getter / setter not present.
> I can do the same thing as above with Java Iterator and calling bean's
> individual getter/ setter methods.
>
>
> Any help will be greatly appreciated.
> Regards
> Gopal
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: logic:iterate Simple code not run

2002-11-18 Thread Xavier Combelle
just change collection to name (the following code work !


<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%
java.util.Vector  aVectore = new java.util.Vector();
aVectore.addElement("SAMPLE");
aVectore.addElement("SAMPLE2");
session.setAttribute("aVectore",aVectore);
%>






> -Message d'origine-
> De : Alireza Fattahi [mailto:[EMAIL PROTECTED]]
> Envoyé : lundi 18 novembre 2002 10:30
> À : 'Struts Users Mailing List'
> Objet : logic:iterate Simple code not run
>
>
> Hi,
>
> It seems a simple code but It is not running:(
>
> <%
> java.util.Vector  aVectore = new java.util.Vector();
> aVectore.addElement("SAMPLE");
> session.setAttribute("aVectore",aVectore);
> %>
> 
> 
>
> *The stack *
> javax.servlet.jsp.JspException: Cannot create iterator for this collection
>   at
> org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:337)
>   at
> jrun__attachment__attach_file2ejsp1b._jspService(jrun__attachment_
> _attach_fi
> le2ejsp1b.java:80)
>   at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
>   at jrun.jsp.JSPServlet.service(JSPServlet.java:110)
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [OT]Need magic incantation

2002-11-15 Thread Xavier Combelle

Maybe you should check if the class you are look for is really in the jar 
by using an unzip tool.

> -Message d'origine-
> De : Sri Sankaran [mailto:Sri.Sankaran@;sas.com]
> Envoye : vendredi 15 novembre 2002 17:42
> A : Struts-User
> Objet : [OT]Need magic incantation
> 
> 
> I'm being stymied by a classpath issue that occurs both on Tomcat 
> 4.1.12 and JRun 3.1.
> 
> I get a ClassNotFoundException while the classpath clearly 
> displays the jar file that contains the "missing" class.  I've 
> even tried -- in desperation -- putting the jar file in Tomcat's 
> bin common/lib and server/lib directories to no avail.
> 
> The kicker is that I can successfully run a command-line 
> application  -- that exercises the same business logic -- using 
> the classpath used by Tomcat.
> 
> I know it could be any bunch of things -- but do you have any 
> recommendations?
> 
> Sri
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: NEWBIE-Quesion? add a querystring to

2002-11-14 Thread Xavier Combelle
maybe you should use a form with session scope instead of request scope
so the data edited in the fields which are not in the present form will
be still stored in the session without repeat it in the parameters




> -Message d'origine-
> De : Mouratidis, Georg [mailto:GMouratidis@;heiler.com]
> Envoyé : jeudi 14 novembre 2002 13:54
> À : [EMAIL PROTECTED]
> Objet : NEWBIE-Quesion? add a querystring to 
>
>
> Hi,
>
> How can i add a received querystring - not through STRUTS action
> - to the  attribut action.
>
> like this
> 
>
> if i do thhis in the source i see:
>
>  action="/PCX/organization.do?<%= request.getQueryString()%>"
> id="organizationForm">
>
> what do i do wrong. I do not want to create for each paramter an
> hidden input field.
>
> can somebody help?
>
> thanks
>
> mit freundlichen Grüßen
>
> Georg XL. Mouratidis
> Web Application Developer
>
> Heiler|Software AG
> Mittlerer Pfad 9
> D-70499 Stuttgart
>
> Tel: 0711-139 84-265
> Fax: 0711-866 63 01
> Email: [EMAIL PROTECTED]
>
> Connecting Buyer and Supplier
> http://www.heiler.com
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: From old JSP and Servlets to STRUTS

2002-11-12 Thread Xavier Combelle
Robert,

it is an interesting step by step way to develop struts aplication

really interestion !!

Xavier



> -Message d'origine-
> De : Robert Taylor [mailto:rtaylor@;mulework.com]
> Envoyé : mardi 12 novembre 2002 15:07
> À : Struts Users Mailing List
> Objet : RE: From old JSP and Servlets to STRUTS
>
>
> Fernando, I'm going through this exact scenario and I think it's great
> your getting exposed to this as an intern. Your about to learn things
> that cross way over the academic border.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: special character

2002-11-12 Thread Xavier Combelle
just set the filter atttribute of bean:write tag at false
as it is explained at the address
http://jakarta.apache.org/struts/userGuide/struts-bean.html#write

Xavier


> -Message d'origine-
> De : Amit Badheka [mailto:amit@;direct2s.com]
> Envoyé : mardi 12 novembre 2002 13:49
> À : Struts Users Mailing List
> Objet : special character
>
>
> I want to show the currency symbols, I am using bean:write but it
> is not displaying symbol.
>
> I have bean:write as -
>
> 
>
> the value store in DB is " € "  when we put this string
> directly it gets converted, but when I puts bean:write it prints
> the value as it is.
> (in view source it looks like "€ ")
>
> please help.
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: From old JSP and Servlets to STRUTS

2002-11-12 Thread Xavier Combelle
I think that all the complex traitment on objects returned by logic
should be simplified by the Action layer so the jsp work only with 'trivial'
beans.



Xavier

> -Message d'origine-
> De : Fernando Hernandez [mailto:fernando@;bit-bang.com]
> Envoyé : lundi 12 novembre 2001 13:13
> À : STRUTS Mailing-List
> Objet : From old JSP and Servlets to STRUTS
>
>
> Hi,
>
> I am student doing an intership and i just started to learn about Struts
> because I'm currently transforming a J2EE web application composed by
> servlets and old-java-embedded-JSPs so it can adopt Model 2.
>
> To acomplish this i found that using Struts is the prefect
> answer. To reach
> my goal, at first I thought that maybe the best way to do it was to first
> address the interface by taking out all the Java embedded in all the JSPs,
> and change it with Struts, JSTL, custom made taglibs. After doing this, i
> was going then to think about the Model and the framework itself...
>
> But i have found that to take out the embedded java from the JSP has been
> very difficult, since the objects(I'd like to say JavaBeans, bur they 're
> not exactly that, and actually that is part of the problem) which were
> sended from the logic to the presentation were very complex in nature and
> the content an not be presented just by using the strut's, JSTL or many
> other libraries i have looked exhaustively.
>
> So, should i leave some Java embedded in the JSPs?
> If the answer to the previous question is "yes", should I maybe put the
> embedded Java into custom tag libraries made by me? or maybe use
> includes or
> imports?
>
>
> I please ask your help on this since I'm running out of time.
>
> Thanks from Madrid.
>
>
> Fernando Hernandez.
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: I am seeing double executions of my actions on a single form submit

2002-11-08 Thread Xavier Combelle
To avoid double post problem,
from a double click of the user or from IE,
you can use the Token functionnality of struts
This functionnality seems not be documented,
but I described it in a previous mail to the mailing list
wih subject :
"Did not found doc about Tokens"

> -Message d'origine-
> De : Richard Yee [mailto:ryee@;cruzio.com]
> Envoye : vendredi 8 novembre 2002 16:47
> A : Struts Users Mailing List
> Objet : Re: I am seeing double executions of my actions on a single form
> submit
>
>
> David,
> How are you submitting the form? Are you using an image button or
> a regular
> submit button? I had a similar problem once using IE w/ an image button.
>
> -Richard
>
> At 09:38 AM 11/8/2002 -0600, you wrote:
> >When I submit my forms I am seeing my debug code in my Actions execute
> >twice.  I'm only clicking the button 1 time.  I'm trying to determine why
> >this might be hapening.  Has anyone experienced this double post problem
> >and did you find a solution?
> >
> >I am using IE 5.5 SP2, TOMCAT 4.0.3, JBuilder 7
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Did not found doc about Tokens

2002-11-08 Thread Xavier Combelle
I post this message because I did not found any doc about the
createToken, isTokenValid, resetToken API.
So I will explain what I understood about it from the struts-exemple
if something is wrong, I would like that someone will say to me
and if there is some doc tell me where ...


The token API is created to avoid that the user
to submlit twice the same form.
It is used with one ActionForm and two Action:
- the SomethingForm which contain the user's input
- the EditSomethingAction which populate the SomethingForm from the DB or
  clear all the field if it is a create Case
- the SaveSomethingAction which save the SomethingForm in the DB

To avoid that the user call submit twice the SomethingForm and
save twice the same data in the DB,
the struts framework propse the xxxToken API.

It is used as following
in EditSomethingAction, make a call to createToken(request) and that all !

in SaveSomethingAction, make a call to isTokenValid(request) and
resetToken(request)
as in the following  algorithm
if ( ! isTokenValid(request) )
{
/*
 * return forward towards an error page
 * saying to the user that he has submit twice
 * or
 * forward toward the succes page if we don't want the user see anithing
 */
}
else
{
/*
 * process the save in the DB
 */
if ( allTheSaveHasSucceed )
{
resetToken(request) ;
}
}

You much take care that there is only one token in the session
so that this process can't support nested transactions.
So you should keep simple use of it.


The same API can be used to avoid that the user click twice on
a link by setting the 'transaction' attribute at "true" of the 
tag
the Action called by the link should follow the same process than
SaveSomethingAction








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Did not found doc about Tokens

2002-11-08 Thread Xavier Combelle
I post this message because I did not found any doc about the
createToken, isTokenValid, resetToken API.
So I will explain what I understood about it from the struts-exemple
if something is wrong, I would like that someone will say to me
and if there is some doc tell me where ...


The token API is created to avoid that the user
to submlit twice the same form.
It is used with one ActionForm and two Action:
- the SomethingForm which contain the user's input
- the EditSomethingAction which populate the SomethingForm from the DB or
  clear all the field if it is a create Case
- the SaveSomethingAction which save the SomethingForm in the DB

To avoid that the user call submit twice the SomethingForm and
save twice the same data in the DB,
the struts framework propse the xxxToken API.

It is used as following
in EditSomethingAction, make a call to createToken(request) and that all !

in SaveSomethingAction, make a call to isTokenValid(request) and
resetToken(request)
as in the following  algorithm
if ( ! isTokenValid(request) )
{
/*
 * return forward towards an error page
 * saying to the user that he has submit twice
 * or
 * forward toward the succes page if we don't want the user see anithing
 */
}
else
{
/*
 * process the save in the DB
 */
if ( allTheSaveHasSucceed )
{
resetToken(request) ;
}
}

You much take care that there is only one token in the session
so that this process can't support nested transactions.
So you should keep simple use of it.


The same API can be used to avoid that the user click twice on
a link by setting the 'transaction' attribute at "true" of the 
tag
the Action called by the link should follow the same process than
SaveSomethingAction







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problems with ActionMessages... (again)

2002-11-08 Thread Xavier Combelle
Sorry for my previous mail,
I forgot to remove something
that is what i wanted to say :


I am amazed that nobody answered you ...
so, I will do my best

maybe you should use Action.MESSAGE_KEY instead
ActionMessages.GLOBAL_MESSAGE

it seems it's what it is specified in

http://jakarta.apache.org/struts/userGuide/struts-html.html#messages

message : By default the tag will retrieve the request scope bean it will
iterate over from the Action.ERROR_KEY constant string, but if this
attribute is set to 'true' the request scope bean will be retrieved from the
Action.MESSAGE_KEY constant string. Also if this is set to 'true', any value
assigned to the name attribute will be ignored. (RT EXPR)



Regards,
Xavier

> -Message d'origine-
> De : Michael Delamere [mailto:home@;michael-delamere.de]
> Envoyé : jeudi 7 novembre 2002 12:17
> À : Struts Users Mailing List
> Objet : Problems with ActionMessages... (again)
>
>
> Hi,
>
> I´m just not getting anywhere with the ActionMessages.  I wrote to the
> mailing list about a week ago and got no answer.  Unfortunately since
> then, I still haven´t managed to solve the problem myself.
> Aaahhhrrr!
>
> I´m trying to display a message in my jsp which I have defined in my
> action as follows:
>
> ActionMessages messages = new ActionMessages();
> ActionMessage newMessage = new ActionMessage("regform.myMessage ");
> messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
> saveMessages(request, messages);
>
>
> And in my jsp:
> 
> 
> 
>
> I´m getting exactly the same error as described in the thread below
> (which also received no answer on this topic):
>
> http://www.mail-archive.com/struts-user@;jakarta.apache.org/msg34621.html
>
> If anyone knows how to solve this, please help!
>
> Regards,
>
> Michael
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problems with ActionMessages... (again)

2002-11-08 Thread Xavier Combelle
I am amazing that nobody answer you, so i checked the struts exeemple
( file LinkSubscriptionTag )
it appears that you must'n directly call
ActionMessages messages = new ActionMessages();
but yous should use
MessageResources messages =
MessageResources.getMessageResources
("org.apache.struts.webapp.example.ApplicationResources");
I am amazed that nobody answered you ...
so, I will do my best

maybe you should use Action.MESSAGE_KEY instead
ActionMessages.GLOBAL_MESSAGE

it seems it's what it is specified in

http://jakarta.apache.org/struts/userGuide/struts-html.html#messages

message : By default the tag will retrieve the request scope bean it will
iterate over from the Action.ERROR_KEY constant string, but if this
attribute is set to 'true' the request scope bean will be retrieved from the
Action.MESSAGE_KEY constant string. Also if this is set to 'true', any value
assigned to the name attribute will be ignored. (RT EXPR)



Regards,
Xavier

> -Message d'origine-
> De : Michael Delamere [mailto:home@;michael-delamere.de]
> Envoyé : jeudi 7 novembre 2002 12:17
> À : Struts Users Mailing List
> Objet : Problems with ActionMessages... (again)
>
>
> Hi,
>
> I´m just not getting anywhere with the ActionMessages.  I wrote to the
> mailing list about a week ago and got no answer.  Unfortunately since
> then, I still haven´t managed to solve the problem myself.
> Aaahhhrrr!
>
> I´m trying to display a message in my jsp which I have defined in my
> action as follows:
>
> ActionMessages messages = new ActionMessages();
> ActionMessage newMessage = new ActionMessage("regform.myMessage ");
> messages.add(ActionMessages.GLOBAL_MESSAGE, newMessage);
> saveMessages(request, messages);
>
>
> And in my jsp:
> 
> 
> 
>
> I´m getting exactly the same error as described in the thread below
> (which also received no answer on this topic):
>
> http://www.mail-archive.com/struts-user@;jakarta.apache.org/msg34621.html
>
> If anyone knows how to solve this, please help!
>
> Regards,
>
> Michael
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Xavier Combelle
When I use Struts console eclipse plugin , a new window is open
and when I use SolarEclipse, it is open in the editor pane.
Do I have a problem in the configuration of struts console ?

Xavier


> -Message d'origine-
> De : David Graham [mailto:dgraham1980@;hotmail.com]
> Envoyé : jeudi 31 octobre 2002 17:55
> À : [EMAIL PROTECTED]
> Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
>
>
> This is one area Eclipse is lacking in.  I wish they would include web
> development tools (like jsp highlighting) in the standard release.  I use
> the SolarEclipse plugin for jsp and xml stuff.  It's not the best
> but it's
> better than a simple text editor.
>
> http://solareclipse.sourceforge.net/
>
> David
>
>
> >From: "Sri Sankaran" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
> >Date: Thu, 31 Oct 2002 10:41:14 -0500
> >
> >What plug-in do you recommend for JSP editing?
> >
> >When I looked (a few months ago) the choice was pretty light and
> even those
> >were very weak on code completion and error hightlighting.
> >
> >Sri
> >
> >-Original Message-
> >From: David Graham [mailto:dgraham1980@;hotmail.com]
> >Sent: Thursday, October 31, 2002 10:15 AM
> >To: [EMAIL PROTECTED]
> >Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
> >
> >
> >I use eclipse for many reasons, one of which is it's GUI and
> relative light
> >weight (50-60 MB).  The eclipse group wrote SWT because Swing stinks,
> >everyone except Sun recognizes that (that should stir some people up ;-).
> >SWT passes graphics calls straight to the OS so it's fast and you get
> >native
> >widgets, none of this fake stuff.
> >
> >The swing implementation on the Mac is the only one that passes straight
> >through to the OS like SWT.
> >
> >
> >David
> >
> >
> >
> >
> >
> >
> > >From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > >Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
> > >Date: Thu, 31 Oct 2002 06:33:25 -0500
> > >
> > >Alan Williamson also makes a good case for Eclipse in the Oct. 2002
> > >edition of "Java Developer's Journal," p. 5.  His article, and what
> > >people have said on this list has made me interested enough to try it
> > >out.  And it's apparently built with SWT (Standard Widget Toolkit), not
> > >Swing.
> > >
> > >Mark
> > >
> > >-Original Message-
> > >From: Xavier Combelle [mailto:xcombelle@;kaptech.com]
> > >Sent: Thursday, October 31, 2002 6:20 AM
> > >To: Struts Users Mailing List
> > >Subject: RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
> > >
> > >
> > >I also love vi
> > >
> > >but for java developpement, maybe Eclipse is a good choice
> > >
> > >??
> > >
> > >Xavier
> > >
> > >
> > >
> > >
> > > > -Message d'origine-
> > > > De : Galbreath, Mark [mailto:Galbreath@;tessco.com]
> > > > Envoyé : jeudi 31 octobre 2002 12:10
> > > > À : 'Struts Users Mailing List'
> > > > Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
> > > >
> > > >
> > > > I agree, but then, I love Java - all of it (but especially the new
> > > > 1.4 goodies!).  I even loved AWT! But as an end-user app?  Ugh!
> > > > This is why
> > >I
> > > > stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource
> > >hogs,
> > > > only because they are built with Swing.  Give me vi or give me
> > > > death!
> > > >
> > > > -Original Message-
> > > > From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> > > > Sent: Thursday, October 31, 2002 6:02 AM
> > > > To: Struts Users Mailing List
> > > > Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
> > > >
> > > >
> > > > I love Swing.
> > > > hmm... actually come to thi

RE: Newbie: Accessing form values

2002-10-31 Thread Xavier Combelle

just use

where editDatabaseForm is the formBena's name as specified in
struts-config.xml

Regards,
Xavier

> -Message d'origine-
> De : Ian Crossfield [mailto:ian.xfield@;dsl.pipex.com]
> Envoyé : jeudi 31 octobre 2002 16:17
> À : [EMAIL PROTECTED]
> Objet : Newbie: Accessing form values
>
>
>
> I expect it to be an obvious answer, but I'm just banging my head
> against the
> desk now...
>
> How do I go about accessing a parameter held within a form so
> that it can be
> used by the logic tasks for comparison?
>
> I.e. I have a form field called "currentPage", this has the
> appropriate get and
> set methods within its form "EditDatabaseForm". I want to get at
> it several
> times in tags similar to:
>   
>
> I suspect it's something to do with the  or
>  tag, but
> I can't find a suitable example.
>
> Thanks
>
> Ian
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE:

2002-10-31 Thread Xavier Combelle
About the reset method, you should know that 
it is called each time your action is called,
before your action is called, just before the
struts framework populate the form with the parameter of the request

but here the problem is that you used


which check in the parameter

instead of 



which should check in the form bean


xavier 




> -Message d'origine-
> De : Marcus Biel [mailto:Marcus.Biel@;bmw.de]
> Envoye : jeudi 31 octobre 2002 13:01
> A : [EMAIL PROTECTED]
> Objet : Re: 
> 
> 
> Nope, it's in session scope.
> Imho I know what happens:
> 
> the parameter is in session scope, but when reloading my jsp,
> there comes the form again, and the parameter gets reset.
> I already deleted this parameter from the reset method,
> but this neither helped.
> 
> marcus
> 
> 
> [EMAIL PROTECTED] schrieb:
> > 
> > Maybe your form is in the request scope instead of
> > session scope ( just set scope to session of the action mappiing
> > instruts-congig.xml )
> > So your form settings will be kept between two calls of your page
> > 
> > Xavier
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [OT] Swing.... [WAS: RE: [ANNOUNCE] Struts Console v3.0]

2002-10-31 Thread Xavier Combelle
I also love vi

but for java developpement, maybe Eclipse is a good choice

??

Xavier




> -Message d'origine-
> De : Galbreath, Mark [mailto:Galbreath@;tessco.com]
> Envoyé : jeudi 31 octobre 2002 12:10
> À : 'Struts Users Mailing List'
> Objet : RE: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
>
>
> I agree, but then, I love Java - all of it (but especially the new 1.4
> goodies!).  I even loved AWT! But as an end-user app?  Ugh!  This is why I
> stopped using Forte, NetBeans, JDeveloper, JBuilder, etc.  Resource hogs,
> only because they are built with Swing.  Give me vi or give me death!
>
> -Original Message-
> From: Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> Sent: Thursday, October 31, 2002 6:02 AM
> To: Struts Users Mailing List
> Subject: [OT] Swing [WAS: RE: [ANNOUNCE] Struts Console v3.0]
>
>
> I love Swing.
> hmm... actually come to think of it I love *developing* with
> Swing. Using it
> however... urrrgh!
>
> -Original Message-
> From: Galbreath, Mark [mailto:Galbreath@;tessco.com]
> Sent: Thursday, October 31, 2002 18:55
> To: 'Struts Users Mailing List'
> Subject: RE: [ANNOUNCE] Struts Console v3.0
>
>
> Swing sucks.  When is Sun going to get it's act together on providing a
> lightweight GUI framework?  Anybody read Alan Williamson's
> editorial in the
> 10/02 edition of "Java Developer's Journal?"
>
> Mark
>
> -Original Message-
> From: James Holmes [mailto:jholmes612@;yahoo.com]
> Sent: Wednesday, October 30, 2002 5:52 PM
>
> Struts Console is Swing not SWT.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Xavier Combelle
So in your point of view, a DynaActionForm should be enougth for
any kind of form ?

Xavier

> -Message d'origine-
> De : Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> Envoye : jeudi 31 octobre 2002 12:00
> A : Struts Users Mailing List
> Objet : RE: MVC Design: property in ActionForm or Bean with property in
> ActionForm ?
>
>
> Well one problem with actually modelling you ints as ints in the
> ActionForm
> is what happens if your user types in something like "forty two"
> instead of
> "42"?
>
> I forget whether this causes an exception in the
> processPopulate() method of
> the RequestProcessor or if it silently converts it to the value 0. If the
> former you have a problem catching it and if the later (which I think is
> what happens?) how do you know whether that zero is supposed to be zero or
> if its because your hairbrained user entered garbage?
>
> Furthermore when you redisplay the page for them to try again its
> considered
> good practice to rub their noses in the mess they left (ie:
> redisplay "forty
> two" in the field) together with an appropriate error message next to that
> field...
> (Personally I think the wording of these sort of error messages should be
> written by the host of "the weakest link" tv show ... but alas ... best
> practice says they should be 'friendly' ;->)
>
>
> -Original Message-
> From: Xavier Combelle [mailto:xcombelle@;kaptech.com]
> Sent: Thursday, October 31, 2002 18:52
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: MVC Design: property in ActionForm or Bean with property in
> ActionForm ?
>
>
> I have nearly the same think
> but I use to create properties as Integer which avoid me
> to make a call to Integer.valueOf()
>
> Am I wrong ?
>
>
> Sincerly
> Xavier
> > -Message d'origine-
> > De : Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> > Envoye : jeudi 31 octobre 2002 11:42
> > A : Struts Users Mailing List
> > Objet : RE: MVC Design: property in ActionForm or Bean with property in
> > ActionForm ?
> >
> >
> > Technically speaking, the ActionForm IS a bean.
> > It's purpose is to represent the users input (which you can
> > validate and if
> > necessary redisplay for correction) before transferring in your
> action the
> > (validated) values (with appropriate type conversion) to your business
> > object and vice versa.
> > Your BO itself may well be a bean too - such as your "BookBean" perhaps?
> > The actionForm and the business object will of course have a
> very similar
> > (often identical) set of properties, however they serve different
> > purposes -
> > for example you will note that while your BOs beans would have various
> > property types (ie: int for pages etc...) you ActionForm will
> > *usually* just
> > be strings (some folk use bools for checkboxes though) - a result of it
> > being a place to store the string data submitted in the request
> > or read from
> > the BO ready for display in the form...
> >
> > -Original Message-
> > From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
> > Sent: Thursday, October 31, 2002 18:20
> > To: [EMAIL PROTECTED]
> > Subject: MVC Design: property in ActionForm or Bean with property in
> > ActionForm ?
> >
> >
> > What's better:
> >
> > To have a bean let's say "BookBean.java"
> > that has got a String title, author, pages
> >
> > and an Actionform that uses this BookBean,
> >
> > or is it better to have an ActionForm
> > that has a String title, author, pages.
> >
> > Imho it's much faster and easier to have your properties in your
> > ActionForm,
> >
> > but I bet according to the MVC design its recommend to use Beans.
> >
> >
> > Right ?
> >
> >
> > thx,
> >
> > marcus
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@;jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@;jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: MVC Design: property in ActionForm or Bean with property in ActionForm ?

2002-10-31 Thread Xavier Combelle
I have nearly the same think
but I use to create properties as Integer which avoid me
to make a call to Integer.valueOf()

Am I wrong ?


Sincerly
Xavier
> -Message d'origine-
> De : Andrew Hill [mailto:andrew.david.hill@;gridnode.com]
> Envoye : jeudi 31 octobre 2002 11:42
> A : Struts Users Mailing List
> Objet : RE: MVC Design: property in ActionForm or Bean with property in
> ActionForm ?
>
>
> Technically speaking, the ActionForm IS a bean.
> It's purpose is to represent the users input (which you can
> validate and if
> necessary redisplay for correction) before transferring in your action the
> (validated) values (with appropriate type conversion) to your business
> object and vice versa.
> Your BO itself may well be a bean too - such as your "BookBean" perhaps?
> The actionForm and the business object will of course have a very similar
> (often identical) set of properties, however they serve different
> purposes -
> for example you will note that while your BOs beans would have various
> property types (ie: int for pages etc...) you ActionForm will
> *usually* just
> be strings (some folk use bools for checkboxes though) - a result of it
> being a place to store the string data submitted in the request
> or read from
> the BO ready for display in the form...
>
> -Original Message-
> From: Marcus Biel [mailto:Marcus.Biel@;bmw.de]
> Sent: Thursday, October 31, 2002 18:20
> To: [EMAIL PROTECTED]
> Subject: MVC Design: property in ActionForm or Bean with property in
> ActionForm ?
>
>
> What's better:
>
> To have a bean let's say "BookBean.java"
> that has got a String title, author, pages
>
> and an Actionform that uses this BookBean,
>
> or is it better to have an ActionForm
> that has a String title, author, pages.
>
> Imho it's much faster and easier to have your properties in your
> ActionForm,
>
> but I bet according to the MVC design its recommend to use Beans.
>
>
> Right ?
>
>
> thx,
>
> marcus
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: actions only for html:form ?

2002-10-31 Thread Xavier Combelle
I think you should try something like
loggoff
which call an action without using any form

for the problem of reload page,
i think in the preceding action,
you should save the path in the session scope

Regards,
Xavier



> -Message d'origine-
> De : Mohan Radhakrishnan [mailto:MohanR@;hclcomnet.co.in]
> Envoyé : jeudi 31 octobre 2002 11:23
> À : 'Struts Users Mailing List'
> Objet : actions only for html:form ?
>
>
> Hi,
> 
>
>   I am trying to find out how to use the above "href"
> representation to fire
> an action. I need to fire an action for "reload","logoff" etc.
> Sorry if this
> is too elementary.
>
>The html:form tag has an action. How do I fire an action for
> logging off
> if I have an image as a menu? Do I just specify  href="logoff.jsp"> ?
>A bit of explanation would really help.
>
>  A use case that is related is this.
>
>   1. User presses "reload" button.
>   2. If fires a "reload" action.This action does something useful.
>   3. Forwards to the same page.
> Thanks,
> Mohan
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE:

2002-10-31 Thread Xavier Combelle
Maybe your form is in the request scope instead of
session scope ( just set scope to session of the action mappiing
instruts-congig.xml )
So your form settings will be kept between two calls of your page

Xavier

> -Message d'origine-
> De : Marcus Biel [mailto:Marcus.Biel@;bmw.de]
> Envoye : jeudi 31 octobre 2002 09:41
> A : [EMAIL PROTECTED]
> Objet : 
>
>
>
> I got a selectbox. When you select a value, you get displayed a table of
> data records.
>
> Now I want to sort this table, add, edit and delete records on the same
> page.
>
> I got a  value.
>
> If so, the Table should get displayed.
>
> My problem is, that this parameter gets reset in some way when I
> reforwad to the same jsp again,
> after doing an action like sorting.
>
> This is really anyoing, because when I hit submit on the selectbox
> again,
> all I did -the sorting - gets destroyed, and the regular list gets
> displayed again.
>
>
> 
> 
>  property="plantList"/>
>  
> 
> 
>
> 
>   Show Table when plant has been selected once in session.
>   Also directly show table after sort records action, add
> records action,
> edit records action, delete records action.
> 
>
>
> Any ideas ???
>
> thx in advance,
>
> marcs
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: struts messages

2002-10-30 Thread Xavier Combelle
The same thing append when I used log4j with struts framework,
I made it disappear by specifing a high log level in the log4j configuration
file

 
  


Xavier
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:meissa.Sakho@;bpam.fr]
> Envoye : mercredi 30 octobre 2002 16:20
> A : [EMAIL PROTECTED]
> Objet : struts messages
>
>
> When I start Tomcat , I have a series of messages (from struts) about
> ActionServlet,
> ActionMapping  ans so ...
>
> Can someone tells me how to prevent from this.
>
> meissa
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: scope

2002-10-30 Thread Xavier Combelle
I think you could solve this problem by specifying
in the input attribute af your action the action which populate
the JSP page instead of the JSP page itself
or by putting the first time the bean in session scope

Xavier


> 
> "Knoernschild, Kirk W" <[EMAIL PROTECTED]> on 10/30/2002 08:27:21 AM
> 
> Please respond to "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> 
> To:<[EMAIL PROTECTED]>
> cc:
> 
> Subject:scope
> 
> 
> I'm using a databean to populate my JSP page. I put the bean on the
> request. The page populates fine. When submitting however, Struts 
> builds my
> formbean and calls the validate method. If the validate method 
> fails, I try
> to return to the submitting page. However, that page uses the databean,
> which is no longer in scope, and I error out. Others must have this same
> challenge. What have y'all done to accommodate this? thanx.
> 
> --kirk


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with unicode

2002-10-30 Thread Xavier Combelle
I think you should use the attribute filter="false" of the write tag
which will disable the character filtering by struts.

see the following adress for more detailed explaination
http://jakarta.apache.org/struts/userGuide/struts-bean.html#write


Xavier

> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:MerrilG@;ibsplc.com]
> Envoye : mercredi 30 octobre 2002 13:23
> A : [EMAIL PROTECTED]
> Objet : Problem with unicode
> 
> 
> Hi,
>  Suppose a field in the database has unicode values such as
> ش.
> 
> when i use html:text or textarea or for that matter any html
> components (using struts tag), i get the correct character.
> However if i use the
>  tag
> in the output i get the following characters.
> 
> ش as a result of which instead of the expected character i
> get ش in the page.
> How is it possible to escape the "&" that is coming instead of "
> &".
> 
> Do i have to use any response filters to filter out any of the "amp"'s
> . It works fine for a simple jsp without the  tag
> using the old scriplet method.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Re: [how many form for update and create action ?]]

2002-10-30 Thread Xavier Combelle
I finaly chose to use the same action and the same form for create and
update.
This decision allow me to simplify my code, but I used two jsp because on
the
specification, the create and the update page are visually different

thanks to all for help me about your advices .

Xavier



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




how many form for update and create action ?

2002-10-29 Thread Xavier Combelle
I have a conceptual problem in my struts application

I am programming an application which give the possibility
to create, update and delete several information, for exemple 
the name and the price of an item.

So I need to give to the user two possibilities :
 1- the possibility to create an item
 2- the possibility to update an item
so i use two action, one for each possibility

Should I use the same form bean to update and create or
should I use different form bean, one for update and one for create ?
and if I should use different form bean, should they have the same type ?

Greetings,

Xavier

--
To unsubscribe, e-mail:   
For additional commands, e-mail: