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
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;
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
> 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
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
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
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
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:
>
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
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"
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.
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
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
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
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
>
> --
Is there a searchable archive for this mailing list?
- Bill
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
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.
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
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
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 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
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
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
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
25 matches
Mail list logo