Error during build.

2002-12-19 Thread Simon Kelly
Hi all,

Could someone shine some light on this error.  I am using "Sun One Studio 4"
to do my development on.  But when I run the build file (This is the one in
blank.war) I get the following during the javadoc generation.

Generating Javadoc
Javadoc execution
javadoc: invalid flag: -300230035.tmp
usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]

Does any one know how the build.xml is getting the tmp file name, and why it
would use a negative integer to generate a tmp file name?

Regards (And a Merry Christmas to one and all)

Simon

PS
For those actually developing Struts if you're reading.

I spotted a possible typo in the build.xml in the blank.war.  In the local
systems path declaration, souldn't the name and value jar files match?











Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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




Re: how can I use the tag value in another tag?

2002-12-19 Thread Eddie Bush
cnyinhua wrote:


I use the tomcat4.0.3


Please upgrade.  That isn't the current release for the 4.0-series 
tomcat.  There have been bugfixes and ... even a security patch I think 
since that came out.

How to mark ActionServlet as load on startup?


Here's an excerpt form the web.xml for the example application:

 
   action
   org.apache.struts.action.ActionServlet
   
 config
 /WEB-INF/struts-config.xml
   
   2
 


Thx
Which servlet container are you using?  Is the ActionServlet marked as 
load on startup?  It should be.

 

Can anybody give me a hand?
Any help will welcome!

Best regard!

Frank
Software Engineer
Bleum Incorporated
9E East Building, Hi-Tech King World
668 East Beijing Road.
Shanghai, P.R.C.21
Phone: (8621) 5308 1196
http:// www.bleum.com



--
Eddie Bush





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




multithreaded env

2002-12-19 Thread Amit Badheka
Hi All,

I am working on a struts application. But I am not sure that it will work properly in 
multithreaded environment.

Can anybody suggest me what is the best way to make sure that application work fine in 
such environment.

Thank You.



RE: how can I use the tag value in another tag?

2002-12-19 Thread cnyinhua
Thank you.
I hope the jsp file can have script as little as possible. Do you have
some other way to implement it?


cnyinhua wrote:

>Hi, all
>I'm new in struts.
>Now I want to show some information in a tag, which is showed by
another
>tag.
>property="pagenumber">-1">previous
>
>
You can't embed one tag within another like you're doing here.  Take a 
look at the struts-el contributed taglib by David M. Karr -- you can 
(usually) find it in the contrib folder of the Struts distribution.  (I 
say usually because there's some weird build anomoly that's causing it 
to disappear from time to time).  Using struts-el, you could do 
something like:

previous

>it doesn't work.
>And I even can't use the 
> to show the
>pagenumber,
>it tells that Cannot find message resources under key
>org.apache.struts.action.MESSAGE.
>
Which servlet container are you using?  Is the ActionServlet marked as 
load on startup?  It should be.

>Can anybody give me a hand?
>Any help will welcome!
> 
>Best regard!
> 
>Frank
>Software Engineer
>Bleum Incorporated
>9E East Building, Hi-Tech King World
>668 East Beijing Road.
>Shanghai, P.R.C.21
>Phone: (8621) 5308 1196
>http:// www.bleum.com
>

-- 
Eddie Bush





--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: how can I use the tag value in another tag?

2002-12-19 Thread cnyinhua
I use the tomcat4.0.3
How to mark ActionServlet as load on startup?
Thx
Which servlet container are you using?  Is the ActionServlet marked as 
load on startup?  It should be.

>Can anybody give me a hand?
>Any help will welcome!
> 
>Best regard!
> 
>Frank
>Software Engineer
>Bleum Incorporated
>9E East Building, Hi-Tech King World
>668 East Beijing Road.
>Shanghai, P.R.C.21
>Phone: (8621) 5308 1196
>http:// www.bleum.com
>

-- 
Eddie Bush





--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: how can I use the tag value in another tag?

2002-12-19 Thread Eddie Bush
cnyinhua wrote:


Hi, all
I'm new in struts.
Now I want to show some information in a tag, which is showed by another
tag.
-1">previous



You can't embed one tag within another like you're doing here.  Take a 
look at the struts-el contributed taglib by David M. Karr -- you can 
(usually) find it in the contrib folder of the Struts distribution.  (I 
say usually because there's some weird build anomoly that's causing it 
to disappear from time to time).  Using struts-el, you could do 
something like:

previous

it doesn't work.
And I even can't use the 
 to show the
pagenumber,
it tells that Cannot find message resources under key
org.apache.struts.action.MESSAGE.

Which servlet container are you using?  Is the ActionServlet marked as 
load on startup?  It should be.

Can anybody give me a hand?
Any help will welcome!

Best regard!

Frank
Software Engineer
Bleum Incorporated
9E East Building, Hi-Tech King World
668 East Beijing Road.
Shanghai, P.R.C.21
Phone: (8621) 5308 1196
http:// www.bleum.com



--
Eddie Bush





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




how can I use the tag value in another tag?

2002-12-19 Thread cnyinhua
Hi, all
I'm new in struts.
Now I want to show some information in a tag, which is showed by another
tag.
-1">previous

it doesn't work.
And I even can't use the 
 to show the
pagenumber,
it tells that Cannot find message resources under key
org.apache.struts.action.MESSAGE.
Can anybody give me a hand?
Any help will welcome!
 
Best regard!
 
Frank
Software Engineer
Bleum Incorporated
9E East Building, Hi-Tech King World
668 East Beijing Road.
Shanghai, P.R.C.21
Phone: (8621) 5308 1196
http:// www.bleum.com
 



RE: [ANNOUNCEMENT] Commons Validator 1.0.1 Released

2002-12-19 Thread Martin Cooper


On Mon, 16 Dec 2002, Heligon Sandra wrote:

> To update the Struts-validator, do we just have to replace the
> commons-validator.jar
> file delivered with Struts by the new file available in the
> validator-1.0.1.zip ?

Yes, that's correct.

--
Martin Cooper


>
> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: 16 December 2002 05:15
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: [ANNOUNCEMENT] Commons Validator 1.0.1 Released
>
>
> The Commons Validator team is pleased to announce the release of Validator
> 1.0.1. This release contains only bug fixes - there are no new features in
> this release.
>
> The binary and source distributions are available at:
>
> http://jakarta.apache.org/builds/jakarta-commons/release/commons-validator/v
> 1.0.1/
>
> The Validator web site is located at:
>
> http://jakarta.apache.org/commons/validator/
>
> --
> Martin Cooper
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




template

2002-12-19 Thread Amit Badheka
HI All,

I am using struts templates in my project. I am including three pages in my template.

My requirements are such that I want to open a jsp page in new window (onlys that 
single page). 
Is it a right idea by the mean of MVC?

also, the problem I am having is when I tried to do this, main window gets refreshed 
on click event ( thought nothing is specified on submit).

Is anybody has any idea??

please help.





ValidatorForm

2002-12-19 Thread Peng Tuck Kwok
I'm having trouble with my ValidatorForm bean. I'm getting this message 
'No getter method for property action of 
beanorg.apache.struts.taglib.html.BEAN '
Is my ValidatorForm bean being written properly ? I'd appreciate some 
comments. Here's my code below:

package com.makmal.struts.forms;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.validator.ValidatorForm;


public class LoginForm extends ValidatorForm implements 
java.io.Serializable {


private String loginName;
private String passwordValue;

public LoginForm() {
}

public String getLoginName() {
return loginName ;
}
public void setLoginName(String login_value) {
loginName = login_value ;
}

public String getPasswordValue() {
return passwordValue ;
}
public void setPasswordValue(String password_value) {
passwordValue = password_value ;
}

public void reset(ActionMapping mapping, HttpServletRequest 
request)  {
loginName = null ;
passwordValue = null ;
}



}



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



RE: Absolute uri problem

2002-12-19 Thread Daniel Grey
Thanks very much - this has been sidetracked by another error now
d

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: RE: Absolute uri problem


The tld files come with the struts distro.  Look in the tiles tld and
use 
the uri listed in there.  The uris have changed since beta 2; they no
longer 
contain version numbers.

David






>From: "Daniel Grey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: RE: Absolute uri problem
>Date: Thu, 19 Dec 2002 17:01:02 -0800
>
>I tried WEB-INF/struts-tiles.tld with no luck
>do you know where the latest version or a stable version of
> >http://jakarta.apache.org/struts/tags-tiles-1.1
>exists???
>thanks
>d
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, December 19, 2002 11:54 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Absolute uri problem
>
>
>You're using the wrong uri for the taglib.  Check the tlds for the
>correct
>uris.
>
>David
>
>
>
>
>
>
> >From: "Daniel Grey" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
<[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: Absolute uri problem
> >Date: Thu, 19 Dec 2002 09:57:35 -0800
> >
> >I'm deploying a .war that contains Struts and am getting an error in
> >some .jsp's that reference this absolute uri
> >http://jakarta.apache.org/struts/tags-tiles-1.1
> >
> >I've searched far & wide and found no answers - does anyone have a
clue
> >on this?
> >THANKS
> >
> >002-12-17 13:53:26,413 ERROR [org.jboss.web.localhost.Engine]
> >StandardWrapperValve[home]: Servlet.service() for servlet home threw
> >exception
> >org.apache.jasper.JasperException: null(-1,-1) This absolute uri
> >(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved
in
> >either web.xml or the jar files deployed with this application
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
>
>
>_
>STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


_
MSN 8 limited-time offer: Join now and get 3 months FREE*. 
http://join.msn.com/?page=dept/dialup&xAPID=42&PS=47575&PI=7324&DI=7474&;
SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_newmsn8
ishere_3mf


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: [Tiles] definitionsFactory problem

2002-12-19 Thread Daniel Ritchey
Take a look the controllerClass attribute of the definition element in the
tiles config.  It allows you to specify a controller class of type package
org.apache.struts.tiles.Controller.  This class is executed before the tile
it is associated with is rendered and can be used to dynamically alter the
component context.

I personally would prefer something a little more declarative, something
similar to Cocoon's Selectors.

So you could do something like the following

 
 

 
 
 
  
  

Dan
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 5:52 PM
Subject: [Tiles] definitionsFactory problem


I'm not sure if this is a user problem or a dev problem or something that
should eventually be submitted as a bug.  Let me know if it should really be
posted to the dev list.

Here's what I'm trying to do:  I want to be able to parameterize Tiles
definitions with values set in an ActionForward.  This allows us to
customize a Tiles definition with specific properties for an action without
extending a Tiles definition.  Eventually we could even use it to customize
the definition with runtime properties if we so desired.  Consider the
following template def.


  
  
  


To customize this definition to display a customer page we have to do this:


  


This is fine, except when you have a large application with over 100 screens
or so.  Then it would be nice if developers could have just one Tiles
definition as outlined in the main.template definition above and write
action forwards like this:


  


I've gotten this to work by extending and hacking up TilesRequestProcessor.
But it would be much easier if TilesRequestProcessor was written a little
differently.  I came up with two major drawbacks with TilesRequestProcessor.
They are:

1)  definitionsFactory is private.  To extend TilesRequestProcessor, I have
to override all (both) methods that use definitionsFactory and create my own
instance of it.  Wouldn't have to do that if the factory was protected.

2)  processTilesDefinition() does not have access to the ForwardConfig to
get properties off of it.

So, before I post this to the dev list or create an enhancement request, I
thought I'd ask here:

1.  Is there something I missed in the design for making definitionsFactory
private?  Is there a good reason for this that I missed or was it just an
oversight to make it private when TilesRequestProcessor was created?

2.  Is there a reason the ForwardConfig is not passed into
processDefinitionsFactory?  If the interface was changed to pass this object
in, one could override it to take advantage of custom ActionForward
properties.

3.  Is there some reason why I shouldn't be doing what I'm trying to do or
is there a better approach?

Thanks,
Greg

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Absolute uri problem

2002-12-19 Thread David Graham
The tld files come with the struts distro.  Look in the tiles tld and use 
the uri listed in there.  The uris have changed since beta 2; they no longer 
contain version numbers.

David






From: "Daniel Grey" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Absolute uri problem
Date: Thu, 19 Dec 2002 17:01:02 -0800

I tried WEB-INF/struts-tiles.tld with no luck
do you know where the latest version or a stable version of
>http://jakarta.apache.org/struts/tags-tiles-1.1
exists???
thanks
d

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Absolute uri problem


You're using the wrong uri for the taglib.  Check the tlds for the
correct
uris.

David






>From: "Daniel Grey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Absolute uri problem
>Date: Thu, 19 Dec 2002 09:57:35 -0800
>
>I'm deploying a .war that contains Struts and am getting an error in
>some .jsp's that reference this absolute uri
>http://jakarta.apache.org/struts/tags-tiles-1.1
>
>I've searched far & wide and found no answers - does anyone have a clue
>on this?
>THANKS
>
>002-12-17 13:53:26,413 ERROR [org.jboss.web.localhost.Engine]
>StandardWrapperValve[home]: Servlet.service() for servlet home threw
>exception
>org.apache.jasper.JasperException: null(-1,-1) This absolute uri
>(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
>either web.xml or the jar files deployed with this application
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>


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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 limited-time offer: Join now and get 3 months FREE*. 
http://join.msn.com/?page=dept/dialup&xAPID=42&PS=47575&PI=7324&DI=7474&SU= 
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_newmsn8ishere_3mf


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



RE: How to split a tiles section using another definition ??

2002-12-19 Thread Todd Pierce
Why not maintain two templates, one for a split body and one for an intact
body? 

-Original Message-
From: Rémy Giard [mailto:[EMAIL PROTECTED]]
Sent: Friday, 20 December 2002 6:58 AM
To: [EMAIL PROTECTED]
Subject: How to split a tiles section using another definition ??


Hi,

I am using a layout.jsp page that use the tiles to fill the body section of
the page.  I want to create a tile definition that could split the body in
two sections (top and bottom).  I thought about creating a definition that
could have another definition as body value and then use that new definition
to have a top and bottom section.  But what should i set as "path" for this
new definition ??

I also thought about using the following way :













... but i get an error : "Error - Tag Insert : No value found for attribute
'top'.'".  The split.jps file juste insert tiles top and bottom.  Do you
have any idea of what i should do to get it working ??

Rémy Giard
Cogiscan Inc.
50, rue de Gaspé, Bloc A5
Bromont, Québec, Canada
J2L 2N8



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




RE: Absolute uri problem

2002-12-19 Thread Daniel Grey
I tried WEB-INF/struts-tiles.tld with no luck
do you know where the latest version or a stable version of 
>http://jakarta.apache.org/struts/tags-tiles-1.1
exists???
thanks
d

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Absolute uri problem


You're using the wrong uri for the taglib.  Check the tlds for the
correct 
uris.

David






>From: "Daniel Grey" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Absolute uri problem
>Date: Thu, 19 Dec 2002 09:57:35 -0800
>
>I'm deploying a .war that contains Struts and am getting an error in
>some .jsp's that reference this absolute uri
>http://jakarta.apache.org/struts/tags-tiles-1.1
>
>I've searched far & wide and found no answers - does anyone have a clue
>on this?
>THANKS
>
>002-12-17 13:53:26,413 ERROR [org.jboss.web.localhost.Engine]
>StandardWrapperValve[home]: Servlet.service() for servlet home threw
>exception
>org.apache.jasper.JasperException: null(-1,-1) This absolute uri
>(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
>either web.xml or the jar files deployed with this application
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




[Tiles] definitionsFactory problem

2002-12-19 Thread Greg.Reddin
I'm not sure if this is a user problem or a dev problem or something that should 
eventually be submitted as a bug.  Let me know if it should really be posted to the 
dev list.

Here's what I'm trying to do:  I want to be able to parameterize Tiles definitions 
with values set in an ActionForward.  This allows us to customize a Tiles definition 
with specific properties for an action without extending a Tiles definition.  
Eventually we could even use it to customize the definition with runtime properties if 
we so desired.  Consider the following template def.


  
  
  


To customize this definition to display a customer page we have to do this:


  


This is fine, except when you have a large application with over 100 screens or so.  
Then it would be nice if developers could have just one Tiles definition as outlined 
in the main.template definition above and write action forwards like this:


  


I've gotten this to work by extending and hacking up TilesRequestProcessor.  But it 
would be much easier if TilesRequestProcessor was written a little differently.  I 
came up with two major drawbacks with TilesRequestProcessor.  They are:

1)  definitionsFactory is private.  To extend TilesRequestProcessor, I have to 
override all (both) methods that use definitionsFactory and create my own instance of 
it.  Wouldn't have to do that if the factory was protected.

2)  processTilesDefinition() does not have access to the ForwardConfig to get 
properties off of it.

So, before I post this to the dev list or create an enhancement request, I thought I'd 
ask here:

1.  Is there something I missed in the design for making definitionsFactory private?  
Is there a good reason for this that I missed or was it just an oversight to make it 
private when TilesRequestProcessor was created?

2.  Is there a reason the ForwardConfig is not passed into processDefinitionsFactory?  
If the interface was changed to pass this object in, one could override it to take 
advantage of custom ActionForward properties.

3.  Is there some reason why I shouldn't be doing what I'm trying to do or is there a 
better approach?

Thanks,
Greg

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




RE: html:select woes

2002-12-19 Thread Karr, David
You need to have an "html:form" element.  It needs to encapsulate your
"select" and "submit" elements.  It needs to specify your action path.
Look at the "struts-exercise-taglib" and numerous other examples for
building a form with form elements.

> -Original Message-
> From: [EMAIL PROTECTED]
> 
> Hi all,
> 
> I'm trying to figure out how to use the html:select tag and 
> am having no
> luck.  When I execute the jsp, I'm getting "Cannot find bean 
> under name
> org.apache.struts.taglib.html.BEAN."  I've looked at the docs and the
> html-select.jsp example but can't see what's different about 
> my case.  My
> struts-config file has this:
> 
> 
> 
> and this:
> 
>  type="com.wfsc.cam.actions.HelloAction" 
> name="loggersForm" 
> input="/jsp/loggers.jsp" 
> validate="false"
> scope="session">
>   
> 
> 
> I've tried with and without the "input" attr.  My LoggersForm 
> class extends
> ActionForm and has one String property called "newLevel" 
> that's null by
> default.  I also have a reset() method that nulls-out 
> newLevel.  My jsp does
> this:
> 
> 
>  class="com.wfsc.cam.ui.LoggersForm"/>
> 
> One
> 
> Submit
> 
> 
> The only relevant difference I can see between this and the 
> html-select.jsp
> example is that my jsp is under /jsp, but I've tried it both 
> ways and it
> doesn't seem to matter.
> 
> I'd appreciate a clue.
> 
> thanks
> 
> john
> 
> john gregg
> Wells Fargo Service Corporation
> Minneapolis, MN
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


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




html:select woes

2002-12-19 Thread John . E . Gregg
Hi all,

I'm trying to figure out how to use the html:select tag and am having no
luck.  When I execute the jsp, I'm getting "Cannot find bean under name
org.apache.struts.taglib.html.BEAN."  I've looked at the docs and the
html-select.jsp example but can't see what's different about my case.  My
struts-config file has this:



and this:





I've tried with and without the "input" attr.  My LoggersForm class extends
ActionForm and has one String property called "newLevel" that's null by
default.  I also have a reset() method that nulls-out newLevel.  My jsp does
this:




One

Submit


The only relevant difference I can see between this and the html-select.jsp
example is that my jsp is under /jsp, but I've tried it both ways and it
doesn't seem to matter.

I'd appreciate a clue.

thanks

john

john gregg
Wells Fargo Service Corporation
Minneapolis, MN

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




BeanUtil.copyProperties problem with casted ActionForm

2002-12-19 Thread adam kramer

I keep getting an error in my Action where I am using
BeanUtils.copyProperties to copy from a ActionForm to a bean like so:
GrantForm grantForm = (GrantForm) form;
BeanUtils.copyProperties(grant, grantForm);

and i get the exception:
java.lang.IllegalArgumentException: argument type mismatch
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1669)

The weird thing is I don't get the error when I try:
GrantForm grantForm = new GrantForm();
BeanUtils.copyProperties(grant, grantForm);

So it only occurs when I cast the passed in form parameter to the right
form type.

Has anyone else had similar problems? I can say that my form does have
ArrayLists that my bean does not have but they are completely different
attribute names.

-adam k.


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




RE: javax link error

2002-12-19 Thread Daniel Grey
ooo
i fell hard for that one
thanks

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 1:10 PM
To: 'Struts Users Mailing List'
Subject: RE: javax link error


Sorry I didn't get back sooner, I've been in meetings most of the day.

I was kidding about that setting.  This topic is so far removed from
Struts, that you would have much better luck at J2EE-Interest.

 
http://swjscmail1.java.sun.com/cgi-bin/wa?S2=j2ee-interest&q=LinkageErro
r&s=&f=&a=&b=



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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 3:48 PM
> To: Struts Users Mailing List
> Subject: RE: javax link error
> 
> 
> I tried putting ThrowLinkageError=false in jboss-service.xml 
> - no help I would really appreciate it if you could tell the 
> file and format this parameter should be in Thanks d
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 11:25 AM
> To: 'Struts Users Mailing List'
> Subject: RE: javax link error
> 
> 
> Oh, I see the problem, did you forget to set 
> ThrowLinkageError=false in your config file?
> 
> 
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
> 
> "C makes it easy to shoot yourself in the foot; C++ makes it 
> harder, but when you do, it blows away your whole leg." 
> - Bjarne Stroustrup
> 
> 
> > -Original Message-
> > From: Daniel Grey [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 19, 2002 2:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: javax link error
> > 
> > 
> > trying to deploy an .ear that was ok but now giving link error:
> > 
> > java.lang.LinkageError: loader constraints violated when
> > linking javax/jms/XATopicSession class
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: struts-el:submit question

2002-12-19 Thread Dan Tran
Hi David,

First, the problem went away, and I cant reproduce it.
I could have been the way to declare html-el somehow mapped to the regular
strut html tag.

Second,   I have a form with a submit button's label varied depending on a
property of my action form bean, in this case it is an "action" property.


  
 

  

 


Thank you for patiently helping me here

-D
- Original Message -
From: "Karr, David" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 12:36 PM
Subject: RE: struts-el:submit question


Putting the bean into your scope is certainly required, but neglecting to do
that shouldn't have caused the symptom you saw.  If the bean wasn't found,
it should have resulted in an empty string, not the string "${action}".

You'll have to be more specific than "how do I pick up the a property within
my form?".

> -Original Message-
> From: Dan Tran [mailto:[EMAIL PROTECTED]]
>
> Hi David,
>
> It is my fault,  The variable action is a property of my
> form.  When I move
> it to the request object  via
> request.setAttribute("action", ) before forward to the jsp then
> html-el:submit  works.
>
>
> Question,  how do I pick up the a property within my form?
>
> ie 
> Thanks
>
>
>
> - Original Message -
> From: "Karr, David" <[EMAIL PROTECTED]>
>
> We would need to see more of your real JSP code, including the taglib
> directives, and not just a "simulated" copy, but the real code.
>
> > -Original Message-
> > From: Dan Tran [mailto:[EMAIL PROTECTED]]
> >
> > Hi,
> >
> > I have this code
> >
> > 
> > mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:


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




RE: javax link error

2002-12-19 Thread James Mitchell
Sorry I didn't get back sooner, I've been in meetings most of the day.

I was kidding about that setting.  This topic is so far removed from
Struts, that you would have much better luck at J2EE-Interest.

 
http://swjscmail1.java.sun.com/cgi-bin/wa?S2=j2ee-interest&q=LinkageErro
r&s=&f=&a=&b=



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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 3:48 PM
> To: Struts Users Mailing List
> Subject: RE: javax link error
> 
> 
> I tried putting ThrowLinkageError=false in jboss-service.xml 
> - no help I would really appreciate it if you could tell the 
> file and format this parameter should be in Thanks d
> 
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 11:25 AM
> To: 'Struts Users Mailing List'
> Subject: RE: javax link error
> 
> 
> Oh, I see the problem, did you forget to set 
> ThrowLinkageError=false in your config file?
> 
> 
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
> 
> "C makes it easy to shoot yourself in the foot; C++ makes it 
> harder, but when you do, it blows away your whole leg." 
> - Bjarne Stroustrup
> 
> 
> > -Original Message-
> > From: Daniel Grey [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 19, 2002 2:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: javax link error
> > 
> > 
> > trying to deploy an .ear that was ok but now giving link error:
> > 
> > java.lang.LinkageError: loader constraints violated when
> > linking javax/jms/XATopicSession class
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >  [EMAIL PROTECTED]>
> > For
> > additional commands, 
> > e-mail: 
> > 
> > 
> 
> 
> --
> To unsubscribe, e-mail: 
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




Re: beanutils.populate with formbeans and vectors

2002-12-19 Thread Richard Yee
Michael,
This code works:

TestActionForm.java
---
package com.test;

import java.util.*;
import org.apache.struts.action.*;

public class TestActionForm extends ActionForm
{
  private ArrayList myItems = new ArrayList();
  public TestActionForm()
  {
myItems.add(new MyObject("John Doe", "1 Main
St."));
myItems.add(new MyObject("Jane Doe", "2 Main
St."));
  }

  public Collection getMyItems() {
return myItems;
  }

  public void setMyItems(ArrayList items) {
myItems = items;
  }

  public Object getItem(int index) {
 if (index >= myItems.size())
   return new MyObject();
 return myItems.get(index);
  
  }

  /**
   * setter for indexed property in myItems
   */
public void setMyItem(int index, Object value) {
  int size=myItems.size();
  if (index >= size) {
for(int i=size; i<=index; i++) {
  myItems.add(new MyObject());
}
  }
  myItems.set(index,value);
}
}

TestAction.java
---
package com.test;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import java.io.IOException;
import java.util.Collection;
import java.util.Vector;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class TestAction extends Action 
{
  /**
   * This is the main action called from the Struts
framework.
   * @param mapping The ActionMapping used to select
this instance.
   * @param form The optional ActionForm bean for this
request.
   * @param request The HTTP Request we are
processing.
   * @param response The HTTP Response we are
processing.
   */
  public ActionForward perform(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws IOException,
ServletException
  {
TestActionForm testForm = (TestActionForm) form;
System.out.println("TestAction.perform()");
return mapping.findForward("success");
  }
}

MyObject.java
-
package com.test;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

public class MyObject
{
  
  private String name = null;
  private String address = null;

  public MyObject() {
name = "";
address = "";
  }

  public MyObject(String _name, String _address)
  {
name = _name;
address = _address;
  }
  
  /**
   * getter method for name
   */
  public String getName() {
return (name);
  }
  /**
   * setter method for name
   * @param - name;
   */
  public void setName(String _name) {
name = _name;
  }
  
  /**
   * getter method for address
   */
  public String getAddress() {
return (address);
  }
  /**
   * setter method for address
   * @param - address;
   */
  public void setAddress(String _address) {
address = _address;
  }

  public String toString() {
return name + ", " + address + "/n";
  }
}



In the JSP page


in iterate  


The output:
in iterate John Doe 1 Main St.
in iterate Jane Doe 2 Main St.


Hope that helps,

Richard






--- Michael Olszynski <[EMAIL PROTECTED]> wrote:
> I do it like this:
> 
>  name="timeProofForm"
> property="timeProofList">
> 
> property="fromHour" indexed="true"/>:
> property="fromMinute"
> indexed="true"/> 
>  
> 
> 
> --
> Fehlerfreie Software wirkt weniger komplex und
> diskreditiert damit den
> Entwickler!
> - Original Message -
> From: "Richard Yee" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 7:16 PM
> Subject: Re: beanutils.populate with formbeans and
> vectors
> 
> 
> > Michael,
> > How are you accessing the indexed property in the
> JSP?
> >
> > -Richard
> >
> > --- Michael Olszynski <[EMAIL PROTECTED]>
> wrote:
> > > Hi Richard,
> > >
> > > thanks again for your quick reply. I thought I
> need
> > > to subclass Vector,
> > > because I don´t save plain Strings in my Vector,
> I
> > > save Beans in it. So
> > > therefore I thought I need to have a polymorhism
> to
> > > save myself the work to
> > > write always indexed setters and getters . But
> > > anyway, I put the code you
> > > wrote me in my bean, and I still get errors. I
> give
> > > you a small snippet of
> > > my code (I tried to remove everything
> unnecessary)
> > > and I also attach the
> > > errormessage after the samplecode. I´d really
> > > appreciate if you could look
> > > at it for a short moment. Thanks a lot
> > >
> > > Take care Michael
> > >
> > >
> 
> > > public class TimeProofFormBean 

RE: javax link error

2002-12-19 Thread Daniel Grey
I tried putting ThrowLinkageError=false in jboss-service.xml - no help
I would really appreciate it if you could tell the file and format this
parameter should be in
Thanks
d

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 11:25 AM
To: 'Struts Users Mailing List'
Subject: RE: javax link error


Oh, I see the problem, did you forget to set ThrowLinkageError=false in
your config file?


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: javax link error
> 
> 
> trying to deploy an .ear that was ok but now giving link error:
> 
> java.lang.LinkageError: loader constraints violated when 
> linking javax/jms/XATopicSession class
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: struts-el:submit question

2002-12-19 Thread Karr, David
Putting the bean into your scope is certainly required, but neglecting to do that 
shouldn't have caused the symptom you saw.  If the bean wasn't found, it should have 
resulted in an empty string, not the string "${action}".

You'll have to be more specific than "how do I pick up the a property within my form?".

> -Original Message-
> From: Dan Tran [mailto:[EMAIL PROTECTED]]
> 
> Hi David,
> 
> It is my fault,  The variable action is a property of my 
> form.  When I move
> it to the request object  via
> request.setAttribute("action", ) before forward to the jsp then
> html-el:submit  works.
> 
> 
> Question,  how do I pick up the a property within my form?
> 
> ie  
> Thanks
> 
> 
> 
> - Original Message -
> From: "Karr, David" <[EMAIL PROTECTED]>
> 
> We would need to see more of your real JSP code, including the taglib
> directives, and not just a "simulated" copy, but the real code.
> 
> > -Original Message-
> > From: Dan Tran [mailto:[EMAIL PROTECTED]]
> >
> > Hi,
> >
> > I have this code
> >
> > 
> > mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: struts-el:submit question

2002-12-19 Thread Dan Tran
Hi David,

It is my fault,  The variable action is a property of my form.  When I move
it to the request object  via
request.setAttribute("action", ) before forward to the jsp then
html-el:submit  works.


Question,  how do I pick up the a property within my form?

ie 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 11:23 AM
Subject: RE: struts-el:submit question


We would need to see more of your real JSP code, including the taglib
directives, and not just a "simulated" copy, but the real code.

> -Original Message-
> From: Dan Tran [mailto:[EMAIL PROTECTED]]
>
> Hi,
>
> I have this code
>
> 
> mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:


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




Re: Absolute uri problem

2002-12-19 Thread David Graham
You're using the wrong uri for the taglib.  Check the tlds for the correct 
uris.

David






From: "Daniel Grey" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Absolute uri problem
Date: Thu, 19 Dec 2002 09:57:35 -0800

I'm deploying a .war that contains Struts and am getting an error in
some .jsp's that reference this absolute uri
http://jakarta.apache.org/struts/tags-tiles-1.1

I've searched far & wide and found no answers - does anyone have a clue
on this?
THANKS

002-12-17 13:53:26,413 ERROR [org.jboss.web.localhost.Engine]
StandardWrapperValve[home]: Servlet.service() for servlet home threw
exception
org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



How to split a tiles section using another definition ??

2002-12-19 Thread Rémy Giard
Hi,

I am using a layout.jsp page that use the tiles to fill the body section of
the page.  I want to create a tile definition that could split the body in
two sections (top and bottom).  I thought about creating a definition that
could have another definition as body value and then use that new definition
to have a top and bottom section.  But what should i set as "path" for this
new definition ??

I also thought about using the following way :













... but i get an error : "Error - Tag Insert : No value found for attribute
'top'.'".  The split.jps file juste insert tiles top and bottom.  Do you
have any idea of what i should do to get it working ??

Rémy Giard
Cogiscan Inc.
50, rue de Gaspé, Bloc A5
Bromont, Québec, Canada
J2L 2N8



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




RE: javax link error

2002-12-19 Thread Daniel Grey
No I haven't set that - can't even find that config file - could you
tell where that config file is located? 
Thanks Mucho
d

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 11:25 AM
To: 'Struts Users Mailing List'
Subject: RE: javax link error


Oh, I see the problem, did you forget to set ThrowLinkageError=false in
your config file?


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: javax link error
> 
> 
> trying to deploy an .ear that was ok but now giving link error:
> 
> java.lang.LinkageError: loader constraints violated when 
> linking javax/jms/XATopicSession class
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: javax link error

2002-12-19 Thread James Mitchell
Oh, I see the problem, did you forget to set ThrowLinkageError=false in
your config file?


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 2:19 PM
> To: [EMAIL PROTECTED]
> Subject: javax link error
> 
> 
> trying to deploy an .ear that was ok but now giving link error:
> 
> java.lang.LinkageError: loader constraints violated when 
> linking javax/jms/XATopicSession class
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




RE: struts-el:submit question

2002-12-19 Thread Karr, David
We would need to see more of your real JSP code, including the taglib directives, and 
not just a "simulated" copy, but the real code.

> -Original Message-
> From: Dan Tran [mailto:[EMAIL PROTECTED]]
> 
> Hi,
> 
> I have this code
> 
> 
> mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




javax link error

2002-12-19 Thread Daniel Grey
trying to deploy an .ear that was ok but now giving link error:

java.lang.LinkageError: loader constraints violated when linking
javax/jms/XATopicSession class



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




RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-19 Thread Haseltine, Celeste
Sandra, 

Dreamweaver MX was release some time back.  Visit the Macromedia web site to
obtain more information regarding the price to upgrade your version of
Dreamweaver UltraDev to MX.  Also, some of my development staff has informed
me that you can obtain "test drive" copies of Dreamweaver MX off of peer to
peer site such as Kazaa and Morpheus, if you have access to a high speed
internet connection.

Celeste  

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 12:19 PM
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


Until now I was unaware of the existence of Dreamweaver MX.
Which does bring moreover than Ultradev4? Concerning the OpenSource
products, I already heard spoken about Eclipse. My boss made the choice use
JBuilder (because we used already Borland then C++ Builder) I do not say
that it is the best choice. EasyStruts also exist with JBuilder but this
tool allows to make templates for the source (Action, ActionForm...). 
It does not facilitate the construction of pages HTML like eclipse not? 
I start just with control Jbuilder with Struts and Tomcat To venture me in a
new software at all I do not like the idee. I do not have much time to carry
out my application. 

Sandra

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2002 17:05
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


Sandra, 

Have you thought of paying the upgrade price on Macromedia's web site to go
from Dreamweaver UltraDev to Dreamweaver MX?

Also, there are free IDE options out on the web that you can use.  One of
the ones we use in my development shop is Eclipse.  There are numerous
plugin that you can install inside of Eclipse to support/do J2EE
development.  Some of the ones we use are:  EasyStruts (1.02 and 1.1b2
support), Lombaz J2EE Wizards plugin, JDBC DAO generator, XMLBuddy, and
Aston Wizards.  Eclipse and all the plugins listed above are free.  You can
find Eclipse at:  http://www.eclipse.org/, and a list of plugins at:
http://eclipse-plugins.2y.net/eclipse/.

We do not use Tomcat as our application server, but if you are using Tomcat,
there is a plugin that you can obtain off the above site to support Tomcat
development, or you can use the Lombaz plug in.  The Lombaz plugin support
development on BEA Weblogic, JBoss, and Tomcat.

Celeste


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 4:34 AM
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


For your information I contacted the support of Ultradev (free support for 2
questions only) and frankly I fell on inefficient. He was not able to
indicate to me if I could configure a Web server using JSP1.1 (let us not
speak about 1.2) with Ultradev. Its slogan was: you use tomcat, to defer to
the site jakarta-apache, I believe to dream whereas their Doc. indicates
that there is an extension to configure a server with JSP1.1
(http://www.macromedia.com/support/ultradev/ts/documents/ultradev_faq.htm).
That would at least make it possible to use Tomcat3. Unfortunately I do not
see how to use this extension and it was clearly accapable to show to me how
to make. We bought Ultradev to more easily build the pages and we cannot use
it it is a roof all the same. If somebody with a suggestion, thank you in
advance.   
 
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 11:18
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


> I really find this remark not constructive. I do not seek 
> somebody who hates
> this tool but on the contrary, somebody which uses it with Struts(voir
> Tiles) and with which I can have exchanges. 
> Marcomedia and Struts are not incompatible. 

Sure!
My remark was just a troll for the old time 
OSS adepts, who used to hear, a few years ago: 
"Open Source can't win, support is too poor."

Nowadays, proprietary software users rely on 
Open Source mailing-lists for infos about their 
(expensive :-) products.

BTW, I am also very interested in reports about 
Struts-Dreamweaver integration.

Note: serais-tu la premiere francaise abonnee a 
la liste? :-PPP

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:

For additional commands

Re: beanutils.populate with formbeans and vectors

2002-12-19 Thread Michael Olszynski
I do it like this:



   :

 


--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "Richard Yee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 7:16 PM
Subject: Re: beanutils.populate with formbeans and vectors


> Michael,
> How are you accessing the indexed property in the JSP?
>
> -Richard
>
> --- Michael Olszynski <[EMAIL PROTECTED]> wrote:
> > Hi Richard,
> >
> > thanks again for your quick reply. I thought I need
> > to subclass Vector,
> > because I don´t save plain Strings in my Vector, I
> > save Beans in it. So
> > therefore I thought I need to have a polymorhism to
> > save myself the work to
> > write always indexed setters and getters . But
> > anyway, I put the code you
> > wrote me in my bean, and I still get errors. I give
> > you a small snippet of
> > my code (I tried to remove everything unnecessary)
> > and I also attach the
> > errormessage after the samplecode. I´d really
> > appreciate if you could look
> > at it for a short moment. Thanks a lot
> >
> > Take care Michael
> >
> > 
> > public class TimeProofFormBean extends ActionForm {
> >
> >   private Vector timeProofList = new Vector();
> >
> > public Vector getTimeProofList() {
> > return this.timeProofList;
> > }
> >
> > public void setTimeProofList( Vector v ) {
> > this.timeProofList = v;
> > }
> >
> >
> >   /**
> >* getter for indexed property in myFoos
> >*/
> >   public Object getTimeProofList(int index) {
> >  if (index >= timeProofList.size())
> >return new TimeProofTableBean();
> >  return timeProofList.get(index);
> >}
> >
> >  /**
> > * setter for indexed property in myFoos
> > */
> >public void setTimeProofList(int index, Object
> > value) {
> >  int size=timeProofList.size();
> >  if (index >= size) {
> >for(int i=size; i<=index; i++) {
> >  timeProofList.add(new
> > TimeProofTableBean());
> >}
> >  }
> >  timeProofList.set(index,value);
> >}
> >
> >
> > }
> >
> **
> > jsp page:
> >  > name="timeProofForm"
> > property="timeProofList">
> > 
> > > property="fromHour" size="2"
> > maxlength="2" indexed="true"/>:
> > > property="fromMinute" size="2"
> > maxlength="2" indexed="true"/> 
> >  
> > 
> >
> 
> >
> > 18:35:35,684 ERROR [Engine]
> > ApplicationDispatcher[/Zeiterfassung_Applikation] Se
> > rvlet.service() for servlet jsp threw exception
> > org.apache.jasper.JasperException: No getter method
> > for property
> > timeProofList o
> > f bean timeProofForm
> > at
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> > .java:248)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> > ispatcher.java:575)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> > patcher.java:498)
> > at
> >
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> > .java:820)
> > at
> >
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> > a:395)
> > at
> >
> org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
> > at
> >
> org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
> > va:221)
> > at
> >
> org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
> > 118)
> > at
> >
> org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
> > 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:204)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> > ispatcher.java:575)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> > patcher.j

Re: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Karim Saloojee
> Write once, debug everywhere. Love Java, but going from one platform to
another usually involves some effort.

Write once, debug everywhere usually happens when you use different makes of
JDK across different platforms eg IBM & SUN. But I love Java anyways!

~Karim


> What kind of errors are you getting? Hard to answer this question without
knowing at least that much.

> -= J

> -Original Message-
> From: Beeson, Ashley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 9:06 AM
> To: '[EMAIL PROTECTED]'
> Subject: Compiled JSPs are different on windows and Solaris
>
>
> Hello
>
> We have a problem with deploying our struts application. We develop on
> Windows2000 machines running tomcat 4.0.4 and yet when we
> deploy our war on
> our Solaris 8 box we are getting errors which do not appear
> when we test on
> our windows boxes.
>
> We know this isn't a data issue as we are using the same
> database/data. When
> looking at the java files created by tomcat in the
> /work/Standalone/localhost/blah/ directories they are
> radically different
> despite using the same version of Java (1.4.0.0_01) on both
> windows and
> Solaris
>
> We have managed to fix a few of the problems we were having
> by upgrading
> from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
> getting errors which we do not get on Windows (with Tomcat 4.0.4).
>
> Any ideas people?
>
> Thanks in Advance
>
> Ash Beeson
> 
> 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.
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:






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




RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-19 Thread Heligon Sandra
Until now I was unaware of the existence of Dreamweaver MX.
Which does bring moreover than Ultradev4? Concerning the OpenSource
products, I already heard spoken about Eclipse. My boss made the choice use
JBuilder (because we used already Borland then C++ Builder) I do not say
that it is the best choice. EasyStruts also exist with JBuilder but this
tool allows to make templates for the source (Action, ActionForm...). 
It does not facilitate the construction of pages HTML like eclipse not? 
I start just with control Jbuilder with Struts and Tomcat To venture me in a
new software at all I do not like the idee. I do not have much time to carry
out my application. 

Sandra

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2002 17:05
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


Sandra, 

Have you thought of paying the upgrade price on Macromedia's web site to go
from Dreamweaver UltraDev to Dreamweaver MX?

Also, there are free IDE options out on the web that you can use.  One of
the ones we use in my development shop is Eclipse.  There are numerous
plugin that you can install inside of Eclipse to support/do J2EE
development.  Some of the ones we use are:  EasyStruts (1.02 and 1.1b2
support), Lombaz J2EE Wizards plugin, JDBC DAO generator, XMLBuddy, and
Aston Wizards.  Eclipse and all the plugins listed above are free.  You can
find Eclipse at:  http://www.eclipse.org/, and a list of plugins at:
http://eclipse-plugins.2y.net/eclipse/.

We do not use Tomcat as our application server, but if you are using Tomcat,
there is a plugin that you can obtain off the above site to support Tomcat
development, or you can use the Lombaz plug in.  The Lombaz plugin support
development on BEA Weblogic, JBoss, and Tomcat.

Celeste


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 4:34 AM
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


For your information I contacted the support of Ultradev (free support for 2
questions only) and frankly I fell on inefficient. He was not able to
indicate to me if I could configure a Web server using JSP1.1 (let us not
speak about 1.2) with Ultradev. Its slogan was: you use tomcat, to defer to
the site jakarta-apache, I believe to dream whereas their Doc. indicates
that there is an extension to configure a server with JSP1.1
(http://www.macromedia.com/support/ultradev/ts/documents/ultradev_faq.htm).
That would at least make it possible to use Tomcat3. Unfortunately I do not
see how to use this extension and it was clearly accapable to show to me how
to make. We bought Ultradev to more easily build the pages and we cannot use
it it is a roof all the same. If somebody with a suggestion, thank you in
advance.   
 
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 11:18
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


> I really find this remark not constructive. I do not seek 
> somebody who hates
> this tool but on the contrary, somebody which uses it with Struts(voir
> Tiles) and with which I can have exchanges. 
> Marcomedia and Struts are not incompatible. 

Sure!
My remark was just a troll for the old time 
OSS adepts, who used to hear, a few years ago: 
"Open Source can't win, support is too poor."

Nowadays, proprietary software users rely on 
Open Source mailing-lists for infos about their 
(expensive :-) products.

BTW, I am also very interested in reports about 
Struts-Dreamweaver integration.

Note: serais-tu la premiere francaise abonnee a 
la liste? :-PPP

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: beanutils.populate with formbeans and vectors

2002-12-19 Thread Richard Yee
Michael,
How are you accessing the indexed property in the JSP?

-Richard

--- Michael Olszynski <[EMAIL PROTECTED]> wrote:
> Hi Richard,
> 
> thanks again for your quick reply. I thought I need
> to subclass Vector,
> because I don´t save plain Strings in my Vector, I
> save Beans in it. So
> therefore I thought I need to have a polymorhism to
> save myself the work to
> write always indexed setters and getters . But
> anyway, I put the code you
> wrote me in my bean, and I still get errors. I give
> you a small snippet of
> my code (I tried to remove everything unnecessary)
> and I also attach the
> errormessage after the samplecode. I´d really
> appreciate if you could look
> at it for a short moment. Thanks a lot
> 
> Take care Michael
> 
> 
> public class TimeProofFormBean extends ActionForm {
> 
>   private Vector timeProofList = new Vector();
> 
> public Vector getTimeProofList() {
> return this.timeProofList;
> }
> 
> public void setTimeProofList( Vector v ) {
> this.timeProofList = v;
> }
> 
> 
>   /**
>* getter for indexed property in myFoos
>*/
>   public Object getTimeProofList(int index) {
>  if (index >= timeProofList.size())
>return new TimeProofTableBean();
>  return timeProofList.get(index);
>}
> 
>  /**
> * setter for indexed property in myFoos
> */
>public void setTimeProofList(int index, Object
> value) {
>  int size=timeProofList.size();
>  if (index >= size) {
>for(int i=size; i<=index; i++) {
>  timeProofList.add(new
> TimeProofTableBean());
>}
>  }
>  timeProofList.set(index,value);
>}
> 
> 
> }
>
**
> jsp page:
>  name="timeProofForm"
> property="timeProofList">
> 
> property="fromHour" size="2"
> maxlength="2" indexed="true"/>:
> property="fromMinute" size="2"
> maxlength="2" indexed="true"/> 
>  
> 
>

> 
> 18:35:35,684 ERROR [Engine]
> ApplicationDispatcher[/Zeiterfassung_Applikation] Se
> rvlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: No getter method
> for property
> timeProofList o
> f bean timeProofForm
> at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> .java:248)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> 89)
> at
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> ispatcher.java:575)
> at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> patcher.java:498)
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> .java:820)
> at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> a:395)
> at
>
org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
> at
>
org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
> va:221)
> at
>
org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
> 118)
> at
>
org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
> 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:204)
> at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> 89)
> at
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
> at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> ispatcher.java:575)
> at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> patcher.java:498)
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> .java:820)
> at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> --
> Fehlerfreie Software wirkt weniger komplex und
> diskreditiert damit den
> Entwickler!
> - Original Message -
> From: "Richard Yee" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 6:11 PM
> Subject: Re: beanutils.populate with formbeans and
> vectors
> 
> 
> > Michael,
> > You need to put the methods that I sent in the
> > FormBean class and not your Vector subclass. You
> > really don't need to subclass the Vector.
> >
> >
> > ex.
>

Re: struts-el:submit question

2002-12-19 Thread Dan Tran
the actual code does have the missing quote

-D
- Original Message -
From: "Siggelkow, Bill" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 6:38 AM
Subject: RE: struts-el:submit question


> Are you missing the trailing quote of the el "${action}"
>
> -Original Message-
> From: Dan Tran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 18, 2002 9:11 PM
> To: Struts Users Mailing List
> Subject: struts-el:submit question
>
>
> Hi,
>
> I have this code
>
> 
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Absolute uri problem

2002-12-19 Thread Daniel Grey
I'm deploying a .war that contains Struts and am getting an error in
some .jsp's that reference this absolute uri
http://jakarta.apache.org/struts/tags-tiles-1.1

I've searched far & wide and found no answers - does anyone have a clue
on this?
THANKS

002-12-17 13:53:26,413 ERROR [org.jboss.web.localhost.Engine]
StandardWrapperValve[home]: Servlet.service() for servlet home threw
exception
org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application


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




Re: beanutils.populate with formbeans and vectors

2002-12-19 Thread Michael Olszynski
.
and if I also change the type of my indexed getter like this:

  /**
   * getter for indexed property in myFoos
   */
  public TimeProofTableBean getTimeProofList(int index) {
 if (index >= timeProofList.size())
   return new TimeProofTableBean();
 return (TimeProofTableBean) timeProofList.get(index);
   }

I get following error:

18:49:56,141 ERROR [Engine] StandardWrapperValve[action]: Servlet.service()
for
servlet action threw exception
javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
.java:246)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex




the same error I had before!


--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "Michael Olszynski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 6:49 PM
Subject: Re: beanutils.populate with formbeans and vectors


> Hi Richard,
>
> thanks again for your quick reply. I thought I need to subclass Vector,
> because I don´t save plain Strings in my Vector, I save Beans in it. So
> therefore I thought I need to have a polymorhism to save myself the work
to
> write always indexed setters and getters . But anyway, I put the code you
> wrote me in my bean, and I still get errors. I give you a small snippet of
> my code (I tried to remove everything unnecessary) and I also attach the
> errormessage after the samplecode. I´d really appreciate if you could look
> at it for a short moment. Thanks a lot
>
> Take care Michael
>
> 
> public class TimeProofFormBean extends ActionForm {
>
>   private Vector timeProofList = new Vector();
>
> public Vector getTimeProofList() {
> return this.timeProofList;
> }
>
> public void setTimeProofList( Vector v ) {
> this.timeProofList = v;
> }
>
>
>   /**
>* getter for indexed property in myFoos
>*/
>   public Object getTimeProofList(int index) {
>  if (index >= timeProofList.size())
>return new TimeProofTableBean();
>  return timeProofList.get(index);
>}
>
>  /**
> * setter for indexed property in myFoos
> */
>public void setTimeProofList(int index, Object value) {
>  int size=timeProofList.size();
>  if (index >= size) {
>for(int i=size; i<=index; i++) {
>  timeProofList.add(new TimeProofTableBean());
>}
>  }
>  timeProofList.set(index,value);
>}
>
>
> }
> **
> jsp page:
>  property="timeProofList">
> 
> maxlength="2" indexed="true"/>:
> maxlength="2" indexed="true"/> 
>  
> 
> 
>
> 18:35:35,684 ERROR [Engine]
> ApplicationDispatcher[/Zeiterfassung_Applikation] Se
> rvlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: No getter method for property
> timeProofList o
> f bean timeProofForm
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> .java:248)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> 89)
> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
> at
> org.apache.catalina.core.ApplicationDispatcher

Re: beanutils.populate with formbeans and vectors

2002-12-19 Thread Michael Olszynski
Hi Richard,

thanks again for your quick reply. I thought I need to subclass Vector,
because I don´t save plain Strings in my Vector, I save Beans in it. So
therefore I thought I need to have a polymorhism to save myself the work to
write always indexed setters and getters . But anyway, I put the code you
wrote me in my bean, and I still get errors. I give you a small snippet of
my code (I tried to remove everything unnecessary) and I also attach the
errormessage after the samplecode. I´d really appreciate if you could look
at it for a short moment. Thanks a lot

Take care Michael


public class TimeProofFormBean extends ActionForm {

  private Vector timeProofList = new Vector();

public Vector getTimeProofList() {
return this.timeProofList;
}

public void setTimeProofList( Vector v ) {
this.timeProofList = v;
}


  /**
   * getter for indexed property in myFoos
   */
  public Object getTimeProofList(int index) {
 if (index >= timeProofList.size())
   return new TimeProofTableBean();
 return timeProofList.get(index);
   }

 /**
* setter for indexed property in myFoos
*/
   public void setTimeProofList(int index, Object value) {
 int size=timeProofList.size();
 if (index >= size) {
   for(int i=size; i<=index; i++) {
 timeProofList.add(new TimeProofTableBean());
   }
 }
 timeProofList.set(index,value);
   }


}
**
jsp page:


   :

 



18:35:35,684 ERROR [Engine]
ApplicationDispatcher[/Zeiterfassung_Applikation] Se
rvlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: No getter method for property
timeProofList o
f bean timeProofForm
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
a:395)
at
org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
at
org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
va:221)
at
org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
118)
at org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
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:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "Richard Yee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 6:11 PM
Subject: Re: beanutils.populate with formbeans and vectors


> Michael,
> You need to put the methods that I sent in the
> FormBean class and not your Vector subclass. You
> really don't need to subclass the Vector.
>
>
> ex.
>
> public class MyForm extends ActionForm
> {
>   private Vector myFoos = new Vector();
>
>   /**
>* getter for indexed property in myFoos
>*/
>   public Object getFoo(int index) {
>  if (index >= myFoos.size())
>return "";
>  return myFoos.get(index);
>}
>
>/**
> * setter for indexed property in myFoos
> */
>public void setFoo(int index, Object value) {
>  int size=myFoos.size();
>  if (index >= size) {
>for(int i=size; i<=index; i++) {
>  myFoos.add("");
>}
>  }
>  myFoos.set(index,value);
>}
>
>
> }
>
>
> -Richard
>
> > 

RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Beeson, Ashley
The getters / setter aren't overloaded for this property. We aren't actually
using BeanUtils in our implementation but all libraries (.jars) are in the
deployed war file and hence there shouldn't be and differences in that area.

We are downloading Sun One Application Server to test the same war file.
Hopefully this will fix the problems. I'll let the list know the results.

Cheers

Ash


> Is it possible that mdevId has overloaded setters and you are using
different versions of BeanUtils on the two > > platforms?
> 
> > 
> > The other errors are usually JSP errors caused during 
> > compilation (like "variable 'pageContext' may not have been 
> > initialised") in code we don't touch.
> 
> Is Tomcat on both platforms using the same compiler?
> 
> > 
> > I'd like to point out that the errors are consistently on the 
> > same pages, but differences between pages that work and those 
> > that don't are minimal (And they ALL work on windows).
> > 
> > Thanks for the help
> > 
> > Ash
> 
> Sri 

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.

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




RE: Compliment Frameworks

2002-12-19 Thread Hookom, Jacob John
http://access1.sun.com/jdo/

-Original Message- 
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] 
Sent: Thu 12/19/2002 10:55 AM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: Compliment Frameworks



> O/R is not always needed. Sometimes you just want to work with a
> relational master/detail (ie, next row(); next row();).

My concern is not to have to think in term of (for example)
Primary Key/Foreign Key or Conposite Key...

This is too much low level for me. And some programmers I talk
to really don't care about my DB model.

That's why I am looking for tools that provide an abstract layer between
DB and business objects worlds.

I think O/R is exactly that.
I don't see exactly what JDO is. An API by Sun for those kind of
problems?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




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


Re: beanutils.populate with formbeans and vectors

2002-12-19 Thread Richard Yee
Michael,
You need to put the methods that I sent in the
FormBean class and not your Vector subclass. You
really don't need to subclass the Vector.


ex.

public class MyForm extends ActionForm
{
  private Vector myFoos = new Vector();

  /**
   * getter for indexed property in myFoos
   */
  public Object getFoo(int index) {
 if (index >= myFoos.size())
   return "";
 return myFoos.get(index);
   }

   /**
* setter for indexed property in myFoos
*/
   public void setFoo(int index, Object value) {
 int size=myFoos.size();
 if (index >= size) {
   for(int i=size; i<=index; i++) {
 myFoos.add("");
   }
 }
 myFoos.set(index,value);
   }


}


-Richard

> Does anybody have an idea, where this exception is
> from. I´m still working on it..
> 
> Thaks a lot, Michael
> --



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Compliment Frameworks

2002-12-19 Thread ROSSEL Olivier
> O/R is not always needed. Sometimes you just want to work with a 
> relational master/detail (ie, next row(); next row();).

My concern is not to have to think in term of (for example) 
Primary Key/Foreign Key or Conposite Key...

This is too much low level for me. And some programmers I talk
to really don't care about my DB model. 

That's why I am looking for tools that provide an abstract layer between
DB and business objects worlds.

I think O/R is exactly that. 
I don't see exactly what JDO is. An API by Sun for those kind of
problems?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: Compliment Frameworks

2002-12-19 Thread ROSSEL Olivier
May be I can help about Cocoon.
I use it A LOT.
And am only newbie with Struts.
 
What I LOVE with Struts is the lego concept of the actions.
It is so easy, so intuitive and powerful to manage internal logic.
In Cocoon, the same internal logic requires a lot of Java programming,
and maximum reusability is hard to achieve.
 
Cocoon is more oriented as a component provider and assembler
to create a custom XML pipeline from data source to output.
 
The great power of Cocoon is its impressive list of generators
(you plug them on your datasource(s) and it provides XML to the pipeline)
transformers (XSL, XInclude, ...) and serializers (for output
management: PDF, RTF, CSV, XML, HTML...).
The other very nice things with Cocoon are its cache management,
its "source" concept (everything is seen inside Cocoon as a
XML source, either RO or RW. For example the CVS source
is RW) and its URL handling (each URL requested is
translated into a pipeline).
 
The performances are really good (once you know how to cache things,
which is not very well documented).
 
I wonder if some people have already used both Struts and Cocoon
in the same project. As far as I know, you can do that.
 
 
 
 -Message d'origine-
De: Hookom, Jacob John [mailto:[EMAIL PROTECTED]]
Date: jeudi 19 décembre 2002 17:24
À: Struts Users Mailing List
Objet: RE: Compliment Frameworks



OJB gets my vote too, it wouldn't be that hard to write/use a bean
serializer like Betwixt to turn your beans or your
application/session/request scope variables to xml for XSLT transformation.
Stay clear of cocoon for now, I guess they are working on revamping the
thing from near scratch (or so I read in an article a few months back).
 
-jacob

-Original Message- 
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Thu 12/19/2002 10:14 AM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: Compliment Frameworks



> After speaking about frameworks (where only Expresso Strutsxx and
> Struts+Cocoon seem to exist), let's talk about O/R mapping.
> Which one is the easiest/more mature/more functional/best
> documented/most integrable with Struts?

My vote goes to OJB.


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg."
- Bjarne Stroustrup




--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]
 >
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]
 >



This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




Re: beanutils populate problem with formbeans and vectors

2002-12-19 Thread Michael Olszynski
Could u specify this more? Where is the error in my application?
I attached a tiny piece of sample code in my mail (if you scroll down). We
(two guys) are looking to find this error for over 6 hours now.

Thanks a lot!
--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 5:49 PM
Subject: RE: beanutils populate problem with formbeans and vectors


Es kommt von Ihrer eigenen Anwendung!


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg."
- Bjarne Stroustrup


> -Original Message-
> From: Michael Olszynski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 11:38 AM
> To: Struts Users Mailing List
> Subject: Re: beanutils populate problem with formbeans and vectors
>
>
> Does anybody have an idea, where this exception is from. I´m
> still working on it..
>
> Thaks a lot, Michael
> --
> Fehlerfreie Software wirkt weniger komplex und diskreditiert
> damit den Entwickler!
> - Original Message -
> From: "Michael Olszynski" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 11:48 AM
> Subject: Re: beanutils populate problem with formbeans and vectors
>
>
> > Hi Richard,
> >
> > thanks for your help. I tried what u wrote me, but it
> didn´t work. I
> > get following exception:
> >
> >
> > 11:36:32,775 ERROR [Engine]
> > ApplicationDispatcher[/Zeiterfassung_Applikation] Se
> > rvlet.service() for servlet jsp threw exception
> > org.apache.jasper.JasperException
> > at
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> > .java:248)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> > ispatcher.java:575)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> > patcher.java:498)
> > at
> >
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> > .java:820)
> > at
> >
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> > a:395)
> > at
> > org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
> > at
> >
> org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
> > va:221)
> > at
> >
> org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
> > 118)
> > at
> org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
> > 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:204)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> > ispatcher.java:575)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> > patcher.java:498)
> > at
> >
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> > .java:820)
> > at
> >
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> > a:395)
> > at
> >
> org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
> > 55)
> > at
> >
> org.apache.jsp.index_jsp._jspx_meth_template_insert_0(index_jsp.java:
> > 108)
> > at org.apache.jsp.index_jsp._jspService(index_jsp.java:71)
> > 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:204)
> > at
> >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 

RE: beanutils populate problem with formbeans and vectors

2002-12-19 Thread James Mitchell
Es kommt von Ihrer eigenen Anwendung!


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: Michael Olszynski [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 11:38 AM
> To: Struts Users Mailing List
> Subject: Re: beanutils populate problem with formbeans and vectors
> 
> 
> Does anybody have an idea, where this exception is from. I´m 
> still working on it..
> 
> Thaks a lot, Michael
> --
> Fehlerfreie Software wirkt weniger komplex und diskreditiert 
> damit den Entwickler!
> - Original Message -
> From: "Michael Olszynski" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 11:48 AM
> Subject: Re: beanutils populate problem with formbeans and vectors
> 
> 
> > Hi Richard,
> >
> > thanks for your help. I tried what u wrote me, but it 
> didn´t work. I 
> > get following exception:
> >
> >
> > 11:36:32,775 ERROR [Engine] 
> > ApplicationDispatcher[/Zeiterfassung_Applikation] Se
> > rvlet.service() for servlet jsp threw exception 
> > org.apache.jasper.JasperException
> > at 
> > 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> > .java:248)
> > at 
> > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> > ispatcher.java:575)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> > patcher.java:498)
> > at 
> > 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> > .java:820)
> > at 
> > 
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> > a:395)
> > at
> > org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
> > at 
> > 
> org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
> > va:221)
> > at
> > 
> org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
> > 118)
> > at 
> org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
> > 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:204)
> > at 
> > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> > ispatcher.java:575)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> > patcher.java:498)
> > at 
> > 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> > .java:820)
> > at 
> > 
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> > a:395)
> > at 
> > 
> org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
> > 55)
> > at
> > 
> org.apache.jsp.index_jsp._jspx_meth_template_insert_0(index_jsp.java:
> > 108)
> > at org.apache.jsp.index_jsp._jspService(index_jsp.java:71)
> > 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:204)
> > at 
> > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> > 89)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at 
> > 
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> > atcher.java:684)
> >
> >
> **
> **
> > **
> >
> > Here ist the Code I wrote:
> >
> > FormBean:
> >
> > public class TimeProofFormBean extends ActionForm {
> >
> >
> > public FormBeanVector getTimeProofList() {
> > return this.timeProofList;
> > }
> >
> > public void setTimeProofList( Vector v ) {
> >  

Re: Compliment Frameworks

2002-12-19 Thread V. Cekvenich
O/R is not always needed. Sometimes you just want to work with a 
relational master/detail (ie, next row(); next row();).

Also see basicPortal.com.
.V

ROSSEL Olivier wrote:
There are a couple tutorial examples - and the EDG (Expresso 
Developers
Guide) doc  etc. You'll find the doc at:
http://www.jcorporate.com/product/expresso.html > Documentation. A bit
slow to load - we are currently working on bringing up a new server
which will resolve this. 


After speaking about frameworks (where only Expresso Strutsxx and
Struts+Cocoon
seem to exist), let's talk about O/R mapping.
Which one is the easiest/more mature/more functionnal/best documented/most 
integrable with Struts?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.




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




Re: beanutils populate problem with formbeans and vectors

2002-12-19 Thread Michael Olszynski
Does anybody have an idea, where this exception is from. I´m still working
on it..

Thaks a lot, Michael
--
Fehlerfreie Software wirkt weniger komplex und diskreditiert damit den
Entwickler!
- Original Message -
From: "Michael Olszynski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 11:48 AM
Subject: Re: beanutils populate problem with formbeans and vectors


> Hi Richard,
>
> thanks for your help. I tried what u wrote me, but it didn´t work. I get
> following exception:
>
>
> 11:36:32,775 ERROR [Engine]
> ApplicationDispatcher[/Zeiterfassung_Applikation] Se
> rvlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
> .java:248)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> 89)
> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> ispatcher.java:575)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> patcher.java:498)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> .java:820)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> a:395)
> at
> org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
> at
> org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
> va:221)
> at
> org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
> 118)
> at org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
> 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:204)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> 89)
> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
> ispatcher.java:575)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
> patcher.java:498)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
> .java:820)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
> a:395)
> at
> org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
> 55)
> at
> org.apache.jsp.index_jsp._jspx_meth_template_insert_0(index_jsp.java:
> 108)
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:71)
> 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:204)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
> 89)
> at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
> atcher.java:684)
>
>

> **
>
> Here ist the Code I wrote:
>
> FormBean:
>
> public class TimeProofFormBean extends ActionForm {
>
>
> public FormBeanVector getTimeProofList() {
> return this.timeProofList;
> }
>
> public void setTimeProofList( Vector v ) {
> this.timeProofList = new FormBeanVector (
TimeProofTableBean.class,
> v);
> }
>
>  public FormBeanVector getDayBeanList() {
> return this.dayBeanList;
> }
>
> public void setDayBeanList( Vector v ) {
> this.dayBeanList = new FormBeanVector(DayBean.class,v);
> }
>
> private FormBeanVector timeProofList = new
> FormBeanVector(TimeProofTableBean.class);
> private FormBeanVector dayBeanList = new
FormBeanVector(DayBean.class);
>
> }
>
***
> My own vector:
>
> public class FormBeanVector extends Vector {
>
> // Empty constructor, just to set the type of class
> public FormBeanVector( Class _contentClass ) {
> if( _contentClass == null ) {
>  System.out.println("this.contentClass = Object.class");
> 

RE: Compliment Frameworks

2002-12-19 Thread Hookom, Jacob John
OJB gets my vote too, it wouldn't be that hard to write/use a bean serializer like 
Betwixt to turn your beans or your application/session/request scope variables to xml 
for XSLT transformation.  Stay clear of cocoon for now, I guess they are working on 
revamping the thing from near scratch (or so I read in an article a few months back).
 
-jacob

-Original Message- 
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Thu 12/19/2002 10:14 AM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: RE: Compliment Frameworks



> After speaking about frameworks (where only Expresso Strutsxx and
> Struts+Cocoon seem to exist), let's talk about O/R mapping.
> Which one is the easiest/more mature/more functional/best
> documented/most integrable with Struts?

My vote goes to OJB.


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg."
- Bjarne Stroustrup




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




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


RE: Compliment Frameworks

2002-12-19 Thread James Mitchell
> After speaking about frameworks (where only Expresso Strutsxx and
> Struts+Cocoon seem to exist), let's talk about O/R mapping.
> Which one is the easiest/more mature/more functional/best 
> documented/most integrable with Struts?

My vote goes to OJB.


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

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup




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




RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-19 Thread Haseltine, Celeste
Sandra, 

Have you thought of paying the upgrade price on Macromedia's web site to go
from Dreamweaver UltraDev to Dreamweaver MX?

Also, there are free IDE options out on the web that you can use.  One of
the ones we use in my development shop is Eclipse.  There are numerous
plugin that you can install inside of Eclipse to support/do J2EE
development.  Some of the ones we use are:  EasyStruts (1.02 and 1.1b2
support), Lombaz J2EE Wizards plugin, JDBC DAO generator, XMLBuddy, and
Aston Wizards.  Eclipse and all the plugins listed above are free.  You can
find Eclipse at:  http://www.eclipse.org/, and a list of plugins at:
http://eclipse-plugins.2y.net/eclipse/.

We do not use Tomcat as our application server, but if you are using Tomcat,
there is a plugin that you can obtain off the above site to support Tomcat
development, or you can use the Lombaz plug in.  The Lombaz plugin support
development on BEA Weblogic, JBoss, and Tomcat.

Celeste


-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 4:34 AM
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


For your information I contacted the support of Ultradev (free support for 2
questions only) and frankly I fell on inefficient. He was not able to
indicate to me if I could configure a Web server using JSP1.1 (let us not
speak about 1.2) with Ultradev. Its slogan was: you use tomcat, to defer to
the site jakarta-apache, I believe to dream whereas their Doc. indicates
that there is an extension to configure a server with JSP1.1
(http://www.macromedia.com/support/ultradev/ts/documents/ultradev_faq.htm).
That would at least make it possible to use Tomcat3. Unfortunately I do not
see how to use this extension and it was clearly accapable to show to me how
to make. We bought Ultradev to more easily build the pages and we cannot use
it it is a roof all the same. If somebody with a suggestion, thank you in
advance.   
 
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 11:18
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


> I really find this remark not constructive. I do not seek 
> somebody who hates
> this tool but on the contrary, somebody which uses it with Struts(voir
> Tiles) and with which I can have exchanges. 
> Marcomedia and Struts are not incompatible. 

Sure!
My remark was just a troll for the old time 
OSS adepts, who used to hear, a few years ago: 
"Open Source can't win, support is too poor."

Nowadays, proprietary software users rely on 
Open Source mailing-lists for infos about their 
(expensive :-) products.

BTW, I am also very interested in reports about 
Struts-Dreamweaver integration.

Note: serais-tu la premiere francaise abonnee a 
la liste? :-PPP

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Sri Sankaran


> -Original Message-
> From: Beeson, Ashley [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 10:55 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Compiled JSPs are different on windows and Solaris
> 
> 
> Replying to all questions:
> 
> Clean installs of 4.1.17 on both windows and Solaris now. 
> Windows versions work fine, we get varying errors on the 
> Solaris version, one of the most confusing being 
> 'org.apache.jasper.JasperException: No getter method for 
> property mdevId of bean org.apache.struts.taglib.html.BEAN'. 
> This definitely works in the windows deployment.

Is it possible that mdevId has overloaded setters and you are using different versions 
of BeanUtils on the two platforms?

> 
> The other errors are usually JSP errors caused during 
> compilation (like "variable 'pageContext' may not have been 
> initialised") in code we don't touch.

Is Tomcat on both platforms using the same compiler?

> 
> I'd like to point out that the errors are consistently on the 
> same pages, but differences between pages that work and those 
> that don't are minimal (And they ALL work on windows).
> 
> Thanks for the help
> 
> Ash

Sri 



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




RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Beeson, Ashley
Replying to all questions:

Clean installs of 4.1.17 on both windows and Solaris now. Windows versions
work fine, we get varying errors on the Solaris version, one of the most
confusing being 
'org.apache.jasper.JasperException: No getter method for property mdevId of
bean org.apache.struts.taglib.html.BEAN'. This definitely works in the
windows deployment.

The other errors are usually JSP errors caused during compilation (like
"variable 'pageContext' may not have been initialised") in code we don't
touch.

I'd like to point out that the errors are consistently on the same pages,
but differences between pages that work and those that don't are minimal
(And they ALL work on windows).

Thanks for the help

Ash

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2002 15:26
To: Struts Users Mailing List
Subject: Re: Compiled JSPs are different on windows and Solaris


Have you compared the batch files and shell scripts? Have you changed them?

I develop on osx deploy on linux and windows with no problems, but I never
touch the scripts... Upgrades n all..

On 19-12-2002 16:15, "James Childers" <[EMAIL PROTECTED]> wrote:

> Write once, debug everywhere. Love Java, but going from one platform to
> another usually involves some effort.
> 
> What kind of errors are you getting? Hard to answer this question without
> knowing at least that much.
> 
> -= J
> 
>> -Original Message-
>> From: Beeson, Ashley [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, December 19, 2002 9:06 AM
>> To: '[EMAIL PROTECTED]'
>> Subject: Compiled JSPs are different on windows and Solaris
>> 
>> 
>> Hello
>>  
>> We have a problem with deploying our struts application. We develop on
>> Windows2000 machines running tomcat 4.0.4 and yet when we
>> deploy our war on
>> our Solaris 8 box we are getting errors which do not appear
>> when we test on
>> our windows boxes.
>>  
>> We know this isn't a data issue as we are using the same
>> database/data. When
>> looking at the java files created by tomcat in the
>> /work/Standalone/localhost/blah/ directories they are
>> radically different
>> despite using the same version of Java (1.4.0.0_01) on both
>> windows and
>> Solaris
>>  
>> We have managed to fix a few of the problems we were having
>> by upgrading
>> from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
>> getting errors which we do not get on Windows (with Tomcat 4.0.4).
>>  
>> Any ideas people?
>>  
>> Thanks in Advance
>>  
>> Ash Beeson
>> 
>> 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.
>> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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.

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




RE: Compliment Frameworks

2002-12-19 Thread ROSSEL Olivier
> There are a couple tutorial examples - and the EDG (Expresso 
> Developers
> Guide) doc  etc. You'll find the doc at:
> http://www.jcorporate.com/product/expresso.html > Documentation. A bit
> slow to load - we are currently working on bringing up a new server
> which will resolve this. 

After speaking about frameworks (where only Expresso Strutsxx and
Struts+Cocoon
seem to exist), let's talk about O/R mapping.
Which one is the easiest/more mature/more functionnal/best documented/most 
integrable with Struts?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: Validator (newbie)

2002-12-19 Thread shirishchandra . sakhare
yes..the form bean which was submitted contains the previous data..But the data 
which u are going to put on screen will not necessarily be in same form 
bean(mostly in another form bean)and also will be rendered by another 
actionso the data processing action and data populating action are 
different here using different form beans...Didn,t u get my earlier post about 
the same ?or am i replying the same mail again :-((

-Original Message-
From: suresh.addagalla [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 12:17 PM
To: Sakhare, Shirishchandra; struts-user
Subject: RE: Validator (newbie)


Hi,

Using request scope instead of session makes sense.

One question on your suggestion. Usually the form bean represents the
form data of the "previous" page. The data, which is required to be put
in the view (JSP), most probably would not be present in the form bean.
So, how can we say that using the form bean is the best idea. In the
scenario which I described, what can be the alternative and best
practise?

Thanks,
Suresh

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] 
>Sent: Wednesday, December 18, 2002 4:37 PM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: RE: Validator (newbie)
>
>
>U r first Q ,I dont know ...But abt 2nd may be i have some 
>suggestion form my 
>experience with struts ..
2. What is the standard way to pass data from Action 
>objects to the JSP
>(view)? Should the data be sent as a) Session properties, b) Some bean
>objects, or c) Data members of the Action object?
>
>GEnerally u should try to avoid using session variables.So the 
>standard way is 
>to pass the data in request scope.So if the data u want to use 
>in jsp is 
>attribute of the formBean,then as the form bean is available 
>to the jsp , u can 
>use it there...I think this keeps the design clean as the form 
>bean actually 
>represents the form data..So u dont have to look at the action 
>class to see 
>what u are trying to put on jsp..The form bean is the place... 
>
>-Original Message-
>From: suresh.addagalla [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, December 18, 2002 12:02 PM
>To: struts-user
>Subject: Validator (newbie)
>
>
>Hi,
>
>I have a couple of basic questions.
>
>1. If we use ActionForm, the ActionServlet first executes the 
>validate()
>method before calling execute() on the corresponding Action. 
>If I switch
>from ActionForms to Struts Validator (that is, use 
>ValidatorForm instead
>of ActionForm), do things work the same way? Is it that in this case
>also, ActionServlet calls the validate() just before calling the
>execute()?
>
>2. What is the standard way to pass data from Action objects to the JSP
>(view)? Should the data be sent as a) Session properties, b) Some bean
>objects, or c) Data members of the Action object?
>
>Thanks,
>Suresh
>
>



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




More Validation Problems

2002-12-19 Thread Weber, Jeremy
I thought I had this licked in my first form.  I was able to get the default
validations to work along with a couple of custom ones:)  However, not on a
subsequent form.  The required validation and two custom ones work on the
first form, but not on the second.  Its like the never even are attempted.
So once again I am stuck.:(  Can anyone give me any suggestions on trouble
shooting a validation that doesnt get called.  Maybe some advanced logging
switches or something to that extent.  I have also included portions of my
config files if it may help.

Anyway, if you can think of anything, thanks again.

Jeremy

APPSERVER.JSP
-















...





VALIDATION.XML
--


First Form Works










   
   
mask
^http.*$






VALIDATION-RULES (this works on first form)
---
   



STRUTS-CONFIG.XML
-






 
  
  
  


  
   

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




crash, struts - pageContext?

2002-12-19 Thread Tomas Zverina
Hello,

I would like to ask you about your opinion or experiece with the
following problem.

Our application is an EJB application, running on jBoss (3.0.2 or
3.0.4), J2SE 1.4.1 and Struts 1.1.b2.

The primary problem is an OutOfMemoryException which occures on WinNT,
where the application is deployed. After repeating HTTP requests
java.exe allocates about 100MB of RAM (suddenly) and keeps alocating.
During 2 minutes it allocates all the free memory (1.5GB) and ends with
OutOfMemoryException. During this crash, browser gets its response and
the crash continues without user interaction.

Crash cannot be repeated by requesting the same actions, we can work
with the application as normaly and the crash will not occure. It
doesn't depend on data or operations order. It occures on random basis.

On linux, and this is the secondary problem, I was not able to repeat
this crash. Instead of this I get following error:

Unexpected Signal : 11 occurred at PC=0x4054E6DC
Function=array_addressing__5Parse9BasicTypeiPPC4Type+0x118
Library=/usr/java/j2sdk1.4.1_01/jre/lib/i386/server/libjvm.so

JSP page I'am requesting can be pure JSP without connection to SQL etc.,
a few struts tags are enough to crash. Specially "iterate" and "define",
I suppose that an implementation of pageContext is responsible for this
bug - not Struts themself.

I have tried another versions and another hardware with the same
problem. Used computers can be only classified by "an average number" of
responsed request until crash.

I'am not sure if those problems (Win X Linux) bear of each other, but
they are caused by the same actions.

Have you got any ideas or experience with this behavior?
Or any hints how I can recognize what exactly goes wrong?

Tomas Zverina


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




Re: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Mark
Have you compared the batch files and shell scripts? Have you changed them?

I develop on osx deploy on linux and windows with no problems, but I never
touch the scripts... Upgrades n all..

On 19-12-2002 16:15, "James Childers" <[EMAIL PROTECTED]> wrote:

> Write once, debug everywhere. Love Java, but going from one platform to
> another usually involves some effort.
> 
> What kind of errors are you getting? Hard to answer this question without
> knowing at least that much.
> 
> -= J
> 
>> -Original Message-
>> From: Beeson, Ashley [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, December 19, 2002 9:06 AM
>> To: '[EMAIL PROTECTED]'
>> Subject: Compiled JSPs are different on windows and Solaris
>> 
>> 
>> Hello
>>  
>> We have a problem with deploying our struts application. We develop on
>> Windows2000 machines running tomcat 4.0.4 and yet when we
>> deploy our war on
>> our Solaris 8 box we are getting errors which do not appear
>> when we test on
>> our windows boxes.
>>  
>> We know this isn't a data issue as we are using the same
>> database/data. When
>> looking at the java files created by tomcat in the
>> /work/Standalone/localhost/blah/ directories they are
>> radically different
>> despite using the same version of Java (1.4.0.0_01) on both
>> windows and
>> Solaris
>>  
>> We have managed to fix a few of the problems we were having
>> by upgrading
>> from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
>> getting errors which we do not get on Windows (with Tomcat 4.0.4).
>>  
>> Any ideas people?
>>  
>> Thanks in Advance
>>  
>> Ash Beeson
>> 
>> 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.
>> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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




RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Sri Sankaran


> -Original Message-
> From: Beeson, Ashley [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, December 19, 2002 10:06 AM
> To: '[EMAIL PROTECTED]'
> Subject: Compiled JSPs are different on windows and Solaris
> 
> 
> Hello
>  
> We have a problem with deploying our struts application. We 
> develop on Windows2000 machines running tomcat 4.0.4 and yet 
> when we deploy our war on our Solaris 8 box we are getting 
> errors which do not appear when we test on our windows boxes.
>  

What kind of errors?  Are the errors valid, i.e. *should* they have surfaced on 
Windows also?

> We know this isn't a data issue as we are using the same 
> database/data. When looking at the java files created by 
> tomcat in the /work/Standalone/localhost/blah/ directories 
> they are radically different despite using the same version 
> of Java (1.4.0.0_01) on both windows and Solaris
>  

Were you using the same version of Tomcat on Windows and Solaris?  At the risk of 
sending of a un-supported scare, I know there were some issues with Tomcat 4.0.x that 
were resolved in 4.1.12.

> We have managed to fix a few of the problems we were having 
> by upgrading from Tomcat 4.0.4 to Tomcat 4.1.17 on our 
> Solaris box but we are still getting errors which we do not 
> get on Windows (with Tomcat 4.0.4).
>  

So are you now using 4.1.17 on both platforms (apples and apples).

> Any ideas people?
>  
> Thanks in Advance
>  
> Ash Beeson

Sri


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




RE: Compliment Frameworks

2002-12-19 Thread Sandra Cann
There are a couple tutorial examples - and the EDG (Expresso Developers
Guide) doc  etc. You'll find the doc at:
http://www.jcorporate.com/product/expresso.html > Documentation. A bit
slow to load - we are currently working on bringing up a new server
which will resolve this. 

> -Original Message-
> From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, December 17, 2002 4:19 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Compliment Frameworks
> 
> 
> are there any big documentation for expresso?
> may be a book or several tutorials?



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




RE: Compiled JSPs are different on windows and Solaris

2002-12-19 Thread James Childers
Write once, debug everywhere. Love Java, but going from one platform to another 
usually involves some effort.

What kind of errors are you getting? Hard to answer this question without knowing at 
least that much. 

-= J

> -Original Message-
> From: Beeson, Ashley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 9:06 AM
> To: '[EMAIL PROTECTED]'
> Subject: Compiled JSPs are different on windows and Solaris
> 
> 
> Hello
>  
> We have a problem with deploying our struts application. We develop on
> Windows2000 machines running tomcat 4.0.4 and yet when we 
> deploy our war on
> our Solaris 8 box we are getting errors which do not appear 
> when we test on
> our windows boxes.
>  
> We know this isn't a data issue as we are using the same 
> database/data. When
> looking at the java files created by tomcat in the
> /work/Standalone/localhost/blah/ directories they are 
> radically different
> despite using the same version of Java (1.4.0.0_01) on both 
> windows and
> Solaris
>  
> We have managed to fix a few of the problems we were having 
> by upgrading
> from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
> getting errors which we do not get on Windows (with Tomcat 4.0.4).
>  
> Any ideas people?
>  
> Thanks in Advance
>  
> Ash Beeson
> 
> 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.
> 

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




Re: monkey tree problem

2002-12-19 Thread Affan Qureshi
Are you talking about JavaScript click event here? The names of the buttons
are generated using the nesting scheme like:
name="bean1.nestedBean1.nestedBean2.button1". Or if they are indexed (in an
array) it uses the array syntax like
name="bean1.beanColl[2].nestedBeanColl[4].button1".

Have you tried using the onclick attribute of the  tag. You
can pass this button into the JavaScript function and use the above scheme
to know which button was clicked.

Is there a way you can accomplish the same functionality (like the
monkey-tree example v2) by making the bean request-scoped?

Affan

- Original Message -
From: "Amit Badheka" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 5:48 PM
Subject: monkey tree problem


Hi All,

I have a requirement to generate the tree structure from the collection
object.

right now I am using the monkey tree to generate the tree structure for the
same.

The tree is generating fine. But, the problem is that I want to catch the
click event i.e. which node is clicked so that I can get the node name that
is clicked.

Is anybody is using monkey tree?

please help me to resolve this problem, also if there is any alternate
option let me know.

thanks a lot,

Amit Badheka.




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




Compiled JSPs are different on windows and Solaris

2002-12-19 Thread Beeson, Ashley
Hello
 
We have a problem with deploying our struts application. We develop on
Windows2000 machines running tomcat 4.0.4 and yet when we deploy our war on
our Solaris 8 box we are getting errors which do not appear when we test on
our windows boxes.
 
We know this isn't a data issue as we are using the same database/data. When
looking at the java files created by tomcat in the
/work/Standalone/localhost/blah/ directories they are radically different
despite using the same version of Java (1.4.0.0_01) on both windows and
Solaris
 
We have managed to fix a few of the problems we were having by upgrading
from Tomcat 4.0.4 to Tomcat 4.1.17 on our Solaris box but we are still
getting errors which we do not get on Windows (with Tomcat 4.0.4).
 
Any ideas people?
 
Thanks in Advance
 
Ash Beeson

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: Using xsl-t instead of JSP

2002-12-19 Thread Sri Sankaran
StrutsCX @ http://it.cappuccinonet.com/strutscx/

Sri

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 19, 2002 8:57 AM
To: [EMAIL PROTECTED]
Subject: Using xsl-t instead of JSP


Hi all,

I'm just starting with struts and have read user-developer docs and have this question.

Is it posable to use xsl-t files instead of the jsp files?

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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


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




RE: Bean:message question

2002-12-19 Thread Sri Sankaran
Only in Struts 1.1

Sri

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 19, 2002 2:03 AM
To: Struts Users Mailing List
Subject: Re: Bean:message question







just a guess

-D

- Original Message -
From: "Joao Araujo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 10:33 PM
Subject: Bean:message question


> Hi,
>
> Is there a way to pass a  as an argument 
> to another bean message?
>
> something like 
>
>
> Obvious the above does not work. But I wish something like this.
>
>
> Joao,
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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


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




RE: struts-el:submit question

2002-12-19 Thread Siggelkow, Bill
Are you missing the trailing quote of the el "${action}"

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 9:11 PM
To: Struts Users Mailing List
Subject: struts-el:submit question


Hi,

I have this code


mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 

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




RE: Form Errors (Newbie)

2002-12-19 Thread Siggelkow, Bill
Yes -- you will see the fields filled if you specify the jsp page as the "input" 
attribute of the action mapping.  Struts will forward the form and the errors back to 
the input page for rendering.

-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 12:52 AM
To: [EMAIL PROTECTED]
Subject: Form Errors (Newbie)


Hi,

I would like to know whether the following is possible to implement with
Struts.

I display a form for creating, say, a Service. The user fills in a form.
When the form is submitted, the Validator performs the validations with
no errors. Now the control comes to the execute method. In this method,
I find that the Service Name is already present in DB. Now I need to
display the "input form" indicating along side the field that "this
Service already exists, give a different name".

Although it seems possible, the doubt I have is as follows. The input
form might have been generated based on a complex s performed
in the JSP. Now when Action encounters an error, will it be able to
display the input form in "exactly the same" state? Which means that if
the input form contains a lot of fields with specific values, do I see
the same values when it is displayed again with some errors?

Thanks for your time.

Suresh


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




RE: Using xsl-t instead of JSP

2002-12-19 Thread Andrew Hill
Check out stxx

http://www.oroad.com/opencode/stxx/

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 21:57
To: [EMAIL PROTECTED]
Subject: Using xsl-t instead of JSP


Hi all,

I'm just starting with struts and have read user-developer docs and have
this question.

Is it posable to use xsl-t files instead of the jsp files?

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Using xsl-t instead of JSP

2002-12-19 Thread Simon Kelly
Hi all,

I'm just starting with struts and have read user-developer docs and have
this question.

Is it posable to use xsl-t files instead of the jsp files?

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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




JNDIConnectorPlugin Example - C.Caveness Book

2002-12-19 Thread JONATHAN PHILIP HOLLOWAY
Has anybody attempted to use the example in the Programming Jakarta Struts book
for the JNDI stuff.  It defines two things:

a) A JNDIConnectorPlugin class that takes the properties from the struts-config.xml
configuration file.

b) An EJBHomeFactory that uses the JNDIConnectorPlugin to lookup a reference to
an Enterprise Java Bean.

The JNDIConnectorPlugin simply takes the values from the config file and inserts 
them into the servlet context for retreval by any servlet via:

getServlet.getServletContext()

The problem with this is that it needs to call this from the EJBhomeFactory which
is simply a singleton class and has no reference to the Servlet Context.  In the book
by C.Caveness he retrieves these properties from a properties file but what I want
to do is to get them from the servlet context (which JNDIPlugin has used to place
the values).  Is there any way of doing this from a standard class or does 
EJBHomeFactory
need to be implemented as a servlet?  

Is this the best approach to take when looking up EJB's form an action class via
the jndi properties?  It seems to me like it is and I don't want to hardcode the values
in the EJBHomeFactory rather take them from the servlet context. 

Also when it comes to the EJBHomeFactory I only want to cache references to one EJB
namely my central facade session bean.  Does anybody know whether it's possible to
resuse the same instance (that's cached) in different action classes or does it have 
to be
a seperate instance for each action class (in a similar way to which a database 
connection
pool works).

Does anybody have any other better methods of looking up EJB's form action classes?

Many thanks,
Jon.

*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*



Re: Problems with IE5.5/IE6.0 and MultiPart Requests

2002-12-19 Thread Mark

I'm not sure.. So din't sue me if I'm wrong, but I was looking through the
cvs logs for struts the other day.. And I recall there was such a bug ..

If I was in your shoes I'd get my hands on the commons-fileupload.jar. Its
what is used for 1.1, this was you don't have to risk any bleeding edges
issues..

Hope this helps and I'd be interested whether is works



On 19-12-2002 10:46, "Thorwesten, Klaus" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> we have a webapplication based on struts 1.0.1 running on a Tomcat 3.3.1 and
> Apache 1.3.26. This application contains the possibility to upload files to
> the server. 
> We use the struts-upload functionality for this.
> 
> When using the upload with IE 5.5 or IE 6.0 the browser sends a duplicated
> request which
> means that the first part of the request is sent twice while the second part
> of the 
> request, which contains the file information, is only sent once.
> 
> From time to time we get a ServletException
> "MultipartIterator: invalid multipart request data, doesn't start with
> boundary"
> It seems to be that when this exception occures the MultipartIterator
> doesn't read from
> file-section of the request, but it reads from one of the duplicated
> request-parts as
> the first line starts with "POST bla.do ... "
> 
> Another phenomenom is that sometimes the sessions seems to be lost. This
> also occures
> when uploading files with IE 5.5 or IE 6.0.
> 
> Has anyone a hint or faced a similar problem?
> 
> Thanks in advance,
> Klaus
> 
> 
> 
> -
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
> Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
> sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
> 
> This e-mail may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail.
> Any unauthorised copying, disclosure or distribution of the material
> in this e-mail is strictly forbidden.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Re: monkey tree problem

2002-12-19 Thread JONATHAN PHILIP HOLLOWAY
I'm using Monkey Tree but I can't seem to get it to work under Struts 1.1,
which version are you using it under at present?  If it's 1.1 could you give
me a few pointers on how you got it working or mail me the war file if
that's not being too cheeky : )

Jon.

- Original Message -
From: "Amit Badheka" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 12:48 PM
Subject: monkey tree problem


Hi All,

I have a requirement to generate the tree structure from the collection
object.

right now I am using the monkey tree to generate the tree structure for the
same.

The tree is generating fine. But, the problem is that I want to catch the
click event i.e. which node is clicked so that I can get the node name that
is clicked.

Is anybody is using monkey tree?

please help me to resolve this problem, also if there is any alternate
option let me know.

thanks a lot,

Amit Badheka.




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




monkey tree problem

2002-12-19 Thread Amit Badheka
Hi All,

I have a requirement to generate the tree structure from the collection object.

right now I am using the monkey tree to generate the tree structure for the same.

The tree is generating fine. But, the problem is that I want to catch the click event 
i.e. which node is clicked so that I can get the node name that is clicked.

Is anybody is using monkey tree?

please help me to resolve this problem, also if there is any alternate option let me 
know.

thanks a lot,

Amit Badheka.
 



RE: pagination in struts

2002-12-19 Thread Robert Taylor
Searching the Struts mailing list archive
(http://www.mail-archive.com/struts-user@jakarta.apache.org/)  for
"pagination" produced 43 hits.

Of which the following might be of interest.

http://jsptags.com/tags/navigation/pager/

http://edhill.its.uiowa.edu/display-0.8/

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg43661.html

robert

> -Original Message-
> From: cnyinhua [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 12:48 AM
> To: 'mailing'
> Subject: pagination in struts
>
>
> Hi, all
> Has somebody have the experience of the pagination?
> Does the struts support this feature?
> I hope the script in the display jsp can be as little as possible.
> Any help will welcome especially some example code.
>
>
> Best regard!
>
> Frank
> Software Engineer
> Bleum Incorporated
> 9E East Building, Hi-Tech King World
> 668 East Beijing Road.
> Shanghai, P.R.C.21
> Phone: (8621) 5308 1196
> http:// www.bleum.com
>
>


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




Re: pagination in struts

2002-12-19 Thread Parveen Kumar Hooda
Hi

You  can use the Display tag.This tag supports the pagination
feature.You can down load and view the code from this URL
http://edhill.its.uiowa.edu/display-examples-0.8/
hope this may help you.

regards
Pary
- Original Message -
From: "cnyinhua" <[EMAIL PROTECTED]>
To: "'mailing'" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 11:18 AM
Subject: pagination in struts


> Hi, all
> Has somebody have the experience of the pagination?
> Does the struts support this feature?
> I hope the script in the display jsp can be as little as possible.
> Any help will welcome especially some example code.
>
>
> Best regard!
>
> Frank
> Software Engineer
> Bleum Incorporated
> 9E East Building, Hi-Tech King World
> 668 East Beijing Road.
> Shanghai, P.R.C.21
> Phone: (8621) 5308 1196
> http:// www.bleum.com
>
>



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




Re: beanutils populate problem with formbeans and vectors

2002-12-19 Thread Michael Olszynski
Hi Richard,

thanks for your help. I tried what u wrote me, but it didn´t work. I get
following exception:


11:36:32,775 ERROR [Engine]
ApplicationDispatcher[/Zeiterfassung_Applikation] Se
rvlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
a:395)
at
org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:191)
at
org.apache.jsp.template_jsp._jspx_meth_template_get_4(template_jsp.ja
va:221)
at
org.apache.jsp.template_jsp._jspx_meth_html_html_0(template_jsp.java:
118)
at org.apache.jsp.template_jsp._jspService(template_jsp.java:62)
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:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
a:395)
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
55)
at
org.apache.jsp.index_jsp._jspx_meth_template_insert_0(index_jsp.java:
108)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:71)
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:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)


**

Here ist the Code I wrote:

FormBean:

public class TimeProofFormBean extends ActionForm {


public FormBeanVector getTimeProofList() {
return this.timeProofList;
}

public void setTimeProofList( Vector v ) {
this.timeProofList = new FormBeanVector ( TimeProofTableBean.class,
v);
}

 public FormBeanVector getDayBeanList() {
return this.dayBeanList;
}

public void setDayBeanList( Vector v ) {
this.dayBeanList = new FormBeanVector(DayBean.class,v);
}

private FormBeanVector timeProofList = new
FormBeanVector(TimeProofTableBean.class);
private FormBeanVector dayBeanList = new FormBeanVector(DayBean.class);

}
***
My own vector:

public class FormBeanVector extends Vector {

// Empty constructor, just to set the type of class
public FormBeanVector( Class _contentClass ) {
if( _contentClass == null ) {
 System.out.println("this.contentClass = Object.class");
this.contentClass = Object.class;
}
else {
System.out.println("this.contentClass = " +
_contentClass.getName());
this.contentClass = _contentClass;

}
}

// Constructor for the java.util.vector type
public FormBeanVector( Class _contentClass, java.util.Vector vector ) {
// Call my own constructor
this( _contentClass );
this.addAll( vector );
System.out.println("konstruktor mit vectoerchen");
}

public Object get( int index ) {
System.out.println("public Object get( int index ): "+index);
if( index >= this.size() ) {
try {
   return contentClass.newInstance();
 

RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-19 Thread Heligon Sandra
For your information I contacted the support of Ultradev (free support for 2
questions only) and frankly I fell on inefficient. He was not able to
indicate to me if I could configure a Web server using JSP1.1 (let us not
speak about 1.2) with Ultradev. Its slogan was: you use tomcat, to defer to
the site jakarta-apache, I believe to dream whereas their Doc. indicates
that there is an extension to configure a server with JSP1.1
(http://www.macromedia.com/support/ultradev/ts/documents/ultradev_faq.htm).
That would at least make it possible to use Tomcat3. Unfortunately I do not
see how to use this extension and it was clearly accapable to show to me how
to make. We bought Ultradev to more easily build the pages and we cannot use
it it is a roof all the same. If somebody with a suggestion, thank you in
advance.   
 
-Original Message-
From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 11:18
To: 'Struts Users Mailing List'
Subject: RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


> I really find this remark not constructive. I do not seek 
> somebody who hates
> this tool but on the contrary, somebody which uses it with Struts(voir
> Tiles) and with which I can have exchanges. 
> Marcomedia and Struts are not incompatible. 

Sure!
My remark was just a troll for the old time 
OSS adepts, who used to hear, a few years ago: 
"Open Source can't win, support is too poor."

Nowadays, proprietary software users rely on 
Open Source mailing-lists for infos about their 
(expensive :-) products.

BTW, I am also very interested in reports about 
Struts-Dreamweaver integration.

Note: serais-tu la premiere francaise abonnee a 
la liste? :-PPP

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Problems with IE5.5/IE6.0 and MultiPart Requests

2002-12-19 Thread Thorwesten, Klaus
Hi,

we have a webapplication based on struts 1.0.1 running on a Tomcat 3.3.1 and
Apache 1.3.26. This application contains the possibility to upload files to
the server. 
We use the struts-upload functionality for this.

When using the upload with IE 5.5 or IE 6.0 the browser sends a duplicated
request which
means that the first part of the request is sent twice while the second part
of the 
request, which contains the file information, is only sent once. 

>From time to time we get a ServletException 
"MultipartIterator: invalid multipart request data, doesn't start with
boundary"
It seems to be that when this exception occures the MultipartIterator
doesn't read from
file-section of the request, but it reads from one of the duplicated
request-parts as
the first line starts with "POST bla.do ... "

Another phenomenom is that sometimes the sessions seems to be lost. This
also occures
when uploading files with IE 5.5 or IE 6.0.

Has anyone a hint or faced a similar problem?

Thanks in advance,
Klaus



-
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren 
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in 
error) please notify the sender immediately and destroy this e-mail. 
Any unauthorised copying, disclosure or distribution of the material 
in this e-mail is strictly forbidden.



Klaus Thorwesten.vcf
Description: Binary data
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


FW: Digester - Config.xml - datasource

2002-12-19 Thread Mark
Sorry people, but I could do with some feedback on this rather than finding
out the hard way.. Up up against the wire I I want to get my flight back
home for christmas..

Anyone done this? Is my question silly (would be the first time)?

Many thanks

mark


-- Forwarded Message
From: Mark <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Date: Thu, 19 Dec 2002 01:14:29 +0100
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Digester - Config.xml - datasource

Hello

I'm wondering whether anyone has every used digester to read in properties
from config.xml and then addSetProperty to change a couple of values..

E.g.



Now I want to make a connection to pretty much the same db etc.. Has anyone
tried. 

Digester newdatasource = new Digester();
newdatasource . addObjectCreate("datasources/datasource", "DataSource");
newdatasource 
.AddSetProperty("struts-config/datasources/datasource/setproperty","key","my
key²);
newdatasource 
.AddSetProperty("struts-config/datasources/datasource/setproperty","username
","ricky²);
newdatasource 
.AddSetProperty("struts-config/datasources/datasource/setproperty","password
","bianca²);

//Some means of reading in the properties that I don¹t want to change, but I
haven¹t found yet.. Etc

Javax.sql.DataSource ds = getDatasource(³mykey²);

Will this work? 
Has anyone done this.,

Many thanks in advance and seasonal felicitations




--
To unsubscribe, e-mail:

For additional commands, e-mail:




-- End of Forwarded Message


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




RE: html tablib

2002-12-19 Thread shirishchandra . sakhare
there are some example jsps with struts 1.0.2 download..It has examples of 
usage of most of the tags including texttag..

regards,
shirish.

-Original Message-
From: usha [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 19, 2002 7:01 AM
To: struts-user
Cc: usha
Subject: html tablib


Hi

can anybody tell me how the struts-html tld's text tag works.especially 
setting the property attribute for the texttag.

thanks
usha


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



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




Error with bean

2002-12-19 Thread Peng Tuck Kwok
I'm trying to get my first form working with the validator and I seem to 
have a problem creating my LoginForm bean, it says that it can 
instantiate the LoginForm bean, is there a problem in the bean ?
/*
 * LoginForm.java
 *
 * Created on December 19, 2002, 11:42 AM
 */

package com.makmal.struts.forms;

import java.beans.*;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.validator.ValidatorForm;

/**
 *
 * @author  Administrator
 */

public class LoginForm extends ValidatorForm implements java.io.Serializable {

//private static final String PROP_SAMPLE_PROPERTY = "SampleProperty";

//private String sampleProperty;

//private PropertyChangeSupport propertySupport;

private String loginName; 
private String passwordValue;

/** Creates new LoginForm */
public LoginForm() {
//propertySupport = new PropertyChangeSupport( this );
}

public String getLoginName() { 
return loginName ;
}
public void setLoginName(String login_value) {
loginName = login_value ;
}

public String getPasswordValue() {
return passwordValue ;
}
public void setPasswordValue(String password_value) {
passwordValue = password_value ;
}

public void reset(ActionMapping mapping, HttpServletRequest request) {
loginName = null ;
passwordValue = null ;
}

/**public String getSampleProperty() {
return sampleProperty;
}

public void setSampleProperty(String value) {
String oldValue = sampleProperty;
sampleProperty = value;
propertySupport.firePropertyChange(PROP_SAMPLE_PROPERTY, oldValue, 
sampleProperty);
}


public void addPropertyChangeListener(PropertyChangeListener listener) {
propertySupport.addPropertyChangeListener(listener);
}

public void removePropertyChangeListener(PropertyChangeListener listener) {
propertySupport.removePropertyChangeListener(listener);
}*/

}


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


RE: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles

2002-12-19 Thread Heligon Sandra
I think that there is indeed a problem owing to the fact that only an
application server JSP1.0 can be defined whereas Struts1.1/Tomcat4.0.1 uses
specifications 1.1. I thought all the same of being able use the
Ultradev/Struts extension but without using the innovations of version 1.1
while waiting for better days. I do not know exactly the evolutions brought
between JSP1.0 and JSP1.1. It is a shame to have bought such a product and
not to be able to use it. 

-Original Message-
From: Duma Rolando [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 15:00
To: Struts Users Mailing List
Subject: Re: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


I tried to configure UD in the past without succes.In the server model
option it shows only a jsp 1.0 support, so I think you can't use struts 1.1.
Dreamvewaver MX taglib support is unlimited ( requires only a tld file
configured in the IDE), but I haven't yet tried to configure a jsp 1.2 site
with "live data" feature enabled.
Bye

- Original Message -
From: "Heligon Sandra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 10:08 AM
Subject: Marcomedia Dreamweaver Ultradev4 - Struts - Tiles


>
> I will wish to know if somebody uses Marcomedia Dreamweaver
> Ultradev4 to develop JSP by using  Struts tags +
> Tiles components.
> I use Tomcat4.0.1 with JSP1.2 and Servlet2.3 and I can not define a
> site.
> Thanks in advance
> Sandra
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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