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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
> -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
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
> -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!
>
>
>
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
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
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
> -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
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
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
: 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
> -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
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
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
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".
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
<% ... 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
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
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
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
34 matches
Mail list logo