Re: Nested tags always break

2003-12-03 Thread Rick Mann
On Dec 3, 2003, at 21:05, [EMAIL PROTECTED] wrote: Rick, You still having this problem?... can I see the tag markup that's causing the problems?... I still am. I sent you the markup directly under separate cover. If the root tag is picking up the name of a valid bean, and the iterate tag has

Nested tags always break

2003-11-30 Thread Rick Mann
I have a situation where I can use nested:root name=ac, nested:iterate id=foo, and then *must* use nested:write name=foo property=bar, rather than omitting the name attribute. If I do, I get an exception No getter method for property foo[0].bar of bean ac. Now, this code was working fine, but

nested fails when non-nested tag works? why?

2003-10-06 Thread Rick Mann
Using java 1.4.1 and Struts 1.1 release I have JSP code like this (it's nested inside a nested:nest: nested:root name=homePageForm nested:nest property=customer nested:iterate id=item property=recommendations pnested:write property=id/ nested:write property=headline//p /nested:iterate ...

Character encoding of custom tag output SOLVED

2003-07-16 Thread Rick Mann
Turns out, I was wrong. Java is doing the right thing. Thanks! -- We have a situation where we've created a custom foo:include tag that reads text from a file and writes it to the pageContext.getOut() JspWriter. The problem is that the file is ISO-8859-1 (Latin 1)

Character encoding of custom tag output

2003-07-15 Thread Rick Mann
We have a situation where we've created a custom foo:include tag that reads text from a file and writes it to the pageContext.getOut() JspWriter. The problem is that the file is ISO-8859-1 (Latin 1) encoded. When it gets brought into a String (via any method you care to suggest), it gets

Parameters in html:link

2003-06-20 Thread Rick Mann
I once requested that html:link et al. be modified to allow nested tags to add parameters. I was told that the JSTL version of html:link allowed this. I've been reluctant to try to use the JSTL version based on the assumption that the JSTL verison would not know anything about Struts actions. It

Form bean properties not getting set

2003-06-18 Thread Rick Mann
I have a simple form bean with a few getter/setter methods. In order to accommodate any input, the setters take string values. But some of the properties are ints, so the getter actually parses the stored string if it can or returns a suitable default (usually 0). Well it turns out that Struts

Embedding HTML entities or unicode in format strings?

2003-06-06 Thread Rick Mann
I'm trying to use the bean:write tag to format a date: bean:write name=bean property=dateProp format=MM dd rsquo;yy/ Unfortunately, the rsquo; gets escaped by the tag and I end up with the literal rsquo; showing up in the browser. I've also tried embedding unicode literal \u2019 to no avail.

nested form of bean:write doesn't work but plain does.

2003-06-05 Thread Rick Mann
Hi. I've got a situation where I'm using nested:iterate to iterate over a List of beans, and then using nested:write to render some property (a string). We do this in multiple places in our app, but every now and again, in some instance of the code, it doesn't want to work. In these cases, we

More: nested form of bean:write doesn't work but plain does.

2003-06-05 Thread Rick Mann
Also, if I explicitly refer to the data (say, using %= bean.getProperty() %), then things work fine (after using bean:define to set up the scripting variable). So, I know that the process of getting the list of items and then grabbing each item in the list is working.

Re: Using SecureLinkTag with non-actions

2002-11-07 Thread Rick Mann
on 11/5/02 7:00 PM, Ditlinger, Steve at [EMAIL PROTECTED] wrote: As for specifying a forward to be secure or non-secure: changing the protocol requires a redirect, so every forward where the protocol changes would require a redirect, which would be OK assuming the developer recognizes that

Using SecureLinkTag with non-actions

2002-11-04 Thread Rick Mann
Hi. I recently added the SSL Ext stuff to Struts 1.1b2, and it mostly works, except for the SecureLinkTag. I have a .jsp that is not required to be secure. The typical user, however, will get to this page as a result of logging in (an HTTP post), and so the page will be secure. I have several

Re: how the subscription details are populated inregistration.jsp page from struts-example

2002-06-08 Thread Rick Mann
on 6/7/02 4:40 AM, Chandra Sekharan Bhaskaran at [EMAIL PROTECTED] wrote: How does the subscription details get populated when user travels the hyperlinkl http://localhost:8080/struts-example/editRegistration.do?action=Edit. rgds Such a URL is equivalent to an HTML form with

Re: Best way to forward to login, then re-forward tooriginallyrequested resource?

2002-05-31 Thread Rick Mann
on 5/29/02 3:36 AM, Reinhard Nägele at [EMAIL PROTECTED] wrote: session.setAttribute(REDIRECT_KEY, mapping); return mapping.findForward(login); In your login action, check if a mapping is in the session and go there: ActionMapping redirectMapping = (ActionMapping)

Arbitrary parameters in ActionMapping?

2002-05-31 Thread Rick Mann
I've noticed a few people proposing solutions for various framework limitations that use the param attribute of the action tag. Obviously, only one parameter can reasonably be passed in this attribute. Does it not make sense to add a nested tag for parameters? In the build of Struts that I'm

Re: Best way to forward to login, then re-forward tooriginallyrequested resource?

2002-05-30 Thread Rick Mann
on 5/29/02 3:36 AM, Reinhard Nägele at [EMAIL PROTECTED] wrote: session.setAttribute(REDIRECT_KEY, mapping); return mapping.findForward(login); In your login action, check if a mapping is in the session and go there: ActionMapping redirectMapping = (ActionMapping)

Re: Best way to forward to login, then re-forward to originallyrequested resource?

2002-05-29 Thread Rick Mann
on 5/28/02 11:59 PM, Adam Hardy at [EMAIL PROTECTED] wrote: I wouild save the form bean and a mapping or action forward in the session, and collect them when the in-between task is finished. Yeah, I was thinking of that, too. Okay, so here's the struts-specific problem: how do I get the name

No nested:message tag?

2002-05-29 Thread Rick Mann
It seems that nested:message / is left out. Is this the case? If so, why? TIA, -- Rick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Best way to forward to login, then re-forward to originallyrequested resource?

2002-05-28 Thread Rick Mann
I've got a typical struts application up and running. Certain actions check to see if the user is logged in, and if not, forward to a login JSP. That JSP then posts to a LoginAction. The LoginAction then forwards back to the originally requested action. The problem I have is that currently, this

Re: Best way to forward to login, then re-forward to originallyrequested resource?

2002-05-28 Thread Rick Mann
on 5/28/02 5:19 PM, Alex Paransky at [EMAIL PROTECTED] wrote: Why not use J2EE/WEB standard container authentication? It will do what you want. In fact, it was designed to do what you want, which is called Lazy, or just in time, authentication. The user can surf your page, however, when

Good way to clear session state?

2002-05-19 Thread Rick Mann
I've written a shopping cart/checkout app using Tomcat Struts. The very last action (the place order action), if successful, forwards to a JSP showing an order confirmation and a thank you message. After that page is returned to the client, I'd like to reset the user's session state, so that if

button input fields?

2002-05-16 Thread Rick Mann
So, I happily thought the html:button tag would render a button input field element, but instead it seems to render an input element. Is there a way to get a button element? If not, is there a reason it can't be done within the Struts tags framework? A look in the archive turned up lots of

More detailed iteration needs?

2002-05-01 Thread Rick Mann
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

Re: More detailed iteration needs?

2002-05-01 Thread Rick Mann
on 5/1/02 9:09 PM, Arron Bates at [EMAIL PROTECTED] wrote: 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

Having trouble nesting iterate tags (long explanation,relatively simple question)

2002-04-10 Thread Rick Mann
Hi. I'm fairly new to Struts, but I've gone through the Struts documentation and KeyboardMonkey's helpful tutorial. What I want to do is (almost) right out of the tutorial, but it's not working the way I would expect. The list archives show that other people have had this problem, and the few