AW: s:url, s:param and german umlauts

2009-04-23 Thread Juergen.Leeb
Hello, I have solved the problem. There is to set escape=false in s:property, like s:param name=titles:property value=%{title} escape=false //s:param But what does escape=false, actually? -Ursprüngliche Nachricht- Von: juergen.l...@bmw.de [mailto:juergen.l...@bmw.de] Gesendet:

Cannot download struts 1.2.9 binary

2009-04-23 Thread Steve Bosman
Hi, I want to download struts 1.2.9 from the binaries site: http://archive.apache.org/dist/struts/binaries/ , but both the zip and tarball refuse to open for me (I'm on Ubuntu 8.10). Is there somewhere else I can obtain clean binaries from? A colleague has managed a partial extract using WinZip,

using bind to submit a form

2009-04-23 Thread Alexander Kostadinov
Hi All, I am trying to get a form to submit and a div to be reloaded when a s:select item is changed: *sx:div id=deviceLogPage* *s:form action=deviceLog id=logsPerPageSelectForm theme=simple s:hidden name=nodeNumber value=%{nodeNumber} / s:select id=selectId name=logsPerPage theme=simple

Re: Cannot download struts 1.2.9 binary

2009-04-23 Thread Dave Newton
Steve Bosman wrote: I want to download struts 1.2.9 from the binaries site: http://archive.apache.org/dist/struts/binaries/ , but both the zip and tarball refuse to open for me (I'm on Ubuntu 8.10). Is there somewhere else I can obtain clean binaries from? That's odd; they both work fine for

Re: Cannot download struts 1.2.9 binary

2009-04-23 Thread Wes Wannemacher
On Thu, Apr 23, 2009 at 10:14 AM, Dave Newton newton.d...@yahoo.com wrote: Steve Bosman wrote: I want to download struts 1.2.9 from the binaries site: http://archive.apache.org/dist/struts/binaries/ , but both the zip and tarball refuse to open for me (I'm on Ubuntu 8.10). Is there somewhere

Re: Cannot download struts 1.2.9 binary

2009-04-23 Thread Steve Bosman
I just checked them both on Kubuntu Jaunty RC and both the tar and the zip are intact for me... Maybe you pulled them from a bad mirror or there is a firewall giving you troubles? I've tried a few times now, with no luck, but I'll try again from home in case it is the work firewall. --

Re: Struts 2 Portlet - Intermittent Session Problems

2009-04-23 Thread Nils-Helge Garli Hegvik
Great! Thanks for reporting back. Nils-H On Wed, Apr 22, 2009 at 3:54 PM, Kofford, C Todd tkoff...@ku.edu wrote: Good news! I resolved this issue. Even though it was NOT a struts problem, I still wanted to post back to this forum the issue and resolution. It was being caused by a uportal

Re: pagination in struts2

2009-04-23 Thread Stefano
when i put % request.setAttribute( test, new TestList(2, false) ); % netbeans said: cannot find construtcto TestList(int,bool) and the application goes in a exception: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the jsp file:

Re: pagination in struts2

2009-04-23 Thread Jim Kiley
Lots of possibilities here:* you need to have a class named TestList in your application * you need a constructor for your TestList class that accepts an int and a boolean as its arguments * you need to be sure you are appropriate importing the reference to TestList in your JSP On Thu, Apr 23,

Re: pagination in struts2

2009-04-23 Thread Bhaarat Sharma
u have to first create TestList for the code to work On Thu, Apr 23, 2009 at 11:36 AM, Stefano elste...@gmail.com wrote: when i put % request.setAttribute( test, new TestList(2, false) ); % netbeans said: cannot find construtcto TestList(int,bool) and the application goes in a exception:

Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
emm i've a list in my session called items. so i'd write a ok, i'd understand, now works. anyway, how can i create the page number below? On Thu, Apr 23, 2009 at 17:40, Bhaarat Sharma bhaara...@gmail.com wrote: u have to first create TestList for the code to work On Thu, Apr 23, 2009 at

Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
i done this: this is the class taht create the list private ListItem items = new ArrayListItem(); private Integer resultSize; public AllItem() { } @Override public String execute() throws Exception { items= mgmt.getAllItem(); resultSize=getItems().size();

HTML:errors

2009-04-23 Thread McDowell, Paula
All, Is there a way to check the html:errors/ field in the jsp for not empty? I only want to display an html group if the errors field is empty. I'm using Struts 1.1. Thanks, Paula Private and confidential as detailed here: http://www.sug.com/disclaimers/default.htm#Mail . If you cannot

Re: pagination in struts2

2009-04-23 Thread Andy Sykes
I found I had to use the s:set tag to set the object in the request scope before displaytag could see it, since displaytag doesn't know about the Value Stack (maybe it should?). Confusingly, displaytag gives you that message if it can't see the variable you're referencing, as well as if

Re: pagination in struts2

2009-04-23 Thread Stefano Tranquillini
i've done a pagination by myself. is an Alpha relase :D, not tested but u can set size and page to display: action: private ListItem items = new ArrayListItem(); private int tot; private int page = 0; private int size = 1; private List pages = new ArrayList(); public

Re: HTML:errors

2009-04-23 Thread Lukasz Lenart
2009/4/23 McDowell, Paula paula.mcdow...@sug.com: Is there a way to check the html:errors/ field in the jsp for not empty?  I only want to display an html group if the errors field is empty.  I'm using Struts 1.1. I've been using such structure: logic:messagesPresent

Re: pagination in struts2

2009-04-23 Thread denis cabasson
Display tag is great for table pagination. If you are looking for pagination without tables, I'd recommend the pager tag library : http://jsptags.com/tags/navigation/pager/index.jsp Custom coding is my least favorite way of solving an issue. To extract a variable from an action to the page, I'd

Re: s:url, s:param and german umlauts

2009-04-23 Thread denis cabasson
Hi, Escape is escaping you text in an HTML friendly way. your ü was tranformed to #xFC; (which is the corresponding HTML entity). The issue is that you were using that in URL that was URL-encoded. So you #xFC; is transformed to %26%23xFC%3B (with %26= , ...). So in the case you are using the value

RE: s:url, s:param and german umlauts

2009-04-23 Thread Martin Gainty
BUG found in URL.java where setDefaultEncoding method is missing should have: @Inject(StrutsConstants.STRUTS_I18N_ENCODING) public void setDefaultEncoding(String encoding) { defaultEncoding = encoding; } attempts at setting Encoding in struts.properties e.g. #

debugging jsp pages with struts html tags

2009-04-23 Thread Bhaarat Sharma
Is there a way to debug jsp pages that have struts2 html tags??

Re: debugging jsp pages with struts html tags

2009-04-23 Thread Denis Cabasson
s:debug / is usually helpful (without being a real debugger). Denis. Bhaarat Sharma a écrit : Is there a way to debug jsp pages that have struts2 html tags?? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: debugging jsp pages with struts html tags

2009-04-23 Thread Dave Newton
Bhaarat Sharma wrote: Is there a way to debug jsp pages that have struts2 html tags?? Sure, most IDEs have JSP debuggers, there's the debug tag, etc. How best to go about it probably depends on what the actual issue is. Dave

RE: debugging jsp pages with struts html tags

2009-04-23 Thread Martin Gainty
set struts.properties struts.devMode = true then turn on debug for xml or console with http params ?debug=xml or ?debug=console to the URL http://struts.apache.org/2.x/docs/debugging.html Martin Gainty __ Disclaimer and Confidentiality/Verzicht und

Re: Struts 2.0 autocompleter WW-2222 issue workaround

2009-04-23 Thread beren7
I was so stupid I was using listKey in the wrong way. keyName *IS* the name of the hidden field than contains the id I need to submit. Documentation is clear, but I think I was confused by the fact that listKey attribute works in a different way in standard combobox. beren7 wrote: Hello.