OGNL Method calls & class static properties

2008-03-20 Thread Michael Gagnon
Is it valid to, within the scope if a s:if tag, to: a) Call non getter/setter methods on a bean on the stack b) Reference some unrelated class' public static field (without a getter method) To give the situation some context, I'm attempting to do something similar to the following

RE: submit and cssStyle

2008-03-27 Thread Michael Gagnon
Would: not work? -Original Message- From: Brian Relph [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 2:33 PM To: Struts Users Mailing List Subject: s:submit and cssStyle Hello, I am trying to add a cssStyle to my button - that includes an : ) no-repeat;" action="canc

RE: Two buttons on same row

2008-04-11 Thread Michael Gagnon
Edit your struts.xml to reflect the following: http://struts.apache.org/dtds/struts-2.0.dtd";> ... ... The behavior should be more as you expect after that. You will lose things like the label property on textfields though. In that case you just type it outside like: ... U

Advantage of prepare()?

2008-04-16 Thread Michael Gagnon
I've been working with struts2 for about 2 months and so far I've been using the preparable interface to populate any data the resulting page wants to display. I've used the execute method to do non-visible work and determine a result (which controls flow). I'm wondering if this is the intended

RE: Problem with Select tag

2008-04-16 Thread Michael Gagnon
Can you show your struts xml, calling java action, and resulting jsp code? I've noticed error messages like that whenever ANYTHING was wrong on a page with a select box -- completely independent of anything to do with the select box. So I think whatever you changed MAY have broken something else an

Eclipse plugins to verify xml/jsp at compile time?

2008-04-16 Thread Michael Gagnon
Is there any plugin support for eclipse that can help validate struts2 configuration? So if I have a struts.xml mapping like: ... Then some build-time plugin might check and see the userAccounts.action.LoginUserAction class does not exist Or perhaps a struts tag in a JSP might look like: ...

Redirect-Action type result warns of caught exception when passing param

2008-04-30 Thread Michael Gagnon
My relevant mapped action look like: /jsp/admin/internalOrders/viewLineItem.jsp GetLineItem /admin/internalOrders true ${id} The 'GetLineItem' action works correctly when given an 'id' parameter. No exce

Struts Taglib

2008-05-06 Thread Michael Gagnon
I've added a custom taglib in my project. One of these tags does some logic to generate a series of links. Given one target URL, I want to create X links to that URL with one changed parameter. If the given URL has parameters, I want them to all be preserved except for one named 'pageNumber' which

2 Dimensional arrays?

2008-05-09 Thread Michael Gagnon
Is it possible to get back 2D arrays from a form? I want to be able to have a table with some number of rows. Each row has a 'grouping' field which the user can enter a number in. Each row will also have a dynamic 'foo' column which will have a button to add additional 'foo' values. Some javasc

RE: 2 Dimensional arrays?

2008-05-09 Thread Michael Gagnon
cript. That could potentially entail a large number of changes, though... Or, another JavaScript solution, one that doesn't entail switching to any kind of AJAX, would be to have a script that concatenates all of one row's values into a single string, and then have a single-dimensional a

Dojo taglib?

2008-05-13 Thread Michael Gagnon
Reading http://struts.apache.org/2.x/docs/ajax-tags.html, this claims (reasonably) that I must add <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> in order to use the sx ajax tags. but it appears that the /struts-dojo-tags uri is not available to me. Eclipse doesn't see it, and I don't see such a

Submitting a form without selecting checkboxes yields 'Input' result

2008-05-20 Thread Michael Gagnon
My JSP resembles: ... ... ... ... ... ... My action resembles: ... public class ApproveItemsAction extends ActionSupport { private Integer[] approved; private Integer[] itemsPresent;

RE: Submitting a form without selecting checkboxes yields 'Input' result

2008-05-20 Thread Michael Gagnon
eckboxes yields 'Input' result Michael Gagnon wrote: > My JSP resembles: > > > > > >status="stat" id="next"> > > ... >required="false"/> >

Cannot use multiple s:action tags?

2008-06-04 Thread Michael Gagnon
When I attempt to use more than 1 s:action tag on a page, I just get back a blank page - no error, no console output, just nothing. My page just looks like: If I just use one action (eith

RE: [OT] Re: Action mapping not found - eclipse configuration problem???

2008-06-10 Thread Michael Gagnon
I've had a similar problem in the past where a co-worker pulling the project from source control would see action mapping not found errors -- which baffled me because I didn't get them. On deleting my target folder and re-warring, tomcat then picked up the errors. This was because eclipse project=>

RE: Custom interceptor not firing

2008-06-10 Thread Michael Gagnon
You don't have any action mappings (that I see), so there's nothing for these interceptors to apply to. Add the following to your web.xml: struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp stru

RE: select tag list listKey and listValue usage

2008-06-11 Thread Michael Gagnon
I'm not sure that makes sense. At the end, the client is just getting some html with a regular 'option' tag in it. The best you can do is set pass some unique id for the key and then fetch the object back when the form is submitted with the unique key -Original Message- From: akash agrawal