Re: Getting Context within

2009-11-18 Thread Jon Wynacht
Yupthanks! On Nov 18, 2009, at 8:30 AM, Brian Thompson wrote: > Something like the following should work (double-check the syntax though!): > > <%@ page import="com.oe.wa.cal.bean.DownloadBean" %> >> <% >> >for (DownloadBean db: (List) > request.getAttribute("downloadList").iterator

Re: Question about objects in a JSP

2009-11-18 Thread Jon Wynacht
Ahhh...that's cool. Thanks! On Nov 18, 2009, at 12:29 PM, ben_979 wrote: > > > By 'old struts', I'm assuming 1.x ... > > In our application, our application sets values into the request with > request.setAttribute("varName", var) and then references the variables in > the jsp with (for example

dojo datetimepicker not invoking setter

2009-11-18 Thread Lee Clemens
Hello, It seems as though using a Dojo element is not invoking the setter in my action, and I am not certain why. I hope I am simply missing something? Struts 2.1.8, Tomcat 6.x, Firefox 3.5.x I have included the following jars in WEB-INF/lib, and have the following inside the tag of the action

s2: validation of checkbox a radio button

2009-11-18 Thread Ignacio de Córdoba
Hello, I am trying to use client side validations through ...-validation.xml in struts2 I have it working but only for text and file input fields. I need to validate if a checkbox is checked. using "required" or "requiredstring" validators always validates as the field as a value even if you don't

Re: s2: Validation xml file not being used when validating a method

2009-11-18 Thread ben_979
Apparently it isn't working as I expected. I would really like to understand how this works. Here is my form tag: Here is my struts.xml entry: ScheduleDetailAction_update Here is partial contents of my ScheduleDetailAction-ScheduleDetailAction_updateSchedule-validation.xml

Re: how to use one user input in two forms?

2009-11-18 Thread ben_979
Are you talking about two submits on the same form? That is definitely possible. This might help ... http://www.alanflavell.org.uk/www/trysub.html -- View this message in context: http://old.nabble.com/how-to-use-one-user-input-in-two-forms--tp26415809p26416182.html Sent from the Struts - User

Lazy Initialization Error

2009-11-18 Thread CRANFORD, CHRIS
I am trying to understand why my web application throws a LazyInitializationException when trying to lazily initialize a collection in an entity object. >From what I have read, I needed to setup a filter for Hibernate in my web.xml and since I am using JPA the filter was defined as follows: hi

how to use one user input in two forms?

2009-11-18 Thread fireapple
Dear all, I want to use a multiple select to ask user select the item they want. The items selected will be on a pdf file which will be sent as attachment of email (user can click "send email" button to send them). The user wants to confirm if the pdf is right before he sends it. Therefore, I

Re: Question about objects in a JSP

2009-11-18 Thread ben_979
By 'old struts', I'm assuming 1.x ... In our application, our application sets values into the request with request.setAttribute("varName", var) and then references the variables in the jsp with (for example) Then you can use the tags etc, Not sure if I answered your question... -- View th

Re: Getting Context within

2009-11-18 Thread Brian Thompson
Something like the following should work (double-check the syntax though!): <%@ page import="com.oe.wa.cal.bean.DownloadBean" %> > <% > for (DownloadBean db: (List) request.getAttribute("downloadList").iterator()) { >out.print(db.getSomeProperty()); > } > %> > > -Brian

Re: [ANN] Struts 2.1.8.1 Release

2009-11-18 Thread Mark Bargen
Wes Wannemacher wrote: > > I could be confused or just too tired, but when I go here - > > http://repo1.maven.org/maven2/org/apache/struts/struts2-core/2.1.8.1/ > > I see the artifacts... > My apologies. I've again run afoul of some screening in our enterprise HTTP proxy server, and my s

Getting Context within

2009-11-18 Thread Jon Wynacht
Hi, So I think I have a better way to ask my question ;-) Given something like this block of tags: How can I do something like this inside the : <%@ page import="com.oe.wa.cal.bean.DownloadBean" %> <% DownloadBean db = (DownloadBean) request.getAttribute("download")

Re: Struts2 online sources/ ebooks

2009-11-18 Thread Wes Wannemacher
On Wed, Nov 18, 2009 at 8:06 AM, Martin Gainty wrote: > > Ted Husted Struts In Action is the most intelligent of the offerings with > wonderfully comprehensive examples and a  thorough explanation of Model View > Controller > > http://www.manning.com/husted/ > > the best investment you will ever

RE: Problem in uploading file from stand-alone application

2009-11-18 Thread Rupesh Mankar
Thanks a lot jayakumar. I successfully uploaded binary file using Apache HTTPClient and could successfully receive uploaded file in action class of struts without any exception :) -Original Message- From: jayakumar ala [mailto:alajay...@gmail.com] Sent: Tuesday, November 17, 2009 9:09 P

RE: Struts2 online sources/ ebooks

2009-11-18 Thread Martin Gainty
Ted Husted Struts In Action is the most intelligent of the offerings with wonderfully comprehensive examples and a thorough explanation of Model View Controller http://www.manning.com/husted/ the best investment you will ever make Martin Gainty __

Re: Struts2 online sources/ ebooks

2009-11-18 Thread Halil Ağın
My friends and I writing some struts2 tutorials in turkish. www.struts2nedir.org I think it will help for turkish developers. halil. On Wed, Nov 18, 2009 at 9:31 AM, emil thushanga wrote: > check this one, > > http://www.rkcole.com/index.html > > Emil > > On Wed, Nov 18, 2009 at 10:48 AM, vik