RE: Converting a ResultSet to a List of POJOs

2003-09-07 Thread Hugh Brien
You could also consider using Torque. I believe it will generate a schema from an existing database that will allow you build a set of data aware objects. It also some good classes for working directly with XML. I wrote a simple Struts plugin to work with Torque. It's not as cool as Hibernate b

RE: request.getContextPath();

2003-09-07 Thread Mohd Amin Mohd Din
PostGraduate is still in development, WEB-INF is mapped from the IDE. Anyway, tried the request.getContextPath() on other pages with forms, works well. -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 6:31 PM To: Struts Users Mailing List

Re: Icon?

2003-09-07 Thread Max Cooper
Two things come to mind: 1. Do you want an icon that will show up in a browser when a user accesses your application/site? If so, you need to do something else -- the part of the servlet spec seems to indicate that it is for GUI tools (like your app server's management console) rather than for br

Create new nested bean instance

2003-09-07 Thread Nate Drake
Hi, What is the "proper" Struts way to implement create/update pages in the following scenario. You've got a Customer Form bean with the following properties: - First Name - Last Name - List of PhoneNumber Beans A PhoneNumber bean with these properties: - Country Code - Area Code - Number - De

RE: How to click on a button to link to a page?

2003-09-07 Thread hari_s
You can give the submit button different value, with the same property Then you validate it in your ActionClass and mapping it in struts-config.xml -Original Message- From: Rick Col [mailto:[EMAIL PROTECTED] Sent: Saturday, September 06, 2003 2:43 AM To: [EMAIL PROTECTED] Subject: How to

Re: Permanent forms

2003-09-07 Thread Yann Cébron
>It's works, but for my boolean properties modified by checkboxes, struts >needs to reset these properties before changing them. With my modification, >they stay activated even if I uncheck them. So my solution is now a problem. >How can I solve these 2 problems with only one solution? http://jak

Permanent forms

2003-09-07 Thread Emmanuel Potvin
Hi, I work on a struts site who administer my company suppliers. So the goal of the site is to modify suppliers settings. I want to make the supplierForm object in my session scope and don’t let struts reset him after each action. To make this, I added a property named permanent to my form. And in

Script variables as keys for mapped properties

2003-09-07 Thread Ross Sargant
Hi, I want to use a script variable as a key for mapped property access. I am trying to render an options list of provinces based on the current country id defined in my form bean. First I define it with This seems to work ok as <%="CountryId:"+currentCountryId%> is displaying the correct v

Searching facility questions

2003-09-07 Thread Marco Tedone
Ok, let's say that I would like to translate system's specific URLs (i.e. D:\Tomcat\webapps\foo\foo\bar.jsp and so on...) into web-context specific URLs (i.e. http://myServer/foo/foo/bar.jsp). Well, if I immagine to replace D:\Tomcat\webapps with http://myServer things seem quite easy. My first qu

Icon?

2003-09-07 Thread Bjørn T Johansen
I am trying to customize the icon my webapp is using by adding path-to-icon in my web.xml file, but nothing happens. What am I overlooking? Regards, BTJ

RE: Problem with tiles and protected jsps

2003-09-07 Thread Holman, Cal
Wes>> I accomplished Form based auth by defining a security constraint in web.xml for the Action path. SecurePages Security constraint for Admin /do/secure/* POST GET Cal http://www.calandva.com/

RE: [OT] HTTP 404 Not Found on Actions - SOLVED

2003-09-07 Thread Holman, Cal
Johan>> I use the default Tomcat 5.0.9 jk2.properties - which defines nothing allowing all the defaults to be used. Then in the Tomcat server.xml you need to enable jk2. The workers2.properties in Apache 2.0.45 is where any real changes are made. Here is the top part. I use a /d

RE: [SCAFFOLD] AccessBase, createKey and ResultSetMetaData JDBC d rive r problems

2003-09-07 Thread aies22
Thanks Ted, As always your advice was most helpful!!! The iBATIS DB layer package is great, though I'd rather stay with Scaffold version for DAO. BTW, some of the scaffold links on your site (husted.com) are currently not working. Noam -Original Message- From: Ted Husted [mailto:[EMAI

Re: Why is "No getter method for property" happening... damn.

2003-09-07 Thread Fumitada Hattori
Hi, I fixed it. It was becuase the method getList() was a staic method. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Why is "No getter method for property" happening... damn.

2003-09-07 Thread Fumitada Hattori
Hi gurus, I got a simple bean below. public class Company { private static ArrayList list; private int id; private String name; static{ list = new ArrayList(); list.add(new Company(0,"")); list.add(new Company(1,"MS")); list.add(new Company(2,"SUN"