Re: Need help getting a production/stable version of v1.1

2002-03-07 Thread CyberZombie

Note that the 1/12 build will not work with JDK1.4...

Bruce Geerdes wrote:

>Ted Husted posted the 1/12 build on his web site.  You can see his message at
>"http://www.mail-archive.com/struts-user@jakarta.apache.org/msg23631.html";.
>
>Bruce
>
>
>"Read, Karen" wrote:
>
>>>We started using a version of Struts from a nightly build without source
>>>code.  This version includes support in the package
>>>org.apache.struts.taglib.html for the "indexed" attribute in a couple of
>>>the classes.  Our code relies on this as well as many of the other
>>>changes.  Some of these were not available in the newly released 1.0.2
>>>version released in Jan. 2002.  We need to find a stable version that we
>>>can use that contains these fixes and also the source code for debugging
>>>purposes. I am hoping that there will be a release soon or you can point
>>>me to a stable version that we can use that contains the needed fixes.
>>>Thank you in advance,
>>>Karen Read
>>>Railinc Corporation
>>>Cary, NC
>>>
>>--
>>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: 




LabelValueBean

2002-03-04 Thread CyberZombie

I'm getting a deserialization error in Tomcat during a reinit pointing 
to LabelValueBean.  Checking out the current CVS source, I note that it 
doesn't implement Serializable.  Is there a reason why it doesn't 
implement this?



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




Re: use of nested:iterate and nested:nest tags

2002-02-28 Thread CyberZombie

FWIW (too lazy to reply on the original thread), thanks for fixing the 
nested:link tag.  And I'm getting ready to start extending the nested 
tags in my custom link tags as they're just too darn useful to not use...

Arron Bates wrote:

> No stress.
> :)
>
> CyberZombie wrote:
>
>> Heh...I didn't reply as I saw nothing wrong with it and didn't count 
>> myself advanced enough in the ins-and-outs of nested to guess outside 
>> of the given scope.
>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
>





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




Re: use of nested:iterate and nested:nest tags

2002-02-28 Thread CyberZombie

Heh...I didn't reply as I saw nothing wrong with it and didn't count 
myself advanced enough in the ins-and-outs of nested to guess outside of 
the given scope.

Arron Bates wrote:

> I was hoping that other people would start helping with the nested 
> tags, but anyways.
>
> Rest assured, your markup is fine (At least the part you provided :).
> It's easier to tell with nested tags. Less detail to worry about ;)
>
> Are there any errors, or is it just that the bean property isn't 
> updating on the server?... Throw some System.out.println() messages 
> into the bean's setter method to double check.
> The "name" text field updates fine?...
>
> Because this part of the markup is perfect, the problem would have to 
> be with how the bean itself is managed. Any clean-up code may be 
> destroying the bean, or possibly the bean may be bouncing in and out 
> of scope.
>
> Try the above and get back to us.
>
> Arron.
>
>
> Sriram Nookala wrote:
>
>> I have the following code in my jsp within a  tag:
>>
>> Here attributeDefintionList is a collection of AttributeDefintion beans.
>> AttributeDefinition has a property type which itself is an 
>> AttributeType bean with a property store.
>> The code I have doesn't seem to setting and getting store for 
>> AttributeType.
>> What am I missing here?
>> thanks,
>> sriram
>>
>> 
>>
>>
>>  
>>
>>
>> 
>>   
>> 
>>
>>
>>
>>
>>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>





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




Problem with struts20020112.zip and JDK1.4

2002-02-26 Thread CyberZombie

This nightly build (before the big change) has included some commons 
components.  However, it does not include commons-logging.  When used 
with JDK1.4, I get a NoSuchMethodError from the commons Digester into 
the Log looking for setLevel(I)V.  Looking at the CVS for 
commons-logging, I note that a large change was made to that interface 
on 1/17.

Is there an easy way to retrieve the state of the commons logging 
facility as it existed on 1/12?  Or do I need to get/configure CVS so I 
can check out a copy for that date and build it myself (and dependancies?)



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




Re: Development Environment

2002-02-21 Thread CyberZombie

Trying not to cheer too much (just a satisfied user), Cygwin is a 
complete *nix environment that runs as a Windows process.  I love 
symbolic links, mounts, gcc, perl, awk and all the other tools -- 
especially the bash shell.  And I run it on every PC I use -- office and 
home.  At home I have sshd (secure shell daemon - part of OpenSSH which 
is included in Cygwin) and have no problems punching through any 
corporate firewall to not only access my home PC, but (with the help of 
TightVNC) bring up my home desktop remotely.

I like to think of Cygwin as a way of getting to me the most powerful 
open source tools on the planet while still letting me use all of the 
GUI tools I want when I have need for something more visual...

http://www.cygwin.com

[EMAIL PROTECTED] wrote:

>OK, I'll bite. I'm a Linux ignoramus. What do you do with Cygwin? Is there
>more to it than a bash shell?
>
>-Original Message-----
>From: CyberZombie [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 21, 2002 9:42 PM
>To: Struts Users Mailing List
>Subject: Re: Development Environment
>
>
>Cygwin rocks!  W2K, Cygwin, Ant, Apache, Tomcat, Weblogic and Visual 
>SlickEdit (w/ vim for quick stuff) here...
>
>Jonathan James wrote:
>
>>Windows 2000, cygwin & vim
>>
>>- Original Message -
>>From: "Dave Wellman" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Thursday, February 21, 2002 11:41 AM
>>Subject: Development Environment
>>
>>
>>>Hello,
>>>
>>>Quick question, what is the preferred development environment that you are
>>>all using, Linux - Emacs, VIM,  Windows - JBuilder, VisualAge?
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>><mailto:[EMAIL PROTECTED]>
>>
>>>For additional commands, e-mail:
>>>
>><mailto:[EMAIL PROTECTED]>
>>
>>>
>>
>>--
>>To unsubscribe, e-mail:
>>
><mailto:[EMAIL PROTECTED]>
>
>>For additional commands, e-mail:
>>
><mailto:[EMAIL PROTECTED]>
>
>>
>
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>





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




Re: Development Environment

2002-02-21 Thread CyberZombie

Always forgetting something (rather remembering after reading other 
follow-ups).  Add to the mix TogetherJ (analysis and design,) EJBGen 
(EJB 2.0 CMP, Session facades and Value Object creation) and some 
home-grown tools for decorating the VO's in Struts Forms...

CyberZombie wrote:

> Cygwin rocks!  W2K, Cygwin, Ant, Apache, Tomcat, Weblogic and Visual 
> SlickEdit (w/ vim for quick stuff) here...
>
> Jonathan James wrote:
>
>> Windows 2000, cygwin & vim
>>
>> - Original Message -
>> From: "Dave Wellman" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Thursday, February 21, 2002 11:41 AM
>> Subject: Development Environment
>>
>>
>>> Hello,
>>>
>>> Quick question, what is the preferred development environment that 
>>> you are
>>> all using, Linux - Emacs, VIM,  Windows - JBuilder, VisualAge?
>>>
>>>
>>> -- 
>>> To unsubscribe, e-mail:
>>>
>> <mailto:[EMAIL PROTECTED]>
>>
>>> For additional commands, e-mail:
>>>
>> <mailto:[EMAIL PROTECTED]>
>>
>>>
>>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: 
>> <mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
>





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




Re: Development Environment

2002-02-21 Thread CyberZombie

Cygwin rocks!  W2K, Cygwin, Ant, Apache, Tomcat, Weblogic and Visual 
SlickEdit (w/ vim for quick stuff) here...

Jonathan James wrote:

>Windows 2000, cygwin & vim
>
>- Original Message -
>From: "Dave Wellman" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, February 21, 2002 11:41 AM
>Subject: Development Environment
>
>
>>Hello,
>>
>>Quick question, what is the preferred development environment that you are
>>all using, Linux - Emacs, VIM,  Windows - JBuilder, VisualAge?
>>
>>
>>--
>>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: Stumped with nested iterator and nested link

2002-02-19 Thread CyberZombie

Arron Bates wrote:

> [ ...cut... ]
>
> The nested tags as of mid Jan (nightly build and separate jars) are 
> able to reference the current parent directly using the "this/" or 
> "./" properties (same thing, just allowing for different tastes). Any 
> property with "/" on the end will be treated as a parent reference. If 
> you use anything else eg "somethingElse/" it will also be treated as a 
> relative reference and step back through the last parent and reference 
> the parent object before it.
>
> This allows you to write out the String value of the current parent 
> object, and various other uses like being able to write out a 
> collection of Strings etc.

I guess I just am having a "lack-of-understanding" problem with regards 
to nested:link then.  When I use the "this/", I still can't get the HREF 
to be correctly generated.  Given the following:







What is the proper combination (or incantation) of attributes that will 
append to the page link the query "?transactionKey=1001" (or whatever 
the current iteration value for transaction.getTransactionKey() is)?

>> Note:  Manipulating the Collection as an Array (IMHO) is not a good 
>> solution -- and the nested iterator is already pointing at the 
>> current transaction. 
>
>
> What do you mean by this exactly?...

Not really sure any more -- yesterday was a LONG day (as today will be 
as well...)



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




Stumped with nested iterator and nested link

2002-02-18 Thread CyberZombie

I have a Collection of transactions that I want to be able to provide 
HREFs to.  What I'm looking to do is create a bunch of references, each 
with their own query tag -- i.e., 
"/do/secure/viewTrans?transactionKey=1001".  The following doesn't die 
(both the property and paramProperty tags must be specified or the 
nested:link tag dies with a null pointer exception on lines 96, 97 
respectively).  But it only produces "/do/secure/viewTrans" -- no query.


  

  

  

  

  


I suspect this has to do with the nested library not being able to 
return a reference to the current name as a property.  I'll probably 
just write my own nested tag that can handle the links as I see fit. 
 Does anyone have any other suggestions?  Note:  Manipulating the 
Collection as an Array (IMHO) is not a good solution -- and the nested 
iterator is already pointing at the current transaction.



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




Re: Form -> Bean conversion

2002-02-15 Thread CyberZombie

Here's a rudimentary wrapper tool.  The commented out section is used 
when wrapping for Struts 1.0.x -- 1.1 does a much better job there.  I 
still have hardcoded the file masks (I assume all VO's end in 
Value.java).  And I assume that all wrapped getters have corresponding 
setters.  What can I say...I got lazy when I got it working and went 
back to solving the business problems on this app... :)

John M. Corro wrote:

>We have a bunch of existing beans that we'd like to use w/ ActionForms.  For each 
>bean we'll need to obviously expose the getters/setters in the corresponding 
>ActionForm.  The ideal scenario we'd like to see happen is prevent the ActionForms 
>from having all the corresponding getters/setters hardcoded into it.  We're ok w/ 
>coding the validate() method for each class by hand, but we'd like to avoid having to 
>code each ActionForm w/ a getter/setter (even if it is templated out for us by a 
>Struts plug in or even a custom written batch file).  
>
>Has anyone implemented something like this?
>





StrutsGen.java
Description: java/


StringDate.java
Description: java/

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


Re: ActionForm Defaults/Updates Question

2002-02-14 Thread CyberZombie



> I use reset() to provide all 'best guess' defaults.  Within reset(), I 
> do not do any checks as to the input path, etc. -- strictly stateless 
> initialization.  All other defaults initialization is either done by 
> the Session bean by the return of the VO to my 
> form(form.setValueObject(vo)), or by statefull modification of 
> attributes in the form.

or by statefull modification of attributes in the ACTION.


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




Re: Using tag around tag. Is it legal?

2002-02-14 Thread CyberZombie
When I ran into that issue, I just used two action mappings --
"/editUser" to initialize the form (including an action property that
identified add vs. edit) and forward that to the .jsp. And in the .jsp
form tag I used "/storeEditUser" to process the results.

Antony Stace wrote:

>Hi Ladies and Gentlemen
>
>I want to use  tags around a  but I am having
>errors.  I am not sure if this is allowed in struts.  Can someone please confirmthat 
>this is not or is allowed in struts.
>
>The code I have is
>
>--snip
>
>
>
>
>
>
>
>rest of form definition
>
>--snip-
>
>The error I am getting is
>
>org.apache.jasper.compiler.ParseException: /WEB-INF/pages/clientDetails.jsp(21,0) 
>??:   ???
>   at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>   at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>   at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>   at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java)
>
>
>




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


Re: ActionForm Defaults/Updates Question

2002-02-14 Thread CyberZombie

I'm still on my first Struts application, so bear with me...

I'm using EJBGen to generate all my Entity beans (only local interfaces) 
and Session beans (facades with remote interfaces).  One nice byproduct 
of EJBGen is that it also generates Value Objects for each Entity bean 
(I use hand-coded Assemblers to transfer between Value Objects and 
Entity beans).

I wrote a simple little Java program to take as input a directory of 
Value Objects and output Struts Form Beans using the delagation pattern. 
 I currently hardcode the name as (UserValue -> UserFormBase).  This 
provides the necessary extending of the Struts Form (though I extend my 
own BaseForm), but provides no additional functionality (ex: States 
Collection for a dropdown, additional attributes used in the GUI to 
provide information used by the Action and/or Session bean, map a 
particular ValueObject in the parent VO's Collection to another 
attribute for easier GUI manipulation).  So almost all of my *FormBase 
classes are extended by *Form classes to provide that functionality.

I use reset() to provide all 'best guess' defaults.  Within reset(), I 
do not do any checks as to the input path, etc. -- strictly stateless 
initialization.  All other defaults initialization is either done by the 
Session bean by the return of the VO to my form 
(form.setValueObject(vo)), or by statefull modification of attributes in 
the form.

I currently do validation both in the form and action classes -- and 
don't like the way my form validation has gained some statefull tests. 
 I'll likely refactor that back into the action class and only keep 
domain validation in the form (haven't yet had time to review the 
commons validator package).

Jakkampudi, ChandraseKhar wrote:

>Here is what I do. 
>
>User (Generic Value Object)
>UserBean (Extends form bean)
>
>On initial page we have a link to viewUser.do?userId=100
>In the Action class correspoding to viewUser.do, in the perform method we
>have (maybe through an controller or some such)
>
>User newUser = userDAO.getUserDetails("100");
>request.setAttribute("user", User);
>mapping.findForward("user.jsp");
>
>In the user.jsp page,
>User user = (User)request.getAttribute("user"); Use taglibs for this
>
>
>
>..
>..
>
>
>
>-JC
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 14, 2002 6:52 PM
>To: Struts Users Mailing List
>Cc: [EMAIL PROTECTED]
>Subject: Re: ActionForm Defaults/Updates Question
>
>
>
>> In the end, I've just grabbed the Form bean from the pageContext
>>
>
>Pardon my ignorance but can you tell me the syntax in your JSP page to do
>just that above?I think I'll need to be doing the same thing.
>
>thanks,
>Theron
>
>
>
> 
>
>Mark Woon
>
><[EMAIL PROTECTED]To: Struts Users Mailing
>List <[EMAIL PROTECTED]>
>nford.EDU>   cc:
>
> Subject: Re: ActionForm
>Defaults/Updates Question 
>02/14/02 02:22 PM
>
>Please respond to
>
>Struts Users
>
>Mailing List
>
> 
>
> 
>
>
>
>
>[EMAIL PROTECTED] wrote:
>
>>1. What is the best way to load default values into an ActionForm bean
>>
>that
>
>>will show up the first time a user visits the site and pulls up a jsp
>>
>page?
>
>You know, this question has come up a bunch of times, but I've never seen
>any
>good responses.
>
>If I've got a form in which users enter contact information, the first time
>the
>user sees it, I'd like to set the default values for the form to whatever I
>know
>about the user.
>
>Since I already have a User object, I would think that the best place to do
>this
>would be in the reset() method of the ActionForm, but there's no way to
>pass the
>ActionForm the User object (or any information that's not part of the
>form)!  In
>the end, I've just grabbed the Form bean from the pageContext and called a
>setUser() method so that the reset() method will have something to pull
>data
>from.
>
>Am I missing something?  Is there a better way to do this?
>
>Thanks,
>-Mark
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>--
>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: 




struts-nested defining a root

2002-02-10 Thread CyberZombie

I have an action that creates a form and forwards that to a display-only 
page.  After struggling many hours trying NOT to use an , I 
gave up.  Issues:

1.   needs more than just name.  It should include full 
scope/property semantics.
2.  ,  et.al. don't like 
scope/name/property in the absence of a defined root.

Possible fixes:

1.  Provide a master 'root' that lives one level above the form 
defination.  As  entries appear, make them peers of the 
form.
2.  Implement a root stack   Nesting off of an arbitrary bean pushes the 
root onto the stack and defines a new root.


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