You should have a property in your form bean where the user selection will
go. In this case the property is name
html:select size=1 property=Property in the form bean to hold the
selection
multiple=false
html:options collection=EDITORS property=name
labelProperty=name/
/html:select
Mohan
Hi
Can I use logic:iterate and indexed properties with display tag sorting ?
Thanks,
Mohan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 11/21/2003 09:25 PM Dave Hodson wrote:
A question for the list:
I have an input form, which is handled via Struts and the input is validated,
URLEncoded with UTF-8 and stored in a DB
At a later date, the user can modify their input. The input is displayed with an
The collection that you want to iterate through and the form property
aren't linked as such only when you nest the html:options tag in the
html:select tag
So your html:select form property is like any other form property, and
when submitted will only the form property will be set to only one
Hi,
My application is not able to find the tag libraries.
The tag libraries lie in the WEB-INF directory of the
application and refer to a directory on another
server. These two servers are able to connect with
one another.
I am getting exceptions like
info ( 5840): JSP: JSP1x compiler threw
You mean there are no equivalents for the Struts HTML tags in the JSTL?
-Original Message-
From: Manish Singla [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 8:08 PM
To: Struts Users Mailing List
Subject: Re: JSTL
You may replace most of Logic tags/Bean tags with JSTL.
You
Hi Melanie,
don't really see anything wrong right off the bat, but let's walk through what has to
be configured:
Place all your tlds in the WEB-INF directory (looks good here)
Place all required struts library JARs in the lib directory of your web appl
Configure your web.xml to include the
That's right. It's important to realize that most non-trivial
applications will often use more than one tag library. There is no good
reason to try to restrict yourself to a single tag library.
In the case of Struts, it's very beneficial to use the Struts tag
library along with the JSTL. In
Hi,
I would like to avoid having to formulate my URLs as *.do, or even
/do/*. I want to have simple names like /foo and /bar, names
that no single pattern could match. The reason is that I don't want
to expose implementation details in my URLs, because an implementation
could change and then my
Just for clarification to others, your last line abbreviates the fact
that in a Servlet 2.3 container, it's not necessary to include the TLDs,
either in the /WEB-INF directory, or referenced in the web.xml, if
you reference the canonical URI in the taglib directives in the JSP
pages. The
Thanks David.
I get a bit worried when the idea of mixing tag libraries pops up. I've had some bad
experiences with such practice. I'm not sure whether this was partly due to my lack of
understanding of the libraries I used, but for example, I frequently found that beans
created with the
Have a look at this filter that Matt Raible came up with:
http://marc.theaimsgroup.com/?l=struts-userm=106399831922108w=2
Alan Bram wrote:
Hi,
I would like to avoid having to formulate my URLs as *.do, or even
/do/*. I want to have simple names like /foo and /bar, names
that no single
Rajat,
I haven't had any problems with DBCP. It's just that a different pool came
with Hibernate that I used in production by default. I'm using DBCP in
testing but I always close my development computer (my desktop) down at
night so I have no comments on how DBCP works in reality. I'm sure
hello all,
I am wanting to represent an existing object using a form and was wondering how to do
this.
My situation is displaying a customer's details in a form for the purpose of allowing
them to update them.
I cant think how I can populate the form tho.
Im new to struts and this list so i
Toby,
Where is your trouble? Do you not understand ActionForms? Are you worried
about how to transfer the data submitted and auto-populated into the
ActionForm into your business logic? Or is something else confusing you?
Regards,
David
-Original Message-
From: Toby Saville
David,
Perhaps I dont understand the full capabilities of ActionForms.
I am fine with creating a new customer from the contents of a form. But after this is
done (and, for eg, the user has used parts of the site) and they decide to change
their email address, how can i display (in the form)
Toby,
You could:
a) Have a Password field in your ActionForm. Then, you could lookup the
password, copy it into the ActionForm, and have the ActionForm display it in
your JSP when you show a html:text property=password/ field.
b) Save the password in a bean and print it out with a bean:write
David,
Thanks for your assistance.
I suppose im wondering if there is a way to set the values of my ActionForm
implementation variables(CustomerForm in my case) before the form is displayed, thus
automatically populating the form when it is displayed.
I am able to set the values of my form
Toby,
In your action, you can cast the ActionForm to the right type of form, then
use the set/get methods.
If your ActionForm is of type eg.FirstForm, in your Action's execute (or
perform if you're using an older verions of Struts) you can:
eg.FirstForm myForm = (eg.FirstForm) form;
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
Hi all,
Is there a way to use html:rewrite and not have it embed the jsessionid
on certain links (as with JavaScripts, images, or css style sheets which
don't really work well with resources that have arbitrary strings
attached to them -- that is, here's the issue:
script language=JavaScript
Hi,
I have the following definition in my tiles-defs.xml:
definition name=mainTemplate path=/mainTemplate.jsp
put name=title value=${title} /
put name=header value=/components/header.jsp /
put name=menu value=/componentes/menu.jsp /
put name=body value= /
put name=footer
hi,
how do i break the row according the number of data displayed, i.e i have 3
values in a row after 3 rows i have to go next row for display how can i do using only
struts without scriptlets. any example or link would be great help for me
thanks
naveen.
Hi,
I went through your recommendations. I am suspicious
that iWS 6.0 web server has problem with STRUTS (Kind
of bugs or unsupported versions). Do you have any
information about this?
Thank you!
Download Yahoo! Messenger
Are you talking about pagination? Show 3 on a page and then skip to the
next page? Sounds like you want the displaytag taglib. This examples does
10 items per page: http://www.displaytag.org/example-paging.jsp
Regards,
David
-Original Message-
From: Naveen S. Kumar [mailto:[EMAIL
25 matches
Mail list logo