Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Westerman
I am trying to use buttons to open a URL in another window, and also to execute some JavaScript, and I can't get either to work with onclick. Neither of these onclick actions seem to be doing anything. Can someone please tell me what I'm doing wrong, or if there's a better way t

Re: Can't get onclick to work with buttons in Struts

2010-10-20 Thread Dave Westerman
Never mind, stupid user trick! I messed up, it's working now (NoScript was blocking scripts on localhost, and I didn't notice - DUH!) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Struts nested and tags

2010-10-27 Thread Dave Westerman
I am trying to use the tag to allow uploading a file to the server. However, this tag has to be within a larger overall form. ... ... However, whenever I use the above code, I get the following error when I click on the 'Upload File' button: Invalid field value for field "up

Re: Struts nested and tags

2010-10-28 Thread Dave Westerman
Thanks, Maurizio! That was my problem, I never even noticed that. > > The first form doesn't contains enctype attribute. Did you try to set > it to multipart/form-data? >

Re: Struts nested and tags

2010-10-28 Thread Dave Westerman
Re: Struts nested and tags > > I wrote: > > If you're not, the entire form needs to reflect it'll be uploading a file. > > ... > > On Thu, Oct 28, 2010 at 8:53 AM, Dave Westerman wrote: > > Thanks, Maurizio! That was my problem, I never even notic

Setting and Getting Variables

2010-11-16 Thread Dave Westerman
I am having a lot of trouble getting my head around how to access the different variables in Struts and JSP, and it's causing me all kinds of problems. All I am trying to do is set a variable in my page from a variable in my Action class, in order to use it at various places in my page. The