Re: tag question

2006-01-11 Thread Rick Reumann
Ashish Kulkarni wrote the following on 1/11/2006 11:08 AM: Hi I am a bit confused about using and tag I hate that optionsCollection tag:) I think the naming of the attributes is confusing. I prefer using html:select and using html:option withing a JSTL forEach loop. Slightly more verbose t

Re: tag question about identifying a specific item in acollection

2005-10-01 Thread Murray Collingwood
Sounds like you need some documentation... try this: http://struts.apache.org/userGuide/struts-logic.html This tells you how to use those tag should identify the attribute name of the collection and assign a new attribute name to be used for accessing each item within the collection. Insi

Re: tag question about identifying a specific item in acollection

2005-10-01 Thread Kishore Senji
If you are using property on the logic:equal, you also have to supply the "name" attribute. Define an "id" on the logic:iterate and use it as the "name" on the logic:equal. On 10/1/05, Mick Knutson <[EMAIL PROTECTED]> wrote: > > I am not having luck here. > > I have a collection of cards (Card cla

Re: tag question about identifying a specific item in acollection

2005-10-01 Thread Mick Knutson
I am not having luck here. I have a collection of cards (Card class) that I am iterating through. Then, I also have a form that has a cardValidatorForm (DynaForm). cardForm.cardNumber is going to be equal to one of the card.cardNumber's When I create the logic tag like you stated: ... I get an

Re: tag question about identifying a specific item in acollection

2005-09-29 Thread Mick Knutson
Thanks so much! Murray Collingwood wrote: > Will the following work? > > > > > > > > > > > > > > Kind regards > mc > > > On 29 Sep 2005 at 15:41, Mick Knutson wrote: > > > I have a collection of cards. and I want to create a table fo thos > > cards, but if I get to a card

Re: tag question about identifying a specific item in a collection

2005-09-29 Thread Murray Collingwood
Will the following work? Kind regards mc On 29 Sep 2005 at 15:41, Mick Knutson wrote: > I have a collection of cards. and I want to create a table fo thos > cards, but if I get to a card where foo=bar, then I want to paint that > row as a form with updateable fields a

Re: Tag question (JSP organization)

2004-07-26 Thread Erik Weber
ng to make it as usable a possible. Neway, thanks for the patience Erik. Would you let me in on a secret? How could I view the thread on this topic? -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 12:26 PM To: Struts Users Mailing List Subje

RE: Tag question (JSP organization)

2004-07-26 Thread Raghuram Kanadam
ssage- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 12:26 PM To: Struts Users Mailing List Subject: Re: Tag question (JSP organization) Raghuram, the thread was started by me ;) and was entitled "Prepopulating forms". It was a long thread and might give you so

Re: Tag question (JSP organization)

2004-07-25 Thread Erik Weber
e would be the expert, not me. His posts are a little over my head at this point. I curse and scream until my screens show up with what I want on them, and then I breathe a big sigh of relief, just like anyone else. ;) Erik -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] S

RE: Tag question (JSP organization)

2004-07-25 Thread Raghuram Kanadam
004 11:54 AM To: Struts Users Mailing List Subject: Re: Tag question (JSP organization) Well, during an earlier thread on this topic, one of the Struts contributors (I think he was a contributor -- can't remember who it was) posted that, despite how many Struts developers use the same form

Re: Tag question (JSP organization)

2004-07-25 Thread Erik Weber
back to the page containing it. :) -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 11:23 AM To: Struts Users Mailing List Subject: Re: Tag question (JSP organization) I'm sorry Raghuram, I'm not able to understand your question. Could y

RE: Tag question (JSP organization)

2004-07-25 Thread Raghuram Kanadam
Subject: Re: Tag question (JSP organization) I'm sorry Raghuram, I'm not able to understand your question. Could you elaborate? Thanks, Erik Raghuram Kanadam wrote: >Erik, > If prepopulation is an issue we are dealing with quit often, why cant we have > a method sim

Re: Tag question (JSP organization)

2004-07-25 Thread Erik Weber
ml:form is called? -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 2:17 AM To: Struts Users Mailing List Subject: RE: Tag question (JSP organization) -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 20

RE: Tag question (JSP organization)

2004-07-25 Thread Raghuram Kanadam
: Struts Users Mailing List Subject: RE: Tag question (JSP organization) > -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 1:25 PM > To: Struts Users Mailing List > Subject: Re: Tag question (JSP organization) > > > H

RE: Tag question (JSP organization)

2004-07-23 Thread Raghuram Kanadam
Thanks a zillion. Will take time to think it through though. The weekend must be a good time for this! :) Hail Erik :O -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 12:13 AM To: Struts Users Mailing List Subject: Re: Tag question (JSP

RE: Tag question (JSP organization)

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 1:25 PM > To: Struts Users Mailing List > Subject: Re: Tag question (JSP organization) > > > Haha! Thanks Jim for your usual wit and insight. I will take > y

Re: Tag question (JSP organization)

2004-07-22 Thread Erik Weber
ul for the Java community at large. I think we are collectively heading for great things. I just don't want us to program ourselves out of a job! Jim Barrows wrote: -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 11:43 AM To: Struts Users M

RE: Tag question (JSP organization)

2004-07-22 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 11:43 AM > To: Struts Users Mailing List > Subject: Re: Tag question (JSP organization) > > > Sure, Raghuram. > > Caution: long post! > > >

Re: Tag question (JSP organization)

2004-07-22 Thread Erik Weber
hills, having always thought they were a myth. The manager will have to call in a stack trace expert, who will, at the rate of $700 per hour, begin to explain to all the remaining developers what a "stack" is . . . But seriously, hope this helps a newbie or two. Criticism is al

RE: Tag question

2004-07-22 Thread Raghuram Kanadam
If you had the time Erik would you explain your method of arranging JSPs by the actor, seemed a beautiful approach. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 1:16 AM To: Struts Users Mailing List Subject: Re: Tag question Sorry if this

Re: Tag question

2004-07-21 Thread Erik Weber
om: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:32 AM To: Struts Users Mailing List Subject: Re: Tag question Sorry, I should have explained better what I am doing. My controller Servlet is mapped to /services/* All requests for JSP pages go through the controller, via action map

RE: Tag question

2004-07-21 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 11:32 AM > To: Struts Users Mailing List > Subject: Re: Tag question > > > Sorry, I should have explained better what I am doing. > > My controller

Re: Tag question

2004-07-21 Thread Erik Weber
Sorry, I should have explained better what I am doing. My controller Servlet is mapped to /services/* All requests for JSP pages go through the controller, via action mappings. The actions have paths like: /usecase/view_edit_page /usecase/save_existing_record /usecase/view_add_page /usecase/add_n

Re: Tag question

2004-07-21 Thread Christian D Hahn
Are you mapping the jsp to /services in the web.xml? if you do, getServletPath should return the path you are looking for. jsp /usecase/page.jsp jsp /services -Chris Erik Weber wrote: Hmm I must be doing something wrong. That's giving me the same value as Erez's exa

Re: Tag question

2004-07-20 Thread Erik Weber
: Struts Users Mailing List Subject: Re: Tag question Thanks guys! Seems like there was a method I used to call in my Servlets that would only return the Servlet portion of the request URI . . . I must have gone loco! Were you thinking of request.getContextPath() ? It won't give you jus

RE: Tag question

2004-07-20 Thread Jim Barrows
> -Original Message- > From: Erik Weber [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 2:17 PM > To: Struts Users Mailing List > Subject: Re: Tag question > > > Thanks guys! Seems like there was a method I used to call in > my Servlets > that

Re: Tag question

2004-07-20 Thread Erik Weber
riginal Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 10:56 PM To: Struts Users Mailing List Subject: Re: Tag question Hmm I must be doing something wrong. That's giving me the same value as Erez's example. Strange, I would have expected it to give

Re: Tag question

2004-07-20 Thread atta-ur rehman
howdy Erik! well, i was actually answering your original question about how to set a var using and scriptlet! As Erez has mentioned you'd need to use some String.substring() to do the trick! ATTA On Tue, 20 Jul 2004 16:56:13 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > Hmm I must be doing so

RE: Tag question

2004-07-20 Thread Erez Efrati
0:56 PM To: Struts Users Mailing List Subject: Re: Tag question Hmm I must be doing something wrong. That's giving me the same value as Erez's example. Strange, I would have expected it to give me "/services". I wonder how I am causing it to give me "/usecase/page.jsp".

Re: Tag question

2004-07-20 Thread Erik Weber
Hmm I must be doing something wrong. That's giving me the same value as Erez's example. Strange, I would have expected it to give me "/services". I wonder how I am causing it to give me "/usecase/page.jsp". atta-ur rehman wrote: Hi Erik, This one worked for me: <%= request.getServletPat

RE: Tag question

2004-07-20 Thread Erez Efrati
<% ... the code .. %> You could also have you action prepare this path variable and put it on the request scope. Erez -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 10:38 PM To: Struts Users Mailing List Subject: Re: Tag question

Re: Tag question

2004-07-20 Thread atta-ur rehman
Hi Erik, This one worked for me: <%= request.getServletPath() %> HTH, ATTA On Tue, 20 Jul 2004 16:20:30 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > How can I set a variable (I assume with c:set) that will hold the value > of request.getServletPath, so that I can use it in el ta

Re: Tag question

2004-07-20 Thread Erik Weber
Hmm actually that renders everything *after* the servlet path, oddly. My controller is mapped to /services/*. I need a var that is equal to "/services". The example below is printing out the end of the path -- "/usecase/page.jsp" Erik Erez Efrati wrote: Try the following: Regards, Erez -Origin

RE: Tag question

2004-07-20 Thread Erez Efrati
Try the following: Regards, Erez -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 10:21 PM To: Struts Users Mailing List Subject: Tag question How can I set a variable (I assume with c:set) that will hold the value of request.getServletPath