Struts2 localization

2009-04-23 Thread Johnson nickel
Hi all, I want to know about struts 2 localization. I have seen the struts 2 documentation i'm not getting clear idea. Can anybody provide the basic steps for implementing this localization concept. -- View this message in context: http://www.nabble.com/Struts2-localization-tp2

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. >

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: 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 Denis Cabasson
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 For additi

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: 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. # struts.l

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 ü (which is the corresponding HTML entity). The issue is that you were using that in URL that was URL-encoded. So you ü is transformed to %26%23xFC%3B (with %26=& , ...). So in the case you are using the value of a pr

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 rec

Re: HTML:errors

2009-04-23 Thread Lukasz Lenart
2009/4/23 McDowell, Paula : > Is there a way to check the 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: Regards -- Lukasz http:/

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 List items = new ArrayList(); private int tot; private int page = 0; private int size = 1; private List pages = new ArrayList(); public AllItem() {

Re: pagination in struts2

2009-04-23 Thread Andy Sykes
I found I had to use the 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 the va

HTML:errors

2009-04-23 Thread McDowell, Paula
All, Is there a way to check the 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 access the lin

Re: pagination in struts2

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

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 wrote: > u have to first create TestList for the code to work > > On Thu, Apr 23, 2009 at 11:36 AM, Stefano w

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 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: > > org.ap

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, 200

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: /jsp/shop

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 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 (2.5.x, 2

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. -- ht

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 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 >> else >> I

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 me

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: ** * Items per page * That works the first time, but doesn't work after that. Does anyone know what could be causing that? Also, the reload doesn't work at all if the sx

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, b

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 But what does escape="false", actually? > -Ursprüngliche Nachricht- > Von: juergen.l...@bmw.de [mailto:juergen.l...@bmw.de] > Gesendet: Donnerstag, 23. April 2009 07:51 > An: user@struts.apache.org >