Re: s:if test condition

2010-06-27 Thread Bill Bohnenberger
Yes, that is why I said "Since 'activated' is a String,..." On Sun, Jun 27, 2010 at 3:47 PM, Dale Newfield wrote: > lucas owen wrote: > >> Bill Bohnenberger >> >>> Since 'activated' is a String, try swapping your single& double

Re: s:if test condition

2010-06-26 Thread Bill Bohnenberger
Since 'activated' is a String, try swapping your single & double quotes, e.g. -Bill On Sat, Jun 26, 2010 at 11:28 AM, lucas owen wrote: > Hi Struts 2 users: > > I was wondering if you can use a s:if test based on a pojo's > attribute value: > > POJO: > > public class Warning{ > > String text;

version conflict?

2010-02-19 Thread Bill Bohnenberger
Struts 2 documentaion at * http://struts.apache.org/2.x/docs/building-the-framework-from-source.html* implies (at the bottom of the page) that only java 1.5 is required. But when I deploy my app to a tomcat 5.5.27 server using jdk 1.5.0_20, I get the UnsupportedClassVersionError below. Am I right i

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Bill Bohnenberger
> On Mon, Feb 1, 2010 at 11:09 AM, Bill Bohnenberger > wrote: > > Hi Jake, > > > > I have a custom table tag that needs Value Stack access, too. > > Here's how I do it: > > > > package... > > > > import org.apache.struts2.views.jsp.TagUt

Re: struts 2, writing a custom tag that is able to access objects in ActionContext using OGNL

2010-02-01 Thread Bill Bohnenberger
Hi Jake, I have a custom table tag that needs Value Stack access, too. Here's how I do it: package... import org.apache.struts2.views.jsp.TagUtils; import org.apache.struts2.util.MakeIterator; public class TableTag extends SimpleTagSupport { private String list; public void doTag() thr

Re: Struts, Tomcat, JNDI, JDBC without use of an ORM Library such as Hibernate

2010-01-08 Thread Bill Bohnenberger
Jazz, here's a lightweight package that so far has met all of my needs: http://butterfly.jenkov.com/ ... Cheers, Bill* * On Thu, Jan 7, 2010 at 4:30 PM, Jasvinder S. Bahra < bbdl21...@blueyonder.co.uk> wrote: > I'll echo the Spring suggestion. It simplifies Action-level programming by >> quite a

Re: Problem with value attribute in select tag

2009-12-18 Thread Bill Bohnenberger
I do not use the value attribute in my s:select tags & they work fine. I do always use the headerKey & headerValue attributes though. Incidentally, the preselected (user-selected) key value is taken (stored) using the name attribute so in your example your SelectAction should define "bla" and pro

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Bill Bohnenberger
What an amusing thread. It seems to me the only problem here is the arrogant SOB that decided to defy the Bean naming conventions. LOL. (No offense intended if he is present company :) With affection, Bill On Thu, Nov 26, 2009 at 8:31 AM, Robert Graf-Waczenski wrote: > Rafał Krupiński schrieb: >

Re: advice on building front-end rapidly

2009-11-09 Thread Bill Bohnenberger
I've used the standard edition for years, also. But for web projects I think the enterprise edition is better because I can run my web server (Tomcat) from within the IDE and therefore interactively debug servlet (in this case, struts2) code. - Bill 2009/11/9 Paweł Wielgus > Hi all, > i have be

Re: advice on building front-end rapidly

2009-11-09 Thread Bill Bohnenberger
Yes, this is frequently my workflow, also. I happen to use Dreamweaver because I am familiar with it and have it and it generates fairly clean HTML, but any such wysiwig editor would do I am sure. I suggest you avoid using MS Word to generate HTML, however, otherwise you will find the "clean it up"

Re: advice on building front-end rapidly

2009-11-08 Thread Bill Bohnenberger
I use Eclipse enterprise edition: http://eclipse.org/home/categories/index.php?category=enterprise - Bill On Sun, Nov 8, 2009 at 1:32 PM, Farshad Rabbani wrote: > > > Hi Dave, > > > > Why?! At the very least why wouldn't you use something that can edit and > > understand JSP, custom tags, etc.

Re: ognl problem with double value in form

2009-10-03 Thread Bill Bohnenberger
g with the new version we'll > have to address it. If it's a problem with an old version, try > updating to 2.1.8 jars. > > -Wes > > On Fri, Oct 2, 2009 at 7:43 PM, Bill Bohnenberger > wrote: > > I have a double in an action: > > > >private

ognl problem with double value in form

2009-10-02 Thread Bill Bohnenberger
I have a double in an action: private double dval; with mutators public double getDval() { return dval; } public void setDval (double dval) { this.dval = dval; } I have this form in my jsp page: Whenever I enter "0" or "0.0" in the text field, OGNL throws ognl.Method

Re: archive?

2009-09-25 Thread Bill Bohnenberger
Thanks, Antonio. On Fri, Sep 25, 2009 at 12:22 PM, Antonio Petrelli < antonio.petre...@gmail.com> wrote: > 2009/9/25 Dale Newfield : > > Bill Bohnenberger wrote: > >> > >> Is there a searchable archive for this mailing list? > > > > http://www.nabble

Re: archive?

2009-09-25 Thread Bill Bohnenberger
Thanks, Dale. On Fri, Sep 25, 2009 at 12:21 PM, Dale Newfield wrote: > Bill Bohnenberger wrote: > >> Is there a searchable archive for this mailing list? >> > > http://www.nabble.com/Struts---User-f206.html > > -Dale > > --

archive?

2009-09-25 Thread Bill Bohnenberger
Is there a searchable archive for this mailing list? - Bill

Re: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
I'll let someone else answer this... I've not jet used the convention plugin (too bleeding edge for me! :) On Thu, Sep 10, 2009 at 12:11 PM, Jim Collings wrote: > I also forgot to mention that this is a convention-plugin project. > > On Thu, Sep 10, 2009 at 3:10 PM, Jim Collings wrote: > > Will

Re: Chain a global result to an action?

2009-09-10 Thread Bill Bohnenberger
This works for me: DeadEnd ... deadEnd.jsp ... The entire action class is: @SuppressWarnings("serial") public class DeadEnd extends ActionSupport { } and when any action returns "error" the deadEnd.jsp page is displayed.

Re: uploading a .xls file

2009-09-10 Thread Bill Bohnenberger
Write code in your action class to copy the temp file. You'll have to respect your application server's containment rules: I simply copy the file to a permanent place in my application context. On Thu, Sep 10, 2009 at 12:59 AM, KIRTI CHOPRA wrote: > > Thank you so much but can you please tell me

Re: uploading a .xls file

2009-09-09 Thread Bill Bohnenberger
if you use name="file" in the tag, your variable names should be "file", "fileFileName" and "fileContentType" - Bill On Wed, Sep 9, 2009 at 10:45 PM, KIRTI CHOPRA wrote: > > hi > but does it make any difference it is just variable name if i am not wrong > but i am not sure about it also > pleas

Re: How to access enum in jsp?

2009-09-06 Thread Bill Bohnenberger
Ah ha! So when code the test attribute like this: test="%{state == @com.yata.yata.actionst...@list}" it works. Thanks, Pawel! - Bill P.S. That syntax sux :-) 2009/9/6 Paweł Wielgus > Hi Bill, > You are comparing string with enum by == operator, so it's always false. > Also if You see thi

How to access enum in jsp?

2009-09-06 Thread Bill Bohnenberger
How do I reference an enum variable in an test attribute? This is the situation, and the results I get: 1) I have a enum defined as public enum ActionState { NONE, INIT, LIST, ADD, EDIT, DELETE ... } 2) I have a variable of this type in my action class: ActionState stat

Re: problem uploading a text file

2009-09-04 Thread Bill Bohnenberger
ct the parameters into the action. > (*Chris*) > > On Fri, Sep 4, 2009 at 1:24 PM, Bill Bohnenberger >wrote: > > > Thanks, Chris, but I don't think that's the problem. I have another jsp > > page > > and associated action that uploads .jpg and .gif images ok

Re: problem uploading a text file

2009-09-04 Thread Bill Bohnenberger
he internal upload support of struts. So > what you actually need is: > > public void setUpload(String upload) > { > this.upload = new File(upload); > } > > (*Chris*) > > On Fri, Sep 4, 2009 at 11:40 AM, Bill Bohnenberger >wrote: > > > Ok, I

problem uploading a text file

2009-09-04 Thread Bill Bohnenberger
Ok, I'm sure I must be doing something dumb here, but I can't seem to find it. I'm have a problem uploading a simple text file... when I try to a file named "test.txt", I get an action error message "File upload error: invalid data." and all my file variables (see below) are null when the action me