Re: Tags creating Tags

2003-10-26 Thread Mark Mahieu
I said, > Hi Lukas, > > If I understand you correctly ... But I didn't (understand that is). I guess my reading comprehension skills at 6am just aren't up to it ;) So just disregard my last Mark - To unsubscribe, e-mail:

Dynamic Layouts in Tiles

2003-10-26 Thread [EMAIL PROTECTED]
Is there any reason why I cannot use the names in tiles definitions in tiles-def.xml as the reference in forwards inside Action subclasses? Can I just use "return (new ActionForward([NAME OF TILES DEFINITION]));" rather than, e.g., " return (new ActionForward(mapping.getInput()));"? Thanks, M

Help on ---------> comons apache XML Digester along with weblogic

2003-10-26 Thread Makarand . Sonawane
Hi All, I am reposting the same question, can any one help me out on this... I am using commons-digester1.5 , I am digesting a xml file using xml rules. When I run the Parsing in a stand alone mode it works fine. But when the same parser is used along with Weblogic I am getting follow

Re: Tags creating Tags

2003-10-26 Thread Mark Mahieu
Hi Lukas, If I understand you correctly you need to look into the pushBody and popBody methods on PageContext. Basically, in doStartTag(), call pageContext.pushBody() then in doEndTag() you call pageContext.popBody(), retrieve the BodyContent's value, muck about with it to your heart's conten

Index properties (once again)

2003-10-26 Thread Rajat Pandit
Hello sorry for posting the same question again and again. But I seem to have gained something on this. Now I have a few (more) questions. Maybe someone could help me figure out what or where I am getting it wrong. This is the case. I have a product, with different states(checbox) and each state

Re: Tags creating Tags

2003-10-26 Thread Craig R. McClanahan
Lukas Bradley wrote: Ruth, Craig, and lurkers, I think what I'm after boils down to a method like this: public String renderTag(PageContext pPageContext, Tag pTagToRender) throws JspException A look at the JSP Specification will tell you that this would not work at all for a classic tag hand

Re: Tags creating Tags

2003-10-26 Thread Lukas Bradley
I apologize for the original cross-post. I was hoping there might be a Struts method to do what I wanted. Here is something I wrote to the other group, after a post from Felipe Leme. > I think you can accomplish what you're looking for using JSP 2.0 and tag > files. Yep. That's exactly what I'

Re: Multiple parameters

2003-10-26 Thread Richard Yee
Rajat, Perhaps I'm missing something here, but by definition, one of your radio buttons should be checked. If you display your form without having any of your radio buttons checked, then it amounts to a checkbox. If you initialize your form bean correctly, one will be checked and then, you shou

Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
I think you'll still end up with a severe performance penalty. If you generate JSP dynamically, that JSP will have to be "pre-compiled" each time you re-generate it. [EMAIL PROTECTED] wrote: Craig R.McClanahan wrote: To accomplish what you are after, you would need another layer of compilati

Re: Tags creating Tags

2003-10-26 Thread matsuhashi
Craig R.McClanahan wrote: >To accomplish what you are after, you would need another >layer of compilation. >You'll need to come up with a different approach to accomplish what you >are after. I think this link ( an article by Jason Diamon at xml.com) presents an example of what Craig calls "anoth

Re: Tags creating Tags

2003-10-26 Thread Lukas Bradley
> One way of accomplishing what you want to do, I think, is simply making > calls to the appropriate Struts classes that are called when > is parsed & compiled. Instead of outputting an - just call > those methods with the arguments that you would write out as > attributes, and you should get pr

Re: Tags creating Tags

2003-10-26 Thread Lukas Bradley
Ruth, Craig, and lurkers, I think what I'm after boils down to a method like this: public String renderTag(PageContext pPageContext, Tag pTagToRender) throws JspException After creating the tag manually, you could pass it to this method, and have it rendered. The return value of a String should

Re: Tags creating Tags

2003-10-26 Thread Ruth, Brice
One way of accomplishing what you want to do, I think, is simply making calls to the appropriate Struts classes that are called when is parsed & compiled. Instead of outputting an - just call those methods with the arguments that you would write out as attributes, and you should get pretty c

Re: Tags creating Tags

2003-10-26 Thread Craig R. McClanahan
Lukas Bradley wrote: Hi all, Maybe I'm just tired, but the answer to this is not to be found. I could me making this harder than it is, or something might be right in front of me, and I don't see it. What I want is a custom tag that creates other custom tags. Here is a simple example: Should

Re: Indexed properties help!

2003-10-26 Thread Frederic Dernbach
Rajat, Here is an example of an indexed property called 'signal' (in my application it holds complex objects, not simple strings or integers): public OrderedSignalBean getSignal(int index) { while( index >= this.getSignals().size() ){ this.getSignal

Re: How to do Confirmation page.

2003-10-26 Thread Geeta Ramani
Hi DN! Seems like the specs just changed..;) Please see inline comments.. Dinh Nguyen wrote: > Geeta, > > thanks for pointing out the issue, however, we take care of that in > the validation form. Either way if the user misses some fields, > he/she'll be redirected back to the registration for

RE: Multiple parameters

2003-10-26 Thread Rajat Pandit
I seriously have other issues right now! But I guess it does work. Tht's how you get the validate function to check if you entered a float value or not. -Original Message- From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] Sent: Sunday, October 26, 2003 7:02 AM To: Struts Users Mailing

Indexed properties help!

2003-10-26 Thread Rajat Pandit
Hello, I am pasting some excepts from the struts documentation. It would be really great if someone could help me clear this. Question 1: The "indexed tags" feature is provided by several tags that have an optional boolean "indexed" attribute. This is only legal when inside a "" tag. When the "i

Re: Multiple parameters

2003-10-26 Thread Mark Lowe
Its certainly the case with dynaforms, that life is easier just to have everything as strings including any nested beans.. I'd stick to strings, and perhaps organise things so you have a bid object that you nest in your form. this would result you being less confused. By

RE: Indexed properties help!

2003-10-26 Thread Frederic Dernbach
Looks OK. However, I would not use a basic array (private members) but ArrayList, HashMap or LinkedList, etc. I did not manage to have arrays working (the lazy initialization failed). You will have problems in JSPs. Le dim 26/10/2003 Ã 18:04, Rajat Pandit a Ãcrit : > Hello fred, > Thanks for

Tags creating Tags

2003-10-26 Thread Lukas Bradley
Hi all, Maybe I'm just tired, but the answer to this is not to be found. I could me making this harder than it is, or something might be right in front of me, and I don't see it. What I want is a custom tag that creates other custom tags. Here is a simple example: Should produce something li

Re: Tiles And Images

2003-10-26 Thread Ruth, Brice
Using the tag is powerful, though, as it allows you to use relative (to page) references for links/images/etc. - if needed, and module relative references are still supported by , , and of course, tags. That's how our application is structured - this way, when we put things in different dire

Re: Multiple parameters

2003-10-26 Thread Mark Lowe
my response was about indexed properties. and the next man was just suggesting you use strings rather than float. fred's answer looks like it will work, in principle its along the same lines as mine, just he's not nesting a bean in the form bean. So its more along what you've got already. ther

RE: Multiple parameters

2003-10-26 Thread Rajat Pandit
Sorry mark, that wasn't addressed to you. I was more concenred about the indexed properties, and not about the data type. I am really sorry if I conveyed the wrong message. Hope you will forgive me, I didn't mean to hurt or upset anyone. -Original Message- From: Mark Lowe [mailto:[EMAIL

RE: Indexed properties help!

2003-10-26 Thread Rajat Pandit
Hello fred, Thanks for the reply, so just for clarifiation, if I am using a property which will be "indexed" then the getters and setters will be a little different from the usual set and get Ie public String getBidAmount(int index) { return bidAmount[index]; } And public void setBidAm

Re: Multiple parameters

2003-10-26 Thread Todor Sergueev Petkov
Are you sure you can use float arrays in an ActionForm. I think ActionForm beans accept only String values. It's up to you to do conversion from/to Float. Rajat Pandit wrote: Hello mark, This is my situtation This is an extract from my action form private float[] bidAmount; public float

Re: Multiple parameters

2003-10-26 Thread Mark Lowe
Look man I know what its like being up against the wire, but you're demanding that someone else bails you out the chaos. don't try and build apps around validator you'll run into trouble. If you took a proper look at the responses instead of wetting your pants you might make some progress. htt

RE: Multiple parameters

2003-10-26 Thread Rajat Pandit
Hello mark, This is my situtation This is an extract from my action form private float[] bidAmount; public float[] getBidAmount() { return bidAmount; } public void setBidAmount(float[] bidAmount) { this.bidAmount = bidAmount; } In my jsp I want this to sto

Re: How to validate is selected on a JSP page?

2003-10-26 Thread ZYD
I found this: http://www.mail-archive.com/[EMAIL PROTECTED]/msg79778.html but it seem the problem is still not solved, right? - Original Message - From: "Rajat Pandit" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Sunday, October 26, 2003 3:01 PM Subject

RE: Tiles And Images

2003-10-26 Thread Holman, Cal
Ruth>> I don't think so. They were thinking of this option. The HTML:BASE renders a tag reference relative to the page request. So if your template is in the app root then the effect is the same. I use templates that are actually in different directories so in order to ensure all relative r

RE: Tiles And Images

2003-10-26 Thread Holman, Cal
I think images need to be relative to the stylesheet. Cal -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 23:25 To: Struts Users Mailing List Subject: Re: Tiles And Images Hi, everybody. I have my problem solved. The images should be rel

Re: Multiple parameters

2003-10-26 Thread Mark Lowe
Need to know what your validator.xml looks like and form-bean stuff in your struts-config. Just sticking So give more detail have read the documents. Forget about databases for now and just think about getting your form properties into your action. is the form property an indexed property? Ho

Re: browser cache.

2003-10-26 Thread kimbuba
thnx Steve! "Steve Raeburn" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > There is. > http://jakarta.apache.org/struts/userGuide/configuration.html#controll > er_config > > Steve > - To unsubscribe, e-m

Multiple properties (yetagain)

2003-10-26 Thread Rajat Pandit
Hi, Can someone help me with this. I want to iterate though form field values, something like this org.apache.struts.taglib.html.BEAN[0].mode, mode being one of the field values of the form Thanks Rajat Pandit | [EMAIL PROTECTED] +91 612 3117606 [ Developer and Part Time Human Being]

ActionMessage and the Validator

2003-10-26 Thread nn
I read that the ActionErrors and ActionError classes will be deprecated by ActionMessage and ActionMessages.. Question 1: How will this influence the signature for a validator which today has ActionErrors as one of the parameters: (java.lang.Object, org.apache.commons.validator.ValidatorAction

RE: How to validate is selected on a JSP page?

2003-10-26 Thread Rajat Pandit
Lets hope for someone to reply to this! :D -Original Message- From: ZYD [mailto:[EMAIL PROTECTED] Sent: Saturday, October 25, 2003 10:50 AM To: Struts Users Mailing List Subject: Re: How to validate is selected on a JSP page? Yes, that works. But that's not decent like you said. Is t