Re: working with resource.properties files in JSTL Struts

2002-11-08 Thread Sven Bischoff
just place a context-param element in your web.xml as a child of web-app.


context-param
 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valueApplicationResources/param-value
/context-param

Sven


Anthony Mutiso 2 wrote:

What is recognized way to get JSTL fmt:message tag to share the same
resources bundle as Struts bean:message tag?

Thanks

Anthony

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




How to figure out the caller of in a Tiles JSP file?

2002-11-08 Thread Zsolt Koppany
Hi,

in Tiles JSP files, request.getRequestURI() seems to return the URL of the 
includes Tiles file. How can I figure out the URL of the includor? I means 
the JSP file at the top of the include hierarchy, because I would like call 
the original URL with additional parameters from the included JSP file.

Zsolt

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




Validate form with tiles.

2002-11-08 Thread Roland Carlsson
Hi!
I found a difference when running a page within a tiles definition and not.
The problem is the validatation. When running with tiles it validates when
no parameters are sent, it acts as if the form was submited when one views
the page for the first time and presents the validation-errors since some
fields are not allowed to be empty wich they of course are since the user
haven't been able see the form yet.

Is there any work-around for this problem?

Thanks in advance
Roland Carlsson





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




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:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 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:
 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: / /OREF:CPTF50F8 RE: Websphere Application Server 4.01 to 4.04 for AIX

2002-11-08 Thread Yeo, Rodney W
I finally got my struts running on Websphere Application Server 4.01 for
AIX.

I'm still trying to figure out the areas which generate the errors in the
past.

-Original Message-
From: [EMAIL PROTECTED] [mailto:avasey;za.safmarine.com]
Sent: Friday, November 08, 2002 01:43 PM
To: Struts Users Mailing List
Subject: / /OREF:CPTF50F8 RE: Websphere Application Server 4.01 to 4.04
for AIX



Windows 2000 (I have got rid of all my Struts and ClassNotFound
exceptions.)



 

  Yeo, Rodney W

  rodney.yeo@eds. To:  'Struts Users
Mailing List' [EMAIL PROTECTED] 
  com cc:

   Subject: RE: Websphere
Application Server 4.01 to 4.04 for AIX  
  07/11/2002 12:23

  PM

  Please respond

  to Struts Users

  Mailing List

 

 

 

 

 





Are you using AIX or Window 2000 ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:avasey;za.safmarine.com]
Sent: Thursday, November 07, 2002 06:03 PM
To: Struts Users Mailing List
Subject: RE: Websphere Application Server 4.01 to 4.04 for AIX



Hi Rodney

I just added the new xerces.jar to my App Server (default server) as
a classpath setting using the Admin Console as opposed to replacing
the WebSphere's version of the jar. My Struts parser exceptions seem
to have gone away.

(I am fighting some ClassNotFound exceptions with my web module not
finding classes that are part of my EAR file. I don't think this is
related to Struts as I had these problems before adding the
xerces.jar to my classpath. Didn't have them with websphere 4.0.3.)

Hope this helps.
Aisling





  Yeo, Rodney W

  rodney.yeo@eds. To:  'Struts
Users
Mailing List' [EMAIL PROTECTED]
  com cc:

   Subject: RE: Websphere
Application Server 4.01 to 4.04 for AIX
  07/11/2002 11:54

  AM

  Please respond

  to Struts Users

  Mailing List









Hi Aisling

I deployed for the whole App Server by changing the xalan.jar and
xerces.jar
in WebSphere40/AppServer/lib directory.
I'm now get
com.ibm.ejs.sm.exception.StaleActiveObjectInvocationException
error when i try to start up my default server using the
administrative
console. Do you encounter that?

Regards,
Rodney


-Original Message-
From: [EMAIL PROTECTED] [mailto:avasey;za.safmarine.com]
Sent: Thursday, November 07, 2002 05:17 PM
To: Struts Users Mailing List
Subject: Re: Websphere Application Server 4.01 to 4.04 for AIX



Hi Rodney

I am trying to deploy on WebSphere 4.0.1 after successfully deploying
the same application on WebSphere 4.0.3 but I am getting parser
exceptions.
You mentioned replacing the Xalan and Xerces classes. Could you
please outline how you did this ie: for the whole App Server or just
for your individual app ?

thanks very much
Aisling






  Yeo, Rodney W

  rodney.yeo@eds. To:  'Struts
Users
Mailing List (E-mail)' [EMAIL PROTECTED]
  com cc:

   Subject: Websphere
Application Server 4.01 to 4.04 for AIX
  07/11/2002 09:26

  AM

  Please respond

  to Struts Users

  Mailing List









Anyone ever tried successfully using Struts in above-mentioned
environment?

I have tried deploying to Websphere 4.01 for Window 2000 (having
replaced
the Xalan and Xerces) and it works fine but not in AIX (and doing the
same
thing!)
strange.

Regards,
Rodney


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






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

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:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

 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:
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: Problems with ActionMessages... (again)

2002-11-08 Thread Michael Delamere
Xavier,

Thank you very much for your response!

I will certainly give it a go and let you know if it worked!

Regards,

Michael



-Original Message-
From: Xavier Combelle [mailto:xcombelle;kaptech.com] 
Sent: Freitag, 8. November 2002 11:06
To: Struts Users Mailing List
Subject: RE: Problems with ActionMessages... (again)

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:
 html:messages id=message message=true
 bean:write name=message/
 /html:messages

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




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 html:link
tag
the Action called by the link should follow the same process than
SaveSomethingAction







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




RE: Validate and nightly build problem

2002-11-08 Thread Fabrice BLANQUART
Hi,

I join to this mail the jsp file that cause the problem and the validator.xml.

Continuing the test, I use a validator.xml with only the default (no country and 
language tag). If I use my Opera Browser with locale : language =fr, i have the 
problem.
If I duplicate the default formset with the language fr, it's work.
I have also the problem with my IE6 with locale : language=en.

Rgs

Fabrice

-Message d'origine-
De : Robert Leland [mailto:rleland;apache.org]
Envoyé : jeudi 7 novembre 2002 18:04
À : Struts Users Mailing List
Objet : Re: Validate and nightly build problem


Fabrice BLANQUART wrote:

Hi,

I have a strange behaviour with the validator using the nightly build (20021107).
I use the html:javascript tag in order to make client validation. It work well with 
the 1.1B2 but when 
I use the nightly build it doesn't generate the validateXXX javascript function.
Debugging with source of struts and commons-validator it seems that it is a problem 
with locale( I use FR_fr in my browser).
In my validator.xml I don't specify a locale in formset,is it the problem ?
  

This does sound like a bug
Does the struts-validator example work correctly ?
Also could you post the JSP code from the html:javascript tag ?

Any help ?

Fabrice BLANQUART 


-Rob

  




*---*
* Cet e-mail et toutes les pièces jointes sont destinés aux *
* seules personnes auxquelles ils sont spécifiquement adressés  *
* et n'engagent que le signataire de ces documents et non la*
* structure dont il dépend. *
* Leur existence et leur contenu ont un caractère confidentiel. *
* Toute utilisation ou diffusion non autorisée est interdite.   *
* Si vous avez reçu cet  e-mail ou si vous détenez sans en être *
* le destinataire, nous vous demandons de bien vouloir nous en  *
* informer immédiatement.   *
* Cette note assure que mimesweeper a vérifié que ce message*
* ne comprenait aucun virus connu à ce jour, néanmoins tout *
* message électronique est susceptible d'altération.*
* Nous déclinons toute responsabilité au titre de ce message*
* s'il a étéaltéré, déformé ou falsifié.*
*---*
 




login.jsp
Description: Binary data
?xml version=1.0 encoding=UTF-8?

!DOCTYPE form-validation PUBLIC
  -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN
  http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;

form-validation
	global/
	formset
		form name=loginFormBean
			field property=champLogin
			   depends=required
arg0 key=login.loginFormBean.champLogin.prompt/
			/field
			field property=champPassword
			   depends=required
arg0 key=login.loginFormBean.champPassword.prompt/
			/field
		/form
	/formset
	formset language=fr
		form name=loginFormBean
			field property=champLogin
			   depends=required
arg0 key=login.loginFormBean.champLogin.prompt/
			/field
			field property=champPassword
			   depends=required
arg0 key=login.loginFormBean.champPassword.prompt/
			/field
		/form
	/formset
/form-validation


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


RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
Hi,

I posted a problem yesterday concerning validating forms in several
sub-apps, whereby it only seemed to work for one and not all... this was
using struts1.1b2.

As suggested, I downloaded the nightly build that you tried today and
now validation doesn´t seem to work at all...

Regards,

Michael



-Original Message-
From: Fabrice BLANQUART [mailto:fblanquart;covefi.com] 
Sent: Freitag, 8. November 2002 12:23
To: [EMAIL PROTECTED]
Subject: RE: Validate and nightly build problem

Hi,

I join to this mail the jsp file that cause the problem and the
validator.xml.

Continuing the test, I use a validator.xml with only the default (no
country and language tag). If I use my Opera Browser with locale :
language =fr, i have the problem.
If I duplicate the default formset with the language fr, it's work.
I have also the problem with my IE6 with locale : language=en.

Rgs

Fabrice

-Message d'origine-
De : Robert Leland [mailto:rleland;apache.org]
Envoyé : jeudi 7 novembre 2002 18:04
À : Struts Users Mailing List
Objet : Re: Validate and nightly build problem


Fabrice BLANQUART wrote:

Hi,

I have a strange behaviour with the validator using the nightly build
(20021107).
I use the html:javascript tag in order to make client validation. It
work well with the 1.1B2 but when 
I use the nightly build it doesn't generate the validateXXX javascript
function.
Debugging with source of struts and commons-validator it seems that it
is a problem with locale( I use FR_fr in my browser).
In my validator.xml I don't specify a locale in formset,is it the
problem ?
  

This does sound like a bug
Does the struts-validator example work correctly ?
Also could you post the JSP code from the html:javascript tag ?

Any help ?

Fabrice BLANQUART 


-Rob

  




*---*
* Cet e-mail et toutes les pièces jointes sont destinés aux *
* seules personnes auxquelles ils sont spécifiquement adressés  *
* et n'engagent que le signataire de ces documents et non la*
* structure dont il dépend. *
* Leur existence et leur contenu ont un caractère confidentiel. *
* Toute utilisation ou diffusion non autorisée est interdite.   *
* Si vous avez reçu cet  e-mail ou si vous détenez sans en être *
* le destinataire, nous vous demandons de bien vouloir nous en  *
* informer immédiatement.   *
* Cette note assure que mimesweeper a vérifié que ce message*
* ne comprenait aucun virus connu à ce jour, néanmoins tout *
* message électronique est susceptible d'altération.*
* Nous déclinons toute responsabilité au titre de ce message*
* s'il a étéaltéré, déformé ou falsifié.*
*---*
 



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




imp: frameset in template

2002-11-08 Thread Amit Badheka
Is there any way to put a jsp page that contains frameset, in template?

I tried the same but the page contents are included as it is, and not the pages 
included in frames.

template

template:insert template='/common/b2bPageTemplate.jsp'
  template:put name='title' content='Otto B2B Admintool' direct='true'/
  template:put name='header' content='/jsp/header.jsp' /
  template:put name='content' content='/jsp/index.jsp' /
/template:insert

template-end---

-index
HEAD
TITLEbean:message key=ecatalog.admin.title//TITLE
script src=../script/index.js language=JavaScript1.2 
/script
/HEAD
  in index-
  FRAMESET ROWS=81,* FRAMEBORDER=NO BORDER=0 FRAMESPACING=0 ID=fs1
frame  frameName=Top scrolling=no src=header.jsp marginwidth=0 
marginheight=0 frameborder=0
FRAMESET COLS=140,* FRAMEBORDER=NO BORDER=0 FRAMESPACING=0 ID=fs2
  frame  frameName=Left   scrolling=no src=sitemap.jsp marginwidth=0 
marginheight=0 frameborder=0
  frame  frameName=Main   scrolling=no src=welcome.jsp marginwidth=0 
marginheight=0 frameborder=0
/FRAMESET
  /FRAMESET
  NOFRAMES
BODY BGCOLOR=#FF TOPMARGIN=0 LEFTMARGIN=0
/BODY
  /NOFRAMES
index-end--

any help will highly appreciated.





Using own Date type in Formbeans...

2002-11-08 Thread Andreas Langmann
Hello,

i am using a user-defined Date type for FormBeans. So i can change the
Display-Format (in MyDate.toString())

But now i get an error message (see below). Must i change the
constructor to accept the new Format?

thanks,

Andreas

HTTP ERROR: 500 BeanUtils.populate

INFO: Processing a 'POST' for path '/a_dv_07_03_bildungsgang_aendern'
13:11:58.213 WARN!! Exception for
/webapp/dv/a_dv_07_03_bildungsgang_aendern.do
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1650)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1545)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1574)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
essor.java:779)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:246)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366
)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:292)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
77)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1682)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:544)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1632)
at org.mortbay.http.HttpServer.service(HttpServer.java:875)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
at
org.mortbay.http.SocketChannelListener.handle(SocketChannelListener.j
ava:284)
at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
at java.lang.Thread.run(Thread.java:536)

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

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




nested JSTL and Struts tags...

2002-11-08 Thread petra staub
How is it possible to do the following:

I open a page, sending the parameter id='us'.

I want now to create a form, where the id parameter
is used to create an indexed input field. I can do this, if
I do not use the the struts tags, similar to:
input type=text name=lang(c:out value='${param.id}'/)

I then get, what I want:
input type=text name=lang(us)

Am I right, that this is not possible, if I want to use the
struts tags? (unfortunately the construction
html:text property=c:out value='${param.id}'/ / cant work...)


Thanks for any suggestions!



_
Messenger  -  Wer in Echtzeit kommunizieren will, lädt den MSN Messenger. 
Cool, kostenlos und mit 3D Emoticons: http://messenger.msn.de


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



Re: Using own Date type in Formbeans...

2002-11-08 Thread Andreas Langmann
Additional Information: i extend java.sql.Date (also tried
java.util.Date, but no difference...)

Andreas Langmann wrote:
 
 Hello,
 
 i am using a user-defined Date type for FormBeans. So i can change the
 Display-Format (in MyDate.toString())
 
 But now i get an error message (see below). Must i change the
 constructor to accept the new Format?
 
 thanks,
 
 Andreas
 
 HTTP ERROR: 500 BeanUtils.populate
 
 INFO: Processing a 'POST' for path '/a_dv_07_03_bildungsgang_aendern'
 13:11:58.213 WARN!! Exception for
 /webapp/dv/a_dv_07_03_bildungsgang_aendern.do
 java.lang.IllegalArgumentException: argument type mismatch
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1650)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1545)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1574)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
 )
 at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
 at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
 at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
 essor.java:779)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
 va:246)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
 2)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366
 )
 at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
 onHandler.java:292)
 at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
 77)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1682)
 at
 org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
 Context.java:544)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1632)
 at org.mortbay.http.HttpServer.service(HttpServer.java:875)
 at
 org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
 at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
 at
 org.mortbay.http.SocketChannelListener.handle(SocketChannelListener.j
 ava:284)
 at
 org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
 at java.lang.Thread.run(Thread.java:536)
 
 --
 Dipl. Ing. (BA) Andreas Langmann
 Software Developer
 
 ISB AG
 Karlstr. 52-54
 76133 Karlsruhe
 
 Telefon: +49 (0)721/82800-0
 Telefax: +49 (0)721/82800-82
 
 Email: [EMAIL PROTECTED]
 Internet: http://www.isb-ag.de
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

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




RE: [ANNOUNCE] Management-oriented Powerpoint Presentation for Struts

2002-11-08 Thread Jarnot Voytek Contr AU HQ/SC
I'm sure I'm not the only one that's thankful for this.  One thing not
addressed, though, is the long-term viability of Struts.  All the time I
hear from management (parroting the latest rag found in the john) We're
moving to J2EE so that we're not locked in to a proprietary solution - open
standards!  They wonder what happens if Struts 'goes-away' and it seems to
be a tough concept to put across (at least for me), that Struts can't 'go
away' because we've got the source...

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Thursday, November 07, 2002 9:56 PM
To: Struts Users Mailing List
Subject: [ANNOUNCE] Management-oriented Powerpoint Presentation for
Struts





James Turner and I have collaborated on a Management Powerpoint
presentation that can be used to make the case for using Struts for
development.

If others have comments/additions/etc of course we are flexible.

The presentation will be available on our site later this evening or
tomorrow,

Thanks!

Kevin

http://www.strutskickstart.com



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



--
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: New ApacheCon session: What's New in Struts 1.1

2002-11-08 Thread James Turner
On Thu, 7 Nov 2002, Craig R. McClanahan  wrote:

This was a late (i.e. confirmed this morning) change. It's in addition to 
my originally scheduled session on
Wednesday: Building Web Applcations With Struts. The What's New talk 
will presume a bit of existing
knowledge about Struts, while the Building talk is a more 
from-the-ground-up intro. (Slides for both will be
posted for non-attendees at a later date.)

Also, for those of you attending the other obscure trade show in Vegas that 
week (I think it's called COMDEX, or something like that), Craig will be 
talking about Struts on Monday the 18th, 1PM to 2:15.  The panel is called 
Beyond JSP: Struts, Turbine, Velocity and other JSP Extensions.  I'll be 
moderating, and talking about the larger universe of post-JSP packages.

FRIDAY-MODE
Craig will also be signing copies of his new book, Finding the 169th Hour: 
When 7x24 Doesn't Give You Enough Time, at Starbucks on 
Tuesday.  Personalized dedications to anyone donating a triple-shot 
espresso or a bug fix for Struts 1.1.

Once upon a time, it was postulated that a very frequent Usenet/HUMAN-NETS 
poster (Lauren Weinstein) could not possibly be human, based on the 
quantity of his output.  The theory emerged that, in fact, he was really 7 
cat brains linked together with Chaosnet.  Perhaps we should update it, and 
spread the rumor that Craig is really 7 brains linked together with a 
gigabit Ethernet.  I leave the species as an exercise to the reader.

It further occurs to me that by mentioning HUMAN-NETS, Lauren, and Chaosnet 
(and yes, I've actually done vampire taps for real MIT brand Chaosnet), 
I've dated myself horribly.
/FRIDAY-MODE

James



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



Re: select and option tag issues

2002-11-08 Thread tbachta

I posted this question a couple of days ago and received an answer.
Unfortunately the answer does not work for me.  The problem I am having is
on the initial page of my web application I have drop-down boxes that I
want to be populated with information from a database.  I have no problem
getting the recordset but do not know how to transfer that recordset data
into the drop-downs.  I was able to populate the drop-downs similar to the
example used in the documentation but that does not have  an example of how
to populate them with live data.  Can anyone give me a quick lesson on how
to do this.
Tim Bachta
Information Technology
MC 48
816-997-7137


   
  
  Eddie Bush   
  
  [EMAIL PROTECTED]To:   Struts Users Mailing List 
[EMAIL PROTECTED]  
  t   cc: 
  
   Subject:  Re: select and option tag 
issues
  11/06/2002 11:52 
  
  AM   
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  




Have you discovered the collection attribute of the options tag?  Your
action can build any collection you desire (ie from a database -- see
org.apache.struts.util.LabelValueBean for holding the name/value pairs).
 It then places that collection into some scope (whichever you like) and
forwards to the page.  Now, by specifying the key you used when placing
the collection into scope as the value to the collection attribute of
the options tag, you've got a dynamic drop-down populated from the
database.

- in your Action subclass

Collection c = ...;

while (...)
{
String label = ...;
String value = ...;
c.add(new LabelValueBean(label, value));
}

request.setAttribute(myCollection, c);

- in your JSP

html:select ... 
html:options collection=c ... /
/html:select

(This isn't in the FAQ, is it?  goes-to-check/)

[EMAIL PROTECTED] wrote:

Hi all,

I am very new to struts and I am trying to create combo boxes using the
html:selecthtml:options tags.  I have been able to create and populate
them with string arrays placed on the JSP page similar to the examples in
the documentation.  What I really need to do is populate them based on
information in a database.  I can create the recordset but after that I am
lost.  Can anyone please help.  Thank you.
Tim Bachta

Tim Bachta


--
Eddie Bush





--
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: select and option tag issues

2002-11-08 Thread edgar
In your form create two ArrayLists one for the values, one for the
labels.  If the data doesn't change much you can make them static.
Create getter methods for them which populate the arraylists from you
database (make sure you populate them in the same order so the labels
correspond to the values.  Then in your jsp do

html:select property='dbfield'
html:options property='arraylistofvalues'
labelProperty='arraylistoflabels' /
/html:select

If you have really static stuff you can stick the above arraylists in
the session or the context and use

html:select property='dbfield'
html:options name='attributelabelname'
labelName='attributevaluename' /
/html:select

Hope this helps.

Edgar
-Original Message-
From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com] 
Sent: Friday, November 08, 2002 8:50 AM
To: 'Struts Users Mailing List'
Subject: Re: select and option tag issues



I posted this question a couple of days ago and received an answer.
Unfortunately the answer does not work for me.  The problem I am having
is on the initial page of my web application I have drop-down boxes that
I want to be populated with information from a database.  I have no
problem getting the recordset but do not know how to transfer that
recordset data into the drop-downs.  I was able to populate the
drop-downs similar to the example used in the documentation but that
does not have  an example of how to populate them with live data.  Can
anyone give me a quick lesson on how to do this. Tim Bachta Information
Technology MC 48 816-997-7137


 

  Eddie Bush

  [EMAIL PROTECTED]To:   Struts Users
Mailing List [EMAIL PROTECTED]  
  t   cc:

   Subject:  Re: select and
option tag issues
  11/06/2002 11:52

  AM

  Please respond to

  Struts Users

  Mailing List

 

 





Have you discovered the collection attribute of the options tag?  Your
action can build any collection you desire (ie from a database -- see
org.apache.struts.util.LabelValueBean for holding the name/value pairs).
It then places that collection into some scope (whichever you like) and
forwards to the page.  Now, by specifying the key you used when placing
the collection into scope as the value to the collection attribute of
the options tag, you've got a dynamic drop-down populated from the
database.

- in your Action subclass

Collection c = ...;

while (...)
{
String label = ...;
String value = ...;
c.add(new LabelValueBean(label, value));
}

request.setAttribute(myCollection, c);

- in your JSP

html:select ... 
html:options collection=c ... /
/html:select

(This isn't in the FAQ, is it?  goes-to-check/)

[EMAIL PROTECTED] wrote:

Hi all,

I am very new to struts and I am trying to create combo boxes using the

html:selecthtml:options tags.  I have been able to create and 
populate them with string arrays placed on the JSP page similar to the 
examples in the documentation.  What I really need to do is populate 
them based on information in a database.  I can create the recordset 
but after that I am lost.  Can anyone please help.  Thank you. Tim 
Bachta

Tim Bachta


--
Eddie Bush





--
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[2]: Using own Date type in Formbeans...

2002-11-08 Thread Postfach 4711
Hello Andreas,

given your infos I can only guess what goes wrong. Setting
the props in your action form fails because of your setters.
Can you mail your jsp and your form bean.

Friday, November 8, 2002, 2:08:49 PM, you wrote:

AL Additional Information: i extend java.sql.Date (also tried
AL java.util.Date, but no difference...)

AL Andreas Langmann wrote:
 
 Hello,
 
 i am using a user-defined Date type for FormBeans. So i can change the
 Display-Format (in MyDate.toString())
 
 But now i get an error message (see below). Must i change the
 constructor to accept the new Format?
 
 thanks,
 
 Andreas
 
 HTTP ERROR: 500 BeanUtils.populate
 
 INFO: Processing a 'POST' for path '/a_dv_07_03_bildungsgang_aendern'
 13:11:58.213 WARN!! Exception for
 /webapp/dv/a_dv_07_03_bildungsgang_aendern.do
 java.lang.IllegalArgumentException: argument type mismatch
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
 Utils.java:1650)
 at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
 Utils.java:1545)
 at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
 java:1574)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
 )
 at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
 at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
 at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
 essor.java:779)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
 va:246)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
 2)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366
 )
 at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
 onHandler.java:292)
 at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
 77)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1682)
 at
 org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
 Context.java:544)
 at org.mortbay.http.HttpContext.handle(HttpContext.java:1632)
 at org.mortbay.http.HttpServer.service(HttpServer.java:875)
 at
 org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
 at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
 at
 org.mortbay.http.SocketChannelListener.handle(SocketChannelListener.j
 ava:284)
 at
 org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
 at java.lang.Thread.run(Thread.java:536)
 
 --
 Dipl. Ing. (BA) Andreas Langmann
 Software Developer
 
 ISB AG
 Karlstr. 52-54
 76133 Karlsruhe
 
 Telefon: +49 (0)721/82800-0
 Telefax: +49 (0)721/82800-82
 
 Email: [EMAIL PROTECTED]
 Internet: http://www.isb-ag.de
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




-- 
Best regards,
Dirk


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




RE: select and option tag issues

2002-11-08 Thread Robert Taylor
Solution 1:
In your action class which is called before displaying the page with the
drop down box,
use a business delegate to access your data from the appropriate data source
into some
type of collection. Store the collection in the appropriate scope (session,
request).
Have the page render the collection using a custom tag (either JSTL, Struts,
user-defined)

Solution 2:
If your data is static, then you want to use a business delegate to access
your data
from the appropriate data source into some type of collection, and place the
collection
in the ServletContext. There it will be available to your entire application
and you
will only need to hit the database once.

This can be done in several ways:
 -ServletContextListener
 -Servlet (programmed to load on application start up)
 -Struts Plug-in
 -Static data member in a business delegate (lazy loading)

Then, as in Solution 1, have the page render the collection using
a custom tag (either JSTL, Struts, user-defined).


Let me know if you need more detail.

robert


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
 Sent: Friday, November 08, 2002 8:50 AM
 To: Struts Users Mailing List
 Subject: Re: select and option tag issues



 I posted this question a couple of days ago and received an answer.
 Unfortunately the answer does not work for me.  The problem I am having is
 on the initial page of my web application I have drop-down boxes that I
 want to be populated with information from a database.  I have no problem
 getting the recordset but do not know how to transfer that recordset data
 into the drop-downs.  I was able to populate the drop-downs similar to the
 example used in the documentation but that does not have  an
 example of how
 to populate them with live data.  Can anyone give me a quick lesson on how
 to do this.
 Tim Bachta
 Information Technology
 MC 48
 816-997-7137




   Eddie Bush

   [EMAIL PROTECTED]To:   Struts
 Users Mailing List [EMAIL PROTECTED]
   t   cc:

Subject:  Re:
 select and option tag issues
   11/06/2002 11:52

   AM

   Please respond to

   Struts Users

   Mailing List









 Have you discovered the collection attribute of the options tag?  Your
 action can build any collection you desire (ie from a database -- see
 org.apache.struts.util.LabelValueBean for holding the name/value pairs).
  It then places that collection into some scope (whichever you like) and
 forwards to the page.  Now, by specifying the key you used when placing
 the collection into scope as the value to the collection attribute of
 the options tag, you've got a dynamic drop-down populated from the
 database.

 - in your Action subclass

 Collection c = ...;

 while (...)
 {
 String label = ...;
 String value = ...;
 c.add(new LabelValueBean(label, value));
 }

 request.setAttribute(myCollection, c);

 - in your JSP

 html:select ... 
 html:options collection=c ... /
 /html:select

 (This isn't in the FAQ, is it?  goes-to-check/)

 [EMAIL PROTECTED] wrote:

 Hi all,
 
 I am very new to struts and I am trying to create combo boxes using the
 html:selecthtml:options tags.  I have been able to create
 and populate
 them with string arrays placed on the JSP page similar to the examples in
 the documentation.  What I really need to do is populate them based on
 information in a database.  I can create the recordset but after
 that I am
 lost.  Can anyone please help.  Thank you.
 Tim Bachta
 
 Tim Bachta
 

 --
 Eddie Bush





 --
 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: select and option tag issues

2002-11-08 Thread Robert Taylor
To add to my earlier response:

After you retrieve the data, convert it into a collection of LabelValue
beans. After that, you can use the following syntax to render the data;
assume the data is stored placed in the form under a property called
options.

html:select property=someValue
html:optionsCollection property=options label=label value=value/
/html:select

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
 Sent: Friday, November 08, 2002 8:50 AM
 To: Struts Users Mailing List
 Subject: Re: select and option tag issues



 I posted this question a couple of days ago and received an answer.
 Unfortunately the answer does not work for me.  The problem I am having is
 on the initial page of my web application I have drop-down boxes that I
 want to be populated with information from a database.  I have no problem
 getting the recordset but do not know how to transfer that recordset data
 into the drop-downs.  I was able to populate the drop-downs similar to the
 example used in the documentation but that does not have  an
 example of how
 to populate them with live data.  Can anyone give me a quick lesson on how
 to do this.
 Tim Bachta
 Information Technology
 MC 48
 816-997-7137




   Eddie Bush

   [EMAIL PROTECTED]To:   Struts
 Users Mailing List [EMAIL PROTECTED]
   t   cc:

Subject:  Re:
 select and option tag issues
   11/06/2002 11:52

   AM

   Please respond to

   Struts Users

   Mailing List









 Have you discovered the collection attribute of the options tag?  Your
 action can build any collection you desire (ie from a database -- see
 org.apache.struts.util.LabelValueBean for holding the name/value pairs).
  It then places that collection into some scope (whichever you like) and
 forwards to the page.  Now, by specifying the key you used when placing
 the collection into scope as the value to the collection attribute of
 the options tag, you've got a dynamic drop-down populated from the
 database.

 - in your Action subclass

 Collection c = ...;

 while (...)
 {
 String label = ...;
 String value = ...;
 c.add(new LabelValueBean(label, value));
 }

 request.setAttribute(myCollection, c);

 - in your JSP

 html:select ... 
 html:options collection=c ... /
 /html:select

 (This isn't in the FAQ, is it?  goes-to-check/)

 [EMAIL PROTECTED] wrote:

 Hi all,
 
 I am very new to struts and I am trying to create combo boxes using the
 html:selecthtml:options tags.  I have been able to create
 and populate
 them with string arrays placed on the JSP page similar to the examples in
 the documentation.  What I really need to do is populate them based on
 information in a database.  I can create the recordset but after
 that I am
 lost.  Can anyone please help.  Thank you.
 Tim Bachta
 
 Tim Bachta
 

 --
 Eddie Bush





 --
 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: Validate and nightly build problem

2002-11-08 Thread Rob Leland
Michael Delamere wrote:


Hi,

I posted a problem yesterday concerning validating forms in several
sub-apps, whereby it only seemed to work for one and not all... this was
using struts1.1b2.

As suggested, I downloaded the nightly build that you tried today and
now validation doesn´t seem to work at all...


The Javascript tag looks good
html:javascript formName=loginFormBean/

Please try the struts-validator.war and report back if it works.

Were all the *.jar files, including common-*.jar files and all the 
validator*.xml also updated with the versions included using the Nightly 
struts builds ?


-Rob


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



Re: Using own Date type in Formbeans...

2002-11-08 Thread Andreas Langmann
Actually i use Struts Milestone build. Should i try to update used
librarys?

TIA

Andreas Langmann

 jsp 

---cut---
html:text property=bildungsgang.txt_bgaend_gueltigkeit_von/
---cut---


 FormBean 

---cut---
  //
  java.sql.Date mTxtBgaendGueltigkeitVon;

  public java.sql.Date getTxt_bgaend_gueltigkeit_von() {
return mTxtBgaendGueltigkeitVon;
  }

  public void setTxt_bgaend_gueltigkeit_von(java.sql.Date
txtBgaendGueltigkeitVon) {
mTxtBgaendGueltigkeitVon = txtBgaendGueltigkeitVon;
  }
---cut---


 CLASS DateWrapper 

package de.km.bw.estat.struts.utils;

import java.sql.Date;

/**
 * @author alangman
 *
 */

public class DateWrapper extends java.sql.Date {
  static String cFormatStr = dd.MM.;

  public static void setFormatStr(String formatStr) {
cFormatStr = formatStr;
  }

  public DateWrapper(long date) {
super(date);
  }

  public String toString() {
java.text.DateFormat df = new
java.text.SimpleDateFormat(cFormatStr);
return df.format(this);
  }
}



Postfach 4711 wrote:
 
 Hello Andreas,
 
 given your infos I can only guess what goes wrong. Setting
 the props in your action form fails because of your setters.
 Can you mail your jsp and your form bean.
 
 Friday, November 8, 2002, 2:08:49 PM, you wrote:
 
 AL Additional Information: i extend java.sql.Date (also tried
 AL java.util.Date, but no difference...)
 
 AL Andreas Langmann wrote:
 
  Hello,
 
  i am using a user-defined Date type for FormBeans. So i can change the
  Display-Format (in MyDate.toString())
 
  But now i get an error message (see below). Must i change the
  constructor to accept the new Format?
 
  thanks,
 
  Andreas
 
  HTTP ERROR: 500 BeanUtils.populate
 
  INFO: Processing a 'POST' for path '/a_dv_07_03_bildungsgang_aendern'
  13:11:58.213 WARN!! Exception for
  /webapp/dv/a_dv_07_03_bildungsgang_aendern.do
  java.lang.IllegalArgumentException: argument type mismatch
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
  Utils.java:1650)
  at
  org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
  Utils.java:1545)
  at
  org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
  java:1574)
  at
  org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
  )
  at
  org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
  at
  org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
  at
  org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
  essor.java:779)
  at
  org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
  va:246)
  at
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
  2)
  at
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366
  )
  at
  org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
  onHandler.java:292)
  at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
  77)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1682)
  at
  org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
  Context.java:544)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1632)
  at org.mortbay.http.HttpServer.service(HttpServer.java:875)
  at
  org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
  at
  org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
  at
  org.mortbay.http.SocketChannelListener.handle(SocketChannelListener.j
  ava:284)
  at
  org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
  at java.lang.Thread.run(Thread.java:536)
 
  --
  Dipl. Ing. (BA) Andreas Langmann
  Software Developer
 
  ISB AG
  Karlstr. 52-54
  76133 Karlsruhe
 
  Telefon: +49 (0)721/82800-0
  Telefax: +49 (0)721/82800-82
 
  Email: [EMAIL PROTECTED]
  Internet: http://www.isb-ag.de
 
  --
  To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org
 
 --
 Best regards,
 Dirk
 
 --
 To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

-- 
Dipl. Ing. (BA) 

html:link question

2002-11-08 Thread mike . witt
Hello,

I'm having a problem with html:link which gives me the Cannot retrive
ActionForward named /admin message.  My struts config has:

  global-forwards
forward   name=welcome  path=/welcome.do/
forward   name=adminMenupath=/adminMenu.do /
  /global-forwards


  action-mappings
action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/welcome.jsp/

action path=/adminMenu
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/admin-menu.jsp/
  /action-mappings

My jsp has:

html:link forward=adminMenuAdministrative Functions/html:link

This gives me the error message.  However, if I replace adminMenu with
welcome it works just fine.  Also, if I use the page attribute it works
for welcome.do and not for adminMenu.do.  Any help is appreciated!

Mike

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




Re: html:link question

2002-11-08 Thread Brian Hickey
Mike,

Everyone's implementation is a bit different, but my paths all point to
JSP's. The .do is the action mapped in the action tag.

Brian

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 8:49 AM
Subject: html:link question


 Hello,

 I'm having a problem with html:link which gives me the Cannot retrive
 ActionForward named /admin message.  My struts config has:

   global-forwards
 forward   name=welcome  path=/welcome.do/
 forward   name=adminMenupath=/adminMenu.do /
   /global-forwards


   action-mappings
 action path=/welcome
 type=org.apache.struts.actions.ForwardAction
 parameter=/WEB-INF/pages/welcome.jsp/

 action path=/adminMenu
 type=org.apache.struts.actions.ForwardAction
 parameter=/WEB-INF/pages/admin-menu.jsp/
   /action-mappings

 My jsp has:

 html:link forward=adminMenuAdministrative Functions/html:link

 This gives me the error message.  However, if I replace adminMenu with
 welcome it works just fine.  Also, if I use the page attribute it works
 for welcome.do and not for adminMenu.do.  Any help is appreciated!

 Mike

 --
 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[2]: Using own Date type in Formbeans...

2002-11-08 Thread Postfach 4711
Hello Andreas,

you should consider making your txt_bgaend_gueltigkeit_von property
a String.  As Craig pointed out This is critically
important for re-displaying invalid input. Then you should have
no problems and can later use BeanUtils to convert it to Date.



Friday, November 8, 2002, 3:24:24 PM, you wrote:

AL Actually i use Struts Milestone build. Should i try to update used
AL librarys?

AL TIA

AL Andreas Langmann

AL  jsp 

AL ---cut---
AL html:text property=bildungsgang.txt_bgaend_gueltigkeit_von/
AL ---cut---


AL  FormBean 

AL ---cut---
AL   //
AL   java.sql.Date mTxtBgaendGueltigkeitVon;

AL   public java.sql.Date getTxt_bgaend_gueltigkeit_von() {
AL return mTxtBgaendGueltigkeitVon;
AL   }

AL   public void setTxt_bgaend_gueltigkeit_von(java.sql.Date
AL txtBgaendGueltigkeitVon) {
AL mTxtBgaendGueltigkeitVon = txtBgaendGueltigkeitVon;
AL   }
AL ---cut---


AL  CLASS DateWrapper 

AL package de.km.bw.estat.struts.utils;

AL import java.sql.Date;

AL /**
AL  * @author alangman
AL  *
AL  */

AL public class DateWrapper extends java.sql.Date {
AL   static String cFormatStr = dd.MM.;

AL   public static void setFormatStr(String formatStr) {
AL cFormatStr = formatStr;
AL   }

AL   public DateWrapper(long date) {
AL super(date);
AL   }

AL   public String toString() {
AL java.text.DateFormat df = new
AL java.text.SimpleDateFormat(cFormatStr);
AL return df.format(this);
AL   }
AL }

AL 

AL Postfach 4711 wrote:
 
 Hello Andreas,
 
 given your infos I can only guess what goes wrong. Setting
 the props in your action form fails because of your setters.
 Can you mail your jsp and your form bean.
 
 Friday, November 8, 2002, 2:08:49 PM, you wrote:
 
 AL Additional Information: i extend java.sql.Date (also tried
 AL java.util.Date, but no difference...)
 
 AL Andreas Langmann wrote:
 
  Hello,
 
  i am using a user-defined Date type for FormBeans. So i can change the
  Display-Format (in MyDate.toString())
 
  But now i get an error message (see below). Must i change the
  constructor to accept the new Format?
 
  thanks,
 
  Andreas
 
  HTTP ERROR: 500 BeanUtils.populate
 
  INFO: Processing a 'POST' for path '/a_dv_07_03_bildungsgang_aendern'
  13:11:58.213 WARN!! Exception for
  /webapp/dv/a_dv_07_03_bildungsgang_aendern.do
  java.lang.IllegalArgumentException: argument type mismatch
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
  Utils.java:1650)
  at
  org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
  Utils.java:1545)
  at
  org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
  java:1574)
  at
  org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919
  )
  at
  org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
  at
  org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
  at
  org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
  essor.java:779)
  at
  org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
  va:246)
  at
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
  2)
  at
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366
  )
  at
  org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
  onHandler.java:292)
  at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
  77)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1682)
  at
  org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
  Context.java:544)
  at org.mortbay.http.HttpContext.handle(HttpContext.java:1632)
  at org.mortbay.http.HttpServer.service(HttpServer.java:875)
  at
  org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
  at
  org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
  at
  org.mortbay.http.SocketChannelListener.handle(SocketChannelListener.j
  ava:284)
  at
  org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
  at java.lang.Thread.run(Thread.java:536)
 
  --
  Dipl. Ing. (BA) Andreas Langmann
  Software Developer
 
  ISB AG
  Karlstr. 52-54
  76133 Karlsruhe
 
  Telefon: +49 (0)721/82800-0
  Telefax: +49 

Re: html:link question

2002-11-08 Thread David Graham
I may be wrong but I don't think you can use .do in a forward definition 
unless it's a redirect.  AFAIK, you can only forward to real files (jsps), 
not mapped files like .do.

David






From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: html:link question
Date: Fri, 8 Nov 2002 06:49:16 -0700

Hello,

I'm having a problem with html:link which gives me the Cannot retrive
ActionForward named /admin message.  My struts config has:

  global-forwards
forward   name=welcome  path=/welcome.do/
forward   name=adminMenupath=/adminMenu.do /
  /global-forwards


  action-mappings
action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/welcome.jsp/

action path=/adminMenu
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/admin-menu.jsp/
  /action-mappings

My jsp has:

html:link forward=adminMenuAdministrative Functions/html:link

This gives me the error message.  However, if I replace adminMenu with
welcome it works just fine.  Also, if I use the page attribute it works
for welcome.do and not for adminMenu.do.  Any help is appreciated!

Mike

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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
Yes, I copied all of the files into my WEB-INF/lib folder

If there is any more information you need, I will be glad to provide
it

Regards,

Michael


-Original Message-
From: Rob Leland [mailto:rleland;apache.org] 
Sent: Freitag, 8. November 2002 15:20
To: Struts Users Mailing List
Subject: Re: Validate and nightly build problem

Michael Delamere wrote:

 Hi,

 I posted a problem yesterday concerning validating forms in several
 sub-apps, whereby it only seemed to work for one and not all... this
was
 using struts1.1b2.

 As suggested, I downloaded the nightly build that you tried today and
 now validation doesn´t seem to work at all...

The Javascript tag looks good
html:javascript formName=loginFormBean/

Please try the struts-validator.war and report back if it works.

Were all the *.jar files, including common-*.jar files and all the 
validator*.xml also updated with the versions included using the Nightly

struts builds ?


-Rob


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




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 html:link
tag
the Action called by the link should follow the same process than
SaveSomethingAction








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




Changing Form Values

2002-11-08 Thread Beeson, Ashley
Is there a way to change form variables from within a Perform method for a
different type of form?
 
I have a couple of different scenarios where I need to use this:
 
1) After doing a search on the database, one OR many rows of results can be
returned. If one row is returned then it would be desirable to not in fact
return the search results form (with only one result), but instead just go
straight to the details for that one record. The search criteria and lists
of results are stored in one form bean, and due to its complexity the
'details' on another. 
 
Within the Perform action for the search I can identify how many rows are
being returned, but I cannot work out how to mutate the original search
criteria/results form into a details form.
 
2) On the 'details' form there is a text field where the user can enter a
date for the data which they are viewing. If this date is not populated the
Action which populates the form puts the current date into the field. If an
update is performed on the 'details' jsp page it is done with a different
form, but I still need to reset the date on the 'details' form to be blank -
but I am in the Perform method  working with a different form and hence
don't have access to the field!
 
Any Ideas?
 
Thanks

Ash Beeson - IT Consultant
 


This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


Re: working with resource.properties files in JSTL Struts

2002-11-08 Thread Kris Schneider
Ah, right. That's much simpler for Struts 1.0.2. Except for the fact that 
Struts has a hand in how locale is determined. For example, the html:html tag 
or any piece of application code can set the session attribute named 
Action.LOCALE_KEY to a Locale instance. If set, the bean:message tag uses 
this when it retrieves a message. So, I guess you'd have to add something like:

c_rt:set var=localeKey 
  value=%= org.apache.struts.action.Action.LOCALE_KEY %/
fmt:setLocale value=${sessionScope[localeKey]}/

If the value attribute of fmt:setLocale is null or empty, the runtime's 
default Locale is used. I believe this matches the bean:message behavior if 
Action.LOCALE_KEY is not set.

Of course, this all just pertains to the case where bean:message attributes 
for bundle and locale are not used.

With 1.1, it looks like things get even hairier...

Quoting Sven Bischoff [EMAIL PROTECTED]:

 just place a context-param element in your web.xml as a child of web-app.
 
 
 context-param
   param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
   param-valueApplicationResources/param-value
 /context-param
 
 Sven
 
 
 Anthony Mutiso 2 wrote:
  What is recognized way to get JSTL fmt:message tag to share the same
  resources bundle as Struts bean:message tag?
  
  Thanks
  
  Anthony
  
  --
  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
 


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

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




RE: [ANNOUNCE] Management-oriented Powerpoint Presentation for St ruts

2002-11-08 Thread Kevin . Bedell



Thanks for the feedback. If you want to send me any modifications you make
I'll incorporate them.

I'll collect feedback and update the presentation after I get comments over
the next week or so.

Thanks to everyone commenting.

Kevin






Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED] on 11/08/2002
08:14:14 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:'Struts Users Mailing List' [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [ANNOUNCE] Management-oriented Powerpoint Presentation for
   St   ruts


I'm sure I'm not the only one that's thankful for this.  One thing not
addressed, though, is the long-term viability of Struts.  All the time I
hear from management (parroting the latest rag found in the john) We're
moving to J2EE so that we're not locked in to a proprietary solution - open
standards!  They wonder what happens if Struts 'goes-away' and it seems to
be a tough concept to put across (at least for me), that Struts can't 'go
away' because we've got the source...

-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Thursday, November 07, 2002 9:56 PM
To: Struts Users Mailing List
Subject: [ANNOUNCE] Management-oriented Powerpoint Presentation for
Struts





James Turner and I have collaborated on a Management Powerpoint
presentation that can be used to make the case for using Struts for
development.

If others have comments/additions/etc of course we are flexible.

The presentation will be available on our site later this evening or
tomorrow,

Thanks!

Kevin

http://www.strutskickstart.com



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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




Re: Using own Date type in Formbeans...

2002-11-08 Thread Andreas Langmann
Yeah! It works

my FormBean variable type is myDate (from java.sql.Date or
java.util.Date )
and i used the code from an older posting to make it.

Okay, what to do:

Change the Date type in the code below to myDate.
And now your date type will use your format for display...



-
Date: Thu, 17 Oct 2002 12:22:35 -0400
From: Rick Reumann [EMAIL PROTECTED]
Subject: [ConvertUtils] Converter for java.util.Date
Content-Type: text/plain; charset=us-ascii

Hey Elder,

(posting this to Struts list as well in case anyone else finds it
useful while digging through the archives)

I modified the code you sent just a bit and also provided a method
taking a format String for how they want the date formatted (actually
someone might want to modify the code with a default format, but I
want to be forced to provide one). I still haven't gotten around to
actually modifying the StringConverter class to handle the other
direction (String to java.util.Date) to avoid having to register the
extra custom StringConverter class below. I'll get around to it some
time:)

To use these converters so that BeanUtils.copyProperties( ) works in
both directions I just added a static block to the top of my dispatch
Action ...

static {
  DateBeanUtilsConverter dateConverter = new DateBeanUtilsConverter();
  dateConverter.setFormatPattern( MMdd );
  StringBeanUtilsConverterDate myStringConverter = new
StringBeanUtilsConverterDate();
  myStringConverter.setFormatPattern( MMdd );
  ConvertUtils.register( dateConverter, java.util.Date.class );
  ConvertUtils.register( myStringConverter, String.class );
}

The two classes are listed below. All seems to be working fine.

/** coverts java.util.Date to String using BeanUtils ***/

import org.apache.commons.beanutils.Converter;
import java.text.*;
import java.util.*;
import corporate.*;

public class DateBeanUtilsConverter implements Converter {

private String formatPattern = null;

public void setFormatPattern(String formatPattern) {
this.formatPattern = formatPattern;
}

public Object convert(Class type, Object value) {
Date date = null;

if (value != null
 (value instanceof String)
 (type == Date.class)) {
try {

String s = value.toString();
SimpleDateFormat formatter =
new SimpleDateFormat(formatPattern);
date = formatter.parse(s);

} catch (Exception e) {
ErrorLogging.println(DateBeanUtilsConverter:  + e);
}
}
return date;
}
}

/** coverts String to java.util.Date using BeanUtils ***/

import org.apache.commons.beanutils.Converter;
import org.apache.commons.beanutils.converters.*;
import java.text.*;
import java.util.*;
import corporate.*;

public class StringBeanUtilsConverterDate implements Converter {
private static final StringConverter stringConverter =
new StringConverter();
private String formatPattern = null;

public void setFormatPattern(String formatPattern) {
this.formatPattern = formatPattern;
}

public Object convert(Class type, Object value) {
Object returnValue = null;

if (value != null) {
if (type == String.class  (value instanceof Date)) {
SimpleDateFormat formatter =
new SimpleDateFormat(formatPattern);
String dateString = formatter.format(value);
returnValue = dateString;
} else {
returnValue = stringConverter.convert(type, value);
}
}
return returnValue;
}
}
-

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

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




RE: select and option tag issues

2002-11-08 Thread tbachta

Ok I am still getting an error, the error is:

javax.servlet.jsp.JspException: No getter method available for property
getLocationValues for bean under name null


here is the code form the class that extends ActionForm

  private ArrayList getDataValues(String sql, String varaible)
  {

ArrayList list = new ArrayList();


Connection conn = null;
Statement stmt = null;
ResultSet rs = null;

ServletContext context = servlet.getServletContext();
DataSource dataSource = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);

try
{

  conn = dataSource.getConnection();
  stmt = conn.createStatement();
  rs = stmt.executeQuery(sql);

  while(rs.next())
  {
System.out.println(here);
String value = rs.getString(varaible);
list.add(value);
  }

}
catch(Exception e)
{
  System.out.println(ERROR GETTING NUMBER  +e);
}
finally
{
  if(rs != null)
  {
try
{
  rs.close();
}
catch(SQLException e)
{
  System.out.println(e.getMessage());
}
rs = null;
  }
  if(stmt != null)
  {
try
{
  stmt.close();
}
catch(SQLException e)
{
  System.out.println(e.getMessage());
}
stmt = null;
  }
  if(conn != null)
  {
try
{
  conn.close();
}
catch(SQLException e)
{
  System.out.println(e.getMessage());
}
conn = null;
  }
}

return(list);
  }

  public ArrayList getLocationValues()
  {
ArrayList values = new ArrayList();
String sql = select id from locations;
values = getDataValues(sql, id);

return(values);
  }

  public ArrayList getLocationLables()
  {
ArrayList lables = new ArrayList();
String sql = select location from locations;
lables = getDataValues(sql, location);

return(lables);
  }

here is the code from the jsp

tdhtml:select property=major_locations
  html:options property =getLocationValues
labelProperty=getLocationLables/
  /html:select/td


What am I doing wrong?  I am very confused. Please help

Tim Bachta
Information Technology
MC 48
816-997-7137


   
  
  edgar  
  
  edgar@blue-mooseTo:   'Struts Users Mailing List' 
[EMAIL PROTECTED]  
  .netcc: 
  
   Subject:  RE: select and option tag 
issues
  11/08/2002 08:08 
  
  AM   
  
  Please respond to
  
  Struts Users
  
  Mailing List
  
   
  
   
  




In your form create two ArrayLists one for the values, one for the
labels.  If the data doesn't change much you can make them static.
Create getter methods for them which populate the arraylists from you
database (make sure you populate them in the same order so the labels
correspond to the values.  Then in your jsp do

 html:select property='dbfield'
 html:options property='arraylistofvalues'
labelProperty='arraylistoflabels' /
 /html:select

If you have really static stuff you can stick the above arraylists in
the session or the context and use

 html:select property='dbfield'
 html:options name='attributelabelname'
labelName='attributevaluename' /
 /html:select

Hope this helps.

Edgar
-Original Message-
From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
Sent: Friday, November 08, 2002 8:50 AM
To: 'Struts Users Mailing List'
Subject: Re: select and option tag issues



I posted this question a couple of days ago and received an answer.
Unfortunately the answer does not work for me.  The problem I am having
is on 

Merging Tiles body into tile definition

2002-11-08 Thread Brian Topping
Good day all, happy Friday!

I'm building another application using tiles (hopefully this one will ship
sooner than the others :-) and coming across the geometric explosion of tiles
and body files, wondering if there is a solution that others are using that I
might be able to take advantage of. 

The basic problem is that of having one file for the tiles:insert statement
and the tiles body file that it references.  In the basic case, my setup
looks like:

* login.jsp
% taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %
tiles:insert page=/templates/main_layout.jsp flush=true
  tiles:put name=title  value=GSUMC - Login /
  tiles:put name=header value=/templates/header.jsp /
  tiles:put name=menu   value=/templates/menu.jsp /
  tiles:put name=body value=/login_body.jsp/
/tiles:insert

* login_body.jsp

% page language=java %
snip.../

What I would like to do is merge these in the form of:

% taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %
% page language=java %
tiles:insert page=/templates/main_layout.jsp flush=true
  tiles:put name=title  value=GSUMC - Login /
  tiles:put name=header value=/templates/header.jsp /
  tiles:put name=menu   value=/templates/menu.jsp /
  tiles:put name=body
  snip.../
  /tiles:put
/tiles:insert

Makes sense, should work according to the javadoc and the tag code, but I
can't get my head around the reason that it doesn't.  The point where the
content should be inserted into the template is untouched.  Any ideas?

best regards,

Brian

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




Upload-Example problem, IllegalArgumentException

2002-11-08 Thread Axel Stahlhut
Hi.

I want to work with file uploads into DB or into the filesystem. After
installing the struts-upload-example, I tested it. If there is a file
selected in the form or there is some dummy-text in the hml:file - tag (no
path to an existant file), everything works fine.
If I submit the form without anything or just blanks in the hml:file - tag,
I'm getting an java.lang.IllegalArgumentException:

java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1650)

What do I have to do to avoid this? In the application, i can not
force the user to fill this form, because it is just an optional element of
a much bigger form.
Any help is appreciated.
Axel



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




RE: html:link question

2002-11-08 Thread Hue Holleran
As you say welcome works fine, your syntax looks fine. However the error
message is a bit strange and doesn't correspond to the name of the forward
or of the action!  All I can really think of - we find ourselves in this
situation a lot by the way and it's always our fault if that's any
consolation at all - is to look for possibly a duplicate definition of
adminMenu action/a forward that may be causing the problem or that it's
actually getting to /WEB-INF/pages/admin-menu.jsp and something there is
giving the error you describe.

BTW I pasted your code into our sample - we seem to use it a lot ourselves!
... and it worked OK, i.e. for the page with a link for Adm. Funcs. and on
clicking link got a 404: The requested resource
(/WEB-INF/pages/admin-menu.jsp) is not available, as to be expected.

Maybe try posting your complete struts-config.xml?

Sorry can't help,

Hue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:mike.witt;honeywell.com]
Sent: 08 November 2002 13:49
To: [EMAIL PROTECTED]
Subject: html:link question


Hello,

I'm having a problem with html:link which gives me the Cannot retrive
ActionForward named /admin message.  My struts config has:

  global-forwards
forward   name=welcome  path=/welcome.do/
forward   name=adminMenupath=/adminMenu.do /
  /global-forwards


  action-mappings
action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/welcome.jsp/

action path=/adminMenu
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/admin-menu.jsp/
  /action-mappings

My jsp has:

html:link forward=adminMenuAdministrative Functions/html:link

This gives me the error message.  However, if I replace adminMenu with
welcome it works just fine.  Also, if I use the page attribute it works
for welcome.do and not for adminMenu.do.  Any help is appreciated!

Mike

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




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

2002-11-08 Thread david . fields
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




RE: Merging Tiles body into tile definition

2002-11-08 Thread Hue Holleran
Sorry if this is lame, do you need a direct=true on the tiles:put
name=body ... never tried doing this but I assume you're using a
tiles:insert... not a tiles:getAsString... in the template so you may
need to indicate direct here?

Hue.

-Original Message-
From: Brian Topping [mailto:topping;digidemic.com]
Sent: 08 November 2002 15:39
To: [EMAIL PROTECTED]
Subject: Merging Tiles body into tile definition


Good day all, happy Friday!

I'm building another application using tiles (hopefully this one will ship
sooner than the others :-) and coming across the geometric explosion of
tiles
and body files, wondering if there is a solution that others are using that
I
might be able to take advantage of.

The basic problem is that of having one file for the tiles:insert
statement
and the tiles body file that it references.  In the basic case, my setup
looks like:

* login.jsp
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %
tiles:insert page=/templates/main_layout.jsp flush=true
  tiles:put name=title  value=GSUMC - Login /
  tiles:put name=header value=/templates/header.jsp /
  tiles:put name=menu   value=/templates/menu.jsp /
  tiles:put name=body value=/login_body.jsp/
/tiles:insert

* login_body.jsp

%@ page language=java %
snip.../

What I would like to do is merge these in the form of:

%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %
%@ page language=java %
tiles:insert page=/templates/main_layout.jsp flush=true
  tiles:put name=title  value=GSUMC - Login /
  tiles:put name=header value=/templates/header.jsp /
  tiles:put name=menu   value=/templates/menu.jsp /
  tiles:put name=body
  snip.../
  /tiles:put
/tiles:insert

Makes sense, should work according to the javadoc and the tag code, but I
can't get my head around the reason that it doesn't.  The point where the
content should be inserted into the template is untouched.  Any ideas?

best regards,

Brian

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

attachment: winmail.dat--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


Re: Validate and nightly build problem

2002-11-08 Thread Robert Leland
Michael Delamere wrote:


Yes, I copied all of the files into my WEB-INF/lib folder

If there is any more information you need, I will be glad to provide
it
 

Yes, Does the struts-validator example work ?

-Rob



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




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

2002-11-08 Thread Richard Yee
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:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: select and option tag issues

2002-11-08 Thread Robert Taylor
Try this:

html:select property=major_locations
   html:options property =locationValues
 labelProperty=locationLables/
   /html:select/td

When you get some cycles read up on the JavaBean specification. Struts uses
reflection to access and mutate data in java beans and requires beans to
conform to the spec.

You are using improper accessor name to access the property; the 'get' and
'set' are assumed and therefore do not have to explicitely be added to the
property attribute of Struts tags.

robert

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
 Sent: Friday, November 08, 2002 10:36 AM
 To: Struts Users Mailing List
 Subject: RE: select and option tag issues



 Ok I am still getting an error, the error is:

 javax.servlet.jsp.JspException: No getter method available for property
 getLocationValues for bean under name null


 here is the code form the class that extends ActionForm

   private ArrayList getDataValues(String sql, String varaible)
   {

 ArrayList list = new ArrayList();


 Connection conn = null;
 Statement stmt = null;
 ResultSet rs = null;

 ServletContext context = servlet.getServletContext();
 DataSource dataSource = (DataSource)
 context.getAttribute(Action.DATA_SOURCE_KEY);

 try
 {

   conn = dataSource.getConnection();
   stmt = conn.createStatement();
   rs = stmt.executeQuery(sql);

   while(rs.next())
   {
 System.out.println(here);
 String value = rs.getString(varaible);
 list.add(value);
   }

 }
 catch(Exception e)
 {
   System.out.println(ERROR GETTING NUMBER  +e);
 }
 finally
 {
   if(rs != null)
   {
 try
 {
   rs.close();
 }
 catch(SQLException e)
 {
   System.out.println(e.getMessage());
 }
 rs = null;
   }
   if(stmt != null)
   {
 try
 {
   stmt.close();
 }
 catch(SQLException e)
 {
   System.out.println(e.getMessage());
 }
 stmt = null;
   }
   if(conn != null)
   {
 try
 {
   conn.close();
 }
 catch(SQLException e)
 {
   System.out.println(e.getMessage());
 }
 conn = null;
   }
 }

 return(list);
   }

   public ArrayList getLocationValues()
   {
 ArrayList values = new ArrayList();
 String sql = select id from locations;
 values = getDataValues(sql, id);

 return(values);
   }

   public ArrayList getLocationLables()
   {
 ArrayList lables = new ArrayList();
 String sql = select location from locations;
 lables = getDataValues(sql, location);

 return(lables);
   }

 here is the code from the jsp

 tdhtml:select property=major_locations
   html:options property =getLocationValues
 labelProperty=getLocationLables/
   /html:select/td


 What am I doing wrong?  I am very confused. Please help

 Tim Bachta
 Information Technology
 MC 48
 816-997-7137




   edgar

   edgar@blue-mooseTo:   'Struts
 Users Mailing List' [EMAIL PROTECTED]
   .netcc:

Subject:  RE:
 select and option tag issues
   11/08/2002 08:08

   AM

   Please respond to

   Struts Users

   Mailing List









 In your form create two ArrayLists one for the values, one for the
 labels.  If the data doesn't change much you can make them static.
 Create getter methods for them which populate the arraylists from you
 database (make sure you populate them in the same order so the labels
 correspond to the values.  Then in your jsp do

  html:select property='dbfield'
  html:options property='arraylistofvalues'
 labelProperty='arraylistoflabels' /
  /html:select

 If you have really static stuff you can stick the above arraylists in
 the session or the context and use

  html:select property='dbfield'
  html:options name='attributelabelname'
 labelName='attributevaluename' /
  /html:select

 Hope this helps.

 Edgar
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
 Sent: Friday, November 08, 2002 8:50 AM
 To: 'Struts Users Mailing List'
 Subject: Re: select and option tag issues



 I posted this question a couple of days ago and received an answer.
 Unfortunately the answer does not work for me.  The problem I am having
 is on the initial page of my web application I have drop-down boxes that
 I want to be populated with information from a database.  I have no
 problem getting the recordset but do not know how to transfer that
 recordset data 

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:
 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: nested JSTL and Struts tags...

2002-11-08 Thread Karr, David
 -Original Message-
 From: petra staub [mailto:calc42;hotmail.com]
 Sent: Friday, November 08, 2002 5:07 AM
 
 How is it possible to do the following:
 
 I open a page, sending the parameter id='us'.
 
 I want now to create a form, where the id parameter
 is used to create an indexed input field. I can do this, if
 I do not use the the struts tags, similar to:
 input type=text name=lang(c:out value='${param.id}'/)
 
 I then get, what I want:
 input type=text name=lang(us)
 
 Am I right, that this is not possible, if I want to use the
 struts tags? (unfortunately the construction
 html:text property=c:out value='${param.id}'/ / cant work...)

You have a couple of different alternatives.

First, if you download the nightly build, you can use the Struts-EL library, where you 
could do this:

html-el:text property=lang(${param.id})/

(Isn't this actually mapped properties, as opposed to indexed properties?  I 
haven't played with that much.)

Second, there's no obstacle to using a scriptlet for attribute values in Struts tags, 
as long as the attribute is marked as a rtexprvalue in the TLD.  This one is, 
fortunately.  One common mistake when doing this is failing to understand that the 
ENTIRE value has to be a scriptlet, not just a portion of it.  It would probably look 
something like this:

html:text property='%= lang( + pageContext.getRequest().getParameter(id) + ) 
%'/

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




Re: Merging Tiles body into tile definition

2002-11-08 Thread Postfach 4711
Hello Brian,

you should use
tiles:put name=body type=string
instead of
tiles:put name=body

Friday, November 8, 2002, 4:38:55 PM, you wrote:

BT Good day all, happy Friday!

BT I'm building another application using tiles (hopefully this one will ship
BT sooner than the others :-) and coming across the geometric explosion of tiles
BT and body files, wondering if there is a solution that others are using that I
BT might be able to take advantage of. 

BT The basic problem is that of having one file for the tiles:insert statement
BT and the tiles body file that it references.  In the basic case, my setup
BT looks like:

BT * login.jsp
BT % taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %
BT tiles:insert page=/templates/main_layout.jsp flush=true
BT   tiles:put name=title  value=GSUMC - Login /
BT   tiles:put name=header value=/templates/header.jsp /
BT   tiles:put name=menu   value=/templates/menu.jsp /
BT   tiles:put name=body value=/login_body.jsp/
BT /tiles:insert

BT * login_body.jsp

BT % page language=java %
BT snip.../

BT What I would like to do is merge these in the form of:

BT % taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %
BT % page language=java %
BT tiles:insert page=/templates/main_layout.jsp flush=true
BT   tiles:put name=title  value=GSUMC - Login /
BT   tiles:put name=header value=/templates/header.jsp /
BT   tiles:put name=menu   value=/templates/menu.jsp /
BT   tiles:put name=body
BT   snip.../
BT   /tiles:put
BT /tiles:insert

BT Makes sense, should work according to the javadoc and the tag code, but I
BT can't get my head around the reason that it doesn't.  The point where the
BT content should be inserted into the template is untouched.  Any ideas?

BT best regards,

BT Brian

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



-- 
Best regards,
Dirk


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




How can I setup global forwarding to another webapp (module)....

2002-11-08 Thread Greg Roll
I'm trying to determine the best way to setup our application.  The
configuration consists of several different web modules.  While converting
the applicaiton to struts I'm finding a need to have a shared web module for
items that are available to all other sub-modules... (ie, shared error page,
style sheets etc)
 
I've structured my directories as follows:
 
/cems/
web/
WEB-INF/
webapp1
 web/
WEB-INF/
webapp2
 web/
WEB-INF/
etc
 
I'm not sure if this is the best way to do this... but as all my subprojects
(webapp1, webapp2) are components of cems, it seemed logical.  Currently, I
want to configure webapp1 to forward to an error page contained in
/base/web.  I can't seem to get tomcat to recognize the page.  If I try to
access it directly ( http://localhost/cems/error.jsp
http://localhost/cems/error.jsp ) it works fine, but when I set up the
struts-config.xml global forward to go to /cems/error.jsp I receive the
following:
 
type Status report

message /cems/error.jsp

description The requested resource (/cems/error.jsp) is not available.

Can anyone provide feedback as to the best way to implement this and how I
can get my global forward to access a different web module.

I'm currently using struts 1.0

Thx, Greg Roll




RE: Validate and nightly build problem

2002-11-08 Thread Michael Delamere
I tried the registration and to me it seemed not to work

Unless of course it is normal behaviour that when leaving the fields
blank that it takes me to the start screen

Infact, the same happens when populating all the fields is this
correct?

Regards,

Michael



-Original Message-
From: Robert Leland [mailto:rleland;apache.org] 
Sent: Freitag, 8. November 2002 16:45
To: Struts Users Mailing List
Subject: Re: Validate and nightly build problem

Michael Delamere wrote:

Yes, I copied all of the files into my WEB-INF/lib folder

If there is any more information you need, I will be glad to provide
it
  

Yes, Does the struts-validator example work ?

-Rob



--
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: Merging Tiles body into tile definition

2002-11-08 Thread Brian Topping
Hue, Dirk,

Thanks for your input.  I tried with tiles:put name=body direct=true
and found that to work just great.

Maybe I shouldn't care, but Dirk, do you know a subtle advantage to using
type=string instead of direct=true?

I'm quite happy, I'm just getting started on this app, but I can go back
through on the limited number of files that I have and merge the body file
for each presentation item, keeping the source tree more manageable for the
future.

have a great day,

-b

 -Original Message-
 From: Hue Holleran [mailto:hueh;softwareskills.net]
 Sent: Friday, November 08, 2002 10:44 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Merging Tiles body into tile definition
 
 
 Sorry if this is lame, do you need a direct=true on the 
 tiles:put name=body ... never tried doing this but I 
 assume you're using a tiles:insert... not a 
 tiles:getAsString... in the template so you may need to 
 indicate direct here?
 
 Hue.
 
 -Original Message-
 From: Brian Topping [mailto:topping;digidemic.com]
 Sent: 08 November 2002 15:39
 To: [EMAIL PROTECTED]
 Subject: Merging Tiles body into tile definition
 
 
 Good day all, happy Friday!
 
 I'm building another application using tiles (hopefully this 
 one will ship
 sooner than the others :-) and coming across the geometric 
 explosion of tiles
 and body files, wondering if there is a solution that others 
 are using that I
 might be able to take advantage of. 
 
 The basic problem is that of having one file for the 
 tiles:insert statement
 and the tiles body file that it references.  In the basic 
 case, my setup
 looks like:
 
 * login.jsp
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
 prefix=tiles %
 tiles:insert page=/templates/main_layout.jsp flush=true
   tiles:put name=title  value=GSUMC - Login /
   tiles:put name=header value=/templates/header.jsp /
   tiles:put name=menu   value=/templates/menu.jsp /
   tiles:put name=body value=/login_body.jsp/
 /tiles:insert
 
 * login_body.jsp
 
 %@ page language=java %
 snip.../
 
 What I would like to do is merge these in the form of:
 
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
 prefix=tiles %
 %@ page language=java %
 tiles:insert page=/templates/main_layout.jsp flush=true
   tiles:put name=title  value=GSUMC - Login /
   tiles:put name=header value=/templates/header.jsp /
   tiles:put name=menu   value=/templates/menu.jsp /
   tiles:put name=body
   snip.../
   /tiles:put
 /tiles:insert
 
 Makes sense, should work according to the javadoc and the tag 
 code, but I
 can't get my head around the reason that it doesn't.  The 
 point where the
 content should be inserted into the template is untouched.  Any ideas?
 
 best regards,
 
 Brian
 
 --
 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: How to figure out the caller of in a Tiles JSP file?

2002-11-08 Thread Trieu, Danny
I don't think this is the right way for you todo.  Here is what I think you
should do.
Have your JSP required a Tiles's parammeter, and from all the page that
include your JSP 
Have them pass a param indicate where they are coming from. Or, determine
all the pages
That need to include your JSP, create different definition for each of them
and the definition
Declare a param that your JSP expected with value that indicate where it is
coming from.


-Original Message-
From: Zsolt Koppany [mailto:zkoppany;web.de] 
Sent: Friday, November 08, 2002 12:24 AM
To: [EMAIL PROTECTED]
Subject: How to figure out the caller of in a Tiles JSP file?


Hi,

in Tiles JSP files, request.getRequestURI() seems to return the URL of the 
includes Tiles file. How can I figure out the URL of the includor? I means 
the JSP file at the top of the include hierarchy, because I would like call 
the original URL with additional parameters from the included JSP file.

Zsolt

--
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: select and option tag issues

2002-11-08 Thread edgar
I didn't read the whole thing, please excuse.  The only thing I notices
is that you seem to be misusing the naming conventions.

I don't know if I can explain this simply but here goes.

In you classes the objects are named

private type objectname

The getter method is

public type getObjectname() { return object; }

The setter method is

public void setObjectname(type newval) { objectname =
newval; }

In the jsp you would use

property='objectname'

Basically when you are specifing the object (in the class and in the
jsp) you use the exact variable name and the first character CANNOT be
uppercase.  When you are writing the methods you specify get/set and the
first letter uppercase and the rest of the object name.   In the JSP
sample you gave you used the getter method name, not the property name.

Let me know if that helps

Edgar



-Original Message-
From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com] 
Sent: Friday, November 08, 2002 10:36 AM
To: 'Struts Users Mailing List'
Subject: RE: select and option tag issues



Ok I am still getting an error, the error is:

javax.servlet.jsp.JspException: No getter method available for property
getLocationValues for bean under name null


here is the code form the class that extends ActionForm

  private ArrayList getDataValues(String sql, String varaible)
  {

ArrayList list = new ArrayList();


Connection conn = null;
Statement stmt = null;
ResultSet rs = null;

ServletContext context = servlet.getServletContext();
DataSource dataSource = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);

try
{

  conn = dataSource.getConnection();
  stmt = conn.createStatement();
  rs = stmt.executeQuery(sql);

  while(rs.next())
  {
System.out.println(here);
String value = rs.getString(varaible);
list.add(value);
  }

}
catch(Exception e)
{
  System.out.println(ERROR GETTING NUMBER  +e);
}
finally
{
  if(rs != null)
  {
try
{
  rs.close();
}
catch(SQLException e)
{
  System.out.println(e.getMessage());
}
rs = null;
  }
  if(stmt != null)
  {
try
{
  stmt.close();
}
catch(SQLException e)
{
  System.out.println(e.getMessage());
}
stmt = null;
  }
  if(conn != null)
  {
try
{
  conn.close();
}
catch(SQLException e)
{
  System.out.println(e.getMessage());
}
conn = null;
  }
}

return(list);
  }

  public ArrayList getLocationValues()
  {
ArrayList values = new ArrayList();
String sql = select id from locations;
values = getDataValues(sql, id);

return(values);
  }

  public ArrayList getLocationLables()
  {
ArrayList lables = new ArrayList();
String sql = select location from locations;
lables = getDataValues(sql, location);

return(lables);
  }

here is the code from the jsp

tdhtml:select property=major_locations
  html:options property =getLocationValues
labelProperty=getLocationLables/
  /html:select/td


What am I doing wrong?  I am very confused. Please help

Tim Bachta
Information Technology
MC 48
816-997-7137


 

  edgar

  edgar@blue-mooseTo:   'Struts Users
Mailing List' [EMAIL PROTECTED]  
  .netcc:

   Subject:  RE: select and
option tag issues
  11/08/2002 08:08

  AM

  Please respond to

  Struts Users

  Mailing List

 

 





In your form create two ArrayLists one for the values, one for the
labels.  If the data doesn't change much you can make them static.
Create getter methods for them which populate the arraylists from you
database (make sure you populate them in the same order so the labels
correspond to the values.  Then in your jsp do

 html:select property='dbfield'
 html:options property='arraylistofvalues'
labelProperty='arraylistoflabels' /
 /html:select

If you have really static stuff you can stick the above arraylists in
the session or the context and use

 html:select property='dbfield'
 html:options name='attributelabelname'
labelName='attributevaluename' /
 /html:select

Hope this helps.

Edgar
-Original Message-
From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
Sent: Friday, November 08, 2002 8:50 AM
To: 'Struts Users Mailing List'
Subject: Re: select and option tag issues



I posted this question a couple 

RE: [Tiles]TilesAction and contents changing dynamically

2002-11-08 Thread Trieu, Danny
Sorry for not being specific,

Anyway, I don't know why you want to get the component context from the JSP.

In your JSP, if there already a context setting, you can always access your
Tiles attributes via Tiles' Tags, and that is all you need.  As, for
changing
Content of a Tile component without change other is the right way to
encapsulate
Behavior specific to the component it selft and this is why Tiles is so
powerful
That Web View component is truly reusable.  There are two why to do this, as
I can
Remember, you got the first one and the second with I used a lot is to
implement the
Controller interface.  In the method that you implement for the controller
interface
You can access the TileContext.

Danny,

Ps. Let me know if there is any other thing that I can help.

-Original Message-
From: yoko hama [mailto:myohott;hotmail.com] 
Sent: Thursday, November 07, 2002 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: [Tiles]TilesAction and contents changing dynamically


First of all,thanks for your response,Trieu.

Could you tell me how can i realize it or can you show me some example? I 
tried to create an action extends TilesAction,and set it as a control action

for one tiles definition.When i use it from the tiles definition,it works 
fairly well,but when i call it from a link in the jsp,it throws an exception

sounds it can't find a context from the Tiles.Oh,i see,may be i should call 
an action from a link to do some process then forward it to the definition.I

will try it,to find that the other part of the jsp can contain their status 
or just return to their default status.

Anyway,thanks a lot.

Thomas.W




From: Trieu, Danny [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: [Tiles]TilesAction and contents changing dynamically
Date: Thu, 7 Nov 2002 09:21:29 -0800

Sure you can

-Original Message-
From: yoko hama [mailto:myohott;hotmail.com]
Sent: Wednesday, November 06, 2002 6:52 PM
To: [EMAIL PROTECTED]
Subject: [Tiles]TilesAction and contents changing dynamically


Hi,guys.
I am a newbie to struts and tiles.
I wonder how can i get a part of my contents changed in a jsp 
dynamically without changing the other part by using tiles,although i 
can do it by frame.After search the tiles documents,i found maybe i can 
do it by extends the TilesAction.But how can i get the component 
context from the jsp?

Thanks in advance

Thomas.W



_
Help STOP SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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




Java WebStart as a Strut front end

2002-11-08 Thread Toni Charlot
I'm writing an application where I need to access local resources like a camera and 
scanner devices.  I was looking into using a Java WebStart to write the program and 
interact with the struts controller on the server.  Has anyone used Java WebStart as a 
view for struts?  Is that an entirely crazy concept?  Are there any alternatives out 
there?

Thank you for all your input.


Re: [ANNOUNCE] Management-oriented Powerpoint Presentation for Struts

2002-11-08 Thread Vincent Stoessel
This is wonderful, thank you for this. Open Source
has been making my professional life a lot easier for a while
now, but a powerpoint presentation for the bosses? This truly
rules! Another wonderful thing is that my open office opened
the file and played it with no problem on linux.
We have come a long way.

[EMAIL PROTECTED] wrote:



James Turner and I have collaborated on a Management Powerpoint
presentation that can be used to make the case for using Struts for
development.

If others have comments/additions/etc of course we are flexible.

The presentation will be available on our site later this evening or
tomorrow,

Thanks!

Kevin

http://www.strutskickstart.com



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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



--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Re: Java WebStart as a Strut front end

2002-11-08 Thread Eddie Bush
I recall seeing a paper about using Struts as the controller in a MVC 
Swing app.  I can't seem to find it where I thought it was though.  Try 
hitting Google for Struts as Swing controller - or something like that.

Toni Charlot wrote:

I'm writing an application where I need to access local resources like a camera and scanner devices.  I was looking into using a Java WebStart to write the program and interact with the struts controller on the server.  Has anyone used Java WebStart as a view for struts?  Is that an entirely crazy concept?  Are there any alternatives out there?

Thank you for all your input.
 

--
Eddie Bush




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




How can I access the FormBean from a logic:iterate tag?

2002-11-08 Thread Thorbjørn Ravn Andersen
I am trying to get into Collections inside the FormBean but I stumbled 
on this:

html:password property=password/ passwordp
ul
logic:iterate id=i name=col

where both password (String) and col (Collection) are fields in my FormBean.

The html:password knows very well how to get to my FormBean but 
apparently logic:iterate doesn't.  From an I don't know what this does 
skimmin of the taglib code for html:password, I gathered that this is 
somehow stored in the pageContext, but I cannot figure out how.  

Previously I just stuffed the FormBean in request.setAttribute(), where 
this would work with a name=... but I would like to be able to do this 
without such a trick.   Any tricks?

All this is just warming up for some complex Collection managing in the 
JSP-pages.  Would the sample application be sufficient for a full 
introduction to this, or should I complement with some more?

Thanks

--
 Thorbjørn Ravn Andersen  Scandiatransplant
  Skejby Sygehus, indgang 3
 +45 89 49 53 01  DK-8200 Århus N
 http://biobase.dk/~tra 




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



Re: Java WebStart as a Strut front end

2002-11-08 Thread Eddie Bush
Found it!

http://javaboutique.internet.com/tutorials/Swing/

Toni Charlot wrote:


I'm writing an application where I need to access local resources like a camera and scanner devices.  I was looking into using a Java WebStart to write the program and interact with the struts controller on the server.  Has anyone used Java WebStart as a view for struts?  Is that an entirely crazy concept?  Are there any alternatives out there?

Thank you for all your input.
 


--
Eddie Bush





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




RE: How can I access the FormBean from a logic:iterate tag?

2002-11-08 Thread Karr, David
 -Original Message-
 From: Thorbjørn Ravn Andersen [mailto:tra;biobase.dk]
 Sent: Friday, November 08, 2002 7:45 AM
 
 I am trying to get into Collections inside the FormBean but I 
 stumbled 
 on this:
 
 html:password property=password/ passwordp
 ul
 logic:iterate id=i name=col
 
 where both password (String) and col (Collection) are fields 
 in my FormBean.
 
 The html:password knows very well how to get to my FormBean but 
 apparently logic:iterate doesn't.  From an I don't know what 
 this does 
 skimmin of the taglib code for html:password, I gathered that this is 
 somehow stored in the pageContext, but I cannot figure out how.  
 
 Previously I just stuffed the FormBean in 
 request.setAttribute(), where 
 this would work with a name=... but I would like to be able 
 to do this 
 without such a trick.   Any tricks?

Actually, if this is the form bean associated with your action, then it should already 
be in scope (the scope defined in your action element), so you don't have to do it 
again.  So, you would have your iterate tag with a name attribute that refers to 
the form bean, and the property attribute set to col.

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




Re: Java WebStart as a Strut front end

2002-11-08 Thread Mark_StGodard

To be picky:  Java WebStart isnt a view.. its just a Swing App Web
Deployment tool.
Swing would be your view and I believe Swing as the V in MVC has been
discussed in the
mailing list.

mark




Toni Charlot [EMAIL PROTECTED] on 11/08/2002 01:07:00 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:Java WebStart as a Strut front end


I'm writing an application where I need to access local resources like a
camera and scanner devices.  I was looking into using a Java WebStart to
write the program and interact with the struts controller on the server.
Has anyone used Java WebStart as a view for struts?  Is that an entirely
crazy concept?  Are there any alternatives out there?

Thank you for all your input.







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




RE: html:link question

2002-11-08 Thread mike . witt
I didn't notice that the entire message is:

jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named /admin

My forward is called adminMenu, I renamed it from admin a while ago.  Now,
when I look, I don't see the admin by itself anywhere.  I'm using
Tomcat.4.12.  I removed the work directories and restarted Tomcat but
without success.  Here is my entire struts config ... notice that the
datasource references are commented out right now.

Thanks for your help.

Mike


?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

!--
 This is the Struts configuration file for the example application,
 using the proposed new syntax.

 NOTE:  You would only flesh out the details in the form-bean
 declarations if you had a generator tool that used them to create
 the corresponding Java classes for you.  Otherwise, you would
 need only the form-bean element itself, with the corresponding
 name and type attributes.
--


struts-config


  !-- == Data Source Configuration ===
--
  data-sources
 !--   data-source
  set-property property=maxCount
   value=4/
  set-property property=minCount
   value=2/
  set-property property=description
   value=Artimus:MySQL Data Source Configuration/
  set-property property=driverClass
   value=org.gjt.mm.mysql.Driver/
  set-property property=url
   value=jdbc:mysql://localhost:3306/artimus/
  set-property property=autoCommit
   value=true/
  set-property property=user
   value=root/
  set-property property=password
   value=/
/data-source  --
  /data-sources

  !-- == Form Bean Definitions ===
--
  form-beans

  /form-beans


  !-- == Global Forward Definitions ==
--
  global-forwards
forward   name=welcome  path=/welcome.do/
forward   name=adminMenupath=/adminMenu.do /
  /global-forwards


  !-- == Action Mapping Definitions ==
--
  action-mappings

action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/welcome.jsp/

action path=/adminMenu
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/admin-menu.jsp/

  /action-mappings


  !-- == Controller Configuration 
--

  controller
!-- The input parameter on action elements is the name of a
 local or global forward rather than a subapp-relative path --
set-property property=inputForward value=true/
  /controller


  !-- == Message Resources Definitions ===
--

  message-resources
parameter=org.apache.struts.webapp.example.ApplicationResources/



/struts-config

-Original Message-
From: Hue Holleran [mailto:hueh;softwareskills.net]
Sent: Friday, November 08, 2002 10:41 AM
To: 'Struts Users Mailing List'
Subject: RE: html:link question


As you say welcome works fine, your syntax looks fine. However the error
message is a bit strange and doesn't correspond to the name of the forward
or of the action!  All I can really think of - we find ourselves in this
situation a lot by the way and it's always our fault if that's any
consolation at all - is to look for possibly a duplicate definition of
adminMenu action/a forward that may be causing the problem or that it's
actually getting to /WEB-INF/pages/admin-menu.jsp and something there is
giving the error you describe.

BTW I pasted your code into our sample - we seem to use it a lot ourselves!
... and it worked OK, i.e. for the page with a link for Adm. Funcs. and on
clicking link got a 404: The requested resource
(/WEB-INF/pages/admin-menu.jsp) is not available, as to be expected.

Maybe try posting your complete struts-config.xml?

Sorry can't help,

Hue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:mike.witt;honeywell.com]
Sent: 08 November 2002 13:49
To: [EMAIL PROTECTED]
Subject: html:link question


Hello,

I'm having a problem with html:link which gives me the Cannot retrive
ActionForward named /admin message.  My struts config has:

  global-forwards
forward   name=welcome  path=/welcome.do/
forward   name=adminMenupath=/adminMenu.do /
  /global-forwards


  action-mappings
action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/welcome.jsp/

action path=/adminMenu
type=org.apache.struts.actions.ForwardAction
  

Re: New ApacheCon session: What's New in Struts 1.1

2002-11-08 Thread Kevin . Bedell



 Also, for those of you attending the other obscure trade show in Vegas
that
 week (I think it's called COMDEX, or something like that), Craig will be
 talking about Struts on Monday the 18th, 1PM to 2:15.  The panel is
called
 Beyond JSP: Struts, Turbine, Velocity and other JSP Extensions.  I'll
be
 moderating, and talking about the larger universe of post-JSP packages.

For those just learning JSP and Struts, I believe James is also teaching a
JSP bootcamp that week.



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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




RE: [ANNOUNCE] Management-oriented Powerpoint Presentation for Struts

2002-11-08 Thread Kevin . Bedell



Just received confirmation that the latest version of Struts Console has
made it onto the companion CD as well.

Many thanks (once again) to James Holmes.

Kevin




Andrew Hill [EMAIL PROTECTED] on 11/07/2002 11:08:25 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:Struts Users Mailing List [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:RE: [ANNOUNCE] Management-oriented Powerpoint Presentation for
   Struts


snip src=http://www.strutskickstart.com;
We're also putting the last touches on the companion CD-ROM which will be
included with the book. We think that this will be a real added value for
readers, as it will contain literally everything you'd need to start
developing Struts applications on a desert island, including the JDK,
Struts
itself, Ant, MySQL, JBoss, Cactus, Torque, JUnit and Axis. As far as we
know, this is the only Struts book shipping with a CD-ROM, a real bonus!
/snip

Which will also be very very useful for any of us who want try doing stuff
on our home computers where downloading the above by modem is quite
impractical! (I know my home pc has about the same level of connectivity as
the average desert island...)

Many thanks guys - now I gotta try and be patient and wait for the book to
be available :-)


-Original Message-
From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com]
Sent: Friday, November 08, 2002 11:56
To: Struts Users Mailing List
Subject: [ANNOUNCE] Management-oriented Powerpoint Presentation for
Struts





James Turner and I have collaborated on a Management Powerpoint
presentation that can be used to make the case for using Struts for
development.

If others have comments/additions/etc of course we are flexible.

The presentation will be available on our site later this evening or
tomorrow,

Thanks!

Kevin

http://www.strutskickstart.com



---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---



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




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

2002-11-08 Thread david . fields
I figured out the problem with the double post.  It was caused by an 
html:image struts tag that did a javascript to call form.submit().  The 
button called it once and then the javascript called it after that.  I 
changed it to be an 
A href=javascript:form.sumbit()html:img/a and now it works as 
expected.

Thanks For your Help.



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


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

2002-11-08 Thread Benjamin Simpson
Yes, 

I saw the same problem with Weblogic 6.1 sp3, (both solaris and 
nt) + 5.5 and JBUILDER6.  I wrote it off to Jbuilder because of 
it's stability issues (will crash every now and then).

No image buttons, no javascript, nothing but submit, hit 
breakpoint twice.


Benjamin Simpson





 On Fri, 08 Nov 2002, Richard Yee ([EMAIL PROTECTED]) wrote:

 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:   mailto:struts-user-
[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:struts-user-
[EMAIL PROTECTED]
 
 
 


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




RE: html:link question

2002-11-08 Thread Hue Holleran
Hi Mike,

What is the full error message that the referred to by the error (i.e. does
it give a hint which component it was attempting to execute when this error
occurred?):

jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named /admin

e.g. you may get a line a few lines down such as:

...
at org.apache.jsp.index$jsp._jspService(index$jsp.java:87)
...

That would indicate this occurred whilst executing index.jsp. I would guess
this is indicating a runtime error - does it report the component, e.g. JSP
it is attempting to execute when it reports this error. I get some
interesting behaviour with NetBeans on Windows 2000 when changing the case
of a JSP file, e.g. MyPage.jsp - myPage.jsp which compiles the JSP to a
servlet but then can't find the servlet.

What I would recommend you do is to look for the file named above on the
disk and (with .java or .class extension) and delete any that are not the
original copy of the file, e.g. .jsp

Best of luck,

Hue.

-Original Message-
From: [EMAIL PROTECTED] [mailto:mike.witt;honeywell.com]
Sent: 08 November 2002 19:00
To: [EMAIL PROTECTED]
Subject: RE: html:link question


I didn't notice that the entire message is:

jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named /admin

My forward is called adminMenu, I renamed it from admin a while ago.  Now,
when I look, I don't see the admin by itself anywhere.  I'm using
Tomcat.4.12.  I removed the work directories and restarted Tomcat but
without success.  Here is my entire struts config ... notice that the
datasource references are commented out right now.

Thanks for your help.

Mike


?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

!--
 This is the Struts configuration file for the example application,
 using the proposed new syntax.

 NOTE:  You would only flesh out the details in the form-bean
 declarations if you had a generator tool that used them to create
 the corresponding Java classes for you.  Otherwise, you would
 need only the form-bean element itself, with the corresponding
 name and type attributes.
--


struts-config


  !-- == Data Source Configuration ===
--
  data-sources
 !--   data-source
  set-property property=maxCount
   value=4/
  set-property property=minCount
   value=2/
  set-property property=description
   value=Artimus:MySQL Data Source Configuration/
  set-property property=driverClass
   value=org.gjt.mm.mysql.Driver/
  set-property property=url
   value=jdbc:mysql://localhost:3306/artimus/
  set-property property=autoCommit
   value=true/
  set-property property=user
   value=root/
  set-property property=password
   value=/
/data-source  --
  /data-sources

  !-- == Form Bean Definitions ===
--
  form-beans

  /form-beans


  !-- == Global Forward Definitions ==
--
  global-forwards
forward   name=welcome  path=/welcome.do/
forward   name=adminMenupath=/adminMenu.do /
  /global-forwards


  !-- == Action Mapping Definitions ==
--
  action-mappings

action path=/welcome
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/welcome.jsp/

action path=/adminMenu
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/pages/admin-menu.jsp/

  /action-mappings


  !-- == Controller Configuration 
--

  controller
!-- The input parameter on action elements is the name of a
 local or global forward rather than a subapp-relative path --
set-property property=inputForward value=true/
  /controller


  !-- == Message Resources Definitions ===
--

  message-resources
parameter=org.apache.struts.webapp.example.ApplicationResources/



/struts-config

-Original Message-
From: Hue Holleran [mailto:hueh;softwareskills.net]
Sent: Friday, November 08, 2002 10:41 AM
To: 'Struts Users Mailing List'
Subject: RE: html:link question


As you say welcome works fine, your syntax looks fine. However the error
message is a bit strange and doesn't correspond to the name of the forward
or of the action!  All I can really think of - we find ourselves in this
situation a lot by the way and it's always our fault if that's any
consolation at all - is to look for possibly 

RE: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-11-08 Thread Brian Topping
Hi all,

I'm running into this problem too.  My DynaActionForm is getting cleared
between calls to my action.

I'm using DispatchAction as my base class, so I have actions like
'FooAction?method=setupForm', 'FooAction?method=page1',
'FooAction?method=page2', etc.  

Is resetting the form a feature in this case as well, even though the class
is the same?  Or do I literally have to use the same method in order to avoid
a reset?  The latter seems to kill the very nice code layout I get from using
DispatchActions for different form pages, although I could go in and
re-implement the code such that the same method becomes a dispatcher, yada
yada.

I'm trying out this stuff as I write, but I guess I am sending this anyway
because I believe this is a misfeature/bug if it actually works this way.
IMHO, vectors in a DispatchAction should be a special semantic case WRT forms
getting reset.

Thanks for your consideration of this,

-b

 -Original Message-
 From: James Mitchell [mailto:jmitchtx;telocity.com]
 Sent: Monday, October 28, 2002 1:21 AM
 To: Struts Users Mailing List
 Subject: RE: Problem with multiple html(jsp) pages sharing one form
 (actionform)
 
 
 Ok, sorry, I didn't see that, although I tend to use the same 
 action (and
 jsp) for my wizards anyway.
 
 So you are saying that you are not sure where the data is lost?
 
 One way I might test this:
 
 (Assuming you have)
 Step 1: jsp1 - fowardaction1 - jsp2
 Step 2: jsp2 - fowardaction2 - jsp3
 Step 3: jsp3 - ejbaction - jsp
 
 
 Do this.
 Step 1: jsp1 - fowardaction1 - jsp2
 Step 2: jsp2 - fowardaction2 - jsp3
 now hit your browser's back button one time
 now hit your browser's refresh button
 
 you will be prompted to re-submit the form data, click ok (or 
 yes, depending
 on your browser)
 
 At this point you are sitting at the end of Step 1 (or the 
 beginning of Step
 2, same thing).
 Now if the data had been stored in the session correctly in 
 Step 1, then
 your form should be sitting there already filled out for you.
 
 Try that.
 
 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org
 
 Only two things are infinite, the universe and human 
 stupidity, and I'm not
 sure about the former.
 - Albert Einstein (1879-1955)
 
 
  -Original Message-
  From: Derek Lin [mailto:dereklin;hotmail.com]
  Sent: Monday, October 28, 2002 1:11 AM
  To: Struts Users Mailing List
  Subject: Re: Problem with multiple html(jsp) pages sharing one form
  (actionform)
 
 
  James,
 
  Please be patient with me.  I just want to point out this 
 sentence in that
  paragraph:
  Likewise, the various pages of the same form should all be
  submitted to the
  same Action Class.
  Now, doesn't that say the same Action Class?
 
  If you still think what I have should work, then maybe something
  is wrong in
  my EJBRegistrationAction class (the last Action Class in the
  chain.)  Let me
  just mention that I was using one single form with request scope for
  this--and that was working.
 
  Thanks for helping.
 
  -- Derek
 
  - Original Message -
  From: James Mitchell [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, October 27, 2002 9:46 PM
  Subject: RE: Problem with multiple html(jsp) pages sharing one form
  (actionform)
 
 
   No, it says single ActionForm bean, which you are already doing.
  ^^
  
   I'm afraid you'll have to do a bit more debugging.  
 Unless you want to
  step
   through your code in debug, I would try creating your own 
 ForwardAction
  with
   a few print statements to narrow down exactly where they might
  be getting
   cleared.
  
  
  
   James Mitchell
   Software Engineer/Struts Evangelist
   http://www.open-tools.org
  
   Only two things are infinite, the universe and human 
 stupidity, and I'm
  not
   sure about the former.
   - Albert Einstein (1879-1955)
  
  
-Original Message-
From: Derek Lin [mailto:dereklin;hotmail.com]
Sent: Monday, October 28, 2002 12:36 AM
To: Struts Users Mailing List
Subject: Re: Problem with multiple html(jsp) pages 
 sharing one form
(actionform)
   
   
I am using the 1.1beta version(beta1 I guess, are there any
changes between
beta1 and 2 on this?)
   
Now, I have been doing a little research myself.  And I 
 have found a
paragraph on
http://jakarta.apache.org/struts/userGuide/building_model.html:
   
Think, for example, of the wizard style user interface that
  is commonly
used when installing new applications. Struts encourages you
  to define a
single ActionForm bean that contains properties for all 
 of the fields,
  no
matter which page the field is actually displayed on. Likewise,
the various
pages of the same form should all be submitted to the 
 same Action
Class. If
you follow these suggestions, the page designers can 
 rearrange the
  fields
among the various pages, often without 

RIF: NullpointerException in ActionForms

2002-11-08 Thread SPISSER REINHARD
Hi all, 
 
i've checked the struts-config, I have defined the FormBean, the Action contains the 
right name. 
If the user does not insert any data, it works correctly.
 
The problem appears when the user jumps directly to an action without previuosly 
calling the action.
 
I get the same error on the struts sample application. If I type:
localhost:8080/struts-examples/saveRegistration.do, I get a NullPointerException.
 
Try it without calling the EditRegistration.do action.
 
Can anyone reproduce this?
 
Reinhard
 
 

-Messaggio originale- 
Da: Eddie Bush [mailto:ekbush;swbell.net] 
Inviato: gio 07/11/2002 17:01 
A: Struts Users Mailing List 
Cc: 
Oggetto: Re: NullpointerException in ActionForms



Postfach 4711 wrote:

Hello Reinhard,

what will happen if the user calls the action from the jsp without
entering any data? If you also get the exception something is wrong
with your validate method.

There is a contract between actions and the forms they use:  The form
*will* be created.  This can be evidenced by the source (see
RequestProcessor.java).

Your job, as an application developer, is to communicate to Struts (by
placing the name of the form-bean in the name attribute of the
action-mapping that needs access to the form) that a particular action
needs a particular form.  By doing Struts can (and will!) look for that
action to be executed and instantiate the form-bean if needed.  As such,
you should never get an NPE because of a form-bean.  If you do, it's
*most likely* because you did not tell Struts that the action requires
access to a form-bean.

Thursday, November 7, 2002, 3:27:43 PM, you wrote:

RS Hi all,

RS i was wondering how to handle correctly the following behaviour:
RS if a user calls directly from the url an action that has a Jsp in his
RS input and validate=true, i get a Nullpointerexception inside the
RS validate().

RS I think that this happens because the FormBean has never been
RS initialized with the values from the Jsp (the jsp has not been
RS displayed). All values in the FormBean are nulls.


RS I have added an instruction at the beginning of the validate() that
RS checks if one of the text fields are null, the validate returns null.

RS Is there a better way to handle this?

RS Thanks

RS Reinhard

--
Eddie Bush




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




winmail.dat--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org


RE: html:link question

2002-11-08 Thread mike . witt
Hi Hue,

You're a glutton for punishment, but here is the whole thing:

org.apache.jasper.JasperException: Exception forwarding for name welcome:
org.apache.jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named admin
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:484)


root cause 

javax.servlet.ServletException: Exception forwarding for name welcome:
org.apache.jasper.JasperException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named admin
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:494)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at

ActionForm used twice in document...

2002-11-08 Thread ajTreece
I have a website where the same ActionForm is used more than once in 
different html:form ... areas of the document. The problem is things 
are getting confused when I try and access form values (hidden or text) 
via Javascript. It complains that document.toolsMenuForm.contentid has 
no properties. In the old world I would just name the forms differently 
so they would be unique in the document.

Is it possible to use the same ActionForm more than once in a document? 
If so how?

Later, ajTreece




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



RE: ActionForm used twice in document...

2002-11-08 Thread edgar
If you only use one form in a document you could use

document.forms[0].fieldname 

for the first form and 

document.forms[1].fieldname 

For the second.

The other issue is that there really isn't much of an issue to use the
SAME actual action form twice since it goes to the same place.  You
could just not close the form tag until you are done.

Edgar 





-Original Message-
From: ajTreece [mailto:aj.treece;sun.com] 
Sent: Friday, November 08, 2002 4:09 PM
To: 'Struts Users Mailing List'
Subject: ActionForm used twice in document...


I have a website where the same ActionForm is used more than once in 
different html:form ... areas of the document. The problem is things 
are getting confused when I try and access form values (hidden or text) 
via Javascript. It complains that document.toolsMenuForm.contentid has 
no properties. In the old world I would just name the forms differently 
so they would be unique in the document.

Is it possible to use the same ActionForm more than once in a document? 
If so how?

Later, ajTreece




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




Sub Actions in an Action class

2002-11-08 Thread bachan s

Hi Craig and others,
We plan to use coarse grained action classes in our application.Basically what we plan 
to is to do is combine add,update,delete operation to one Action class.
We have two options .
1.Have 1Action class - 1 JSP - 1 Form Bean approach. This Action class will handle all 
operations/button of the particular page. Basically all button clicks.

2. Combine Add,update , delete etc of related data to a single action class.

Which one of the two is the best approach.

I have another question .

3.For aboove Options 1 and 2 we would need to handle sub actions in the Action class 
.We understand that DispatchAction can be used to handle this by using reflection.Is 
there a better approach to do this .
Please give your valuable suggestions .
Thanks and Regards,
Bachan
 
 



-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


Sub Actions in an Action class

2002-11-08 Thread David Graham
This is a users list question, I'll forward it over there for you.

David


From: bachan s [EMAIL PROTECTED]
Reply-To: Struts Developers List [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Sub Actions in an Action class
Date: Fri, 8 Nov 2002 11:19:25 -0800 (PST)


Hi Craig and others,
We plan to use coarse grained action classes in our application.Basically 
what we plan to is to do is combine add,update,delete operation to one 
Action class.
We have two options .
1.Have 1Action class - 1 JSP - 1 Form Bean approach. This Action class will 
handle all operations/button of the particular page. Basically all button 
clicks.

2. Combine Add,update , delete etc of related data to a single action 
class.

Which one of the two is the best approach.

I have another question .

3.For aboove Options 1 and 2 we would need to handle sub actions in the 
Action class .We understand that DispatchAction can be used to handle this 
by using reflection.Is there a better approach to do this .
Please give your valuable suggestions .
Thanks and Regards,
Bachan





-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



Resending : Sub Actions in an Action class

2002-11-08 Thread Bachan S

Hi Craig and others, 
We plan to use coarse grained action classes in our application.Basically what we plan 
to is to do is combine add,update,delete operation to one Action class. 
We have two options . 
1.Have 1Action class - 1 JSP - 1 Form Bean approach. This Action class will handle all 
operations/button of the particular page. Basically all button clicks.

2. Combine Add,update , delete etc of related data to a single action class.

Which one of the two is the best approach.

I have another question .

3.For aboove Options 1 and 2 we would need to handle sub actions in the Action class 
.We understand that DispatchAction can be used to handle this by using reflection.Is 
there a better approach to do this . 
Please give your valuable suggestions . 
Thanks and Regards, 
Bachan 



-
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley  videos from Greatest Hits CD


Re: Resending : Sub Actions in an Action class

2002-11-08 Thread Craig R. McClanahan
Please do *not* crosspost to both STRUTS-DEV and STRUTS-USER.

In this particular case, it is very much a user question, and belongs only
on STRUTS-USER.

On Fri, 8 Nov 2002, Bachan S wrote:

 Date: Fri, 8 Nov 2002 13:18:38 -0800 (PST)
 From: Bachan S [EMAIL PROTECTED]
 To: bachan s [EMAIL PROTECTED], [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Resending : Sub Actions in an Action class


 Hi Craig and others,

 We plan to use coarse grained action classes in our
 application.Basically what we plan to is to do is combine
 add,update,delete operation to one Action class.  We have two options .

 1.Have 1Action class - 1 JSP - 1 Form Bean approach. This Action class
 will handle all operations/button of the particular page. Basically all
 button clicks.

 2. Combine Add,update , delete etc of related data to a single action class.

 Which one of the two is the best approach.


I don't know if there's a best option; different people like different
approaches.  DispatchAction is designed for #2.

 I have another question .

 3.For aboove Options 1 and 2 we would need to handle sub actions in the
 Action class .We understand that DispatchAction can be used to handle
 this by using reflection.Is there a better approach to do this .

DispatchAction is a standard part of Struts for precisely this scenario.
If there were a better way, it wouldn't be :-).


 Please give your valuable suggestions .
 Thanks and Regards,
 Bachan


Craig


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




RE: Message Resources

2002-11-08 Thread James Mitchell
Hi David,

 Is that code slated to be part of Struts or is it published somewhere?

ummm...No and Yes

My initial implementation of MessageResources is complete and works quite
nicely (as a matter of fact).  I am in the process of refactoring the code
to fit into the resources subproject under commons sandbox.
I'm also planning to add support for Torque, simper, custom DAO, whatever.

What will probably happen is that there will be a commons DBMessageResources
and then a Struts specific DBMessageResources (e.g. Validator), although I
don't think the Struts piece will become part of the distribution.  At best,
I'm guessing it might make it into contrib.

It is ready to run, but before downloading and trying this out, you should
know that it uses OJB (under the covers) to access the database and pull the
resources required for your running app.  Don't let that scare you off,
because adding/changing the configuration is trivial and anyone can do it.
I mention this only because it fits well if you are already using it.

I am also working on a management utility that lets you visually maintain
the bundle values using your own running app.

So where is the code?
It lives on my lonely server (at home), but I have plans to move it to
sf.net under the struts project.

  http://www.open-tools.org/struts-atlanta/downloads


If the page comes up unavailable, let me know and I'll send it to you via
email.  It is 3.6 MB and includes the struts-example modified to use this
extension.

All you need to do is:
 1. Run the database script on the database you plan to use.
  (WARNING - Make sure you understand what you are running)
 2. Change the repository.xml with your own connection info (basic
datasource stuff)
 3. Run ant on the build.xml in the root directory.
 4. Deploy the resulting war file



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former.
- Albert Einstein (1879-1955)


 -Original Message-
 From: David
 Sent: Friday, November 08, 2002 4:18 PM
 To: [EMAIL PROTECTED]
 Subject: Message Resources


 James,

 I have a highly configurable application written with Struts and
 decided it
 would be best to create a database implementation of message resources.

 After looking at the PropertyMessageResources and
 propertyMessageResourcesFactory classes, I thought I had better check
 to make sure that I wasn't duplicating functionality that already
 existed.
 Searching on likely terms I came upon a reference to a
 DBMessageResources
 implementation. Is that code slated to be part of Struts or is it
 published
 somewhere?

 Thanks,

 David Morris



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




[ANNOUNCE] Sample chapter from Struts Kick Start available

2002-11-08 Thread James Turner
Chapter 17 (DynaForms and the Validator) from the upcoming SAMS title 
Struts Kick Start is now available at www.strutskickstart.com.

Enjoy,
James



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



Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-11-08 Thread Derek Lin
I was reading Struts in Action chapter 12:
If you are using the one-big-form wizard approach, the Struts Validator
includes a page property on the field element and provides a corresponding
page property on the ValidatorForm.

But the book doesn't give any example.

Dese it mean I should do something like this?:
form-property name=firstName type=java.lang.String page=1/

And then pass a url param in my action?

If anyone knows, please give some pointers.  I am going to try this out
soon.

Thanks,

Derek

- Original Message -
From: Brian Topping [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 12:17 PM
Subject: RE: Problem with multiple html(jsp) pages sharing one form
(actionform)


Hi all,

I'm running into this problem too.  My DynaActionForm is getting cleared
between calls to my action.

I'm using DispatchAction as my base class, so I have actions like
'FooAction?method=setupForm', 'FooAction?method=page1',
'FooAction?method=page2', etc.

Is resetting the form a feature in this case as well, even though the
class
is the same?  Or do I literally have to use the same method in order to
avoid
a reset?  The latter seems to kill the very nice code layout I get from
using
DispatchActions for different form pages, although I could go in and
re-implement the code such that the same method becomes a dispatcher, yada
yada.

I'm trying out this stuff as I write, but I guess I am sending this anyway
because I believe this is a misfeature/bug if it actually works this way.
IMHO, vectors in a DispatchAction should be a special semantic case WRT
forms
getting reset.

Thanks for your consideration of this,

-b

 -Original Message-
 From: James Mitchell [mailto:jmitchtx;telocity.com]
 Sent: Monday, October 28, 2002 1:21 AM
 To: Struts Users Mailing List
 Subject: RE: Problem with multiple html(jsp) pages sharing one form
 (actionform)


 Ok, sorry, I didn't see that, although I tend to use the same
 action (and
 jsp) for my wizards anyway.

 So you are saying that you are not sure where the data is lost?

 One way I might test this:

 (Assuming you have)
 Step 1: jsp1 - fowardaction1 - jsp2
 Step 2: jsp2 - fowardaction2 - jsp3
 Step 3: jsp3 - ejbaction - jsp


 Do this.
 Step 1: jsp1 - fowardaction1 - jsp2
 Step 2: jsp2 - fowardaction2 - jsp3
 now hit your browser's back button one time
 now hit your browser's refresh button

 you will be prompted to re-submit the form data, click ok (or
 yes, depending
 on your browser)

 At this point you are sitting at the end of Step 1 (or the
 beginning of Step
 2, same thing).
 Now if the data had been stored in the session correctly in
 Step 1, then
 your form should be sitting there already filled out for you.

 Try that.

 James Mitchell
 Software Engineer/Struts Evangelist
 http://www.open-tools.org

 Only two things are infinite, the universe and human
 stupidity, and I'm not
 sure about the former.
 - Albert Einstein (1879-1955)


  -Original Message-
  From: Derek Lin [mailto:dereklin;hotmail.com]
  Sent: Monday, October 28, 2002 1:11 AM
  To: Struts Users Mailing List
  Subject: Re: Problem with multiple html(jsp) pages sharing one form
  (actionform)
 
 
  James,
 
  Please be patient with me.  I just want to point out this
 sentence in that
  paragraph:
  Likewise, the various pages of the same form should all be
  submitted to the
  same Action Class.
  Now, doesn't that say the same Action Class?
 
  If you still think what I have should work, then maybe something
  is wrong in
  my EJBRegistrationAction class (the last Action Class in the
  chain.)  Let me
  just mention that I was using one single form with request scope for
  this--and that was working.
 
  Thanks for helping.
 
  -- Derek
 
  - Original Message -
  From: James Mitchell [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Sunday, October 27, 2002 9:46 PM
  Subject: RE: Problem with multiple html(jsp) pages sharing one form
  (actionform)
 
 
   No, it says single ActionForm bean, which you are already doing.
  ^^
  
   I'm afraid you'll have to do a bit more debugging.
 Unless you want to
  step
   through your code in debug, I would try creating your own
 ForwardAction
  with
   a few print statements to narrow down exactly where they might
  be getting
   cleared.
  
  
  
   James Mitchell
   Software Engineer/Struts Evangelist
   http://www.open-tools.org
  
   Only two things are infinite, the universe and human
 stupidity, and I'm
  not
   sure about the former.
   - Albert Einstein (1879-1955)
  
  
-Original Message-
From: Derek Lin [mailto:dereklin;hotmail.com]
Sent: Monday, October 28, 2002 12:36 AM
To: Struts Users Mailing List
Subject: Re: Problem with multiple html(jsp) pages
 sharing one form
(actionform)
   
   
I am using the 1.1beta version(beta1 I guess, are there any
changes between

[ANNOUNCE] 2 Part Series on Onjava.com

2002-11-08 Thread Sue Spielman
For those interested:
Part I of a two part series on Struts v1.1 is posted on Onjava.com at

http://www.onjava.com/pub/a/onjava/pub/a/2002/11/06/struts1.html

Part II will be posted next week.

Regards,
Sue

'The Struts Framework: A Practical Guide for Java Programmers' (MK) is now 
shipping. Order your copy now from the featured online store: 
http://www.softpro.com/1-55860-862-1.html

Switchback Software LLC.
http://www.switchbacksoftware.com
Providing software development and consulting services for enterprise 
business, web, and wireless applications.





_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Re: Validate and nightly build problem

2002-11-08 Thread Rob Leland
Michael Delamere wrote:


I tried the registration and to me it seemed not to work

Unless of course it is normal behaviour that when leaving the fields
blank that it takes me to the start screen


Yes, that is the behavior.

If the field MUST be filled in then in your validator.xml
you need to add `required' so for an integer field
depends=required,integer would then cause
an error message to be displayed when the submit button is
pressed.

-Rob




Infact, the same happens when populating all the fields is this
correct?

Regards,

Michael


If the fields are blank and you hit submit then yes,
the default is to go back to the main page


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




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

2002-11-08 Thread Sridhara S.N.
I think you have the submit statement in onClick event(javascript) of the
button, remove the submit statement.


- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 9:38 AM
Subject: I am seeing double executions of my actions on a single form submit


 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:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




RE: Don't want the ActionForm to refill my form.

2002-11-08 Thread Mohan Radhakrishnan
Hi,
   Aren't form beans reused ? I thought only the reset is called.
Thanks,
Mohan

-Original Message-
From: Karr, David [mailto:david.karr;attws.com]
Sent: Tuesday, November 05, 2002 9:38 PM
To: Struts Users Mailing List
Subject: RE: Don't want the ActionForm to refill my form.


Is your action scope set to session or request?  I would guess
it's set to session.  I believe if you set it to request, your form
bean will be created on each request.

 -Original Message-
 From: Marcus Biel [mailto:Marcus.Biel;bmw.de]
 Sent: Tuesday, November 05, 2002 6:25 AM
 To: [EMAIL PROTECTED]
 Subject: Don't want the ActionForm to refill my form.
 
 
 I want to add data records using a jsp.
 When the user entered the data, and hits submit, an actions adds the
 data record to the database.
 When this is done, it forwards to the same page again, so 
 that the user
 can add more data records.
 
 The problem is that the form gets filled by the ActionForm again, when
 forwarding.
 That's a bit confusing for a user who simply wants to add new 
 data, but
 he gets shown the old data he just entered.
 
 Any ideas how to prevent the Actionform from refilling the form on the
 jsp ?
 
 
 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




html:options: how do I preselect some of the items?

2002-11-08 Thread Brian Topping
Hi all,

Quick question that the online docs aren't helping me answer:

I have a snippet:

bean:define id=foo name=FooForm property=foo
type=java.util.Collection/
html:form action=/doFoo.do
  html:select size=5 property=foofield
html:options collection=foo labelProperty=labelAttr
property=valueAttr/
  /html:select
/html:form

I can fill the html:select with the contents of the foo collection just
fine, but I am having problems understanding how to preselect items from the
rendered list.  In other words, if there are some large number of items in
the Collection, I'd like to be able to preselect some subset of them.
Ideally, I'd like to do so with a second collection that is somehow passed to
html:options.

Is this possible?

thanks for your consideration!

Brian

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




How to set DynaValidatorForm.page in XML

2002-11-08 Thread Derek Lin
Is it possible to set the page field in org.apache.struts.validator.DynaValidatorForm 
in the struts-config.xml file?  I need to set its value to tell my validator the 
current page of the multi-page form.  My action is 
org.apache.struts.actions.ForwardAction, so I don't think I can use it to set the page 
value.  (I've tried many ways for over an hour without results.)

Anyone has any ideas?

Thanks,

Derek



Re: html:options: how do I preselect some of the items?

2002-11-08 Thread David M. Karr
 Brian == Brian Topping [EMAIL PROTECTED] writes:

Brian Hi all,
Brian Quick question that the online docs aren't helping me answer:

Brian I have a snippet:

Brian bean:define id=foo name=FooForm property=foo
Brian type=java.util.Collection/
Brian html:form action=/doFoo.do
Brian   html:select size=5 property=foofield
Brian html:options collection=foo labelProperty=labelAttr
Brian property=valueAttr/
Brian   /html:select
Brian /html:form

Brian I can fill the html:select with the contents of the foo collection just
Brian fine, but I am having problems understanding how to preselect items from the
Brian rendered list.  In other words, if there are some large number of items in
Brian the Collection, I'd like to be able to preselect some subset of them.
Brian Ideally, I'd like to do so with a second collection that is somehow passed 
to
Brian html:options.

Look at the struts-exercise-taglib for an example of this.  The key is the
html:select tag.  The property attibute has to refer to a Collection, not a
scalar.  You'll also need to set the multiple attribute to true.  I believe
you're right that the description of html:select doesn't make this clear.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP



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




Selected value population

2002-11-08 Thread Mohan Radhakrishnan
Hi,
   Checking if I understand the form flow right.

1. Tag handlers populate values in my JSP.
2. User hits submit button.
3. Reset is called.
4. Selected values go right back to the same form if the getters and
setters are right.
5. Validate is called if validate=true
4. Action is called.

Now if I print the values by accessing the getters in the form ( in my
action ), it should print. 

Why would I get nulls for all values ? What could be wrong ? Appreciate any
pointers.
Thanks,
Mohan


   

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