RE: How Do I Create This Drop-Down List in Struts?

2003-11-30 Thread Mohan Radhakrishnan
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

Struts indexed properties and displaytag

2003-11-30 Thread Mohan Radhakrishnan
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]

Re: HTML tags/filter/UTF-8

2003-11-30 Thread Adam Hardy
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

Re: How Do I Create This Drop-Down List in Struts?

2003-11-30 Thread Mark Lowe
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

Error while accessing the application

2003-11-30 Thread Melanie Pfefer
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

RE: JSTL

2003-11-30 Thread Tarek M. Nabil
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

Re: Error while accessing the application

2003-11-30 Thread Jim Kennedy
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

RE: JSTL

2003-11-30 Thread Karr, David
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

can I avoid *.do in my URLs?

2003-11-30 Thread Alan Bram
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

RE: Error while accessing the application

2003-11-30 Thread Karr, David
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

RE: JSTL

2003-11-30 Thread Tarek M. Nabil
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

Re: can I avoid *.do in my URLs?

2003-11-30 Thread Jason Lea
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

RE: org.apache.struts.legacy.GenericDataSource

2003-11-30 Thread David Friedman
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

Representing Existing Objects In Forms

2003-11-30 Thread Toby Saville
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

RE: Representing Existing Objects In Forms

2003-11-30 Thread David Friedman
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

RE: Representing Existing Objects In Forms

2003-11-30 Thread 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)

RE: Representing Existing Objects In Forms

2003-11-30 Thread David Friedman
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

RE: Representing Existing Objects In Forms

2003-11-30 Thread Toby Saville
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

RE: Representing Existing Objects In Forms

2003-11-30 Thread David Friedman
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;

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

Is there a way to not append jessionid with html:rewrite

2003-11-30 Thread Joshua Long
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

recursive tiles

2003-11-30 Thread Felipe Nascimento
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

logic iterate

2003-11-30 Thread Naveen S. Kumar
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.

Re: Error while accessing the application

2003-11-30 Thread Melanie Pfefer
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

RE: logic iterate

2003-11-30 Thread David Friedman
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