Re: I should know this, but....

2002-06-06 Thread Arron Bates

First off, no need for the name attribute. If it's not working off the 
same bean structure the other nested tags are, then use the original 
 tag using the name attribute to get to the separate bean.

Otherwise from face value the tag markup looks fine... you may want to 
vary the name of the property to the id for clarity however.


Another point which may save you having issues, is that you can use the 
"property" property like a directory structure with relative and 
absolute references...

Check this out for more informative info...

The "The relative references and the "property" property" part...

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/nested/package-summary.html#doc.PropertyProperty


...with that you can just use the  tag where you need it, 
and use the absolute reference from the root of the bean to get to the 
right spot.

Hope any of this helps in some way.


Arron.



Jerry Jalenak wrote:

>Hi All,
>
>Really easy question, but I'm apparently too dumb to figure it out  ;)
>
>I get a run time error of 'Missing Term' (about var1 in the anchor tag) when
>I do the following:
>
>   
>   This is my anchor
>
>This is a simplistic example - I actually need to use 'var1' in several
>places throughout my jsp inside of deeper  tags.  Any ideas?
>
>Thanks!
>
>Jerry
>
>[EMAIL PROTECTED]
>
>This transmission (and any information attached to it) may be confidential and is 
>intended solely for the use of the individual or entity to which it is addressed. If 
>you are not the intended recipient or the person responsible for delivering the 
>transmission to the intended recipient, be advised that you have received this 
>transmission in error and that any use, dissemination, forwarding, printing, or 
>copying of this information is strictly prohibited. If you have received this 
>transmission in error, please immediately notify LabOne at (800)388-4675.
>
>
>
>--
>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: Nested iterate name

2002-06-04 Thread Arron Bates

It's ignored as I preferred to have the tags rely on a central source 
the naming of the bean they're all going to be referencing. I feel it's 
safer being represented in a properly set up root tag, rather than any 
one name attribute of a parent tag.

Some people also put the name attributes of child beans from their 
iterate tags etc etc etc, out of habit or something. If supplying the 
name attribute made a tag a root tag, then the property hierarchy would 
be reset, and the form inputs would be broken with incorrect nested 
properties.

I also feel its better readability in the markup to have a root tag 
which is there for that purpose rather than looking through the tags for 
the errant name attribute. Also makes the child tags easier to read by 
disregarding the name attribute.

Anyways, this is all my $0.0.2. If enough people want this changed, then 
it's possible.


Arron.


David Morris wrote:

>Arron,
>
>And that is what I did. At this point the nested tag is working great
>so 
>it is not worth spending much time on but I wonder why the name 
>attribute on the nested:iterate tag seems to be ignored. From the 
>documentation and what I remember of using the base iterate tag, I 
>expected the following to work:
>
>
>  
>
>  
>
>
>When I tried this the form bean was used rather than myBean. Is 
>the name attribute on a nested:iterate totally ignored? When I look 
>at the NestedNameSupport class I get the impression that nested 
>tag names sit off to the side and do not extend the base name 
>support.
>
>Thanks,
>
>David Morris
>
>>>>[EMAIL PROTECTED] 06/04/02 03:09AM >>>
>>>>
>David,
>
>You can wedge a  tag within the form tag. The child tags
>to 
>the root tag will only see the root tag, and those outside the scope of
>
>the root tag won't know it's there either.
>
>Example...
>
>
>
>
>
>
>
>
>
>[... other nesting exploits ...]
>
>
>
>
>
>...will work just fine. The stuff within the root tag will only be
>
>working against that bean, and the "other nesting exploits" stuff will
>
>be working against the form bean. As soon as the tags hit a valid root
>
>tag, they stop there and use that one. Which is what makes the above 
>possible.
>
>Is this the answer you're looking for?...
>
>
>Arron.
>
>
>
>David Morris wrote:
>
>>I am using the 1.1b1 nested tags and ran into something that 
>>seems inconsistent. When I specify a form like:
>>
>>
>>
>>
>>...
>>
>>I get an error that mybeanproperty, which is an ArrayList  is not 
>>found in myform? If I create a getter in my form bean for mybean 
>>it works OK. I really don't want to do this unless there is a way to 
>>get the request associated with a form bean. 
>>
>>The following sort of thing does work so I have to question whether 
>>I am using the nested tags properly:
>>
>>
>>
>>>property="mybeanproperty.mybeanpropertyproperty">
>>...
>>
>>How do I tell the nested:iterate tag to use the bean I specified 
>>rather than the form bean?
>>
>>Thanks,
>>
>>David Morris
>>
>>
>>
>>--
>>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: nested tag issue

2002-06-04 Thread Arron Bates

>
>
>Absolutely!  Thanks, Aaron...not having used nested tags yet, I've been
>wondering about their syntax and parsing logic.
>

?... give it a go already. The code's there. There's next to no code in 
them, it just handles them little property and bean references for you.

>Sounds like standard XML.
>

err... in the tags, I just get the tag reference and call "getParent()" 
until it returns a valid parent tag root tag as metnioned, or null. 
Naturally the first child needs the root tag to be the one it finds. For 
the curious, it's all in...
org.apache.struts.taglib.nested.NestedPropertyHelper

All the tags go to the same place to to this part of the deal. Any of 
the nested tags is an example of using it. Most just call...
NestedPropertyHelper.setNestedProperties(this);


Standard XML?... you're giving me a little too much credit there mate.
Makes me sound like I know what I'm doing... :)

>Any time anyone elaborates on the operation of a Struts function from
>experience is very helpful as the documentation is as yet vague in many
>places and downright wrong in others (obvious cut-n-paste oversights).
>

We try.
Then you can look at from the point of view that the community finds 
these faults, but doesn't submit the fixes. So it's the community's 
fault b-st-rds!   :)


Arron.

PS: Oh, and you spelt my name wrong. Only get to make the mistake 
once... then I start a leaflet campaign.


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




Re: Nested iterate name

2002-06-04 Thread Arron Bates

David,

You can wedge a  tag within the form tag. The child tags to 
the root tag will only see the root tag, and those outside the scope of 
the root tag won't know it's there either.

Example...









[... other nesting exploits ...]





...will work just fine. The stuff within the root tag will only be 
working against that bean, and the "other nesting exploits" stuff will 
be working against the form bean. As soon as the tags hit a valid root 
tag, they stop there and use that one. Which is what makes the above 
possible.

Is this the answer you're looking for?...


Arron.



David Morris wrote:

>I am using the 1.1b1 nested tags and ran into something that 
>seems inconsistent. When I specify a form like:
>
>
>
>
>...
>
>I get an error that mybeanproperty, which is an ArrayList  is not 
>found in myform? If I create a getter in my form bean for mybean 
>it works OK. I really don't want to do this unless there is a way to 
>get the request associated with a form bean. 
>
>The following sort of thing does work so I have to question whether 
>I am using the nested tags properly:
>
>
>
>property="mybeanproperty.mybeanpropertyproperty">
>...
>
>How do I tell the nested:iterate tag to use the bean I specified 
>rather than the form bean?
>
>Thanks,
>
>David Morris
>
>
>
>--
>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: nested tag issue

2002-06-04 Thread Arron Bates

Absolutely right.

What this code is trying to say, is that the nested tags need a valid 
"root" tag on each JSP. In this case, David's used the  
tag. It can also be the  or  tags. The form tags 
are bound to their form definition in struts-config.xml, to escape this 
and use an external bean, the  tag is required.

Reason for all this, is the tags look up their parent tag, and it in 
turn looks to its parent etc etc etc. If there's no root tag, then 
they'll run out, and not know what bean they're meant to be working off of.

Even when nesting through dynamic includes, the included JSP's need a 
 tag without parameters, so it's child tags can get that 
reference without running off the top of the JSP page looking for a parent.

Just in case anyone wanted the explanation.


Arron.



David Morris wrote:

>Dean,
>
>This is like the blind leading the blind. I wonder why you don't want
>to 
>declare a form but something like this should work:
>
>
>
>
>
>
> 
> 
>
>David Morris
>
>>>>[EMAIL PROTECTED] 06/03/02 04:07PM >>>
>>>>
>
>...This works, where filter.do maps to the form that holds
>myCollection:
>
>   
>   
>   
>   
> 
>  
>
>This doesn't:
>   
>   
>   
>   
> 
>
>Thanks in advance.
>
>Dean Chen
>
>--
>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: nested:iterate and updating a database

2002-05-30 Thread Arron Bates

Once the servlet has updated the collection coming in from the form, you 
just fetch it in your action with the getMonkeyTeam() method. There's 
the list, updated and ready to go.

Arron.

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: nested:iterate and updating a database
>From: "Ken Holzer" <[EMAIL PROTECTED]>
> ===
>Thanks Arron,
>
>How would you loop thru the rows in the Action Form? There are not that many
>rows and it is easy enough to reupdate them all if I need to. But I am not
>sure how to go about reading the records when the form is submitted for
>updating?
>
>Thanks,
>
>Ken
>"Arron Bates" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>
>>Ken,
>>
>>More than likely you sould just have the one button for the entire list.
>>
>>As for only updating the rows that have changed, you'll have to track
>>and manage that yourself.
>>When the incomming data arrives, you'll have to match it against what
>>you served, and find out the updated rows that way. If you have to avoid
>>session storage, then it will become next to impossible without some
>>client side logic. Not a 100% nice, but that's the way it is for everyone.
>>
>>I think the easiest way is if the rows are substantial enough, to send
>>out for updates on an individual basis... ie: edit links on a row,
>>click, go to a page to update that row, etc etc etc.
>>
>>It's a problem that would be nice to solve... need to give it more
>>thought, unless anyone else has the elegant solution already made?...
>>
>>
>>Arron.
>>
>>
>>
>>Struts Newsgroup (@Basebeans.com) wrote:
>>
>>>Subject: nested:iterate and updating a database
>>>From: "Ken Holzer" <[EMAIL PROTECTED]>
>>>===
>>>Hi All,
>>>
>>>I have a form that is using the nested:iterate tag to display several
>>>
>rows
>
>>>from a database table. My question is do I need a submit (update) button
>>
>on
>
>>>each row or can I have one update button?
>>>
>>>If I can have one, button how do I update the database based on the data
>>>that was changed on the form?
>>>
>>>Any sample code for the Action Form would be appreciated.
>>>
>>>Thanks,
>>>
>>>Ken Holzer
>>>
>>>
>>>
>>>--
>>>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: nested:iterate and updating a database

2002-05-30 Thread Arron Bates

Ken,

More than likely you sould just have the one button for the entire list.

As for only updating the rows that have changed, you'll have to track 
and manage that yourself.
When the incomming data arrives, you'll have to match it against what 
you served, and find out the updated rows that way. If you have to avoid 
session storage, then it will become next to impossible without some 
client side logic. Not a 100% nice, but that's the way it is for everyone.

I think the easiest way is if the rows are substantial enough, to send 
out for updates on an individual basis... ie: edit links on a row, 
click, go to a page to update that row, etc etc etc.

It's a problem that would be nice to solve... need to give it more 
thought, unless anyone else has the elegant solution already made?...


Arron.



Struts Newsgroup (@Basebeans.com) wrote:

>Subject: nested:iterate and updating a database
>From: "Ken Holzer" <[EMAIL PROTECTED]>
> ===
>Hi All,
>
>I have a form that is using the nested:iterate tag to display several rows
>from a database table. My question is do I need a submit (update) button on
>each row or can I have one update button?
>
>If I can have one, button how do I update the database based on the data
>that was changed on the form?
>
>Any sample code for the Action Form would be appreciated.
>
>Thanks,
>
>Ken Holzer
>
>
>
>--
>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: Keyboard Monkey question

2002-05-30 Thread Arron Bates

>
>
>To put it in a different way, how would I call
>setMokeyTeamAlpha() from MonkeyStruts_v2.jsp if I had a
>MonkeyTeamBean in the session that I wanted to use instead
>of the sample provided in the constructor for
>BananasIncorporatedBean?
>

In the JSP or your action?... In your action you can just call the 
setMonkeyTeam() method and pass it your collection.

If you don't want to work over the form bean, you can point a 
 tag at a bean and just use that.

For example, say you have a bean name "theMonkeys" in your session which 
holds your collection, you can simply use the following to iterate...



[...]



But to actually put the collection into the form bean in the JSP itself 
would require a scriptlet. Rather than this, I'd recommend doing it in 
the action, or iterating over the separate bean like above.

Did you try the tutorials on the keyboardmonkey site?...

I'm in the middle of a blurbish page of how to create nested lists etc 
with no logic in the constructors or holding the beans in session.

Hope this gets you a little closer to the target, if not, you know where 
we are :)


Arron.


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




Re: logic:iterate and multiple selections

2002-05-29 Thread Arron Bates

Indexed options in the tag is one way to get it done, but it's not the 
easiest.

Here's a previous post where I put up a quick example of doing without 
nested tags, and with the nested tags...

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg31991.html

And if you have Struts 1.1b, then you already have the nested tags.


Running example of delete/add functionality using the nested tags...
http://www.keyboardmonkey.com/StrutMonkey/MonkeyStruts_v2.jsp

Primer and tutorials on the tags are here...
http://www.keyboardmonkey.com/next

For older Struts versions the above site has the jar of just the tags.


Arron.


Dan Rasmussen wrote:

>Hi All,
>
>I have an existing application that uses the logic:iterate
>tag to display a table of editable/deletable "elements"
>based on a collection of beans.  I have been tasked with
>adding checkboxes to each row so that multiple selections
>can be made and operated on (e.g. delete multiple elements
>simultaneously rather than have to individually delete an
>element).  
>
>Is there a good example of this sort of thing somewhere? 
>Short of that, am I on the right path in the assumption
>that its the Indexed attribute that will be part of my
>answer?  I was hoping the nightly build might have a good
>example of how to use the indexed tag but I can't seem to
>find any example of the use of the indexed tag in the
>sample webapps shipped with it.
>
>Any help greatly appreciated.
>
>Thanks.
>
>Dan Rasmussen
>
>
>=
>-- replies to [EMAIL PROTECTED] --
>
>Anything that appears after this sentence is inserted by 
>Yahoo (or others) and may not be a good idea.
>
>__
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>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: ServletException with Nested Taglib and Template Taglib in Struts 1b1

2002-05-29 Thread Arron Bates

What's the servlet container you're using (and what's the servlet/JSP 
spec does it run)?...

JSP 1.1 doesn't like includes inside tags, JSP 1.2 container should be fine.


Arron.


DEZALAY david - SOP ( [EMAIL PROTECTED] ) wrote:

>Hi all,
>
>I'm trying to use Nested and Template taglibs in Struts R1B1.
>It seems it doesn't work together.
>I have a ServletException in the DoEndTag() method of Insert Tag (Template
>taglib).
>If I remove my template stuff in my JSPs (I keep Nested stuff only), it
>works propertly.
>
>Is there someone who could help me?
>Thanks
>
>
>
>--
>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: No tag?

2002-05-29 Thread Arron Bates

Because you have to manage the keys yourself, there's no automation to 
it. They're not locked in to using beans and their properties, which is 
what the nested tags are all about.

The nested tags only extend the tags which can benefit from the nested 
context. The errors tag is the same way, and any other tag which doesn't 
work off a bean/property combination.

It could be made so the message tag's property works off the same 
system, but I'm at odds as to its real benefit. What's your case to want 
it?... it may be enough to get me there.


Arron.


Rick Mann wrote:

>It seems that  is left out. Is this the case? If so, why?
>
>TIA,
>



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




Re: R: Brain Teaser

2002-05-29 Thread Arron Bates

Daniele's right, but to make things a little clearer than tag semantics...

In web.xml, there's a servlet mapping "url-pattern" attribute which 
tells the servlet to throw things onto the Struts servlet, of which we 
tell it to react a certain way via struts-config.xml.

The action-mapping path in struts-config.xml is used in the form 
attribute, tells the struts servlet as to what action class we're going 
to use to process the request after its finished its input processing 
business.

Otherwise struts servlet wont know what to do with itself and starts to 
use your machines processing power to play chess with Big Blue over your 
internet connection*


Arron.

* The part about playing chess with Big Blue could be complete bulls--t.
It will play chess with whatever's available, even Fujitsu mainframe.


daniele rizzi wrote:

>That's easy!
>It's not a file, just a name to be called in action="logon">
>
>bye,
>d.rizzi
>
>
>-Messaggio originale-
>Da: Chris Cairns [mailto:[EMAIL PROTECTED]]
>Inviato: mercoledi 29 maggio 2002 9.23
>A: [EMAIL PROTECTED]
>Oggetto: Brain Teaser
>
>
>Could someone explain to me what the path attribute for the action mappings
>element is for?  I know it's the path of the action, but what sort of file
>is it?  jsp?
>
>
>
>   name="logonForm"
>   type="org.apache.struts.example.LogonForm" />
>type="org.apache.struts.action.ActionForward" />
>  redirect="false" /> 
>
>  path="/logon"
> type="org.apache.struts.example.LogonAction"
> name="logonForm"
>scope="request"
>input="/logon.jsp"
>  unknown="false"
> validate="true" /> 
>
>
>
>--
>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: Help on logic:iterate

2002-05-24 Thread Arron Bates

Think that the answer you're looking for, is that your tags aren't quite 
set up properly. There's work around of a work around. The child tags 
need to work of the bean that is the current object returned from the 
iterate tag, which is why the properties wont work. They also need to 
get the index from the iterate tag.

1) To get the bean from the iterate tag, you need to set an "id" 
attribute, (you did that, but weren't using it. Almost there :)
2) To get the properties working, the child tags need to address this 
bean in the name attribute.
3) To get the indexing, the child tags need to be told they're indexed 
with indexed="true"


For Example...

  





  


...personally, it's a whole lot of mess to have to account for. If 
you're using Struts 1.1b, you already have access to the nested tags, 
which look after each other in a much easier way. No need for special 
beans or indexed="true" properties. Here's the same thing with nested 
tags...

Example...

  





  



...a little easier, because the reference to the current tag is supplied 
by the parent tag. So, the child tags will get the index, mapped 
property, or whatever. And if you're on Struts 1.0/1.0.1 then you can 
get the tags and tutorials and such from http://www.keyboardmonkey.com/next

Anyways, one of these should get you working again.


Arron.


vivek shrivastava wrote:

> Hi,
>
> i need help to understand following code. i understand that 
> "histLstForm" is the name of form bean. but i don't understand how 
> does  know that there are multiple vales of "question" 
> property of "histLstForm" bean?
>
> How does it perform a loop on all the values of "question" property of 
> "histLstForm" bean? because it it calls getter funtion on "question" 
> property it will give one value, so how does it know there are 
> multiple values?
>
> Following code is from vic's DB sample.
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
> Please do help me.
>
> thanks
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> -- 
> 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: nested:iterate and indexId problems

2002-05-23 Thread Arron Bates

Just had a play, and there's a bug in the tag's extra info class around 
the indexId.
Until then, set an "id" attribute also, and it should work.

Seems though the extension is troubled by its super class, and it's 
looking like a fix is required there also. Either way, I'll sort it out 
tonight (few hours from now), so you can download NeXt again tomorrow, 
and it'll be sweet. Actually, from looking at the code, it's a surprise 
that common  tags aren't suffering from the same issue.


Arron.

Steve Armstrong wrote:

>Hi,
>
>I'm using Struts 1.0.2 with the NeXt package targeted for that particular
>load.  I'm having a problem evaluating the page scope Integer bean that
>should be created via the indexId attribute.
>
>Inside an , I have something like the following for handling odd
>and even rows of a table differently:
>
>
>
>
>
>
>
>
>
>
>
>The above is from memory so please excuse any minor syntax errors.  When the
> line is processed, an error is generated indicating that
>"loop" (our page scope Integer bean set by the nested:iterate tag) is not a
>valid variable.  However, if I replace  with plain
> everything works fine.
>
>Am I running into some sort of scoping issue when I use ?
>
>Any help would be much appreciated.
>
>Thanks,
>-Steve
>
>
>--
>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: d't work: how do i pass multiple parameters

2002-05-21 Thread Arron Bates

Victor Hadianto wrote:

>On Mon, 22 May 2000 15:17, you wrote:
>
>>
>>
>>
>>
>> <%
>>info.put("val1", request.getParameter("strCatalogname"));
>>info.put("val2","test");
>>%>
>>
>> 
>>
>>
>>
>
>You got it wrong. Create the Map as your FormBean property and access that map from 
>the  tag, *not* by using the  tag.
>

Actually, the markup is fine. Specifying name only means that it will 
look for a separate reference too the map outside the bean, which is 
what Siraj is doing here. The  is simply the content which 
the hyperlink is working off.

Something's either URLEncoding the parameter where it shouldn't or the 
request handler is stuffing up the processing of the query string.

Arron.


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




Re: Custom describe() for use with BeanUtil.populate()

2002-05-20 Thread Arron Bates

BeanUtils/PropertyUtils simply got moved to commons, and is maintained 
there.
Same classes, new home.


Arron.

Adam Hardy wrote:

> But BeanUtils has been deprecated - in the Javadocs it says "/At some 
> point after Struts 1.0 final, will be replaced by an equivalent class 
> in the Jakarta Commons Beanutils package./"
>
> I don't know whether this is still true.
>
>
> Adam
>
> DHS Struts wrote:
>
>> I was wondering if anyone had a custom describe method they would be 
>> willing to share as an example of what Ted Husted describes in his 
>> "Struts Catalog" in the 'Use a "populate" utility to exchange data 
>> with value objects' section?
>>
>> I understand the basic concept of needing to write my own describe() 
>> for those beans that have Date attributes (because the 
>> BeanUtil.populate() can't handle them), but I am not having much luck 
>> getting it to work.
>>
>> If you have some code and are willing to share I would appreciate it. 
>> Also, if you would like to see what I have attempted I can post that 
>> here as well.
>>
>> Thank you in advance,
>>
>> mark n.
>>
>> _
>> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>>
>>
>> -- 
>> 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: Questions regarding Nested Tutorial..

2002-05-17 Thread Arron Bates

Jeff,

Just a little clarifying... any value object in a list, is a nested object.

1) Not yet, but I only made it today :)
2) Personally, I'd like it to be there. It's the one thing stopping 
nested objects from being created on the fly rather than held in session 
(and that benefits more than nested tag users, eg: yourself). But I'm 
one voice in 10 that can say no to its inclusion in the new version... 
and that's after it's included in the commons project. Just have to let 
the process do it's thing...


Arron.


[EMAIL PROTECTED] wrote:

>
>Thanks so much Arron.
>
> Great reply.
> The page I need this for on is just (what I thought was..) a simple List of
>value objects. At this time there are no nested objects. But it may change to
>nested object in the future. Regardless of the structure, it still needs to be
>created at request time with the size unknown.  It appears you have set out to
>fix just that.
> I am working a small prototype for a project that is in the early design
>stages( with 1.1beta, hoping that it will go final in the next few month's). The
>page will also need javascript control for each row, and validation, but one
>thing at a time.  :o).
>
> Few questions:
>  1 - Is there some sample code on your site that demonstrates this new
>feature?
>
>  2 - On the submission to common's, will this be released as part of
>struts 1.1 .   In other word I am hoping for clean way to include this feature
>into the project.
>
>Thanks again.
>
>Jeff.
>


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




Re: Flash-Struts Developer Test

2002-05-17 Thread Arron Bates

Mark,

That last one was fairly directed. It's not cool when you're doing such 
things on someone's request for help. Everyone likes to feel king, or 
cool, or in control of some group of people, but this isn't the place. 
That's it, Mark just want's to feel loved (you take the gay-o-meter 
yourself?)!  :)

...and there are much funnier lists than struts-user.


Arron.

PS: And you spelt my name wrong (dad spelt it wrong first, but he got to 
set the standard).

Galbreath, Mark wrote:

>Aaron,
>
>I think it's pretty obvious when I am having fun with the list; don't take
>me (or youself) so seriously.  After all, it's Friday!
>
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 17, 2002 11:53 AM
>
>Mark,
>
>I'm all for going against the flow...
>
>"you can't fight city hall, but you can crap on the steps and run 
>like buggery"
>
>...know it, live by it. But I think you should pull your head in 
>a little.
>
>As much as you don't agree with Flash, it does have the potential to 
>turn the market on its head (if you don't think so, go take a good look 
>at the abilities in Flash fx).
>
>That aside, a technology choice of any developer shouldn't bring 
>deriding comments from the peanut gallery. It's more fantastic to think 
>that Struts is a powerful enough platform to make the experience all the 
>better for developer or user, Flash or otherwise.
>
>
>Arron.
>
>
>
>Galbreath, Mark wrote:
>
>>http://www.channel4.com/life/microsites/G/gayometer/index.html
>>
>>--
>>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: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Arron Bates

>
>
>The most common culprit for things like this is sticking a copy of
>servlet.jar in $JAVA_HOME/jre/lib/ext and then forgetting about it.  Any
>such copy found there (or an old copy on your classpath) should be
>removed.
>

Or a rampant copy in {app}/WEB-INF/lib trying to override tomcat's.


Arron.


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




Re: JRUN 4 PROBLEMS WITH STRUTS 1.0

2002-05-17 Thread Arron Bates

You've migrated on, and trying to run a legacy copy of servlet.jar 
somewhere. I get it at work when a rogue version of the jar gets in there.

Update it (or even try removing it temporarily, as JRun should have it's 
own), and you should be golden.


Arron.


Charlesworth, Chico wrote:

> 
>
>I've downloaded the new version of JRUN version 4 and I get the following
>error(s) when rendering a simple JSP with some struts tags in it:
>
> 
>
>72. } while(_tag1.doAfterBody() ==
>javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
>
><->
>
>*** Error: No method named "doAfterBody" was found in type
>"org/apache/struts/taglib/bean/WriteTag".
>
> 
>
> 
>
>72. } while(_tag1.doAfterBody() ==
>javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
>
><-->
>
>*** Error: No field named "EVAL_BODY_AGAIN" was found in type
>javax/servlet/jsp/tagext/BodyTag".
>
> 
>
>I don't get this problem with Jrun 3.1, so does anyone got any ideas, or has
>anyone had similar/other problems migrating to Jrun 4 with struts???
>
> 
>
>Cheers,
>
>Chico.
>
>



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




Re: Flash-Struts Developer Test

2002-05-17 Thread Arron Bates

Mark,

I'm all for going against the flow...

"you can't fight city hall, but you can crap on the steps and run 
like buggery"

...know it, live by it. But I think you should pull your head in 
a little.

As much as you don't agree with Flash, it does have the potential to 
turn the market on its head (if you don't think so, go take a good look 
at the abilities in Flash fx).

That aside, a technology choice of any developer shouldn't bring 
deriding comments from the peanut gallery. It's more fantastic to think 
that Struts is a powerful enough platform to make the experience all the 
better for developer or user, Flash or otherwise.


Arron.



Galbreath, Mark wrote:

>http://www.channel4.com/life/microsites/G/gayometer/index.html
>
>--
>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: Questions regarding Nested Tutorial..

2002-05-17 Thread Arron Bates

Jeff,

Sorry that I didn't get back to you earlier, but the fact is that I just 
didn't have an elegant answer, besides building blank collections based 
on what you served. Not all that nice, especially when the first bean is 
done so nicely.

The problem is that when the bean is created when the request comes in, 
it only knows to make the first bean. When it tries to get at the nested 
beans & collections, there's none there, and it certainly doesn't know 
how to create them. If you know the structure, you can build the object 
tree in the beans constructor, and it works fine. If you don't know the 
structure, size of lists etc, this then becomes a real hassle. It's fair 
to assume too, that you're not going to know the extent of the data 
coming in, or simply it'd be nice to stay flexible, and just have it all 
happen when the request comes in.

It's not really a Struts/BeanUtils problem, as they're only populating 
what they can get to.

You could make sure that there's an object for every index in your list, 
or key to the map, if you had the "getProperty(int)" style indexed 
property. But the iterate tag can't use it to do it's business of 
showing the collection. To help out, I've made a couple of proxy objects 
that take your original collection, and make sure that the collection is 
expanded properly, and place-holders are used to store potential 
positions. You also provide it the class details of the objects to be 
made in the collections. So when an object is requested at an index, a 
new one will be made to your specs, and then returned to the BeanUtils 
for population.

Works a treat. I've tried it out on my more-than-complex-enough monkey 
examples, moving the scope to request, and it all works great. The only 
thing you have to do, is where you have your collection in your bean, 
wrap it in these collections (there's one for lists, and one for maps), 
and pass it the class definition of your clid beans. Also, because the 
potential is there to have place-holders in the collection (not map, 
list problem only) when it comes in for use by business logic, you have 
to call "clean()" on the list collection, to strip out any place-holders 
that are not required any longer.

I've just posted to the commons project for submission, so it still has 
to go through that process, but I'm putting together some docco whatever 
the outcome to go on my site etc etc. If you want a go at them without 
the extra docco (they have a fair bit of javadoc to them), get them from 
here...

http://www.keyboardmonkey.com/next/ReserveMap.java
http://www.keyboardmonkey.com/next/ReserveList.java

...you'll have to compile them etc.
They're java.util.Map and java.util.List implementations themselves, so 
you can maintain everything by still coding to the interfaces.

They should do what you're after. If not, get back to us...


Arron.



[EMAIL PROTECTED] wrote:

>
>Greetings:
> I have completed the  nested tutorials part one and two (on the
>keyboardmonkey site), and actually have no questions about these specifically
>because they went as expected and I enjoyed them.
>I am new to Struts and would like some clarification on some concepts.  I have
>done no work with the Struts indexed tags at this time because it appears that
>the NEXT tags will do all of that and more.
>
>I hope I am just missing a simple point.
>
>1 - I think I am clear on how to represent lists of objects and nested objects
>on the page with the tags (it is very easy) but I am not clear on how to
>re-build the same object structure when the same page is submitted.
>
>2 - When I completed the tutorial, I began to alter it in a way to better
>represent a format that we will be using on an upcoming project:
>- I added created a LoadAction and a Save Action.
>- I set the form bean from session to request.
>- I removed the sample object creation in the constructors and manually created
>the same structure in the Load Action to simulate it coming from the model
>layer.
>- I grabbed the name of the actionForm from mapping and set it into request
>scope.
>- The page in rendered as expected.
>- And, as I expected, when I submit to the SaveAction, only top level attributes
>are populated, without the nested lists .
>
>So now.. is there an elegant way to rebuild the same structure in the
>SaveAction upon submit?
>
>Thanks all.
>
>
>
>--
>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: Displaying a Vector of vectors in JSP using STRUTS

2002-05-15 Thread Arron Bates

This is all good if you only ever want to show the data. Updating the data is 
another story. There's also the hassle of maintaining the child bean names 
etc etc etc (the last couple of problems you've just had). All managed for 
you.

The nested tags make this really simple (it was the problem they were 
originally created to solve). And they'll help do much more.

For a primer and tutorial...
http://www.keyboardmonkey.com/next

They're in Struts 1.1b, or you can get a separate jar at the link above.


Arron.

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




Re: input flds (text) within a logic:iterateyou

2002-05-14 Thread Arron Bates

You'll have to set the "indexed" property to true in all child tags within the 
iterator...

 Hello,
> I need to display an unknown number of input fields to the user within a
> logic:iterate tag.
> The field corresponds to a form property 'comment', say.
> So in the corresponding Struts form I will need to have a getter and setter
> that sets and gets a String AND a Collection like so:
> public void setComment(String s) {comment = s;}
> public String getComment(){return comment;}
> AND
> public void setComments(Collection c) {comments = c;}
> public Collection getComment(){return comments;}
> The question is, if my tag looks like this:
> 
>Enter your comment here:
> 
> how will my comments property setter get called automatically?
> (notice comments, not comment).
> Maybe I shd be using   instead of
> 
>
>
> Is there a sample for this kind of processing?
>
> Thanks IA
> Pankaj


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




Re: Struts and X11

2002-05-13 Thread Arron Bates

This is where I start to run dry. I'm by no means a Unix guru, so this 
particular question should be fired at someone higher on the Unix food 
chain.
But this is all I know...

This is in my Tomcat startup script...

rm /tmp/.X11-unix/X24
/usr/local/bin/vncserver :24
DISPLAY=localhost:24.0;export DISPLAY

...which I am assuming that it's cleaning up stuff first, starting VNC 
(the X client), and a config line for VNC.

I just did a quick lap around the net, and according to this page...
http://www.mail-archive.com/cocoon-users%40xml.apache.org/msg08873.html

...the edit should be in "catalina.sh". But I assume that that is the 
page you just posted. According to them it's all that has to be 
happening. Apparently 'Coon suffers these issues all by itself.

I suppose what I'm tyring to get at is that about these *nix environment 
specifics, I have no idea. But I wish you all the best :)

I do know, however, that buffering the image will have no effect. It's 
the rendering the image to a cnavas that the issue springs up from.


Arron.


Micael Padraig Og mac Grene wrote:

> What I don't understand is that I should have the X11 running. I 
> showed you the ps aux reading and I use a graphical interface on the 
> server to do modications all the time.
>
> ?
>
>
> Micael
>
> At 04:57 PM 5/13/02 +1000, you wrote:
>
>> They would have been installed with X services.
>> I think that if an admin installs a box without basic head 
>> functionality he's being a bit of a tool. :)
>>
>> Win2K install should always be fine in this regard. We all know that 
>> the head stuff and internet browsing cannot be removed from any 
>> competitive operating system ;)
>>
>> Arron.
>>
>>
>> Duke Ronlund wrote:
>>
>>> Hi,
>>> In a previous project we used JAI on JDK 1.3 with struts to do JPG
>>> resizing/scaling and modifications on a java.awt.image.RenderedImage
>>> without any X11 side effects, so your assumption that it is a JDk 1.4
>>> thing may be correct. (We are using this code on Win2k, Solaris8 & Red
>>> Hat Linux)
>>>
>>> Cheers
>>> Duke
>>
>>
>>
>>
>> -- 
>> 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: Struts and X11

2002-05-12 Thread Arron Bates

They would have been installed with X services.
I think that if an admin installs a box without basic head functionality 
he's being a bit of a tool. :)

Win2K install should always be fine in this regard. We all know that the 
head stuff and internet browsing cannot be removed from any competitive 
operating system ;)

Arron.


Duke Ronlund wrote:

>Hi, 
>
>In a previous project we used JAI on JDK 1.3 with struts to do JPG
>resizing/scaling and modifications on a java.awt.image.RenderedImage
>without any X11 side effects, so your assumption that it is a JDk 1.4
>thing may be correct.  (We are using this code on Win2k, Solaris8 & Red
>Hat Linux)
>
>Cheers
>Duke
>



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




Re: logic:iterate with EJB's, casting problem?

2002-05-12 Thread Arron Bates

You'll most likely find that the "PortableRemoteObject.narrow()" will be 
the part giving you grief. The tags will have no idea that it has to do 
this. The fact that you can get away with it so easily with a small 
scriptlet will probably mean that it will remain your best option. Your 
problem is very specific and the tags are not designed to handle specifics.

Only other option, is to marshal from this EJB call into a basic bean 
within an Action before you forward to your JSP. Would also make the MVC 
purists happier. :)

What EJB container are you using that's running on top of VisiBroker?...


Arron.


Struts Newsgroup (@Basebeans.com) wrote:

>Subject: logic:iterate with EJB's, casting problem?
>From: "Nicolas Parisé" <[EMAIL PROTECTED]>
> ===
>Hi!
>
>I have a problems, for displaying a collection of object retrieved
>from a EJB (1.1).
>
>
>In my action class, I retrieve a collection of Artists objects from
>a Session EJB:
>
>
>Collection coll = myRemoteSessionBeanInterface.getArtists();
>request.setAttribute("coll",coll);
>
>then in my JSP, I use de iterate tag to loop over my collection :
>
>
>
>
>
>
>
>Here is the error that I have :
>
>javax.servlet.ServletException: com.inprise.vbroker.rmi.CORBA.ObjectImpl
>
>
>I was only be able to display my collection that way :
>
>Iterator it = coll.iterator();
>
>while (it.hasNext()) {
>out.println(((Artist)PortableRemoteObject.narrow(it.next(),
>Artist.class)).getName());
>}
>
>
>I want to use the Struts logic:iterate tag, not the while loop, any ideas?
>
>
>
>
>Nicolas Parise
>
>
>
>--
>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: Struts and X11

2002-05-12 Thread Arron Bates

It's because the underlying calls to make graphics at some point are run 
out to some native code so that it can run a little more smoother. I ran 
into the same problem trying to get graphics to happen on my servlet 
hosting provider.

Apparently you can get Java 1.4 to run in a headless mode which means 
that it will do everything. Otherwise, the VM needs to get at a running 
X service. My provider solved it by simply running a VNC process under 
my environment.

But, there is said to be more basic solutions like telling 1.4 to be 
headless etc. Do a search on JGuru.com, that's where I found the start 
to my answers. You cn even run a pure java AWT, which also gets around 
the head issues. This does mean you have to change only a few of the 
classes you normally use (BufferedImage etc)...
Pure Java AWT...
http://www.eteks.com/pja/en/

There may be others out there.


Arron.


Micael Padraig Og mac Grene wrote:

> Do you mean the ip address of the server? If so, that would be easy to 
> set with
>
> export DISPLAY=:0.0
>
> But, is that right? If so, should be a snap.
>
> If you mean the client machine, then I don't want to do that, because 
> the functionality is not to send image data but to manipulate it in a 
> servlet.
>
> Thanks for a prompt suggestion.
>
> Micael
>
> At 10:36 PM 5/12/02 -0700, you wrote:
>
>> Micael,
>> Is your display variable set to the machine that you are running on? 
>> It should be :0.0.
>>
>> Regards,
>>
>> Richard
>>
>> At 10:15 PM 5/12/2002 -0700, you wrote:
>>
>>> I presently am having difficulty using the awt with servlets to do 
>>> image reconstruction work on a RedHat 7.2 Linux platfrom, because I 
>>> get the following exception, which some think is a bug in JDK 1.4, 
>>> but seems to be something Sun has tolerated intentionally
>>>
>>> Exception in thread "main" java.lang.InternalError: Can't connect to 
>>> X11 window server using ':0,0' as the value of the DISPLAY variable.
>>> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>>> at 
>>> sun.awt.X11GraphicsEnvironment.<>(11GraphicsEnvironment.java:126) 
>>>
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:130)
>>> at java.awt.Toolkit#2.run(Toolket.java:712)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
>>> at javax.swing.ImageIcon.(init>(ImageIcon.java:81)
>>> at javax.swing.ImageIcon.(ImageIcon.java:107)
>>>
>>> My "ps aux" says:
>>>
>>> /etc/X11/X -auth /var/lib/kdm/authfiles/A:0-0Dqymv
>>>
>>> for the X11 server. Does anyone have an idea what I need to do at 
>>> this point? Everything works on a pc, of course.
>>>
>>> This is not strictly a struts problem, of course, but it is 
>>> something that struts users that deal with multimedia will need to 
>>> deal with since it is essentially a server side problem. I have no 
>>> problem with leaving an X11 server running to make this work. I 
>>> cannot live with the client having to do anything special. The 
>>> problem is that I don't want to use the graphics but do want to 
>>> access the graphic functionality.
>>>
>>> Thanks for any assistance.
>>>
>>> Micael
>>>
>>> P.S. If you don't understand the above, please do not offer 
>>> suggestions. Thanks for that too.
>>>
>>>
>>>
>>> -- 
>>> 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: jsp size limit?

2002-05-10 Thread Arron Bates

Page buffer sets the size of the buffer defining when content is flushed, has 
nothing to do with class size. Java wont use a class larger than 64k.

We also have to give thanks for Mark for passing on good paying customers when 
he's dropped them because he's "always the man"/ignorant.


Arron.


On Fri, 10 May 2002 11:20 pm, Galbreath, Mark wrote:
> Just because you CAN does not mean you SHOULD.  If his compiled file is
> over 8kb, then some serious refactoring needs to be considered.
>
> Mark
>
> -Original Message-
> From: Christopher Barham [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 3:31 AM
>
> Hi Kevin,
>
> Have you tried upping the buffer size in the page directive? (it's only 8kb
> by default, (JSP spec not a container limitation) and if autoflush is on
> then that will cause problems):
>
> <%@ page buffer=40kb %>
>
> Chris


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




Re: Puzzling error with logic:iterate

2002-05-10 Thread Arron Bates

Have you tried adding the following attribute and value to the iterate 
tag?...

scope="page"


Arron.

K Br wrote:

>pl help. i have been wracking my small brain over this
>for a few hours and i have no clew.
>
>i am using logic:iterate copybook style; yet, it throws the runtime exception:
>
>javax.servlet.ServletException: Cannot find bean currBook in scope null
>
>the iterate statement is:
>
>   Next book: 
> 
> 
>
>
>the complete source is:
>
>
><%@ page language="java" import="My.*"
> import="java.util.*" %>
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="login" %>
>
>
>  
>
>
>
>
>  
>   <% 
>My.Book[] books = new My.Book[4];
>books[0] = new Book("An Introduction to Algebra", 100);
>books[1] = new Book("JSP: An Advanced Course", 234);
>books[2] = new Book("JavaScript and JSP Pages", 333);
> System.out.println("Books = " + books);
>pageContext.setAttribute("books", books, PageContext.PAGE_SCOPE);
>
>   %>
>
>   
>
> 
>   Next book: 
> 
> 
>   
>   
>  
>
>
>
>
>
>
>--
>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: jsp size limit?

2002-05-09 Thread Arron Bates

Not really. It's a whopping class, and it's only really become an issue 
with JSP's, because people can throw in so much content, tags etc.

Arron.

Joseph Barefoot wrote:

>Is this really such a bad thing?  If someone is writing java classes that
>compile to >64K, I think they may need to revisit their object-oriented
>principles. ;)
>
>>-Original Message-
>>From: Malcolm Dew-Jones [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, May 09, 2002 12:19 PM
>>To: Struts Users Mailing List
>>Subject: Re: jsp size limit?
>>
>>
>>
>>
>>
>>On Thu, 9 May 2002, Arron Bates wrote:
>>
>>>There's a limitation on the size of a compliled Java class. Java has
>>>this arbitrary limit of 62k for a compiled class. Looks like you're
>>>
>>In 1986 Macintosh computers had the same 64K code barrier.  Compiled units
>>of code had to be split into chunks that were smaller than 64K, and linked
>>together.
>>
>>I guess Java isn't really such a modern language after all.
>>
>>
>>
>>--
>>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: Iterate Tag with Vector of bean

2002-05-06 Thread Arron Bates

You're probably just suffering from a naming conflict.
The "name" in the iterate tag itself is to reference a bean. The "id" 
will create a bean for each iteration that the child tags can get at. 
I'd first try naming them something different.

Arron.

stsrut strut wrote:

>Hello,
>
>Does any one know as how to use iterate tag with
>Vector collection which contains bean?
>I have a bean that models one row of data and then
>stuff them all into a Vector. E.g. bean name is
>"mybean" has property "Property1" and bean has been
>stuffed into vector myVector with rows of data from
>database. When I use this in iterator tag as follows
>it gives run time failure in cutom tag.
>
>property="myVector">
>  
>
>  filter="true"/>
>
>  
>
>
>Is there any other way of using Vector of beans to
>iterate using iterate tag ?
>
>Thanx
>
>--- James Mitchell <[EMAIL PROTECTED]> wrote:
>
>>See intermixed.
>>
>>>-Original Message-
>>>From: Emmanuel Bridonneau
>>>
>>[mailto:[EMAIL PROTECTED]]
>>
>>>Sent: Monday, May 06, 2002 7:03 PM
>>>To: Struts Users Mailing List
>>>Subject: RE: jsp inside WEB-INF
>>>
>>>
>>>I can understand this part of the servlet spec. I
>>>
>>believe the jsp's do
>>
>>>not refer to other jsp directly. Page1 refers to a
>>>
>>forward mapping
>>
>>>called Page2 which path should be resolved by the
>>>
>>default ActionForward
>>
>>>class to /WEB-INF/Page2.jsp.
>>>But you are saying that to be able to put jsp
>>>
>>under WEB-INF, one has to
>>
>>>write a custom ActionForward class so that even
>>>
>>pages that do not
>>
>>>require action class can (indirectly) link to
>>>
>>pages located under
>>
>>>WEB-INF.
>>>
>>No. Sorry for the misunderstanding.
>>All you have to do is specify a forward under your
>>action in
>>struts-config.xml:
>>
>>Here is a snip of what I did to make a point on
>>another thread;)
>>
>>I moved the registration.jsp under the WEB-INF
>>folder and then changed it
>>here...
>>This is from the struts-example application
>>(struts-config.xml):
>>
>>...
>>...
>>
>>>
>>
>type="org.apache.struts.webapp.example.EditRegistrationAction"
>
>>  attribute="registrationForm"
>>  scope="request"
>>   validate="false">
>>  >path="/WEB-INF/registration.jsp"/>
>>
>>
>>
>>
>>>
>>
>type="org.apache.struts.webapp.example.SaveRegistrationAction"
>
>>   name="registrationForm"
>>  scope="request"
>>  input="/WEB-INF/registration.jsp"/>
>>
>>...
>>...
>>
>>My reference to ForwardAction is simply a
>>"pre-written" Action class so that
>>you can save a little leg work.
>>
>>That should take care of it.
>>
>>
>>JM
>>
>>
>>
>>>I was under the impression that this was a default
>>>
>>Struts behavior. If I
>>
>>>understand your thoughts, the custom/subclass of
>>>
>>ActionForward should
>>
>>>override the setPath method intelligently to
>>>
>>distinguish whether the
>>
>>>mapping is to be done inside or outside of
>>>
>>WEB-INF?
>>
>>>
>>>-Original Message-
>>>From: James Mitchell
>>>
>>[mailto:[EMAIL PROTECTED]]
>>
>>>Sent: Monday, May 06, 2002 3:18 PM
>>>To: Struts Users Mailing List
>>>Subject: RE: jsp inside WEB-INF
>>>
>>>
>>>Ok.If I understand you correctly.
>>>
>>>You will *not* be able to link to anything
>>>
>>directly to a jsp under
>>
>>>WEB-INF.
>>>It is specifically disallowed in the servlet spec.
>>>
>>>Try adding a generic mapping that does a simple
>>>
>>forward.
>>
>>>See the javadoc or source code for:
>>>org.apache.struts.actions.ForwardAction
>>>for more details.
>>>
>>>JM
>>>
>>>
>>>>-Original Message-
>>>>From: Emmanuel Bridonneau
>>>>
>>[mailto:[EMAIL PROTECTED]]
>>
>&

Re: Struts Architecture

2002-05-05 Thread Arron Bates

Vic,

Can you please stop spawning off topic discussions, especially ones 
which you know are controversial, and at the very least not about 
Struts. This is not a Struts centric discussion, and if you want to 
poach newbies, there are better lists to go marauding in.

Arron.




Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: Struts Architecture
>From: Vic C <[EMAIL PROTECTED]>
> ===
>I would call Pet Cemetery "Complexia very BAD Practices for suckers". 
>This was designed to make your application need lots of HW and a new Sun 
>server for each multiple of  50 users. See 
>http://www.softwarereality.com for 101 reasons why this is bad.  This is 
>not something that a production or operational system does, this would 
>only work in a lab environment with lots of overhead. Companies that do 
>this find Java expensive to develop and operate.
>Java is just fine, blame your software engineer/architect who would 
>think of picking this. The best solution is always low tech.
>
>This would be a good practice IMO:
>1. Dispatch a "new" parm to action.
>2. Action asks frmBean.new();
>3. New in frmBean does DAO.new() to create a row that will hold a new 
>row. (It might go to db to get MetaData). Also this same action does all 
>CRUD, not just new. Same with DAO and frmBean, they do all the CRUD, not 
>just new. (so action has new(); update(); delete(); save(); that get 
>dispatched to it; as does the DAO, etc.) Look at my code.
>4. With the empty rowholder with matching meta data in scope, it goes to 
>page.
>5. Use inputs some date, and submits a save. (Struts auto populates setters)
>6. Action gets a "save" parm.
>6.a You call frmBean.validate(); and redirecte if any messages.
>7. Action asks frmBeansave().
>8. Bean asks DAO to update.
>9. Update enumerates rows; and columns, construction an insert statement.
>
>Anyway, I have taken above to production just fine.
>
>Simple MVC, not Complexia. Again new people over engineer. KISS is much 
>more powerful and doable in Production.
>I suggest you always unit test a bean to be able to insert to db, before 
>placing it in Struts. Write a console app to insert into a bean. If it 
>works in console app, it will work in Struts. Oddly, if it does not work 
>in a console unit test; it will not work in Struts, and it is not Struts 
>fault.  Sun only makes money on J2EE license, and ... news flash, sales 
>people lie,  a lot.
>My db sample does exactly above.
>
>Mike Duffy wrote:
>
>>Vic,
>>
>>Please take a few moments to review the following, I would value your
>>opinion before I send it to the Struts user group.
>>
>>Thanks in advance for your time and insight.
>>
>>Mike
>>
>>#
>>1. User enters information in an HTML form to create an account. 
>>
>>2. Struts Controller creates and populates a new AccountForm with
>>user input.
>>
>>3. Controller invokes AccountForm.validate() (assume validation
>>passes).
>>
>>4. Controller invokes AccountAction.perform().
>>
>>5. From within the method AccountAction.perform(), the form argument
>>is cast to an AccountForm object.
>>
>>6. From within the method AccountAction.perform(), the method
>>AccountForm.createAccount() is called to create an Account object.
>>
>>The Account object is one of several "ComponentObjects" that
>>represent the data model of the system and contain getters and
>>setters for primitive values and other ComponentObjects (in this
>>example the Account ComponentObject contains an "Address"
>>ComponentObject and a "User" ComponentObject).  The terms
>>"ValueObject" and "DataTransferObject" have been used in this thread,
>>but they seem to have conflicting definitions and they seem to be
>>used for transferring data across a network, not for communicating
>>between classes.  If you examine the "PetStore" reference
>>implementation you will see that the classes in the "Model"
>>subpackages are named with common names (Category, Page, Item,
>>Product).  
>>
>>As a comment to my initial question that started this thread, the
>>FormBean never leaves the Action object.  The FormBean is decomposed
>>into one or more ComponentObjects that represent the data model of
>>the system.
>>
>>7. From within the method AccountForm.getAccount() a utility method
>>in a mapping class could be called to perform the mapping.
>>
>>If you coordinate the property names between your FormBeans and your
>>ComponentObjects you can use a very

Re: variable number of text fields in a form

2002-05-05 Thread Arron Bates

It appears that it could be because you've nested "through" this property, and 
actually invoking something within your CallHistoryInfoItem returned at the given 
index.

If you're using a nested property (eg: "monkey.bunch[i].banana"), what it will do, is 
call all the getters down the line, and only call the setter on the last bean. For 
example, Struts will call the bean and use the getter method to get at the monkey bean 
(the "monkey" property). Then, it will call the indexed getter to get at the right 
bunch bean (the "bunch[i]" property). From this bunch bean, will call the setter on 
the banana property to set the value. So just keep in mind that the setter is only 
called on the last bean property.

I only say all this as it looks like your CallHistoryInfoItem is a bean in a nested 
structure, and the setter will be called later somewhere in the line.

Hope this gets you out of your problem.
If you want a little primer on nesting beans and such, try here...

http://www.keyboardmonkey.com/next

If you have any further issues, you know where we are :)


Arron.




Chakradhar Tallam wrote:

>thanks Arron,
>
>here are my indexed getter/setter methods
>
>public CallHistoryInfoItem getCallHistoryInfoItems(int index)
>{
>theLog.info("SetCallHistoryInfoForm.getCallHistoryInfoItems is
>getting executed");
>return (CallHistoryInfoItem)
>((myCallHistoryInfoItems.toArray())[index]);
>}
>
>public void setCallHistoryInfoItems(int index, CallHistoryInfoItem chii)
>{
>theLog.info("SetCallHistoryInfoForm.setCallHistoryInfoItems is
>getting executed");
>(myCallHistoryInfoItems.toArray())[index] = chii;
>}
>
>getCallHistoryInfoItems is been called several times depending on the number
>of text fields on my form when the form is posted but
>setCallHistoryInfoItems never gets called.
>
>chaks.
>
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>Sent: Monday, 6 May 2002 2:57 PM
>To: Struts Developers List; Struts Users Mailing List
>Subject: Re: variable number of text fields in a form
>
>
>And this is a user-list type question, so I've forwarded there.
>
>Arron.
>
>Arron Bates wrote:
>
>>Depends on the type of indexed getter/setter you're using.
>>
>>public String getMyIndex(int i) {}
>>public void setMyIndex(int i, String value) {}
>>
>>...the setter will be called in this case, but in this instance...
>>
>>public Object[] getMyIndex() {}
>>public void setMyIndex(Object[] obj) {}
>>
>>...the setter will not be called, as the system will get the array, 
>>and set the item directly into the array, rather that return the 
>>resulting array back to the setter. This could very easily be the 
>>case. It's really easy to code this way, but don't expect the setter 
>>method itself to be called.
>>
>>Have you tried the nested tags?... makes light work of list type 
>>operations among everything else.
>>Anyways, I've ranted this before, and your answer "could" be above :)
>>
>>
>>Arron.
>>
>>
>>
>>Chakradhar Tallam wrote:
>>
>>>hi guys,
>>>
>>>how do i handle the setting of variable number of text fields in a form!
>>>i've tried with indexed properties but when i'm posting the form, the 
>>>get
>>>method is getting called rather than the set method for some reason. 
>>>have u
>>>had this kind of experience before, help is appreciated.
>>>
>>>thanks,
>>>CT.
>>>
>>
>>
>>-- 
>>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: variable number of text fields in a form

2002-05-05 Thread Arron Bates

And this is a user-list type question, so I've forwarded there.

Arron.

Arron Bates wrote:

> Depends on the type of indexed getter/setter you're using.
>
> public String getMyIndex(int i) {}
> public void setMyIndex(int i, String value) {}
>
> ...the setter will be called in this case, but in this instance...
>
> public Object[] getMyIndex() {}
> public void setMyIndex(Object[] obj) {}
>
> ...the setter will not be called, as the system will get the array, 
> and set the item directly into the array, rather that return the 
> resulting array back to the setter. This could very easily be the 
> case. It's really easy to code this way, but don't expect the setter 
> method itself to be called.
>
> Have you tried the nested tags?... makes light work of list type 
> operations among everything else.
> Anyways, I've ranted this before, and your answer "could" be above :)
>
>
> Arron.
>
>
>
> Chakradhar Tallam wrote:
>
>> hi guys,
>>
>> how do i handle the setting of variable number of text fields in a form!
>> i've tried with indexed properties but when i'm posting the form, the 
>> get
>> method is getting called rather than the set method for some reason. 
>> have u
>> had this kind of experience before, help is appreciated.
>>
>> thanks,
>> CT.
>>
>
>
>
> -- 
> 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: html input elements don't work

2002-05-02 Thread Arron Bates

You'll need to specify the bean name which is defined in the 
struts-config.xml file for your "createText" action.

Example...


You may also want to put in the ".do" on the end of your action name.

Example...


...just a little thing.


Arron.


Shirin Fathima wrote:

>Hi,
>
>The following simple code isn't working,
>
>  
>Input: 
>
>   
>
>   In the sense that, the text box and the button don't appear when I call
>the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
>novice with struts.
>
>Thanks,
> Shirin
>
>
>--
>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: You suck! No, You suck!

2002-05-01 Thread Arron Bates

The funniest thing about this discussion is that tomorrow it will all 
amount to a pointless waste of energy.
...but some horny internet patron will type "suck my Strut" into google 
and fetch this out of the mail archives

:-P

Arron.


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




Re: Check this out!

2002-05-01 Thread Arron Bates

Just took this puppy back to the developer list...

Arron.

Phase Web and Multimedia wrote:

>The tag "is" a Link Tag. I by no means want to create a new tag. If you read
>my explanation I state that. The additional attributes are neccessary
>though. The reason being is that the functionality is not in the current
>Link tag to accomplish this. It has unique requirements that present the
>need for an expanded set of Attributes on the Link tag. The idea is to be
>able to "include" the action url into the javascript function call at a
>specified an index point along with other parameters one might need to send
>to the javascript function. The other goal is to be able to prepare these
>parameters and place them into a bean.
>
>For example:
>
>If you have a popup window and you want to customize the size of the pop up.
>You might prepare some size parameters for the popup window that you want to
>be dynamic. With the tag I spun it allows for this to happen. You can
>prepare the parameters yo want to pass to the javascript function in the
>Action class and place it into a request bean (or whatever scope) and draw
>those prepared parameters from the bean into the Link tag which then (of
>course) would call the javascript function.
>
>I am not sure what you are getting at, though. Did you read the
>documentation that I wrote. It states that the attributes are added
>functionality to the Link Tag. :-)
>
>I think I have already done what you are saying. Please, correct me if I am
>misunderstanding you. I am using the base functionality of the Link Tag. I
>developed a whole new tag because I didn't have a choice. The intent was
>always to incorporate the functionality into the Link tag. Maybe to avoid
>confusion I need to go ahead and download the nightly and do a patch
>submission. rather than a code submission than can be placed back into the
>core struts Link tag.
>
>Brandon Goodin
>Phase Web and Multimedia
>P (406) 862-2245
>F (406) 862-0354
>[EMAIL PROTECTED]
>http://www.phase.ws
>



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




Re: More detailed iteration needs?

2002-05-01 Thread Arron Bates

>
>
>Gosh. I've been using the Struts iterator tag (in fact, currently all of the
>tags I use are from Struts, and I have no scriptlets in any of my pages).
>But I never noticed the offest and length attributes in the docs.
>

It happens :)

>How about the second part of my posting, regarding more control over the
>stages of an iteration
>

In the immediate, about all you can do is get a hold of the current 
index (or map item in the case of maps) in the form of a scripting 
variable... and yes, to use it means little scriptlets. Nothing's tag based.

Reason for all this is because to cater for everything, in every tag, 
would make the internals quite messy. I'm considering various solutions 
for use in the nested tags (because they're all relative to each other, 
it's not a step outside of their context, which it would be for the 
standard tags), but nothing is substantially clean enough for me to put 
it forward as a standard solution. It all has implications as to how to 
make it available to the values of all the child tags etc etc etc.


Arron.



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




Re: Check this out!

2002-05-01 Thread Arron Bates

Anyone would think that trying to get an opinion on something is an 
uphill battle. :)

Instead of creating an entirely new tag, can you take a look at adapting 
the current one?...
Reason I say this, is that there's already a tag there, and this tag 
will need another name besides "link". "scriptlink" or something. An 
extra tag for people to learn.
Because the logic is already there to do the mapping, and the 
querystring appending etc etc, I think it would be easier to simply add 
an extra parameter called "script" or something that when set to the 
name of a JS function, that when present, will wrap the resulting URL in 
the java script function. This means that *all* current links could turn 
into JavaScript routed links by adding one parameter, and inversely go 
back by removing it. Which I think would be quite sweet.

Otherwise, it may turn out to be just a tag with an esoteric use.

Your thoughts?...

Arron.


Phase Web and Multimedia wrote:

>Hey all,
>
>I submitted an enhancement to struts. Read the following and if it sounds
>worth having in struts give me a vote on the developer's list or make some
>noise for some of the gurus to see.
>
>The code is at the following url in zip format:
>
>Here is the info on the tag:
>http://www.phase.ws/linktag/taglib.zip
>
>I don't know if a similar solution has been provided, but, I tweaked the
>Link Tag to support the writing of
>'javascript:[function_name]([param1,param2,param3...])' to the href
>attribute of the final output. Here is a summarization of it's
>functionality:
>
>I added the following attributes:
>
>function - This is the name of the javascript function that will be called;
>
>functionName - This is the name of the bean that will provide parameter
>values from one of it's properties.
>
>functionProperty - This is a property of a bean that will either provide a
>String or an ArrayList to populate the parameters of the function
>
>urlIndex - This allows you to include the url generated by href,forward or
>page to be included at a specific place in the function's parameters.
>
>There is another class that I wrote that does the actual processing and
>preparation of the url. I named it EcmaUtil.  I modeled the computeURL and
>computerParam methods of the RequestUtils class when I built the methods for
>the EcmaUtil.
>
>The LinkTag class that I wrote extends the BaseHandlerTag under the
>org.apache.struts.taglib.html package of struts jar.
>
>I know the code needs a bit of reworking to fit back in to the struts
>framework. I stripped out the MessageReources for the most part and removed
>some exception handling that will need to be included again.
>
>Anyways, if nobody has done this in the nightly or if it sounds like it
>might be of use. Let me know and I will post the code,the tld and an example
>of it's usage.
>
>EXAMPLE OF USAGE:
>
>This tag works exactly like the struts html tag with expanded feature
>outlined above:
>
>urlIndex="1" paramId="image" paramName="image">
> some text
>
>This code will produce the follwing html
>href="javascript:popUpWin('/do/listings/detail/popup?image=NWMT203336.jpg')"
>
>>
>>
>
>Of course some of the elements are arbitrary to the values in your beans.
>But you should be able to traverse the code and get the idea.
>
>Thanks in advance.
>Brandon Goodin
>Phase Web and Multimedia
>P(406)862-2245
>F(406)862-0354
>http://www.phase.ws
>[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: More detailed iteration needs?

2002-05-01 Thread Arron Bates

Have you taken a look at the Struts logic tags?...
...more specifically the  tag. Quite sure this will do 
the job.

As for "displaying first N of the collection", you can set "offset" and 
"length" attributes to the tag, and it will do just that. You can also 
use any form of a Collection, including a primitive Object[]. It will 
retrieve an Iterator from the collection, and go over that. So ArrayList 
will work as well as a Vector (albeit that _little_ bit faster). 
HashMaps and such will also work, but the offset and length will be 
useless. :)

There's a lot of tags in the Struts booty. Take a read over them some 
time. They'll be the answer to most problems.

Arron.


Rick Mann wrote:

>Hi.
>
>I set up a little website as a way to teach myself Struts. It's a
>user-maintained directory of electric vehicle charging locations. It's
>hardly complete, but there was one thing I wanted to do and didn't see an
>obvious way.
>
>Each Location has a bunch of user-supplied comments associated with it. My
>code currently displays all of the comments in reverse chronological order.
>What I'd really like to do is display only the first N such comments.
>
>Now, I'm pretty sure that I'm capable of making my own iterator tag(s) to do
>this, and the related action of iterating over the items N through M. I also
>realize that this will only work correctly for certain types of collection
>(Vectors, for example, or arrays), although I suspect it can be made to be
>repeatable for any type of collection.
>
>I guess I'm making a feature request, and looking for comments as to whether
>it's a good idea to add this functionality to the existing iterator tags or
>to create new tags to do it.
>
>Another related iterator action that I'd like to be able to perform is a
>more controlled iteration. I had a situation where I wanted to construct a
>string of items, separated by commas, but couldn't find an easy way to avoid
>an extra comma either at the end or beginning of the string. A set of tags
>to a) set up an iteration, b) get the current item, c) advance to the next
>item, and d) iterate over the remaining items would be useful, don't you
>think?
>
>Comments appreciated...
>



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




Re: treeview...

2002-04-30 Thread Arron Bates

Yes.
Complete tutorial to create trees with Struts here...
http://www.keyboardmonkey.com/pilotlight


Arron.



Jean Fotovat wrote:

>hello community,
>
>has somebody implements a treeview on struts framework ?
>thank you
>
>jean fotovat
>



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




Re: Iterate Problem

2002-04-26 Thread Arron Bates

This is all kind of fussy. You have to get the id's and everything 
right, manage the bean names etc, etc, etc.

You can forget all of that stuff and use the nested tags. Makes life 
100% simpler for iterating and everything else.
They've been in Struts since January. Just that not too many people put 
them forward to help the easy stuff, which they make even easier...

Primer, tutorials and downloads...
http://www.keyboardmonkey.com/next

It sounds like a plug, but I've had no complaints from anyone who's 
using them.

Arron.


Rick Reumann wrote:

>On Friday, April 26, 2002, 2:00:19 PM, Mark wrote:
>
>GM> I sure seem to be having my share of problems with 
>GM> this week
> 
>GM> My form bean (EditCustomerForm) has a property that sets and gets a List of
>GM> Customer objects.  These objects themselves contain the usual name, address,
>GM> etc. stuff.  I need to iterate through the collection of objects and display
>GM> the individual properties (like name, address, etc.) of each object.  The
>GM> Struts  TagLib documentation and Developer Guide are not particularly
>GM> useful in this regard.  We are adhering strictly to the Struts model and do
>GM> not want to use scriplets.
> 
>GM> If anyone has figured this out, please post a solution.
>
>
>Not sure if this is the best way, I'm accomplishing what you are
>talking about (using Stores instead of customers) by:
>
>1) I have an action class call some business logic that returns my
>collection of Store beans (In your case I would think you would
>call the method in the EditCustomerForm that returns to you your
>collection of Customer objects).  The action then puts this
>collection (in my case ArrayList) into the request (or session).
>
>2) Then in you jsp displaying the info you could do:
>
>
>
>   Unit Number: 
>   etc
>
>
>(You might not need the indexId in the iterate tag but I need it
>for determining the first time through the list for displaying
>certain headers etc. Thanks to those on the list that just showed
>me how to do that:)
>
>
>GM> Thanks,
>GM> Mark
>
>



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




Re: Tab Libraries? Bah!

2002-04-25 Thread Arron Bates

You miss my point. JSP is actually excellent, and very powerful and 
solves everything that it needed to do.
Simpler is not better. There are people out there that only do JSP, and 
are not really into compiled java. Couldn't do that if the power wasn't 
there.

Don't hassle JSP for not being something it wasn't meant to be (a simple 
template engine for designers).

Arron.

Jeffrey Bonevich wrote:

> Arron -
>
>  I think you are precisely right that this is why JSP is the way it 
> is, power and f**ked-upedness and all.  And JSP is a fine alternative 
> to ASP, but it is just ASP for Java.  This does not justify the way it 
> was done, it's just an excuse for why it is the way it is.  (Sorry, 
> gotta bring in an old Anthropology analogy: challenging gender roles 
> by adopting the role of the oppressor/dominant gender does no good for 
> women in modern society.  Please don't come after me about that, 
> anyone; it's in all of your more recent, post-modern anthro textbooks, 
> so go look it up) Shouldn't we strive to create something better to 
> replace it?  God forbid, couldn't we have come up with something 
> better and simpler to start with?
>
> Anywho, this has all got way OT.  I am outta this one! ;-)
>
> Arron Bates wrote:
>
>> Do you really think that JSP was made simply to do a templating 
>> engine to make life easeir for designers and people who only do 
>> markup?...
>> JSP had to fight back at ASP. Something you can hack immediately, no 
>> compiling and just run it. Really sweet and easy to get anyone going 
>> on the road to a server side solution. Java lacked that. You had to 
>> write and compile a servlet to get anything of the sort out of Java. 
>> Not something that people starting out would want to do. Especially 
>> when they're probably already written a "HelloWorld" in ASP and on 
>> their way. Java had to bridge this gap in a complete way, and it did.
>>
>> In this capacity, and so much more, JSP is quite excellent, and very 
>> powerful. From power derives complexity however. The effort to a 
>> templating engine is left to you guys, but JSP is an out-of-the-box 
>> solution that can suit visual designers (yes you may have lead them a 
>> little, but they're not all the way stupid. Well...most of them), all 
>> the way to your coders. There is a need to dumb-down aspects of 
>> markup (I'm working on another super-simple template engine for other 
>> reasons). Some need it more than others. Usually the better the 
>> designer, the more dumbing-down you may have to do (they can be 
>> ignorant blighters at times), and on the other hand, I started out a 
>> designer, and embraced it all... anyways.
>>
>> All this, I feel has to be respected.
>>
>> Arron.
>>
>>
>> Joseph Barefoot wrote:
>>
>>>> Hm.  Seems to me that if you have done your configration correctly and
>>>> published the content that is available to the designer, they should
>>>> have no problem using URL-bases from your configuration content.  
>>>> Maybe
>>>> I have jsut made it too easy on myself and the designers I have worked
>>>> with in the past.
>>>>
>>>
>>> I believe we are talking about two different things here; I mean the 
>>> kind of
>>> URL re-writing that attaches the sessionID in the event that the client
>>> browser has cookies disabled.  Nice of you to keep your designers in 
>>> mind
>>> while architecting a site though--I think way too many programmers 
>>> look at
>>> designers with disdain ("You can't write/read code?  Oh, the horror! ).
>>>
>>>> Tag libraries are a good start, but JSP
>>>> is just HTML-in-your-servlets writ backward.  There was little attempt
>>>> to actually come up with something useful and interesting.
>>>>
>>>
>>> Aha!  Something we can definitely agree upon!  :):)
>>>
>>>
>>> cheerful regards,
>>> Joe Barefoot
>>>
>>>
>>> -- 
>>> 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: Tab Libraries? Bah!

2002-04-24 Thread Arron Bates

Do you really think that JSP was made simply to do a templating engine 
to make life easeir for designers and people who only do markup?...
JSP had to fight back at ASP. Something you can hack immediately, no 
compiling and just run it. Really sweet and easy to get anyone going on 
the road to a server side solution. Java lacked that. You had to write 
and compile a servlet to get anything of the sort out of Java. Not 
something that people starting out would want to do. Especially when 
they're probably already written a "HelloWorld" in ASP and on their way. 
Java had to bridge this gap in a complete way, and it did.

In this capacity, and so much more, JSP is quite excellent, and very 
powerful. From power derives complexity however. The effort to a 
templating engine is left to you guys, but JSP is an out-of-the-box 
solution that can suit visual designers (yes you may have lead them a 
little, but they're not all the way stupid. Well...most of them), all 
the way to your coders. There is a need to dumb-down aspects of markup 
(I'm working on another super-simple template engine for other reasons). 
Some need it more than others. Usually the better the designer, the more 
dumbing-down you may have to do (they can be ignorant blighters at 
times), and on the other hand, I started out a designer, and embraced it 
all... anyways.

All this, I feel has to be respected.

Arron.


Joseph Barefoot wrote:

>>Hm.  Seems to me that if you have done your configration correctly and
>>published the content that is available to the designer, they should
>>have no problem using URL-bases from your configuration content.  Maybe
>>I have jsut made it too easy on myself and the designers I have worked
>>with in the past.
>>
>
>I believe we are talking about two different things here; I mean the kind of
>URL re-writing that attaches the sessionID in the event that the client
>browser has cookies disabled.  Nice of you to keep your designers in mind
>while architecting a site though--I think way too many programmers look at
>designers with disdain ("You can't write/read code?  Oh, the horror! ).
>
>>Tag libraries are a good start, but JSP
>>is just HTML-in-your-servlets writ backward.  There was little attempt
>>to actually come up with something useful and interesting.
>>
>
>Aha!  Something we can definitely agree upon!  :):)
>
>
>cheerful regards,
>Joe Barefoot
>
>
>--
>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: nested tags - doesn't support select option ?

2002-04-24 Thread Arron Bates

It should be fine. To remove my personal doubt, I just tried it out 
again on one of my nested apps and it still seems to work.
It even works the other way using  with a .

What part of it is not working?... is there an exception?... what kind 
of "legacy code" are we talking about?...
Can I get more information on the problem?..

Arron.

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: nested tags - doesn't support select option 1 2 3 4 5 6 7 8 9
>From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
> ===
>Hi
>I noticed that  is not supported with 
>
>Is there a reason ?  What is the work around if I "really" need the option
>tag - I have "legacy" code.
>
>Thanks
>LS
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>
>
>
>--
>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: NESTED TAG PROBLEM .....

2002-04-24 Thread Arron Bates

The nested tags work off a structure defined within a bean. Not a 
collection itself. So wrap the hashtable in a bean and you're on your way.

You're not using a form obviously, so you'll need the  tag 
to start everything off. Point this to the name you put the bean into 
your session with (currently "hashtable"), and it'll be fine. The nested 
tags work off the premise that they relate to each other. They always 
look up the tag hierarchy until they see a relative tag. Now there has 
to be a tag to start it all, this is what the  bean has to do.

Hopefully, this done it will start working as expected.

If you're still having trouble, there's a primer and a tutorial which 
will walk you through all the steps of using the tags.

http://www.keyboardmonkey.com/next


Arron.

Dragan Kocic wrote:

>I trying to work with this nesteg tags from "jakarta-struts-20020422" but I
>get no results, even no exceptions ... I got crazy ..
>
>I have a Bean called "FrageBean" filled with some attributes (Strings and
>Integers)
>I fill a hashtable with some of these Beans ...
>put this hastable into the Session ...
>
>
>   HttpSession session = request.getSession();
>   session.setAttribute("hashtable", hashtest);
>
>
>In my View I try to use the nested tags like this 
>
>
>
>   
>   
>   
>
>
>
>the Property "frageText" should return the String-value ...
>I tried it with Java directly inside the JSP ... like this:
>
>
>
>java.util.Hashtable hash = new java.util.Hashtable();
>hash = (java.util.Hashtable)session.getAttribute("hashtable");
>
>de.plenum.happySheets.beans.FrageBean fbean = new
>de.plenum.happySheets.beans.FrageBean();
>
>fbean = (de.plenum.happySheets.beans.FrageBean)hash.get(new Integer(0));
>
>String test = fbean.getFrageText();
>
>out.print("XXX -> "+ test);
>
>
>
>...
>
>On this way there is no problem, but I don't want to have this Javacode
>inside the JSP
>Where is my fault...
>
>THankz in advance !!!
>
>Dragan
>
>
>--
>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: nested Tag

2002-04-24 Thread Arron Bates

If you're after the HashTable ability, you'll require the "bleeding 
edge". The use of a hashtable to get the right nested property was only 
added a couple of weeks ago. So you'll need a recent nightly build to be 
able to do this properly. That could be the problem just there, but 
let's move on...

To calarify... your StandardsForm has a getter method "getMyHashTable", 
which returns the HashTable of QuestionBeans.

Your markup is basically correct, with a few minor insignificant issues. 
You specify the "name" attribute in each instance. This is not needed. 
In fact, the nested tags will ignore what you put, and reference the 
bean specified by the root tag. A root tag is either , 
 (just an extension of the html version), and 
. If you using a form variant, then the name of the bean 
will come from there, if you don't want a form, then use the 
 and point it's name attribue of a bean in scope. ie: your 
StandardsForm bean.
Also, the first letter of a property is lowercase, and the internals 
will look after it.

Resulting markup will be looking like this...







This get anything a little clearer?...


Arron.


Dragan Kocic wrote:

>Hy I'm a newbie with Struts 
>
>I think there is a simple answer to my question and I'm
>sorry ... dont' wanted to disturb you 
>
>following ...
>
>I have a Hashtable that I fill with Beans (QuestionBean)  
>I saved the hashtable into another Bean (StandardsForm) 
>my QuestionBean has a getter-Method for a QuestionText 
>I want to iterate through the hashtable and write the
>QuestionText  
>
>I tried it like this :
>
>
>   
>
>
>... but my Browser don't shows anything ... it don't even 
>show an exception 
>
>whats wrong ???
>
>thank you in advance for you help
>
>greetings
>
>KiTaMa
>
>--
>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: Capturing response of dynamically generated form

2002-04-21 Thread Arron Bates

There's a tutorial to do just this...
http://www.keyboardmonkey.com/pilotlight


Arron.

Don Saxton wrote:

>I put the form in session which effectively persists the structure until you
>get the response. I used nested tag so modifications are already made when
>response is received. My data structure in form is copy of real data so I
>can pick and choose what I want to permanently persist.
>
>
>- Original Message -
>From: "Kodali, Satish" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, April 20, 2002 7:28 AM
>Subject: Capturing response of dynamically generated form
>
>
>>I am rendering a form by iterating over a tree like data structure. I am
>>trying to capture the response of the dynamically generated form into Form
>>object. Please share
>>your ideas and experiences in using struts framework to capture the
>>response.
>>
>>Thanks,
>>Satish
>>
>>**
>>The information transmitted herewith is sensitive information intended
>>
>only
>
>>for use by the individual or entity to which it is addressed. If the
>>
>reader
>
>>of this message is not the intended recipient, you are hereby notified
>>
>that
>
>>any review, retransmission, dissemination, distribution, copying or other
>>use of, or taking of any action in reliance upon this information is
>>strictly prohibited. If you have received this communication in error,
>>please contact the sender and delete the material from your computer.
>>
>>--
>>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: Iterate update

2002-04-19 Thread Arron Bates

Read my first paragraph again, a little more slowly this time :)

Arron.

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: Iterate update
>From: JDavids <[EMAIL PROTECTED]>
> ===
>So I did this in bean:
>  public void setFstName (String[] names) {
>
>   int j = names.length;
>   System.out.println("XXX in set[]"+j);
>   for (int i=0;  i System.out.println(names[j]); }
>
>And in the html:text I did indexed="true".
>
>In action, I printed an enumeration of properties, and the array does go 
>to the action!!! Great. Page/JSP tag work.
>
>But the setFstName(String[] names)  does never get called.
>What would be a signature of the method that does the setter in the bean?
>Thanks in advance for help.
>
>JD
>
>
>Arron Bates wrote:
>
>>Martin confirmed it for you. But here's the spiel you're after...
>>
>>The items in an interate tag need to have their properties set via an 
>>indexed property. The String[] you mention there is a valid form. Any 
>>Object[] is fine. In all truth, the setter for Object[] is academic. The 
>>PropertyUtils will actually call the getter for the array, and then set 
>>the item in the array for the index that it has. The actual method 
>>"setMyProperty(Object[])" will never get called.
>>
>>As of a couple of months ago, you can now use any implementation of 
>>java.util.List in the place of the Object[].
>>
>>As a side note... have you thought of spending the few minutes it would 
>>take to change your methods to the Object[] style and find out for 
>>yourself rather than get impatient with the people of the list (and now 
>>the developers list)?...
>>
>>Then it wouldn't matter what we said, you'd know, regardless.
>>
>>
>>Arron.
>>
>>
>>Struts Newsgroup (@Basebeans.com) wrote:
>>
>>>Subject: Re: Iterate update
>>>From: JDavis <[EMAIL PROTECTED]>
>>>===
>>>First it goes out as iteration tag of html:text.
>>>Then I want to capture each filed in each row (multi row update).
>>>
>>>So the set does a (String[]) ?
>>>tia,
>>>JD
>>>
>>>Martin Cooper wrote:
>>>
>>>>You don't say what you're doing with the elements in the iteration, 
>>>>but in
>>>>general, the simplest thing to do is to use a String[] property in 
>>>>your form
>>>>bean.
>>>>
>>>>-- 
>>>>Martin Cooper
>>>>
>>>>
>>>>- Original Message -
>>>>From: "Struts Newsgroup" <[EMAIL PROTECTED]>
>>>>To: <[EMAIL PROTECTED]>
>>>>Sent: Wednesday, April 10, 2002 2:40 PM
>>>>Subject: Iterate update
>>>>
>>>>
>>>>
>>>>>Subject: Iterate update
>>>>>From: "J.Davis" <[EMAIL PROTECTED]>
>>>>>===
>>>>>When Iterating to display, it works great. We go to next row, a display
>>>>>say 10 rows with say 5 colums each.
>>>>>
>>>>>On an update ... what to do?
>>>>>
>>>>>How do you iterate back, and apply each setter 10 times (once for each
>>>>>
>>>>row).
>>>>
>>>>>Help...
>>>>>JD
>>>>>
>>>>>
>>>>>-- 
>>>>>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]>
>>
>
>
>--
>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: Struts 1.0 and Nested Tags. with Added Classes

2002-04-18 Thread Arron Bates

If you're using Struts 1.0 you can't just return the ArrayList. Return 
the Object[] by calling myArrayList.ToArray(). The ability to use the 
ArrayList properly in an indexed property was only added to 
PropertyUtils in February some time. You can't just replace the bean 
utils jar either, as for Struts 1.0, PropertyUtils was embedded. I think 
that the "null" error is that it doesn't have a clue as to what to do 
with the List.

Another possible issue, is that you may be confusing your beans. How?... 
In some of the tags you have provided a bean reference via the "name" 
attribute. Providing the name to all but one nested tag (nested:root), 
is a waste of time. Internally, the tags will make up their own idea and 
overwrite whatever you provide anyway. All the nested tags look up to a 
valid nested "root" tag. There are three options. , 
 and . In your case it's  (note: 
 is just an extension of ). So all your tags are 
looking to the form tag to get the bean reference. If that's not 
"theSCBean" it's going to be an issue.

To get it all working off theSCBean, make a  tag inside the 
form tag to take over, and use the theSCBean.
eg...

  

  

  
  

  

  


(I also noted in making the above example that the closing form and 
iterate tags were out of sequence, it may have just been your example, 
as it would have thrown a bad markup kind of error instead of the 
current null problem).

Also note in the above, that I changed the  to 
. Why?...  is there more for the other way 
of using it. Internally, nested tags will "always" set the name 
attribute. Setting the name attribute means that the "collection" method 
of using the options tag wont come into effect. The nested version is 
there for the "name" attribute use of the tag. The collection attributes 
accesses another bean all together, so it's best handled by the original 
tag. You've correctly made the bean via the define tag (good stuff :), 
and all you have to do is use the original tag and you'll be golden. If 
you move up to Struts 1.1, there's a nice "optionsCollection" tag there 
which is excellent for nesting, and doesn't need that extra bean define 
step.

The only other difference with the example above, is that I moved the 
 to be around the select tag. Only personal taste, as I 
like to keep the select and the accompanying options tag in their own 
unit as they both together form the input item. Makes it a little easier 
to read.

Anyways, I hope that somewhere in all that you find the rest of your 
legs in using the . I'd rather err on the side of too much 
info, than not enough. :)

Arron.

PS: Taken the nested tags tutorials on www.keyboardmonkey.com ?
   It will walk you through making lists within lists and whatever 
else. All the way up to making a tree.



Daniel Jaffa wrote:

>I checked into this before  posting to the newsgroup.
>
>What would be great is if some one could post some example code doing the
>same thing.
>
>Thank u Very much
>Daniel Jaffa
>- Original Message -
>From: "Marcelo Vanzin" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, April 18, 2002 3:29 PM
>Subject: Re: Struts 1.0 and Nested Tags. with Added Classes
>
>
>>Daniel Jaffa wrote:
>>
>>>I recieve the following error.
>>>java.lang.IllegalArgumentException: Null property value for 'programs'
>>>
>>>Just to let u know that programs is an ArrayList in
>>>
>SpecialConditionsBean.
>
>>>an Addition that programs is an array list of ProgramsBeans.
>>>
>>So it seems that some of the two "getPrograms()" is returning "null" when
>>they shouldn't.
>>
>>--
>>[]'s
>>Marcelo Vanzin
>>Touch Tecnologia
>>[EMAIL PROTECTED]
>>"Life is too short to drink cheap beer"
>>
>>
>>--
>>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: [Q] nested:nest and nested:write

2002-04-18 Thread Arron Bates

Instead of  try  with the nested property...



If that returns the error, it's all in the setup of the bean etc.
Because it's a "no getter method" error, I'd be checking over the 
methods and their signatures, making sure they're all public etc. It's 
quite a specific error. It's found the bean, but it can't get into it 
for one reason or another. If all your methods are public, start putting 
in System.outs (or logging calls) for the initial Beans' "getAccount()" 
method to make sure it's called, and then into the child bean etc etc to 
make sure all the methods are in fact being called.


Arron.



Sanjay Choudhary wrote:

>Hi Arron,
>
>In struts-config.xml I named 
>
>type="com.kp.struts.form.action.beans.ActionForm"/>
>
>type="com.kp.struts.form.action.LogonAction"
>  name="sanForm"
>  scope="session"
>  input="/test.jsp">
>
>
>Again got the error 
>Servlet Error: No getter method for property
>account.account_no of bean sanForm:
>javax.servlet.jsp.JspException: No getter method
>for property account.account_no of bean sanForm.
>
>I wish to use it for select options as documented for
>nested tag library. When I got the error in
>implementation,  I tried with a simple nested:write to
>see if I get the value or not...but it resulted inthe
>same type of error.
>
>
>Thanks,
>Sanjay
>
>
>
>--- Arron Bates <[EMAIL PROTECTED]> wrote:
>
>>Nothing is outwardly obvious... but it won't be in
>>the nested tags as 
>>it's forming the property correctly
>>("account.account_no").
>>
>>One way to test, is to use the normal bean:write tag
>>using your named 
>>FormBean and the full nested property.
>>eg:
>>>property="account.account_no" />
>>
>>And if you've named the bean the same name you have
>>in the Struts config 
>>(as this is the name that the nested tags will be
>>working off of), you 
>>should get the same error. With that said, it will
>>have to be the scope 
>>of the bean, or the naming of the properties, the
>>visibility of the 
>>methods etc etc. Nothing nested tag specific. All I
>>can say is that the 
>>nested tags are laid up fine, and will be working
>>off the bean named in 
>>the struts-config.xml
>>
>>
>>Arron.
>>
>>
>>Sanjay Choudhary wrote:
>>
>>>Hi Friends,
>>>
>>>I have a FormBean AccountForm and javabean Account
>>>
>>>public class AccountForm{
>>>  private Account account;
>>>  
>>>  // setter and getter method for account
>>>}
>>>
>>>public class Account{
>>>  private String account_no;
>>>  // setter and getter for account_no
>>>}
>>>
>>>Then I have the following test.jsp
>>>
>>>
>>>
>>>test.jsp
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>>   
>>>   
>>>   
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>When I run test.jsp I get the following error
>>>
>>>Servlet Error: No getter method for property
>>>account.account_no of bean AccountForm:
>>>javax.servlet.jsp.JspException: No getter method
>>>
>>for
>>
>>>property account.account_no of bean AccountForm.
>>>
>>>Where am I making the mistake? 
>>>
>>>-Sanjay
>>>
>>>
>>>
>>>__
>>>Do You Yahoo!?
>>>Yahoo! Tax Center - online filing with TurboTax
>>>http://taxes.yahoo.com/
>>>
>>>--
>>>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]>
>>
>
>
>__
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>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: [Q] nested:nest and nested:write

2002-04-17 Thread Arron Bates

Nothing is outwardly obvious... but it won't be in the nested tags as 
it's forming the property correctly ("account.account_no").

One way to test, is to use the normal bean:write tag using your named 
FormBean and the full nested property.
eg:


And if you've named the bean the same name you have in the Struts config 
(as this is the name that the nested tags will be working off of), you 
should get the same error. With that said, it will have to be the scope 
of the bean, or the naming of the properties, the visibility of the 
methods etc etc. Nothing nested tag specific. All I can say is that the 
nested tags are laid up fine, and will be working off the bean named in 
the struts-config.xml


Arron.


Sanjay Choudhary wrote:

>Hi Friends,
>
>I have a FormBean AccountForm and javabean Account
>
>public class AccountForm{
>   private Account account;
>   
>   // setter and getter method for account
>}
>
>public class Account{
>   private String account_no;
>   // setter and getter for account_no
>}
>
>Then I have the following test.jsp
>
>
>
>test.jsp
>
>
>
>
>
>
>  
>
>
>
>  
>
>
>
>
>
>
>
>When I run test.jsp I get the following error
>
>Servlet Error: No getter method for property
>account.account_no of bean AccountForm:
>javax.servlet.jsp.JspException: No getter method for
>property account.account_no of bean AccountForm.
>
>Where am I making the mistake? 
>
>-Sanjay
>
>
>
>__
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>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]>




Trees & JSP Recursion in Struts 1.1...

2002-04-15 Thread Arron Bates


The ability to draw trees in a flexible, efficient and ultimately 
expandible manner is really hard. But Struts, JSP's and the Nested Tags 
in Struts1.1beta can do it easily and in a very elegant fashion... (or 
with Struts1.0/1.0.1 with a nested tags distrib younger than a month)



I just finished uploading a tutorial to my site to show you all how to 
do, in easy steps, everyone can do it.
And it's fun!
The end of the tutorial, you'll end up with a page which will display 
some of the file system of your JSP server!


Anyways, it's all there, some have been complaining that there is no 
"control" or "tag" to make trees... well, instead of having to rely on 
any one piece of code, the framework itself is capable of pulling it off 
in a very ellegant and most powerful fashion (you do your own markup, no 
putting up with what any one control does or doesn't do!).

Just give it a try.

Go to...
http://www.keyboardmonkey.com/

...and click on the "[NeXt]" section if you want a little ramp-up on the 
nested tags first, or just go straight to the "Pilot Light" section for 
the tutorials. You could go straight to the tutorials if you're quite 
familiar with Struts. They should get you through.

If you don't have Struts1.1, just pick up the nested tags distrib from 
the "downloads" section.

Enjoy.

Arron.


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




Re: nested tags question

2002-04-14 Thread Arron Bates
The nested tags as of probably a month and a half ago, the nested tags
penetrate dynamic includes.
I tried to mail the few (but vocal :) people that were throwing things
at me to get it done, you may have been the one that got away. Apologies.

Putting up a tutorial on my site tonight to show the potential of true
recursion and JSP's to make a tree structure. Trees have never been more
fun. :)

Arron.


Alex Paransky wrote:

>You should be able to do that.  In-fact, that's one of the ways to re-use
>common page presentations.  If you do your job write, then your main page is
>composed of a bunch of includes to render different parts of the result
>"tree".  Be-careful, however, the last time I checked the nested tags only
>work well in a static include scenario.  They don't work well with dynamic
>includes, which is what you might find you need to do, if you have a lot of
>conditionals (otherwise, it's very easy to exceed to the 64K method limit).
>
>-AP_
>http://www.alexparansky.com
>Java/J2EE Architect/Consultant
>http://www.myprofiles.com/member/view.do?profileId=127
>
>-Original Message-
>From: Kousek, Theron [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 11, 2002 2:33 PM
>To: 'Struts Users Mailing List'
>Subject: nested tags question
>
>
>
>Hi folks:
>
>I have a few forms that contain the same type of "template"...   I want to
>create a generic template that uses a form bean.   This template needs to
>handle form beans that are at the root level or a form bean that may be
>nested.
>
>So in one screen, the template will be at the root and not need to be
>nested.  In another screen, the same template will need to be nested.  So
>basically, I can contain my nested statements like:
>
>
>   
>
>outside the scope of the template and in the file that needs to invoke the
>template...
>The actual template can contain the :
>
>   
>   property="displayBillid"
>   disabled="true"
>   size="10" styleId="small"/>
>   
>
>type tags...
>So here's my question:
>
>Even if a form bean is at the root and not nested at all, can I still
>declare it to be nested, only define it at the root?  So billingForm for
>example could be:
>
>
>even if it is at the topmost level?   Is this normal or should I avoid it?
>If this is legal, then I will be able to literally plug and play these
>templates into other screens and will have one common layout repository.
>
>thanks,
>Theron
>
>--
>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: Iterate update

2002-04-14 Thread Arron Bates

Martin confirmed it for you. But here's the spiel you're after...

The items in an interate tag need to have their properties set via an 
indexed property. The String[] you mention there is a valid form. Any 
Object[] is fine. In all truth, the setter for Object[] is academic. The 
PropertyUtils will actually call the getter for the array, and then set 
the item in the array for the index that it has. The actual method 
"setMyProperty(Object[])" will never get called.

As of a couple of months ago, you can now use any implementation of 
java.util.List in the place of the Object[].

As a side note... have you thought of spending the few minutes it would 
take to change your methods to the Object[] style and find out for 
yourself rather than get impatient with the people of the list (and now 
the developers list)?...

Then it wouldn't matter what we said, you'd know, regardless.


Arron.


Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: Iterate update
>From: JDavis <[EMAIL PROTECTED]>
> ===
>First it goes out as iteration tag of html:text.
>Then I want to capture each filed in each row (multi row update).
>
>So the set does a (String[]) ?
>tia,
>JD
>
>Martin Cooper wrote:
>
>>You don't say what you're doing with the elements in the iteration, but in
>>general, the simplest thing to do is to use a String[] property in your form
>>bean.
>>
>>--
>>Martin Cooper
>>
>>
>>- Original Message -
>>From: "Struts Newsgroup" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Wednesday, April 10, 2002 2:40 PM
>>Subject: Iterate update
>>
>>
>>
>>>Subject: Iterate update
>>>From: "J.Davis" <[EMAIL PROTECTED]>
>>>===
>>>When Iterating to display, it works great. We go to next row, a display
>>>say 10 rows with say 5 colums each.
>>>
>>>On an update ... what to do?
>>>
>>>How do you iterate back, and apply each setter 10 times (once for each
>>>
>>row).
>>
>>>Help...
>>>JD
>>>
>>>
>>>--
>>>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: indexed - Nested property and Javascript

2002-04-12 Thread Arron Bates

The following is how it would go...

document.MyForm.elements["echeancier.date[0]"]

...you use whatever ends up in your input's name attribute. index or 
not, mapped or otherwise. If you want to iterate through them, you could 
use...

document.MyForm.elements["echeancier.date["+ i +"]"]


Arron.


Michael J. Godfrey wrote:

>I dont know what iterate does..so if you can paste some of the resulting
>HTML I can help...
>but, *IF* iteration appends a number to the element name..then accessing
>a specific element is just as easy:
>
>document.myForm.elements['echeancier.dat' +
>elementToAccess].value="Changed";
>
>
>-Original Message-
>From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
>Sent: Friday, April 12, 2002 9:04 AM
>To: Struts Users Mailing List
>Subject: indexed - Nested property and Javascript
>
>
>Hi,
>
>I have a HTML Form in wich I use iterate Tag to set same number of Text
>inputs as my data bean has :
>
>
>
>
>
>
>
>As you can see, my form is nested, so in javascript I must use elements
>notation like this :
>document.MyForm.elements['echeancier.date']
>
>But here my text fields are indexed, so how can I access them in
>javascript
>?
>
>document.MyForm.elements['echeancier.date'][0] doesn't work ...
>
>
>
>
>--
>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: dynamic form using nested:file?

2002-04-12 Thread Arron Bates

Elijah,

Sorry about the lack of the tag. It's on its way.
Pick it up in the next nightly build.

Arron.


Elijah Jacobs wrote:

>hi all,
>
>I have a form that can have N number of images.  So in essence it's like the
>Monkey struts example by Arron Bates except where he has bananas, i have
>images.
>
>The problems is that I have to associate a FormFile for each image, since
>each image can be updated (hence an image upload is needed for that
>particular image).. for example if N=3 then a user can update image 2 to
>another image.  A user can also add an image increasing N to 4
>
>I am using the nested tags for struts 1.0 (nested_tags_10.jar). So I have
>this set up:
>
>   start of code =
>FormBean.java
> pivate ArrayList slideImageList;(with associating set/get methods)  ..
>contains a list of ImageItem
>
>ImageItem.java  -- what is contained in the slideImageList
>private Image image;   // and image object containing image_name, url,
>etc...
>private FormFile file;// the FormFile I want to associate to the
>image above.
>
>Idealy I would want this on my JSP page:
>
>   
> 
>   
><%!--  this is where i get in
>trouble --%>
>
>
>===   end of code 
>Since the nested tag does not have an associating html:file tag then I'm
>stuck.  Does anyone know a way to get around this?
>
>thanks,
>- ej
>
>
>
>--
>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: Nested properties problem

2002-04-09 Thread Arron Bates

Try...

document.LoanDetailsForm["loanDetailsBean.loanSummaryBean.loanId"].readOnly = true;

Arron.

Bhaskar Gopalan wrote:

>Hi,
>I'm trying to simulate a Readonly text field in struts 1.4 and getting this
>error:
>document.LoanDetailsForm.loanDetailsBean.loanSummaryBean is not an object
>Any clues?
>
>My code:
>
>function readOnlyFunc() {
>document.LoanDetailsForm.loanDetailsBean.loanSummaryBean.loanId.readOnly =
>true;
>}
>
>onfocus="javascript:readOnlyFunc();"/>
>
>Thnx,
>GB
>
>
>
>--
>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: Cannot find message resources under key org.apache.struts .action.MESSAGE

2002-04-08 Thread Arron Bates

It should have been all you required.
I had the problem developing the other night, and that was the problem 
there.

You might want to try downloading the nightly build and trying again. As 
these types of bugs are being rectified it may pay to make sure that 
you're running on the latest.

Arron.


[EMAIL PROTECTED] wrote:

>I tried it but there is still the same problem. Do you mean I have to wait
>till 1.1 final release?
>
>
>
>
>  
>    
>Arron Bates   
>
><[EMAIL PROTECTED]>   
>ic.net.au>   Kopie:   
>
> Thema:  Re: Antwort: Re: Cannot find message 
>resources under key 
>08.04.2002   org.apache.struts  .action.MESSAGE   
>
>17:14 
>
>Bitte 
>
>antworten an  
>
>"Struts Users 
>
>Mailing List" 
>
>  
>
>  
>
>
>
>
>
>add key="org.apache.struts.action.MESSAGE" to the  tag.
>
>eg:
>  parameter="org.apache.struts.webapp.example.ApplicationResources"
>  key="org.apache.struts.action.MESSAGE"
>  />
>
>Try that one.
>Some other bright spark found it (didn't leave his name). It's a problem
>with 1.1beta. Still has yet to be fixed for the full 1.1 release.
>
>Arron.
>
>[EMAIL PROTECTED] wrote:
>
>>Can it be that you mean this for Struts 1.02?
>>But I use Struts 1.1 and there must be in the struts.config.xml (instead
>>
>of
>
>>in the web.xml) the following text:
>>>"org.apache.struts.webapp.example.ApplicationResources"/>
>>
>>So it must have another reason it doesn't work, cause it work with Resin.
>>
>>
>>
>>
>
>>   rizvan.katchera@
>>
>
>>   socgen.com  An: [EMAIL PROTECTED]
>>
>
>>   Kopie:
>>
>[EMAIL PROTECTED]
>
>>   08.04.2002 16:37Thema:  Re: Cannot find
>>
>message resources under key org.apache.struts
>
>>   Bitte antworten .action.MESSAGE
>>
>
>>   an "Struts Users
>>
>
>>   Mailing List"
>>
>
>
>
>>
>>
>>
>>
>>
>>
>>
>>It is a typicall error
>>To solve it you must add a file called applicationResources.properties
>>You must check if the web.xml contains the folowing text :
>>
>> application
>>
>>org.apache.struts.webapp.example.ApplicationResources
>>
>
>> 
>>I added an example of this file in the message
>>Regards
>>(See attached file: APPLIC~1.PRO)
>>__ Reply Separator
>>_
>>
>>
>>
>>[EMAIL PROTECTED]
>>08/04/2002 15:57:00
>>
>>
>>
>>
>|---+--|
>
>>|   |Return
>>Receipt: No|
>>| To:[EMAIL PROTECTED] |Importance:
>>Normal|
>>| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |
>>|
>>|   |
>>|
>>
>|---+--|
>
>>
>>
>>
>>
>>SUBJECT: Cannot find message resources under key
>>org.apache.struts.action.MESSAGE
>>
>>
>>Hi,
>>the struts-example from Struts 1.1 

Re: Antwort: Re: Cannot find message resources under key org.apache.struts .action.MESSAGE

2002-04-08 Thread Arron Bates

add key="org.apache.struts.action.MESSAGE" to the  tag.

eg:


Try that one.
Some other bright spark found it (didn't leave his name). It's a problem 
with 1.1beta. Still has yet to be fixed for the full 1.1 release.

Arron.

[EMAIL PROTECTED] wrote:

>Can it be that you mean this for Struts 1.02?
>But I use Struts 1.1 and there must be in the struts.config.xml (instead of
>in the web.xml) the following text:
>"org.apache.struts.webapp.example.ApplicationResources"/>
>
>So it must have another reason it doesn't work, cause it work with Resin.
>
>
>
>  
>   
>rizvan.katchera@  
>   
>socgen.com  An: [EMAIL PROTECTED]   
>   
>Kopie:  [EMAIL PROTECTED]
>   
>08.04.2002 16:37Thema:  Re: Cannot find message resources 
>under key org.apache.struts
>Bitte antworten .action.MESSAGE   
>   
>an "Struts Users  
>   
>Mailing List" 
>   
>  
>   
>  
>   
>
>
>
>
>
>
>
>
>It is a typicall error
>To solve it you must add a file called applicationResources.properties
>You must check if the web.xml contains the folowing text :
> 
>  application
>
>org.apache.struts.webapp.example.ApplicationResources
>
>  
>I added an example of this file in the message
>Regards
>(See attached file: APPLIC~1.PRO)
>__ Reply Separator
>_
>
>
>
>[EMAIL PROTECTED]
>08/04/2002 15:57:00
>
>
>
>|---+--|
>
>|   |Return
>Receipt: No|
>| To:[EMAIL PROTECTED] |Importance:
>Normal|
>| cc: (bcc: Rizvan KATCHERA/fr/socgen)  |
>|
>|   |
>|
>|---+--|
>
>
>
>
>
>SUBJECT: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
>
>
>Hi,
>the struts-example from Struts 1.1 works with Resin 2.05 but if I start it
>with the WSAD 4.0 (Websphere Application Developer) there comes this error:
>
>Error Message: Cannot find message resources under key
>org.apache.struts.action.MESSAGE
>Error Code: 500
>Target Servlet: null
>Error Stack:
>javax.servlet.jsp.JspException: Cannot find message resources under key
>org.apache.struts.action.MESSAGE
> at org.apache.struts.util.RequestUtils.message(RequestUtils.java:793)
> at
>org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
> at index_jsp_0._jspService(index.jsp :6)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
>
>
>
> at
>org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>...
>
>Has somebody an idea? I didn't changed the example. So in the
>struts-config.xml it's still this code:
>="org.apache.struts.webapp.example.ApplicationResources"/>
>
>
>Thanks,
>Susanne
>
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>(See attached file: APPLIC~1.PRO)--
>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: iteration tag

2002-04-08 Thread Arron Bates

The name of the bean associated with your form, or any other bean name 
which is in scope.

For your example, add a bean to the session under the name 
"announcement" and you're golden.

Arron.

bluetooth wrote:

>Hi All
>I need to know where the "name" in the iteration tag is derived from coz when i 
>attempt to retrieve it from session inside my JSP, it prompts me "cannot find bean 
>announcement in scope session".
>
>scope="session">
>
>
>
>
>See Dave Matthews Band live or win a signed guitar
>http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/lycos_020201/splash.asp
> 
>
>--
>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: usage of html:options

2002-04-07 Thread Arron Bates

The tag Ted mentions is html:optionsCollection, and it's in Struts 1.1

If you have to run 1.0/1.0.1, then what you're doing with the 
bean:define is the standard use. Or, if you have a collection for the 
values, and a value for the labels, then you can just use the 
html:options, with the "property" property pointing at the bean property 
that will yield the value list, and the "labelProperty" pointing at the 
bean property that will be the list of labels. Only thing about this is, 
is that they're separate lists.

But to use the list of beans that themselves hold the label and values, 
then there is no other way but your bean:define usage you already have, 
or the new html:optionsCollection tag.

Arron.


Slava_L wrote:

>Now other suggestions?
>
>- Original Message -
>From: "Ted Husted" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Sunday, April 07, 2002 12:40 AM
>Subject: Re: usage of html:options
>
>
>>If the collection is stored on the ActionForm, you have to use
>>bean:define under Struts 1.0.x
>>
>>For Struts 1.1, there is another tag that gets around this.
>>
>>-Ted.
>>
>>
>>Slava_L wrote:
>>
>>>we have and ActionForm with Collection field (4xmpl list of smthing)
>>>how should i use tag html:options to fill parent tag html:select with
>>>
>values of list (from our Collection)
>
>>>In uptodate we use this scheme:
>>>in jsp file we have
>>> -> related with ActionForm in struts-config.xml
>>>
>>>
>>>
>>>.
>>>
>>>but how can u do the same thin' w/o bean:define ?
>>>
>>>Thnx!
>>>
>>--
>>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: nested tags

2002-04-07 Thread Arron Bates

  The nested version of the bean:message tag wasn't added until the 
other night. You can get the nightly build, or download the nested tags 
library for the older struts 1.0/1.0.1 from...

http://www.keyboardmonkey.com/struts


Arron.

[EMAIL PROTECTED] wrote:

>Hi guys,
>
>I really need some help on nested-tags. What I want to do is:
>
>- get a bean property, which in fact is a key to my properties file
>- use the bean:message tag to get the info to display no page.
>
>How can I do that ? How can I use a bean info in the bean:message
>tag ?
>
>I'm using the nested-tags
>Thanks in advance
>Jefferson
>
>
>--
>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: problem with arraylist and iterate

2002-04-04 Thread Arron Bates

There's a jar of the tags on the site for your older Struts. Many people 
are using it, and it works great.
It's up to the latest code which is in the Struts CVS version, so you're 
not missing out on anything.

Other than that, you'll have to slog it out with iterate tag and setting 
the indexed property on the child tags. Which is tougher.

Arron.


Yu, Yanhui wrote:

>Arron. 
>
>We are using version 1.0.2 here and I seem unable to convince to get 1.1beta
>here, is there any work around to do this in version 1.0.2?  Thank you very
>much indeed.
>
>Yanhui
>
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 02, 2002 6:24 PM
>To: Struts Users Mailing List
>Subject: Re: problem with arraylist and iterate
>
>
>What has to happen is the properties for each of the inputs in the list, 
>have to get the correct "indexed" property to update correctly every 
>time. The nested taglib in the current 1.1beta Struts can help you do 
>this with ease.
>
>If want a tutorial to walk you through it, or you're running an older 
>version of Struts and need teh nested taglib library, go here...
>http://www.keyboardmonkey.com/struts
>
>After that, you shouldn't have iterating problems again.
>
>Arron.
>
>
>Yu, Yanhui wrote:
>
>>Hi Jeff,
>>
>>I am similar problems here with ArrayList, could you please post the
>>solution if you find any?  Appreciate it very much.
>>
>>Yanhui
>>
>>
>>
>>-Original Message-
>>From: Jefferson Rodrigues de Oliveira e Silva
>>[mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, April 02, 2002 6:29 AM
>>To: Struts Users Mailing List
>>Subject: problem with arraylist and iterate
>>
>>
>>Hi all,
>>
>>I have the following problem:
>>
>>I have a bean User which has a hashtable attribute bets. The
>>getBets method returns a Bet[]  array.
>>
>>The Bet class has 6 attributes.
>>
>>In the bets.jsp page, I show in a table all the values from the Bet objects
>>(using iterate), one row for each object, and two of these values from each
>>object
>>the user is able to edit.
>>
>>The bets.jsp page is ok, all the values are being displayed, and
>>the user can edit the two fields for each row.
>>
>>My problem is when the user submit this bets.jsp.
>>
>>How can I get all the fields (two for each table row) in a
>>Form bean ?
>>
>>I want that the FormBean to handle the submit is the BetsForm ?
>>I implemented the BetsForm with a single attribute, an ArrayList
>>called bets.
>>
>>How should I implement this BetsForm bean ? How can it
>>receive all the fields from the bets.jsp page in the
>>arraylist attribute ?
>>
>>
>>Thanks in advance
>>Jefferson
>>
>>--
>>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: nonexistent "nested:message" & get properties in Action code

2002-04-02 Thread Arron Bates

No, no reason. It was simply missed.

I've made it, but a need a little more time to test it out. There 
shouldn't be any issues, it's a simple extension.
Do you want to test it also?... I can mail the implementation to you 
when it's done instead of waiting for the Struts build process to tick over.


Arron.


David M. Karr wrote:

>Is there some particular reason a "nested:message" tag has NOT been
>implemented?  In my Action code, I'm storing an array of "LabelValueBean" where
>the label is just the "key" for the label, and in my forwarded-to JSP, I'm
>using "bean:message" (at least in my "logic:iterate" code) to display the
>label.  Now I'm experimenting with using nested:iterate instead, but there is
>no "nested" counterpart of "bean:message".
>
>Along similar lines, what is the proper procedure for doing essentially what
>"bean:message" is doing, but in the Action code?  In other words, I want to
>look up properties in my application resource bundle, but in the Action, in
>addition to the JSP.
>



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




Re: problem with arraylist and iterate

2002-04-02 Thread Arron Bates

What has to happen is the properties for each of the inputs in the list, 
have to get the correct "indexed" property to update correctly every 
time. The nested taglib in the current 1.1beta Struts can help you do 
this with ease.

If want a tutorial to walk you through it, or you're running an older 
version of Struts and need teh nested taglib library, go here...
http://www.keyboardmonkey.com/struts

After that, you shouldn't have iterating problems again.

Arron.


Yu, Yanhui wrote:

>Hi Jeff,
>
>I am similar problems here with ArrayList, could you please post the
>solution if you find any?  Appreciate it very much.
>
>Yanhui
>
>
>
>-Original Message-
>From: Jefferson Rodrigues de Oliveira e Silva
>[mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 02, 2002 6:29 AM
>To: Struts Users Mailing List
>Subject: problem with arraylist and iterate
>
>
>Hi all,
>
>I have the following problem:
>
>I have a bean User which has a hashtable attribute bets. The
>getBets method returns a Bet[]  array.
>
>The Bet class has 6 attributes.
>
>In the bets.jsp page, I show in a table all the values from the Bet objects
>(using iterate), one row for each object, and two of these values from each
>object
>the user is able to edit.
>
>The bets.jsp page is ok, all the values are being displayed, and
>the user can edit the two fields for each row.
>
>My problem is when the user submit this bets.jsp.
>
>How can I get all the fields (two for each table row) in a
>Form bean ?
>
>I want that the FormBean to handle the submit is the BetsForm ?
>I implemented the BetsForm with a single attribute, an ArrayList
>called bets.
>
>How should I implement this BetsForm bean ? How can it
>receive all the fields from the bets.jsp page in the
>arraylist attribute ?
>
>
>Thanks in advance
>Jefferson
>
>--
>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: Tiles, included pages, and taglibs

2002-04-01 Thread Arron Bates

They may be separate pages in terms of development, but at runtime 
they'll become separate servlets all together and will be parsed as 
such. Being separate servlet entities, they'll need the talib 
declarations etc etc.

If you do static includes, the server will simply pick up the include 
file and write it into the same servlet. In this case you don't use the 
taglib declarations.

Arron.


Dave Dribin wrote:

>Hi,
>
>This is more of an observation than a question.  I started playing
>with the tiles and noticed that in included pages, you have to
>redeclare taglibs in those included pages.  Say I have this file,
>index.jsp:
>
>-
><%@ page contentType="text/html;charset=UTF-8" language="java" %>
><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
><%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
>
>  
>  
>  
>  
>
>-
>
>In "/WEB-INF/body/home.jsp", I have to redeclare the taglibs.  This
>seems a little counter-intuitive as the included pages are not full
>HTML pages, only sub-sections.  Is this the intended behavior, or do I
>have something configured wrong?  And just to clarify my own sanity,
>this is different that JSP includes, right?
>
>-Dave
>
>--
>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: Javascript problem referencing nested form fields

2002-03-26 Thread Arron Bates

This one is scheduled for a tips page someplace. I'm adding it to my 
site, but Struts home page should have one... anyways, onto the real 
topic

As you already know, the dot notation is getting in the way and messing 
up JavaScript document object model.

For the field you want, use...

document.forms[0]["address.number"]

...so to alert it's value...

document.forms[0]["address.number"].value

...to pull focus...

document.forms[0]["address.number"].focus()

You get the idea. All it needs is a string. So the following is the same 
and makes things handy...

var myVar = "addrss.number"
document.forms[0][myVar]

And naturally you can access and field in this way to make your scripts 
run on a standard.

Implications: none. it's cross browser. So go play :)


Arron.


Frederico Schuh wrote:

>I'm using nested beans inside my ActionForms, and thus
>I have to reference those bean properties with dots
>(like address.number) in the JSP file. So, the
>generated HTML would be something like this:
>
>
>   
>
>
>The problem is that I can't find a way to reference
>those form fields if I want to do some javascript
>validation. If I do something like
>"document.forms[0].address.number" it doesn't work.
>How do I do it?
>
>
>=
>
>Frederico Ferro Schuh
>[EMAIL PROTECTED]
>ICQ: 20486081
>
>___
>Yahoo! Empregos
>O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
>e tenha acesso a milhares de vagas abertas!
>http://br.empregos.yahoo.com/
>
>--
>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: OptionsTag bug using nested property?

2002-03-25 Thread Arron Bates

Your work-around is that much of a work-around, as it was the only 
solution up until a couple of weeks ago.

If you're running 1.1beta or something near it, you'll have the 
optionsCollection tag. It's a more natural fit to the system. Use the 
name attribute, to select the bean, the property attribute to get to the 
collection, label attribute which is the bean property of the item in 
the collection that is the label, and the value attribue the bean 
property of the item in the collection that is the value. If you're 
running this struts you could use...


 


And the nested version, naturally works against the same bean as all the 
other tags, the property attribute relative to the others etc etc etc.
But your workaround is the standard solution for most people.

Arron.

Vladimir Levin wrote:

> I seem to have run into a bug with the struts OptionsTag custom
> tag when using a nested property. I am including the problem and my
> workaround, but if someone here has any advice or help, I'd love to
> have a cleaner solution than my workaround, so if someone here
> could help me out, it would be appreciated.
> By the way, I tried to use the nested tag library, and slammed into
> a brick wall... so if someone can show me code to make this work
> with nested taglib, also much appreciated.
>
> Here is my situation:
>
> I want to show a drop-down list of
> provinces in my JSP pages via the html:select and html:options tags.
> I have a class called ProvinceLookup, which caches a java.util.List.
> This list contains Province objects which expose a getProvinceCode and
> a getProvinceName method.
>
> The Evil Bug?: cannot reference nested properties in 'OptionsTag' using
> the 'collection' attribute.
>
> ProvinceLookup has a method called getLookupData which returns a List.
>
> At the top of my JSP page, I create a ProvinceLookup object which
> contains the lookupData in cached form:
>
> id="provinceLookup"
>scope="page"
>class="ca.tcpl.ris.web.ProvinceLookup"/>
>
> Further down, I try to reference the lookupData nested in my
> provinceLookup object:
>
>  
>labelProperty="provinceCode"
>property="provinceName" />
>  
>
> This generates the exception trace (shown at the bottom of this email).
>
> My workaround is to use the bean:define custom tag to expose the
> lookupData directly in the page scope. Then my select JSP looks like the
>
> following (and works):
>
>  
>labelProperty="provinceCode"
>property="provinceName" />
>  
>
>
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Cannot find bean under name
> provinceLookup.lookupData
>at
> 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
> 
>
>
>at
> org.apache.jsp.WellSearch$jsp._jspService(WellSearch$jsp.java:1321)
>at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
> 
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:172)
> 
>
>
>at
> 
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:234)
> 
>
>
>at
> 
>org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:326)
> 
>
>
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> 
>
>
>at
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 
>
>
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
>
>
>at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
>
>
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
>
>
>at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) 
>
>
>at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
>
>
>at
> org.netbeans.modules.web.m

Re: Multi Indexed & Nested properties samples?

2002-03-24 Thread Arron Bates

1.
Nope. Only that ArrayList will be slightly faster at runtime because 
there's no synchronization for threads on the class (and doesn't need to 
be, as there's only one bean to a user). Vector will work fine though. 
Most likely not a noticeable speed difference.

2.
Yes, they are nested beans. And no, they don't need to extend anything 
special.

3.
That part is up to you. As for the indexed tags, they're not in the 
1.0.2 distribution. So you could only get them if you updated your 
release to 1.1beta. If you get that, then you have the nested tags also. 
I'm probably bias but I find the nested tags easier to use for 
iterations and have a wider range of ability beyond that. If you want to 
keep running the older Struts (1.0.2), then you can pick up a library to 
use them from my site which has the ability of the nested tags in the 
current Struts distrib...
http://www.keyboardmonkey.com/struts

There's also a tutorial and primer on how to use the tags, including the 
creation of lists in the way that you're after.

Arron.

Annie Chang wrote:

>Hi Arron,
>
>Thank you for your reply.
>
>1.
>My form bean in the same way as you said. But the types of "subscriptions"
>and "webs"
>are Vector, not ArrayList. Is this an issue?  My 3 java classes for this
>form are attached
>in my former email, please take a look at them.
>
>2.
>The elements of "subscriptions" and "webs" are "nested beans", right?
>Should the nested
>beans be subclass of "ActionForm"? or just normal bean?
>
>3.
>Which versions of Tomcat and Struts are the best?
>I'm using Tomcat3.2.1 and Struts1.0.2
>Where to get "a tag library that have the indexed tag"?  I got the following
>error:
>
>when I compile the project, all java files are passed. But complie error at
>registration.jsp :
>
>  
>
>"registration.jsp": Attribute indexed invalid according to the specified TLD
>at line 145, column 7
>
>Thanks.
>
>- Original Message -
>From: "Arron Bates" <[EMAIL PROTECTED]>
>To: "Annie Chang" <[EMAIL PROTECTED]>
>Sent: Sunday, March 24, 2002 5:28 PM
>Subject: Re: Multi Indexed & Nested properties samples?
>
>
>>This shouldn't be an issue at all. All the lists and properties are
>>properties of the one bean.
>>
>>Your bean should have the following properties...
>>name
>>email
>>phone
>>address
>>
>>subscriptions - ArrayList of the subscription objects
>>webs - ArrayList of the web objects
>>
>>
>>JSP marked up in simple fashion. All within the form tags, simply put
>>the text inputs for the first properties, then have an iterate tag for
>>the subscriptions writing out the list of nested beans, then another
>>separate iterate tag for the webs input writing out that list of beans.
>>
>>All updated to the server in the one form. Because of this, it all has
>>to be from the one form bean.
>>
>>
>>Arron.
>>
>>
>>
>>Annie Chang wrote:
>>
>>>Arron,
>>>
>>>I want to let the user modify all informations in one page like this way:
>>>
>>>*
>>>|  User Information:
>>>| Name: Telephone:_
>>>| Email:_Address:__
>>>|
>>>|  Subscriptions:
>>>| Host  User Name   PasswordType  Autoconnect
>>>| ___           __
>>>| ___           __
>>>| ___           __
>>>| ___           __
>>>|
>>>|  Interested Webs:
>>>| Catalog  NameURL
>>>| ___   _____
>>>| ___   _____
>>>| ___   _____
>>>| ___   _____
>>>|
>>>|
>>>|Save
>>>*--
>>>
>>>Three parts are all in one form. One "save" button can save all the
>>>informations in the screen.
>>>
>>>My question is does this form bean can be auto-populated by Struts?  The
>>>form bean and two beans' class of Vectors are described below.
>>>How to write the j

Re: Controlling MaxWidth for html:options or html:select?

2002-03-24 Thread Arron Bates

Or, use a stylesheet! :)

That's a good one actually. Problem is though, you'll never see what's 
cut off by the width in IE. NS6 actually shows the whole thing when it 
drops down. Quite cool NS!.

Arron.



John Kroubalkian wrote:

>Have you tried using a stylesheet to help out?
>
>Ex. The following does some inline styling and then assigns our user-defined
>style "selectskinny" to the  tag.
>
>
>
><!--
>  .selectskinny {
>width: 50px ;
>color:  green ;
>font-family: arial ;
>font-size: 8pt ;
>   }
>-->
>
> styleClass="selectskinny"
>disabled="<%=
> billingForm.getFormEditFields() %>">
>
>
>
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Sunday, March 24, 2002 2:54 PM
>Subject: Controlling MaxWidth for html:options or html:select?
>
>
>>I'm having a hardtime controlling the field-width for a dropdown using
>>html:select with html:options:
>>
>>For example:
>>   
>>>   disabled="<%=
>>billingForm.getFormEditFields() %>">
>>   >property="value"
>> labelProperty="label"/>
>>  
>>   
>>
>>My "states" collection contains states like:
>>Alaska
>>Arkansas
>>etc,...
>>
>>but there's one that is:
>>ARMED FORCES CANADA/EUROPE/PACIFIC/AFRICA/MIDDLE EAST/ASIA
>>
>>Problem I am having is no matter how I try and limit the "width" of the
>>dropdown, it wants to be as wide as the largest value in my collection..
>>Is there a way to control this so that you get a "horizontal" scrollbar
>>when you do the dropdown? In my example above, it's ignoring my "td
>>width="100" and it seems to be taking up about 300 pixels to display the
>>largest value  :-(
>>
>>thanks,
>>Theron
>>
>>
>>--
>>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: Controlling MaxWidth for html:options or html:select?

2002-03-24 Thread Arron Bates

I'm afraid that there's nothing you can do about it.

Limitation defined by Html, because no horizontal scroll bar will appear 
so users can read the whole string. You'll either have to split it up 
into the different parts or abreviate it in some way.

Arron.



[EMAIL PROTECTED] wrote:

>I'm having a hardtime controlling the field-width for a dropdown using
>html:select with html:options:
>
>For example:
>   
>   disabled="<%=
>billingForm.getFormEditFields() %>">
>   property="value"
> labelProperty="label"/>
>  
>   
>
>My "states" collection contains states like:
>Alaska
>Arkansas
>etc,...
>
>but there's one that is:
>ARMED FORCES CANADA/EUROPE/PACIFIC/AFRICA/MIDDLE EAST/ASIA
>
>Problem I am having is no matter how I try and limit the "width" of the
>dropdown, it wants to be as wide as the largest value in my collection..
>Is there a way to control this so that you get a "horizontal" scrollbar
>when you do the dropdown? In my example above, it's ignoring my "td
>width="100" and it seems to be taking up about 300 pixels to display the
>largest value  :-(
>
>thanks,
>Theron
>
>
>--
>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: Multi Indexed & Nested properties samples?

2002-03-24 Thread Arron Bates

Annie,

Somehow you're using a tag library that doesn't have the indexed tag 
ability. The error is complaining that you've specified the 
indexed="true" attribute, but it doesn't know about it one way or another.

When you speak of two vecotrs, is one return from a bean in the other?...
Anyways, This stuff is easier with the nested tags. Learn about them 
here...
http://www.keyboardmonkey.com/struts

And yes, you can have whatever you want editable on your list. The 
nested tags intro and tutorial on the site above should show you 
everything you'd need to know about editing things in lists, nested 
lists or whatever. There's a primer and tutorial to get you going.


Arron.

Annie Chang wrote:

> Hi,
>
> Can I jump in and ask a question related with this?
>
> I modified the example come with struts 1.0.2. I want let the user edit
> all Subscriptions at the same time within the page "registration.jsp"
> My requirements are similar to (but I want multi array properties in one
> form, see blue font text below)
>
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12085.html
> and
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html
>
> I doing the following with the sample:
>
> Add a Form Bean named "SubscriptionsForm" and an action bean named
> "SaveSubscriptionsAction" and modifid the registration.jsp
>

...

>
> Problem is : when I compile the project, all java files are passed. But
> complie error at registration.jsp :
>  
>
> "registration.jsp": Attribute indexed invalid according to the specified
> TLD at line 145, column 7
>
> What's the matter?  Dose Struts auto-populate Vector
> SubscriptionsForm::subscriptionList for me correctly??
>
> Further questions:
> 1. Can I merge the two forms in registration.jsp? I mean Can let the
> user modify the registration information and subscriptions using one
> submit button?
> 2. Suppose the user has another list - "interested webs", and we want to
> let the user modify them together with other informations in the same
> way of subscriptions. So, we have two Vector in the form bean, how the
> jsp and form bean would be?
>
>
> Can you give me any suggestion?
>
> Thanks very much!
>
> Annie
>



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




Re: Multi Indexed & Nested properties samples?

2002-03-24 Thread Arron Bates

Annie,

Somehow you're using a tag library that doesn't have the indexed tag 
ability. The error is complaining that you've specified the 
indexed="true" attribute, but it doesn't know about it one way or another.

When you speak of two vecotrs, is one return from a bean in the other?...
Anyways, This stuff is easier with the nested tags. Learn about them here...
http://www.keyboardmonkey.com/struts

And yes, you can have whatever you want editable on your list. The 
nested tags intro and tutorial on the site above should show you 
everything you'd need to know about editing things in lists, nested 
lists or whatever. There's a primer and tutorial to get you going.


Arron.

Annie Chang wrote:

>Hi,
> 
>Can I jump in and ask a question related with this?
> 
>I modified the example come with struts 1.0.2. I want let the user edit
>all Subscriptions at the same time within the page "registration.jsp" 
> 
>My requirements are similar to (but I want multi array properties in one
>form, see blue font text below)
> 
>http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12085.html
>and
>http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html
> 
>I doing the following with the sample:
> 
>Add a Form Bean named "SubscriptionsForm" and an action bean named
>"SaveSubscriptionsAction" and modifid the registration.jsp
>

...

>
>Problem is : when I compile the project, all java files are passed. But
>complie error at registration.jsp : 
> 
>  
>
>"registration.jsp": Attribute indexed invalid according to the specified
>TLD at line 145, column 7
> 
>What's the matter?  Dose Struts auto-populate Vector
>SubscriptionsForm::subscriptionList for me correctly??
> 
>Further questions: 
> 
>1. Can I merge the two forms in registration.jsp? I mean Can let the
>user modify the registration information and subscriptions using one
>submit button?
>2. Suppose the user has another list - "interested webs", and we want to
>let the user modify them together with other informations in the same
>way of subscriptions. So, we have two Vector in the form bean, how the
>jsp and form bean would be?
> 
> 
>Can you give me any suggestion?
> 
>Thanks very much!
> 
>Annie
>


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




Re: Difference between 'id' and 'name'

2002-03-21 Thread Arron Bates

"name" is the bean that you're working against (with the property 
attribute etc), and "id" is the bean that's going to be the result.

[EMAIL PROTECTED] wrote:

>With the bean:define tag, can some explain to me the difference between the
>'id' attribute and the 'name' attribute?
>
>I always get confused by this.
>
>thanks,
>Theron
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



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




Re: >- Iterate tag with multiple id's? -

2002-03-21 Thread Arron Bates

You could just the bean properties from the returned object.
Say each one had a "name" attribute, to write it out...






Nested tags version...




Either one will do what you're after.

Arron.

hemant wrote:

>Here is a scenario. (Struts 1.0.2.)
>
>I get a collection of objects and each object holds references to 2 more objects, 
>which are essentially beans. I want to iterate, and get data from both these beans at 
>once but the iterate tag allows only "one bean id declaration" per "iterate" as shown 
>below (unless Iam  wrong and should be thrown into hell for such an assumption)
>
>
>//
>
>
>I wish there was a way to say 
>
>
>// get data from both crapValueObj and moreCrapValueObj
>
>
>
>
>
>Thanks 4 your time
>hemant
>
>



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




Re: Property file

2002-03-21 Thread Arron Bates

Take a look in your Javadoc for standard edition, and look up 
java.util.Properties

Easient way to get a file from your classpath is to use the class 
object's getResourceAsStream method.
eg:
Properties p = new Properties();
p.load(this.getClass().getResourceAsStream(configFileName));

Then you just use the properties.
If you get stuck, there's a ton of this stuff in the forums of the 
JavaSoft site.

Arron.


SUPRIYA MISRA wrote:

> This is simple JSP/JDBC Connection issue -no struts
>
> i want to make a JDBC Connection using a property file(plain text). No 
> XML please.
> Does anyone have a sample code.
>
>
>
> _
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
>
>
> -- 
> 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: nested:options not retrieving values

2002-03-20 Thread Arron Bates

Because you've specified the "collection" attribute, it's trying to find 
a bean reference under that name specified. Because it has to be a 
reference to a collection itself, it can't be changed to a nested property.

So, expose a bean to the name using the nested:define, in the collection 
attribute, and you should get that bean reference to use the original 
 tag.
Example...








The simplified nested version, is when you just use the property 
attribute to get a list if objects, that will render their string form. 
Not all that handy when you want to specify the different label and value.

The best solution is in the nightly builds or 1.1 Beta. Use the new 
 tag that extends the new 
 tag. This is pretty much what you're wanting 
actually. Set the property attribute to the bean property that is a 
collection of beans (that you have), and then set the label and value 
attributes to point to the various bean properties.

So, just replace your  line with...



Either one of these above will get things happening.


Arron.


Elijah Jacobs wrote:

>Hi all,
>
>some code would help:
>
>
>
>   
>   
>labelProperty="displayValue"/>
>   
>
>
>
>As you can see I have a form that has a reference to an ArrayList "itemList"
>and each item on this list has an ArrayList "userList" that holds idValue
>and displayValue attributes.
>
>Currently I am getting to my JSP through an action class.  The code above
>gives me a NullPointerException. And I figured out that it complains,  not
>because userList is empty, but because of property="idValue"
>labelProperty="displayValue". In fact I can do this:
>   
>Stuff
>   
>
>and the word "Stuff" will be printed out.  So you might think it's because
>the attribute idValue and displayValue are null.
>
>Well, when I put the userList on the request attribute and do this: (where
>"things" is my userList)
>  
>  
> 
>
>  
>
>the displayValue and idValue is printed out fine.
>
>I was wondering why   was not able to pick up the proper
>idValue and displayValue? Can some point me to the direction as to how to go
>about solving this? thanks.
>
>Your time is appreciated,
>
>- ej
>
>--
>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: check box

2002-03-19 Thread Arron Bates

Sanjay,

It should work for any Html input element. As long as you know the 
resulting input name, you can get at it.
...fun part, is that you can do string concats too if you want to be 
more dynamic...

Indexed example:
document.forms[0]["something["+ i + "].somethingElse"]

Arron.

Sanjay Choudhary wrote:

>Hi Arron,
>
>Thanks for the free tip.
>
>Will this work for elements in nested:iterate also?
>
>-Sanjay
>--- Arron Bates <[EMAIL PROTECTED]> wrote:
>
>>Sanjay,
>>
>>1) The name of the form is the "name" attribute of
>>your action details 
>>specified in your struts-config.xml file. It  also
>>has to be the 
>>reference name of your bean. So...
>>
>>document.myBean.submit()
>>
>>...would submit the form.
>>
>>2) For this I just have to recommend a great
>>JavaScript reference. The 
>>JavaScript Bible by Danny Goodman.
>>But to kick you off...
>>
>>Great way to reference events from your form items,
>>checkbox for example...
>>>
>>onClick="doSomething(this)">
>>
>>...and in your java script to handle this...
>>
>>function doSomething(inElement) {
>>  if (inElement.checked) {
>>alert("hello");
>>  }
>>}
>>
>>And one more free extra tip...  :)
>>If you're trying to reference an element that has
>>dot notation (nested 
>>properties), you can do so like this...
>>
>>
>document.forms[0]["myProperty.nestedProperty.something"]
>
>>... to disable the above example element ...
>>
>>
>document.forms[0]["myProperty.nestedProperty.something"].disabled
>
>>= true;
>>
>>
>>For more detail and everything else, Danny Goodman
>>has the answer :)
>>
>>Arron.
>>
>>
>>Sanjay Choudhary wrote:
>>
>>>Thanks Michael,
>>>
>>>It worked but it couldn't use 
>>>document.localForm.selectAll.checked;
>>>instead I used document.forms[0].selectAll.checked;
>>>
>>>1. Is there a way to assign a form name with tag
>>>html:form of struts?
>>>
>>>2. I will like to control a data entry on my form
>>>
>>for
>>
>>>certain fields using javascript. E.g. if in
>>>html:checkbox - a user checks then I will allow
>>>
>>enable
>>
>>>html:text field for dataentry else it will be
>>>disabled. I think controlling these functions on
>>>server side will be too expensive. What is the easy
>>>way to refer or pass these controls/fields created
>>>using html:text, html:checkbox etc. in javascripts.
>>>
>>>E.G. if I want the value of field >>property="abc" name=/> in the javascript.
>>>or wish to enable or disable this field thru
>>>javascript.
>>>
>>>
>>>All comments appreciated
>>>
>>>-Sanjay
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>--- Michael Skariah <[EMAIL PROTECTED]>
>>>
>>wrote:
>>
>>>>Hi Sanjay,
>>>>
>>>>Let me give an example to help you out here. Here
>>>>
>>I
>>
>>>>am assuming that the
>>>>checkboxes (including the master checkbox) are
>>>>present in a table that has
>>>>got an id 'checkTable'. When I say 'master' check
>>>>box I mean the one that
>>>>will help you to trigger the event for
>>>>selecting/de-selecting the other
>>>>child checkboxes.
>>>>
>>>>In the form you can have something like this
>>>>>>>onclick="checkAll()"/>
>>>>for the master checkbox.
>>>>
>>>>And the javascript code could be something like
>>>>
>>this
>>
>>>>function checkAll()
>>>>{
>>>>var rowCount = checkTable.rows.length;
>>>>for (var i=1; i < rowCount; i++)
>>>>{
>>>>
>>>>
>>checkTable.rows(i).cells(0).childNodes(0).checked
>>
>>>>=
>>>>document.localForm.selectAll.checked;
>>>>}
>>>>}
>>>>
>>>>See if this help.
>>>>
>>>>Cheers!,
>>>>-Michael.
>>>>
>>>>
>>>>
>>>>-Original Message-
>>>>From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
>>>>Sent: Tuesday, March 19,

Re: check box - Attn. Ted Husted, Craig

2002-03-19 Thread Arron Bates

Sanjay,

1) The name of the form is the "name" attribute of your action details 
specified in your struts-config.xml file. It  also has to be the 
reference name of your bean. So...

document.myBean.submit()

...would submit the form.

2) For this I just have to recommend a great JavaScript reference. The 
JavaScript Bible by Danny Goodman.
But to kick you off...

Great way to reference events from your form items, checkbox for example...


...and in your java script to handle this...

function doSomething(inElement) {
  if (inElement.checked) {
alert("hello");
  }
}

And one more free extra tip...  :)
If you're trying to reference an element that has dot notation (nested 
properties), you can do so like this...

document.forms[0]["myProperty.nestedProperty.something"]

... to disable the above example element ...

document.forms[0]["myProperty.nestedProperty.something"].disabled = true;


For more detail and everything else, Danny Goodman has the answer :)

Arron.


Sanjay Choudhary wrote:

>Thanks Michael,
>
>It worked but it couldn't use 
>document.localForm.selectAll.checked;
>instead I used document.forms[0].selectAll.checked;
>
>1. Is there a way to assign a form name with tag
>html:form of struts?
>
>2. I will like to control a data entry on my form for
>certain fields using javascript. E.g. if in
>html:checkbox - a user checks then I will allow enable
>html:text field for dataentry else it will be
>disabled. I think controlling these functions on
>server side will be too expensive. What is the easy
>way to refer or pass these controls/fields created
>using html:text, html:checkbox etc. in javascripts.
>
>E.G. if I want the value of field property="abc" name=/> in the javascript.
>or wish to enable or disable this field thru
>javascript.
>
>
>All comments appreciated
>
>-Sanjay
>
>
>
>
>
>
>
>--- Michael Skariah <[EMAIL PROTECTED]> wrote:
>
>>Hi Sanjay,
>>
>>Let me give an example to help you out here. Here I
>>am assuming that the
>>checkboxes (including the master checkbox) are
>>present in a table that has
>>got an id 'checkTable'. When I say 'master' check
>>box I mean the one that
>>will help you to trigger the event for
>>selecting/de-selecting the other
>>child checkboxes.
>>
>>In the form you can have something like this
>>>onclick="checkAll()"/>
>>for the master checkbox.
>>
>>And the javascript code could be something like this
>>function checkAll()
>>{
>>  var rowCount = checkTable.rows.length;
>>  for (var i=1; i < rowCount; i++)
>>  {
>>  checkTable.rows(i).cells(0).childNodes(0).checked
>>=
>>document.localForm.selectAll.checked;
>>  }
>>}
>>
>>See if this help.
>>
>>Cheers!,
>>-Michael.
>>
>>
>>
>>-Original Message-
>>From: Sanjay Choudhary [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, March 19, 2002 5:26 PM
>>To: Struts Users Mailing List
>>Subject: check box
>>
>>
>>In our application, we are showing a list of records
>>using nested tag. In front of each record we have a
>>select/check box mapped to a property in a bean.
>>
>>We wish to provide a functionality to users by
>>placing
>>a checkbox  at the top row (this is not mapped to
>>any
>>property in bean) and on click of this check box we
>>wish to mark all the check boxes shown in the list.
>>(Exactly like we have in yahoo and hotmail main
>>display page, where in an user checks a box and
>>everything is selected). I think javascript is a way
>>to go here.
>>
>>
>>But how do I configure things like html:form name,
>>html:checkbox name - also how do I access the check
>>box for each record displayed to mark them.
>>
>>Is there a sample project on resource site where we
>>can find some code to help us out to use javascripts
>>with struts.
>>
>>-Sanjay
>>
>>__
>>Do You Yahoo!?
>>Yahoo! Sports - live college hoops coverage
>>http://sports.yahoo.com/
>>
>>--
>>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]>
>>
>
>
>__
>Do You Yahoo!?
>Yahoo! Sports - live college hoops coverage
>http://sports.yahoo.com/
>
>--
>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: JavaScript problem

2002-03-19 Thread Arron Bates

If you give the submit tag a property value it will change the name to 
that of the property. It should match a bean property, but it can be a 
fake one.

eg:
public void setMyNonSubmitTitledProperty(String temp) {}

...and in the markup





...it should render...




Arron.

Rajesh Gaikwad (EHS) wrote:

>Hi everyone,
>   Yesterday I was trying something like 
>
>   
>onchange='document.forms[0].submit()'>
>   Yes
>   No
>   
>
>   .
>   
>   
>
>
>
>
>But this didn't worked giving JavaScript error submit is not a function
>
>
>This is because corresponding HTML for submit tag generates 
>
>
>This name ambiguity causes a problem as a work around ,
>I have tried to define submit button myself and it works.
>
>Is there any another way?
>Rajesh
>
>
>
>
>
>--
>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: Displaying recursively defined bean...

2002-03-19 Thread Arron Bates

The biggest benefit this has which the other tags cannot capitalize on, 
is that they can be used in a markup manner without too much regard as 
to how much code is in the JSP that started the run. The included JSP 
could be the fifth inclusion, 100 beans down, but as long as the 
definition of the current bean matches the tags it uses, it will work. 
And work for everything, form inputs or whatever.

The other tags and the explicit dot notation fashion, is limited to your 
knowledge of the entire data model and have to explicitly set it each time.

Arron.

Heath Chiavettone wrote:

>This is a VERY useful feature.  Thanks for caving in before the beating left
>you unconscious!!!  I couldn't use tiles and nested together very easily
>without it!
>
>Thanks Arron!
>
>-Original Message-
>From: Arron Bates [mailto:[EMAIL PROTECTED]] 
>Sent: Monday, March 18, 2002 11:19 PM
>To: Struts Users Mailing List; Alex Paransky
>Subject: Re: Displaying recursively defined bean...
>
>Alex,
>
>This is continuing a discussion we had a month ago (moreover, I had to 
>dig through my emails to find out who I was arguing with over it :)...
>
>With further deliberation on its implementation (and a couple more 
>people beating me for the feature), the nested taglibs are now using the 
>session object and the tag objects themselves, to temporarily store the 
>information needed to get dynamic includes working.
>In short... you can use dynamic includes with nested tags!
>
>So this is a retraction of sorts. :)
>
>It's a retraction because the result, is indeed very cool. Now being 
>able to have true object style recursion in the markup to draw a tree 
>that can have all the form inputs you can eat. Oh, it is a beautiful 
>sight :)
>
>I already have a working tree in an app from this system. I'm working on 
>a tutorial at the moment to show it off and define the details. But for 
>a brief going over... here was my test.
>
>For the first page...
>
>  
>
>  
>
>  
>
>... and the included JSP ...
>
>  
>  Test: 
>  
>
>Only detail being that the included page has to be started off with an 
>empty  tag (because all the child tags need a parent to get 
>their details from). Simple enough.
>
>You can get the jar update from my site, or the Struts nightly build.
>http://www.keyboardmonkey.com/struts
>
>Arron.
>
>Alex Paransky wrote:
>
>>Well, that's the problem, I don't have a finite number of levels.  I am
>>trying to display a message thread, so I do not know how deep the message
>>thread will go.  Today it's 12 levels, tomorrow, I might have a problem in
>>my app because some thread has 24 replies one after the other making 24
>>levels deep.
>>
>>With a dynamic include, I get a new pageContext every time, which means I
>>can use that context like a "stack".  With static include, the page get's
>>compiled into my code before execution, so as you said, I will be hard
>>coding the page to N number of levels say 12.
>>
>>I really don't want to physically mark up 12 levels, they are all the same.
>>I also, don't want to write some recursive function in my  .jsp page.  I
>>just need to arbitrarily descend down to any number of levels and render
>>
>the
>
>>entire tree.
>>
>>I don't think this can be done with static includes, they must be dynamic.
>>
>>-AP_
>>
>
>
>--
>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: Displaying recursively defined bean...

2002-03-18 Thread Arron Bates

Alex,

This is continuing a discussion we had a month ago (moreover, I had to 
dig through my emails to find out who I was arguing with over it :)...

With further deliberation on its implementation (and a couple more 
people beating me for the feature), the nested taglibs are now using the 
session object and the tag objects themselves, to temporarily store the 
information needed to get dynamic includes working.
In short... you can use dynamic includes with nested tags!

So this is a retraction of sorts. :)

It's a retraction because the result, is indeed very cool. Now being 
able to have true object style recursion in the markup to draw a tree 
that can have all the form inputs you can eat. Oh, it is a beautiful 
sight :)

I already have a working tree in an app from this system. I'm working on 
a tutorial at the moment to show it off and define the details. But for 
a brief going over... here was my test.

For the first page...

  

  

  

... and the included JSP ...

  
  Test: 
  

Only detail being that the included page has to be started off with an 
empty  tag (because all the child tags need a parent to get 
their details from). Simple enough.

You can get the jar update from my site, or the Struts nightly build.
http://www.keyboardmonkey.com/struts

Arron.

Alex Paransky wrote:

>Well, that's the problem, I don't have a finite number of levels.  I am
>trying to display a message thread, so I do not know how deep the message
>thread will go.  Today it's 12 levels, tomorrow, I might have a problem in
>my app because some thread has 24 replies one after the other making 24
>levels deep.
>
>With a dynamic include, I get a new pageContext every time, which means I
>can use that context like a "stack".  With static include, the page get's
>compiled into my code before execution, so as you said, I will be hard
>coding the page to N number of levels say 12.
>
>I really don't want to physically mark up 12 levels, they are all the same.
>I also, don't want to write some recursive function in my  .jsp page.  I
>just need to arbitrarily descend down to any number of levels and render the
>entire tree.
>
>I don't think this can be done with static includes, they must be dynamic.
>
>-AP_
>


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




Re: Nested Tags - new be

2002-03-18 Thread Arron Bates

Sanjay,

I'm all for some client-side operation, but at some point the server has 
to find out about it so that it knows how to manage your data model 
properly. Forget the nesting tags, this problem will get you in whatever 
your server side solution is. Once the Html is served, the server just 
doesn't care until it gets the next request.

The nested tags just evaluate the model at JSP execution time, just like 
any other tag, JSP or top-down servlet.

If you had to do it without a trip to the server, you will have to 
gather all the details of the extra rows in some hidden form element, 
and then process the details on the server when the user finally submits 
the page. It's possible, but not fun. Not the least of which is the 
client-side rendering of the page. If you're using IE5+ NS6+ you can 
just do Html replacements easy enough. The ability is certainly there... 
but approach with caution. It could quite easily become a nightmare.

For example, if a user is adding a whole heap of rows, they think that 
the data is in there because it's on the screen as they typed it, and 
simply types in another URL... all the data is lost, never to return. 
Not even with the back button (because JavaScript objects and state are 
not cached by the browser). Unless you can be certain that the page will 
be posted to the server after filling out these new rows, I would steer 
clear of it all together.

Another option is to have a page on a hidden frame send updates to the 
server. Every time that something changes to the data on the screen, get 
JavaScript to fire off the hidden frame with the update. Because you're 
only wanting to send updates, there's no heavy Html having to be 
generated by the server to be returned, maybe just a yes or no to tell 
your JavaScript whether the server got any errors etc.

Whatever you do... it will change the way you have to code your web 
interface, and increase your development time. How familiar are you with 
JavaScript?... This aint no simple mouse-over. :)


The monkey example uses the server-side management simply because a lot 
of puritans out there simply refuse to regard anything with client-side 
logic. And it's also 100% easier to do and manage.


Arron

(MonkeyBanana Author :)


Sanjay Choudhary wrote:

>Hi,
>
>I am very new to Struts, jsp and html programming.
>
>I kind of figured out how the nested tags works. 
>
>In my application, I have Bean A which contains Array
>list of type Bean B. Bean B has attributes B1 and B2.
>
>We show user on the web page details of A and under
>that all the elements of Bean B in a single row. User
>is allowed to edit this. So far it works fine for me
>using nested beans.
>
>We have another feature on our page where in we allow
>user to add n no. of rows on the page. Currently we
>are adding rows using java script. IS THERE A
>MACHANISM I CAN ADD THESE ROWS DYNAMICALLY USING
>JAVASCRIPT AND THEN ADD THESE ADDED ROWS PHYSICALLY TO
>THE ARRAYLIST INSTEAD OF MAKING A CALL TO THE SERVER
>EVERYTIME I ADD ONE. In monkeybanana example author is
>making call the server everytime the add button is
>pressed. Or is there an ALTERNATIVE solution.
>
>Thanks,
>sanjay
>
>
>
>
>
>
>
>
>
>
>__
>Do You Yahoo!?
>Yahoo! Sports - live college hoops coverage
>http://sports.yahoo.com/
>
>--
>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: nested:iterate - set method not called

2002-03-17 Thread Arron Bates

The setter on a nested property, such as the list properties in my 
example, is only there as a convenience. The Struts managing code will 
never actually use it. It only worries about the last bean in the nested 
property definition. My construtors use it to make the simple example 
easier to do.

As for storing a reference to the form bean in all the shild beans... 
no. This is probably not model behaviour. I only did it so I could get 
my delete buttons working for the banana objects. The setter of the 
banana's object knows that the bean is to be deleted as it's been 
called. The reference to the parent bean is there so it can call the 
parent bean and tell it that it wants to be deleted.

If you don't need this more advanced bean driven functionality, then you 
really should avoid it.

Arron.


Elijah Jacobs wrote:

>Thanks for the reply Arron, ... well appreciated.
>
>but I noticed in your example that the MonkeyBean contains an ArrayList of
>monkeys  (ArrayList monkeyList) and you have both a setter and a getter
>method for it.  I was trying to duplicate this on my form bean.  My
>ArrayList is contained in the FormBean itself. That's why I was expecting
>the setter method in the formbean to be called.
>
>Also, is it necessary for the beans contained in my ArrayList to a reference
>to the form, much like you have a reference to the BananasIncorporatedBean
>from the MonkeyTeamBean.
>
>I apologize if these are simple question, I've struggle with this for 2 days
>now and the project deadline is not budging.
>
>- ej
>
>- Original Message -
>From: "Arron Bates" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Sunday, March 10, 2002 8:04 PM
>Subject: Re: nested:iterate - set method not called
>
>
>>The getter will only ever be called, as it's the middle-man.
>>The system only wants to set the "name" property on the nested bean. It
>>will call the getter of the "extrainfo" object to get at the nested
>>bean, and then set its property. Never actually calling the setter of
>>the parent bean property.
>>
>>Arron.
>>
>>
>>Elijah Jacobs wrote:
>>
>>>thanks for the reply, Scott
>>>
>>>
>>>My syntax looks okay on the jsp side and since the getExtrainfo method is
>>>being called it puzzles me that the set method is not being called on
>>>submit.
>>>
>>> 
>>>
>>>
>>>- ej
>>>- Original Message -
>>>From: "Barr, Scott [IBM GSA]" <[EMAIL PROTECTED]>
>>>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>>>Sent: Sunday, March 10, 2002 7:03 PM
>>>Subject: RE: nested:iterate - set method not called
>>>
>>>
>>>>Could it be that the html field in your jsp is named 'extraInfo'
>>>>
>>>(uppercase
>>>
>>>>'i'), and the setter is using a lowercase 'i' in the word info?
>>>>
>>>>Scott
>>>>
>>>>>-Original Message-
>>>>>From: Elijah Jacobs [SMTP:[EMAIL PROTECTED]]
>>>>>Sent: Monday, March 11, 2002 10:27 AM
>>>>>To: Struts Users Mailing List
>>>>>Subject: nested:iterate -  set method not called
>>>>>
>>>>>Hi,
>>>>>
>>>>>I am able to list the elements on  my Vector just fine, but I noticed
>>>>>
>>>that
>>>
>>>>>when I do a submit the set method is not being called, hence the field
>>>>>
>>>is
>>>
>>>>>empty when it gets to the action class.
>>>>>
>>>>>Can someone suggest to me what the problem might be? my code is below.
>>>>>
>>>>>thanks,
>>>>>- ej
>>>>>
>>>>>*** code 
>>>>>public Vector extrainfo;
>>>>>
>>>>>// call successfully
>>>>>public Object[] getExtrainfo() {...}
>>>>>
>>>>>//Not being called on submit
>>>>>public void setExtrainfo(Object[] infoList) {...}
>>>>>
>>>>>*** code 
>>>>>
>>>>>
>>>>>--
>>>>>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]>
>
>>
>
>--
>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: Cannot submit the form using button

2002-03-14 Thread Arron Bates
Because Struts doesn't just write out what you put in as the action. It
looks up what you specify in your struts-config.xml file, and relates
that back to something that the server and Struts really needs.

If you really needed to do this (it would be better to have a
dispatching style action), look at what the action is in the form tag of
the resulting html and change that accordingly.

Arron.

nsg wrote:

>When i changed form's action in JavaScript, and then useed a
>button(in browser,[File not found] error 404 occured.Tomcat console reported that
>[cannot find file path..]
>
>if I change the button type from button to submit,it will be OK.
>
>Anybody can tell me why?
>
>
>Thanks in advance,
>
>Laker
>



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


Re: Nested Iterates...

2002-03-14 Thread Arron Bates

Why'd you take the root out?... using  or  
instead?...
Is this file being included in any other file?...

I'm just trying to figure out where that extra indexed property is 
coming from.
Can you post just a little more of the markup?... I need to see how it's 
all starting out.

Arron.

Marcelo Caldas wrote:

>Don't know if this e-mail went the first time... sorry if duplicated...
>
>Once again... we're almost there...
>
>regarding your concern, yes - the beanRefName has a getter on my ActionForm...
>
>so I added the  and removed the 
>
>now I get the action form name INDEXED on my properties and the beanRefName is ok...
>
>
>
>   
>   
>   
>   
>   
>
>
>Note there's no with that I get...
>
>actionForm[0].beanRefName.items[0].tests[0].answer[0].radio
>
>See that beanRefName is fixed now? without a index... but what about the actionform 
>indexed at the beggining?
>
>If I add a actionForm at least...)
>
>Any comments? 
>
>
>
>On Thu, 14 Mar 2002 12:25:55 -0500
>Arron Bates <[EMAIL PROTECTED]> wrote:
>
>>Marcelo,
>>
>>Excellent! You're only one step away from taking over the world... :)
>>
>>For properties that aren't collections, use the  tag 
>>instead of the the  tag. It represents logical steps in 
>>the nested hierarchy, that aren't collections.
>>
>>For example, say for every monkey that works at the plantation, they 
>>each have an adress, but all address information is in another address 
>>bean. The markup would look like thus...
>>
>>
>>  
>>
>>
>>
>>  
>>
>>
>>...there's a list of monkeys, but only one address for each monkey.
>>Your instance is the otherway, but same theory. One nested bean that 
>>will lead to a collection.
>>
>>What does confuse me a little is that the beanRefName on the start of 
>>the nested property. The name of the bean itself should not be there, 
>>only the properties of the things that you're trying to manipulate under
>>it.
>>
>>I'm assuming that the bean you want to get at is returned by a getter 
>>method inside your Struts bean?...
>>
>>If it is, just change that tag and you should be on your way.
>>
>>Arron.
>>
>>
>>Marcelo Caldas wrote:
>>
>>>Thanks Aaron, your email was very helpful...
>>>
>>>I follow all your tips and it looks much better now...
>>>following your example bellow, which is pretty much what I've got so
>>>
>>far, I have all properties indexed. Actually I have too many properties
>>indexed...
>>
>>>from:
>>>
>>>
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>>It's generating:
>>>>>
>>name="beanNameRef[0].items[0].tests[0].answer[0].radio ...>
>>
>>>where the beanNameRef index follows the same index for answers, which
>>>
>>is wrong (I could ignore the index when
>>
>>>the actionForm is called with getBeanNameRef(index) and always return
>>>
>>the same object... ) But it looks like
>>
>>>is not the way is sopposed to work...
>>>
>>>What I really want is
>>>
>>>>>>elements in each, you'll end up with 27 radio buttons. Right so
>>>>
>>far?...
>>
>>>>This is going off the list of items, then list of tests, then list of 
>>>>answers. With this, you should be striving for the following
>>>>
>>underlying 
>>
>>>>property...
>>>>
>>>>item[i].test[j].answers[k].radioIem
>>>>
>>>>The markup should be something like this...
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>Just to clear a few things up. The use of the nested root is to serve
>>>>
>>as
>>
>>>>the basis of a nested tag structure for a JSP. It takes the place of a
>>>>
>>>> or  as not all pages will be specified by a 
>>>>form. The tag then takes the name attribute as the name of the bean
>>>>
>>that
>>
>>>>the tags will then reference. You've placed it half way down the 
>>>>structure, and the danger of what will happen here is that the tags
>

Re: Nested Iterates...

2002-03-14 Thread Arron Bates

Marcelo,

Excellent! You're only one step away from taking over the world... :)

For properties that aren't collections, use the  tag 
instead of the the  tag. It represents logical steps in 
the nested hierarchy, that aren't collections.

For example, say for every monkey that works at the plantation, they 
each have an adress, but all address information is in another address 
bean. The markup would look like thus...


  



  


...there's a list of monkeys, but only one address for each monkey.
Your instance is the otherway, but same theory. One nested bean that 
will lead to a collection.

What does confuse me a little is that the beanRefName on the start of 
the nested property. The name of the bean itself should not be there, 
only the properties of the things that you're trying to manipulate under it.

I'm assuming that the bean you want to get at is returned by a getter 
method inside your Struts bean?...

If it is, just change that tag and you should be on your way.

Arron.


Marcelo Caldas wrote:

>Thanks Aaron, your email was very helpful...
>
>I follow all your tips and it looks much better now...
>following your example bellow, which is pretty much what I've got so far, I have all 
>properties indexed. Actually I have too many properties indexed...
>from:
>
>
>
>   
>   
>   
>   
>   
>
>
>
>It's generating:
>>elements in each, you'll end up with 27 radio buttons. Right so far?...
>>
>>This is going off the list of items, then list of tests, then list of 
>>answers. With this, you should be striving for the following underlying 
>>property...
>>
>>item[i].test[j].answers[k].radioIem
>>
>>The markup should be something like this...
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Just to clear a few things up. The use of the nested root is to serve as
>>
>>the basis of a nested tag structure for a JSP. It takes the place of a 
>> or  as not all pages will be specified by a 
>>form. The tag then takes the name attribute as the name of the bean that
>>
>>the tags will then reference. You've placed it half way down the 
>>structure, and the danger of what will happen here is that the tags will
>>
>>assume that this is the start of a hierarchy, and start again. That's 
>>why the name attributes of your resulting Html doesn't have the "items" 
>>reference. So move the root to the start, or if there's already a form 
>>tag there, remove it all together.
>>
>>Second... there's no real need to specify "name" attributes in the 
>>nested tags, as your input here will be ignored anyway :) This is 
>>because all the tags will be looking to their parents to get the bean 
>>name, as it's assumed that they're working together. The only thime that
>>
>>the name will make a difference is in the initial rooting tag.
>>
>>The same almost goes for id's. Id's will define scripting variables for 
>>you, and nothing else. They're not a "requirement" for the nested tags 
>>to do their thing. To get the tags running, all you'll need are the 
>>"property" attributes that define the property of whatever the current 
>>tag is addressing.
>>
>>As for your duplicate indexes... it's the first time I've come across 
>>it. :) ...so there's nothing that I can directly say to combat it. 
>>Hopefully, it will be taken care of with the above tips taken care of.
>>
>>If you want to get a little more familiar with the tags from the ground 
>>up, there's a primer and a tutorial on my site which should take you 
>>through everything...
>>http://www.keyboardmonkey.com/struts
>>
>>Get back to us if you have any other problems.
>>
>>Arron.
>>
>>
>>Marcelo Caldas wrote:
>>
>>>Ok, I've got progress...
>>>
>>>I've downloaded the latest struts build wich contains the NESTED
>>>
>>tags...
>>
>>>I'm trying to use the nested:iterate and nested:radio, but I couldn'g
>>>
>>get grip of everything from the docs that comes together... So if
>>there's anyone out there that has used the nested tags properly I'll
>>appreciate the help..
>>
>>>After, several tries, the best result I have is:
>>>
>>>
>>>
>>> 
>>> >>
>>> 
>>> 
>>> 
>>> 
>>>

Re: Perhaps TABOO Question, how to convert struts apps to non-struts

2002-03-14 Thread Arron Bates

I'd say it's time for a new provider.

Provider I'm using for my java hosting has private VM for only $20 
canadian per month, and you can frisbee up to the site whatever you 
want. I looked for a while and this was the cheapest I've seen, and the 
service isnt shabby at all for what you get, which is your own tomcat 
instance. Most fun.

And naturally I'm running Struts apps among other things that I've 
thrown up there.

http://www.kgbinternet.com

Arron.


Bryan Field-Elliot wrote:

>On Wed, 2002-03-13 at 12:02, John M. Corro wrote:
>I've found that every
>
>>service provider that I've worked w/ or seen that provides a shared JVM
>>won't allow you to deploy classes.  In those situations I've had to write
>>everything in JSP - SUCKS!
>>
>
>Of course that's silly, because JSP pages are basically classes
>anyway...
>
>
>
>
>
>--
>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: Nested Iterates...

2002-03-13 Thread Arron Bates

Marcelo,

It's kind of fuzzy as to where you're trying to get to. There's three 
loops. So I have to assume that you want a radio button for each 
"answer" within each "test" within each "item". Say there's three 
elements in each, you'll end up with 27 radio buttons. Right so far?...

This is going off the list of items, then list of tests, then list of 
answers. With this, you should be striving for the following underlying 
property...

item[i].test[j].answers[k].radioIem

The markup should be something like this...











Just to clear a few things up. The use of the nested root is to serve as 
the basis of a nested tag structure for a JSP. It takes the place of a 
 or  as not all pages will be specified by a 
form. The tag then takes the name attribute as the name of the bean that 
the tags will then reference. You've placed it half way down the 
structure, and the danger of what will happen here is that the tags will 
assume that this is the start of a hierarchy, and start again. That's 
why the name attributes of your resulting Html doesn't have the "items" 
reference. So move the root to the start, or if there's already a form 
tag there, remove it all together.

Second... there's no real need to specify "name" attributes in the 
nested tags, as your input here will be ignored anyway :) This is 
because all the tags will be looking to their parents to get the bean 
name, as it's assumed that they're working together. The only thime that 
the name will make a difference is in the initial rooting tag.

The same almost goes for id's. Id's will define scripting variables for 
you, and nothing else. They're not a "requirement" for the nested tags 
to do their thing. To get the tags running, all you'll need are the 
"property" attributes that define the property of whatever the current 
tag is addressing.

As for your duplicate indexes... it's the first time I've come across 
it. :) ...so there's nothing that I can directly say to combat it. 
Hopefully, it will be taken care of with the above tips taken care of.

If you want to get a little more familiar with the tags from the ground 
up, there's a primer and a tutorial on my site which should take you 
through everything...
http://www.keyboardmonkey.com/struts

Get back to us if you have any other problems.

Arron.


Marcelo Caldas wrote:

>Ok, I've got progress...
>
>I've downloaded the latest struts build wich contains the NESTED tags...
>
>I'm trying to use the nested:iterate and nested:radio, but I couldn'g get grip of 
>everything from the docs that comes together... So if there's anyone out there that 
>has used the nested tags properly I'll appreciate the help..
>
>After, several tries, the best result I have is:
>
>
>
>   
>   
>   
>   
>   
>   
>   
>
>
>It seems that it got almost right, but it looks like tests looses it's index 
>providing a result:
>
>
>
>
>
>That is my first line on a table (All supposed to be based on tests[0] only... The 
>second row is the one supposed to be tests[1], but instead it repeats the tests[0] 
>and tests[1] the same way as the lines above...
>
>If I move the root to items, like:
>
>
>   
>
>
>   
>   
>   
>   
>   
>
>
>It looks a little bit better, but items looses it's indexing as well with the same 
>behavior as above for tests...
>
>Besides if tests works properly that is enought to identify my radio groups. While 
>with the extra level for the items (output below), I don't know how the Actionform 
>will behave...
>
>
>
>
>
>As you can see, on the above output everything was fine IF the items[x] doesn't 
>print
>
>Thanks,
>Marcelo.
>


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




Re: How do you do a map with hotspots in Struts

2002-03-12 Thread Arron Bates

Html image map is basically links. Work the same way, sending GET 
requests only.

Only way to submit a form without JavaScript is to use the image tag. 
Then you cn do the form thing.
When clicked, it will pass the x & y coordinates. You can figure it out 
on the server. Much harder than links from the image map.

But no, Strut's doesn't have image map shape tags.

Arron

Maturo, Larry wrote:

>Hi Matt,
>
>I know how to do them in html, but how do you 
>do them in Struts?  Struts doesn't have an
>image map tag, as far as I can tell.  Also,
>in html they are links, while what I want in
>Struts is a submit.
>
>-- Larry Maturo
>
>
>-Original Message-
>From: Matt Raible [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 12, 2002 8:52 AM
>To: Struts Users Mailing List
>Subject: Re: How do you do a map with hotspots in Struts
>
>
>This is called an image map in HTML terms.  I'd recommend the following:
>
>1.  Search google for image map
>2.  Use Dreamweaver to create one - real easy
>3.  Sign up for an account at www.experts-exchange.com (it's free) to ask
>javascript and HTML questions too - free, easy and fast responses to your
>specific question.
>
>HTH,
>
>Matt
>
>
>--- "Maturo, Larry" <[EMAIL PROTECTED]> wrote:
>
>>How do you have a graphic image with embedded hotspots
>>in Struts such that once you are in the action class you
>>can tell which hotspot was clicked on?
>>
>>I've searched the archives and checked on JGRU and could
>>not find anything on this.
>>
>>-- Larry Maturo
>>
>>--
>>To unsubscribe, e-mail:
>>
><mailto:[EMAIL PROTECTED]>
>
>>For additional commands, e-mail:
>>
><mailto:[EMAIL PROTECTED]>
>
>
>
>__
>Do You Yahoo!?
>Try FREE Yahoo! Mail - the world's greatest free email!
>http://mail.yahoo.com/
>
>--
>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 approach question

2002-03-11 Thread Arron Bates

If known for nothing else, I may go down for creating the infamous 
Monkey/Banana bean model example :)

I don't think that one object per row is much of an overhead for the 
benefit it brings. You are going to have to marshal your results anyway, 
so you may as well create separate objects. Hell, you could even have 
the beans as a proxy only and go driect through to the result set. But 
that's not very MVC.

The nested tags don't "imply" anything. They simply make easier work of 
some more complex markup. Even with nested beans you can use the old 
tags. The nested tags are also better at adaptation. If your spec 
changes, then it will be easier to update with the nested system. Even 
if I'm not nesting beans, I still use the nested tags. They simply make 
life easier.

You could take me as being bias :) ... so are there any other opinions 
out there?...

Arron.

Vladimir Levin wrote:

> Hi, I have a basic design-level question to ask of those who are
> using the struts framework. The question concerns how data from
> the database get retrieved into the 'web-tier' beans
> of the application when table joins are involved.
>
> One approach is to nest objects. e.g. say we want to display
> all the BANANA records belonging to each MONKEY in our database.
>
> we can create a Monkey object and assign a list of Banana objects
> to each Monkey.
>
> public class Monkey {
>  private String name;
>  private List bananas; //type of objects in list is Banana
>
>  public String getName() { return name; }
>  public void setName(String name) { this.name = name; }
>  public List getBananas() { return bananas; }
>  public void setBananas(List bananas) { this.bananas = bananas; }
> }
>
> public class Banana {
>  private String id;
>  public String getId() { return id; }
>  public void setId(String id) { this.id = id; }
> }
>
> This approach implies using the nested taglibs package. It has
> potential downside that many objects get created.
>
> Another approach is to create a 'super' object to aggregate the
> data for the join between tables. e.g.
>
> public class MonkeyBanana {
>  private String name; //Monkey name
>  private String id; //Banana id;
> }
>
> This is essentially a denormalization of the Monkey and Banana
> objects. It is more redundant, but we don't need to use the
> nested taglib package and we create fewer objects.
>
> Does anyone have advice regarding which approach is better?
>
> Vlad
>
>
>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> -- 
> 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: html:options bug?

2002-03-11 Thread Arron Bates

The collection attribute needs the bean reference only. The dot notation 
is for your property. Because the collection isn't the bean itself 
you'll have to use a define tag or something to make a bean reference 
directly to your collection, then use that reference in your collection 
attribute.

For your second example... The collection attribute is overriding, and 
ignores the name attribute. It's meant to be the direct link to a bean 
reference that itself is a collection.

Arron.


Lawlor, Frank wrote:

>The Struts Options tag seems to have problems accessing collections 
>that are in some other object (e.g., your form).  The following dotted
>notation should work (I thought) (roleList is an ArrayList):
>
>   
>labelProperty="description"/>
>   
>
>or alternatively:
>
>   
>labelProperty="description"/>
>   
>
>But both of these result in an error that a bean cannot be found in
>roleList.
>A workaround is to "cache" the list:
>
>   scope="session" />
>   
>labelProperty="description"/>
>   
>
>Is this a bug or expected behavior?
>
>Frank Lawlor
>Athens Group, Inc.
>(512) 345-0600 x151
>Athens Group, an employee-owned consulting firm integrating technology
>strategy and software solutions.
>
>
>
>
>--
>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: Problem using the nested taglib

2002-03-11 Thread Arron Bates

Almost. :)

 is a valid nested tags root. For compatibility reasons. 
 is literally an extension of that. Other than that you can 
use the  for non-form based stuff.

Indexed attribute is not needed. It has limited use in all the tags, and 
doesn't penetrate (multiple iterators) very well. The nested tags will 
ask each tag to get the underlying property. When it comes across the 
iterate tag, it will get it's correct index. All behind the scenes 
without you having to worry about it. It will work correctly for all 
tags, not just some, which the indexed attribute fails to do. For all 
intents and purposes, you only need the "property" property in the 
nested tags because all the rest is done for you. Makes management of 
markup much easier.


Arron.


Alex Paransky wrote:

>Also, I think you need to be using "indexed" properties to properly generate
>the names of the using "indexed" properties, how will struts know which member to update in
>your array when a submit is done?
>
>-
>-AP_
>See my profile at
>http://www.myprofiles.com/member/view.do?profileId=128
>
>
>-Original Message-
>From: Javier Campoamor [mailto:[EMAIL PROTECTED]]
>Sent: Monday, March 11, 2002 11:49 AM
>To: Struts Users Mailing List
>Subject: Problem using the nested taglib
>
>
>Hi,
>
>I'm using the nested extension to manage a bean that has a list of other
>beans, but I'm having always the same problem that I'm unable to solve.
>
>I have a first action that creates the action form to be showed in the next
>jsp. This works and everything I need is in the response. The problem that I
>have is after that, when I submit the form to the next action, no
>information about the nested beans is there. The nested beans array list is
>null.
>
>Does anybody know what I'm doing wrong? Where can be the problem?
>
>Thanks in advance.
>
>Javier
>
>
>
>
>Here I create the action form:
>
>  AuDistrAdminForm auDistrAdminForm = (AuDistrAdminForm) form;
>
>  auDistrAdminForm.setAggregationUnitId(auAux.getAggregationUnitId());
>  auDistrAdminForm.setAuDescription(auAux.getDescription());
>  ArrayList distributionBeanslist = new ArrayList();
>  for(Iterator iter = auAux.getAuDistributionList().iterator();
>iter.hasNext(); )
>{
>AUDistribution auDistribution = (AUDistribution) iter.next();
>AUDistributionBean auDistributionBean = new AUDistributionBean();
>
>auDistributionBean.setAggregationUnitId(auDistribution.getAggregationUnitId(
>));
>auDistributionBean.setEmployeeId(auDistribution.getEmployeeId());
>
>auDistributionBean.setEmailAddress(auDistribution.getEmailAddress());
>auDistributionBean.setEmployeeName(auDistribution.getFirstName() + "
>"
>+  auDistribution.getLastName());
>distributionBeanslist.add(auDistributionBean);
>}
>  auDistrAdminForm.setDistributionList(distributionBeanslist);
>
>  if ("request".equals(mapping.getScope()))
>  request.setAttribute(mapping.getAttribute(), form);
>  else
>  session.setAttribute(mapping.getAttribute(), form);
>  }
>
>
>
>And here is the JSP content:
>
>
>filter="true"/>
>
>
>
>
>  
>
>  
>  
>
>  
>  
>
>  
>   
>
>
>
>
>  />
>  property="employeeId" />
>  />
>  
>
>
>
>  
>Save
>
>
>
>
>
>This is the action from getter that returns that nested beans array:
>
>  public Object[] getDistributionArray()
>{
>return _DistributionList.toArray();
>}
>
>
>
>
>And the struts-config file has the next lines:
>
>type="com.lapize.frs.form.AuDistrAdminForm"/>
>
>type="com.lapize.frs.action.AuDistrAdminAction"
>name="auDistrAdminForm" scope="session" validate="false"
>input="/auAdministration.jsp">
>
>
>type="com.lapize.frs.action.SaveAuDistrAdminAction"
>name="auDistrAdminForm" scope="session" validate="false"
>input="/auDistrAdministration">
>
>
>
>
>
>--
>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: Server-side Charting libs?

2002-03-10 Thread Arron Bates

Java 1.2 should be all you'd need for a good charting package. Not that 
I have a particular library in mind. I have seen one on sourceforge 
someplace. They are out there.

When ever I've needed a chart I've luckily had to the time to piss 
around and make it myself. Java2D in 1.2 should be all anyone needs to 
get the job done. Has the ability for some very sexy imagery.

You can use any charting package, as long as it will render to an Image 
object or some sort (Buffered or otherwise) which you can just pump from 
a Struts action using Sun's own JPEG output stream, which you can get a 
hold of in thier Advanced Imaging Toolkit or something (www.javasoft.com 
:) . With that you set the quality etc. As far as I know all the JPEG 
stuff etc is now in 1.4


Arron.

Bryan Field-Elliot wrote:

>I was wondering if anyone has any positive experience with open-source
>charting libraries, with Struts?
>
>I need to generate a chart on the server (from a Struts action) and send
>it back to the client as a Jpeg, PNG, etc.
>
>I have messed with (a tiny bit) JFreeChart and Chart2d. Both appear (at
>first glance) to have issues with "headless" environments, which my
>server definitely is (no X server installed). I'm using JDK 1.3. At one
>point I read that JDK 1.4 has better support for graphics primitives on
>headless environments, but I don't know if the above two libraries can
>take advantage of that.
>
>A penny for anyone's thoughts?
>
>Bryan
>
>
>
>



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




Re: nested:iterate - set method not called

2002-03-10 Thread Arron Bates

The getter will only ever be called, as it's the middle-man.
The system only wants to set the "name" property on the nested bean. It 
will call the getter of the "extrainfo" object to get at the nested 
bean, and then set its property. Never actually calling the setter of 
the parent bean property.

Arron.


Elijah Jacobs wrote:

>thanks for the reply, Scott
>
>
>My syntax looks okay on the jsp side and since the getExtrainfo method is
>being called it puzzles me that the set method is not being called on
>submit.
>
>  
>
>
>- ej
>- Original Message -
>From: "Barr, Scott [IBM GSA]" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Sent: Sunday, March 10, 2002 7:03 PM
>Subject: RE: nested:iterate - set method not called
>
>
>>Could it be that the html field in your jsp is named 'extraInfo'
>>
>(uppercase
>
>>'i'), and the setter is using a lowercase 'i' in the word info?
>>
>>Scott
>>
>>>-Original Message-
>>>From: Elijah Jacobs [SMTP:[EMAIL PROTECTED]]
>>>Sent: Monday, March 11, 2002 10:27 AM
>>>To: Struts Users Mailing List
>>>Subject: nested:iterate -  set method not called
>>>
>>>Hi,
>>>
>>>I am able to list the elements on  my Vector just fine, but I noticed
>>>
>that
>
>>>when I do a submit the set method is not being called, hence the field
>>>
>is
>
>>>empty when it gets to the action class.
>>>
>>>Can someone suggest to me what the problem might be? my code is below.
>>>
>>>thanks,
>>>- ej
>>>
>>>*** code 
>>>public Vector extrainfo;
>>>
>>>// call successfully
>>>public Object[] getExtrainfo() {...}
>>>
>>>//Not being called on submit
>>> public void setExtrainfo(Object[] infoList) {...}
>>>
>>>*** code 
>>>
>>>
>>>--
>>>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: how to edit an array of records with action forms?

2002-03-07 Thread Arron Bates

Nightly build version can use implementations of the java.util.List 
rather than having to get back the primitive array object. Makes things 
easier to work with.

Returning the Object[] actually renders everything but ArrayList style 
collections useless because the mapped collections and such don't know 
how to update from an index. Returning the array from an ArrayList 
itself isn't that big a hit, as it's backed by such an array anyways.

Arron.


Ian Tomey wrote:

>ahh, just paid more attention to your example code :-) 
>
>  
>public BunchBean() {
>  this.bananaList = new ArrayList();
>  this.bananaList.add(new BananaBean());
>  this.bananaList.add(new BananaBean());
>  this.bananaList.add(new BananaBean());
>}
> 
>public Object[] getBananaList() {
>  return this.bananaList.toArray();
>}
>
>
>could this potentially be a bit of a performance killer ( the .toArray() ) stuff with 
>some collection types?
>
>cheers
>Ian
>
>
>>>>[EMAIL PROTECTED] 03/07/02 12:31pm >>>
>>>>
>Who's fixing the number of records?... The tags will happily do whatever 
>with what they're given. The monkey example adds and deletes objects in 
>the various lists with ease.
>
>You could even map the bean properties to access columns in a result 
>set. Wouldn't be on the "best practice" list however :)
>
>Arron.
>
>
>Ian Tomey wrote:
>
>>Hi Arron,
>>
>>Had a quick look at it, seems like what I need. One gotcha though is that the number 
>of records is not fixed, so the creation of the array of row objects in the form 
>constructor has to be bigger than the max size expected. I'm hoping that 
>actionForm.reset is called before bean population then I can init the size of the 
>array from looking up the param. ugh, an ugly kludge.
>>
>>good work BTW.
>>
>>Cheers
>>Ian
>>
>>>>>[EMAIL PROTECTED] 03/06/02 05:24pm >>>
>>>>>
>>If you're on a nightly build, you'll have the nested extension already 
>>there. It will help you make light work of iterating objects.
>>
>>For a pimer and tutorial, go here...
>>http://www.keyboardmonkey.com/struts 
>>
>>And for mor implementation detail for each of the tags, the Struts site 
>>has the most complete info.
>>
>>Arron.
>>
>>Ian Tomey wrote:
>>
>>>Hi all,
>>>
>>>Got an array of records and I want to put them onto the screen to edit. What is the 
>technique to go about this? (i am using the nightly 1.1 at the moment)
>>>
>>>is it create an action form that maps a single record and create a load of them? or 
>create an action form with the properties being arrays of the information?
>>>
>>>one form in total or one form per record?
>>>
>>>i take it the indexed= attribute for the html tags is going to be useful?
>>>
>>>It's not obvious how to do this and I just dont have time to expriement (deadline 
>to meet). Any help appreciated
>>>
>>>Cheers
>>>Ian
>>>
>>>
>>>--
>>>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]>
>
>
>
>--
>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: how to edit an array of records with action forms?

2002-03-07 Thread Arron Bates

Who's fixing the number of records?... The tags will happily do whatever 
with what they're given. The monkey example adds and deletes objects in 
the various lists with ease.

You could even map the bean properties to access columns in a result 
set. Wouldn't be on the "best practice" list however :)

Arron.


Ian Tomey wrote:

>Hi Arron,
>
>Had a quick look at it, seems like what I need. One gotcha though is that the number 
>of records is not fixed, so the creation of the array of row objects in the form 
>constructor has to be bigger than the max size expected. I'm hoping that 
>actionForm.reset is called before bean population then I can init the size of the 
>array from looking up the param. ugh, an ugly kludge.
>
>good work BTW.
>
>Cheers
>Ian
>
>>>>[EMAIL PROTECTED] 03/06/02 05:24pm >>>
>>>>
>If you're on a nightly build, you'll have the nested extension already 
>there. It will help you make light work of iterating objects.
>
>For a pimer and tutorial, go here...
>http://www.keyboardmonkey.com/struts 
>
>And for mor implementation detail for each of the tags, the Struts site 
>has the most complete info.
>
>Arron.
>
>Ian Tomey wrote:
>
>>Hi all,
>>
>>Got an array of records and I want to put them onto the screen to edit. What is the 
>technique to go about this? (i am using the nightly 1.1 at the moment)
>>
>>is it create an action form that maps a single record and create a load of them? or 
>create an action form with the properties being arrays of the information?
>>
>>one form in total or one form per record?
>>
>>i take it the indexed= attribute for the html tags is going to be useful?
>>
>>It's not obvious how to do this and I just dont have time to expriement (deadline to 
>meet). Any help appreciated
>>
>>Cheers
>>Ian
>>
>>
>>--
>>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: nesting tags cannot find EmptyTag

2002-03-06 Thread Arron Bates

You're running an older version of Struts I take it (1.0, 1.01)?...

There's a jar made especially for these versions of Struts that doesn't 
have the extra tags like the empty tag.
Download "nested_tags_10.jar" (binaries), "nested_tags-src_10.jar" 
(source) from...
http://www.keyboardmonkey.com/struts

That should get it working. You will also have to replace the tld with 
that which comes in the jars, otherwise weblogic will still complain 
(All this is because weblogic parses and checks the tld's). The location 
and name of the tld's don't matter, as long as it matches the definition 
in your web.xml and JSP's etc.

Hopefully that will get you working.

Arron.


Elijah Jacobs wrote:

>Hi All,
>
>I am using nested-tag from Arron Bates. I have a working sample in my tomcat
>webapp, but when I try to run that app with my weblogic 5.1 i get this
>error:
>
>java.lang.NoClassDefFoundError: org/apache/struts/taglib/logic/EmptyTag
>
>I can't seem to find anything on the user group under "EmptyTag" and my
>struts.jar is uptodate.
>
>There is one difference in my webapp setup under weblogic...I put my *.TLD
>right under my web-inf folder .. while in tomcat, the tuturial I got from
>the web, has it under web-inf/taglib/ .. but I don't think that makes a
>difference.
>
>Any suggestions on how to go about solving this?
>
>thanks in advanced,
>- ej
>
>I am using WebLogic 5.1 on Windows 2000
>
>--
>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]>




<    1   2   3   >