RE: Display only 100 chars of a string

2009-06-22 Thread Jon Pearson
use i don't see anything. > I'm inside an iterator , with this thing works value="%{description}" /> with yours no. > seems that description is empty when i do value="@java.lang.str...@format('%.100s', description)" /> > > On Mon, Jun 22,

RE: Display only 100 chars of a string

2009-06-22 Thread Jon Pearson
encountred. i > tried to put \" but doesn't work. > > On Mon, Jun 22, 2009 at 18:00, Jon > Pearson wrote: > > description)" /> > > should work (check > > > http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html > > for

RE: Display only 100 chars of a string

2009-06-22 Thread Jon Pearson
sers Mailing List > Subject: Re: Display only 100 chars of a string > > On Mon, Jun 22, 2009 at 17:46, Jon > Pearson wrote: > > String.format("%.100s", s); > how can i put this thing in the jsp? > > > -- > Stefano > >

RE: Display only 100 chars of a string

2009-06-22 Thread Jon Pearson
That would cause an IndexOutOfBoundsException if the string was shorter than 100 chars. Try this instead: String.format("%.100s", s); That would return up to 100 characters from the beginning of the string 's'. > -Original Message- > From: Avlesh Singh [mailto:avl...@gmail.com] > Sent

RE: STRUT2

2009-06-17 Thread Jon Pearson
Perhaps what you want is a ? > -Original Message- > From: cmoreno [mailto:cristina.moren...@gmail.com] > Sent: Wednesday, June 17, 2009 1:02 PM > To: user@struts.apache.org > Subject: STRUT2 > > > Hi > I have a problem with tag. How can I use into > this tag 's value > special char

RE: Option transfer select (WORKAROUND FOUND)

2009-06-17 Thread Jon Pearson
h; i++) { 120 list.options[i].selected = true; 121 } 122 123 var form = document.getElementById("update"); 124 form.submit(); 125 } Which I call in the onclick="" handler for my form submission. > -----Original Message- > From: Jon Pearson > Sent: Wednesday, June 17, 20

Option transfer select

2009-06-17 Thread Jon Pearson
I am trying to get an option transfer select control to work, but I'm having difficulty getting the results back out of it. It looks like the control passes values in the two lists back to the server by selecting all items in each list and then letting the standard form submission mechanism do its

RE: Newbie (possibly RTFM) issue

2009-06-15 Thread Jon Pearson
Also, in tags, you don't need to enclose the test in %{} because it is evaluated anyway. Not that it'll change your result at all, just thought I'd save you the extra couple of keypresses. > -Original Message- > From: Wes Wannemacher [mailto:w...@wantii.com] > Sent: Monday, June 15, 2

RE: File Upload in Mozilla

2009-06-02 Thread Jon Pearson
You're not the only one annoyed by this, but it's a security fix. Here's someone else's opinion on it: http://codangaems.blogspot.com/2008/06/firefox-3s-file-upload-box.html And the security vulnerability description: http://secunia.com/advisories/20442/ Sorry to say, you can't do what you want t

RE: struts2 on jboss java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

2009-05-20 Thread Jon Pearson
; ontextValv > e.java:191) > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost > Valve.java > :128) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport > Valve.java > :102) > > org.apache.catalina.core.StandardEngineValve.

RE: struts2 on jboss java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

2009-05-20 Thread Jon Pearson
a:447) java.lang.Thread.run(Thread.java:619) I have no idea DefaultActionMapper would be throwing a NullPointerException, though... > -Original Message- > From: Jon Pearson > Sent: Wednesday, May 20, 2009 12:26 PM > To: Struts Users Mailing List > Subject: RE: struts2 on jboss java.lang.

RE: struts2 on jboss java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable

2009-05-20 Thread Jon Pearson
I'm having this same problem on Tomcat 6. Here's the stack trace: javax.servlet.ServletException: org/apache/struts2/util/ObjectFactoryDestroyable at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:294) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(

RE: I18n blew up

2009-05-19 Thread Jon Pearson
encounter this issue in the future. > -Original Message- > From: Jon Pearson > Sent: Tuesday, May 19, 2009 5:04 PM > To: Struts Users Mailing List > Subject: RE: I18n blew up > > Thanks, but the problem is definitely Eclipse. It was working > last week, and now it isn&

RE: I18n blew up

2009-05-19 Thread Jon Pearson
à la > manipulation, nous ne pouvons accepter aucune responsabilité > pour le contenu fourni. > > > > > > Subject: RE: I18n blew up > > Date: Tue, 19 May 2009 16:04:15 -0400 > > From: jon.pear...@sixnet.com > > To: user@struts.apache.org > > >

RE: I18n blew up

2009-05-19 Thread Jon Pearson
o get Eclipse to behave properly again? > -Original Message- > From: Jon Pearson > Sent: Tuesday, May 19, 2009 4:04 PM > To: Struts Users Mailing List > Subject: RE: I18n blew up > > Upon further examination, it looks like 'struts.properties' > i

RE: I18n blew up

2009-05-19 Thread Jon Pearson
Upon further examination, it looks like 'struts.properties' is not being loaded -- When I cause an exception, I don't see the development-mode data that I would expect for having this line in that file: struts.devMode = true Still very confused. > -Original Message- &

I18n blew up

2009-05-19 Thread Jon Pearson
I moved away from the web side of my project for a couple of days to take a break, and now as I come back, I18n has completely stopped working. In 'struts.properties' I have the line struts.custom.i18n.resources = global-messages And in 'global-messages.properties' I have text like this i18n.pr

RE: Dynamic property names

2009-05-08 Thread Jon Pearson
e property with that name from the object #object, you can retrieve it by writing "#variable(#object)". Hope this is useful to others! ~Jonathan > -Original Message- > From: Jon Pearson > Sent: Thursday, May 07, 2009 1:14 PM > To: Struts Users Mailing List > S

RE: Align issues in struts 2 UI atgs

2009-05-08 Thread Jon Pearson
If it's in a table, you need to place each of those elements in its own . Here's a version of your code that could work like this: ~Jonathan > -Original Message- > From: Murugesh [mailto:muruges...@gmail.com] > Sent: Friday, May 08, 2009 8:26 AM > To: Struts Users

RE: Date/time formatting

2009-05-08 Thread Jon Pearson
Nevermind, I was reading it wrong; when using those format strings, they belong in tags, not in . Sorry, and thanks! > -Original Message- > From: Jon Pearson > Sent: Friday, May 08, 2009 7:53 AM > To: Struts Users Mailing List > Subject: RE: Date/time formatting >

RE: Date/time formatting

2009-05-08 Thread Jon Pearson
ing.net] > Sent: Thursday, May 07, 2009 9:03 PM > To: Struts Users Mailing List > Subject: Re: Date/time formatting > > http://struts.apache.org/2.1.6/docs/formatting-dates-and-numbers.html > > Jon Pearson schrieb: > > Right, but I don't want to specify the form

Dynamic property names

2009-05-07 Thread Jon Pearson
I am trying to build out a table of values. I would like the user to be able to choose which columns are visible, and to re-order them (not interactively, on a separate page). My initial method for implementing this looks something like: User preferences: property1 property2 ... And then somethin

RE: Date/time formatting

2009-05-06 Thread Jon Pearson
pour le contenu fourni. > > > > > > Date: Wed, 6 May 2009 14:04:33 -0400 > > From: terry.gard...@sun.com > > Subject: Re: Date/time formatting > > To: user@struts.apache.org > > > > java.text.SimpleDateFormat formats a java.util.Date according to a

Date/time formatting

2009-05-06 Thread Jon Pearson
If I wanted to output a date/time value in the user's locale, is there a simple way to do that? I see there is a tag which would be helpful for getting the date format correct without manually specifying it, but what about a similar tag? Am I going to need to manually specify the standard date fo

RE: Radio button grouping in Struts 2

2009-05-04 Thread Jon Pearson
> Hi all, > > I have a page which iterates over a collection of questions, > with each question having a number of radio buttons which can > be used to select the answer to that question. For example: > > Question 1: Unanswered O Yes O No O > Question 2: Unanswered O Yes O No O > etc..

RE: OGNL in HTML tags

2009-05-01 Thread Jon Pearson
> > Dave Newton wrote: > > > "> > > > > Minor addendum: > > > > IMO when iterating over a collection of model objects a > status lookup > > like this would be a matter of querying the device, rather than > > providing a lookup based on the device ID. > > > > If device statuses need to be mapp

RE: OGNL in HTML tags

2009-05-01 Thread Jon Pearson
> Dave Newton wrote: > > "> > > Minor addendum: > > IMO when iterating over a collection of model objects a > status lookup like this would be a matter of querying the > device, rather than providing a lookup based on the device ID. > > If device statuses need to be mapped to CSS classnames I'

RE: OGNL in HTML tags

2009-05-01 Thread Jon Pearson
> > I'm trying to colorize table rows in a JSP based on the result of a > > function call into the Action. Here's what I want to do: > > > > > > ... > > > > > > And have the function "String getStatus(long deviceID) { > ... }" look > > up the status of a device and return a CSS class name (s

OGNL in HTML tags

2009-04-30 Thread Jon Pearson
I'm trying to colorize table rows in a JSP based on the result of a function call into the Action. Here's what I want to do: ... And have the function "String getStatus(long deviceID) { ... }" look up the status of a device and return a CSS class name (such as 'normal', 'warning', or 'error').