Re: struts-tags Iterator usage

2012-07-25 Thread Justin Chin
Understood. I was not thinking about the conversion to HTML on the client side. Let me work with the suggestion to get my HTML syntax correct for submission. Thank you. On 7/25/2012 4:59 PM, Dave Newton wrote: On Wed, Jul 25, 2012 at 4:56 PM, Justin Chin wrote: I am not sure I understand.

Re: struts-tags Iterator usage

2012-07-25 Thread Dave Newton
On Wed, Jul 25, 2012 at 4:56 PM, Justin Chin wrote: > I am not sure I understand. The jsp does the job of displaying the data > correctly, but I must do additional work to submit the data by adding > additional markup?: > How would a framework know that an arbitrary number of fields named "first

Re: struts-tags Iterator usage

2012-07-25 Thread Justin Chin
Apologies. I understand now that text only is allowed. I am not sure I understand. The jsp does the job of displaying the data correctly, but I must do additional work to submit the data by adding additional markup?:

Re: struts-tags Iterator usage

2012-07-25 Thread Dave Newton
Totally illegible. In any case, if you want to "submit a list", you need to name your form fields using array notation, or at the very least, using object.property notation, e.g., peopleList.firstName. Otherwise you just have a bunch of fields named "firstName"--at best you'd get separate lists o

struts-tags Iterator usage

2012-07-25 Thread Justin Chin
I am trying to update a List of Person Objects via jsp. I have one Action Class used in the DispatchAction pattern. I begin the exercise with method1 which creates a new peopleList and populates each Person object in the list with a firstname. *public*String method1() *throws*Exception { Sy

Re: Including JSP page from a jar file that placed on /WEB-INF/lib

2012-07-25 Thread Paul Benedict
Omar, JSP does not support reading from bundled libraries. You must extract your content into your web application. Paul On Wed, Jul 25, 2012 at 2:23 PM, Omar Ngarigari wrote: > Hello, > > I would like know how to include a JSP page that was bundled in the jar file > (WEB-INF/lib) using struts

Re: Including JSP page from a jar file that placed on /WEB-INF/lib

2012-07-25 Thread Chris Pratt
Standard JSP doesn't allow for compiling directly from a jar file. There are three options (that I'm aware of): 1. Freemarker 2. Velocity 3. Java JSP Template Engine Switching to Freemarker or Velocity can have other advantages (in speed mainly), but it requires you to re-code your ent

Including JSP page from a jar file that placed on /WEB-INF/lib

2012-07-25 Thread Omar Ngarigari
Hello, I would like know how to include a JSP page that was bundled in the jar file (WEB-INF/lib) using struts2. I used s:include tag, but I got the error (Exception thrown during invlude of /common/header.jsp"  1 - web/common/header is in the jar file under WEB-INF/lib 2  - in the mypages.jsp,