pager question in struts2+Pager Taglib2

2009-02-02 Thread red phoenix
I use struts2.0.14 and Pager Taglib2.0, I want to use Pager Taglib2.0 in struts2 In action file public String search() throws Exception{ System.out.println("call search"); request.setAttribute("index","center"); request.setAttribute("pageUrl","/test/search.action"); return SU

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Dave Newton
Christopher Maloof wrote: Solved; it turns out that the tags in the form were somehow causing this problem. Yeah, the S2 form tags put everything in a table by default, so you would have had some funky HTML there... different browsers handle malformed HTML in different ways. Yay browsers.

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Christopher Maloof
Solved; it turns out that the tags in the form were somehow causing this problem. Chris On 2/2/2009 11:06 AM, Christopher Maloof wrote: Hello, I've just installed Struts 2.1.6, and I'm converting a form to use Ajax validation. It's mostly working nicely, except that the input fields and e

Apache User Authentication from Struts2

2009-02-02 Thread Robert Stenholt Mygind
Hi I have a website made in a script language, here I use Apache User Authentication for protecting some things, I works ok. but I want the user to login by a form instead. So I made a small struts project, with a page with a form, here I have username and password, I go into the db and make cert

Re: Problem with ArrayList's add() function

2009-02-02 Thread Dave Newton
sd9 wrote: I had been stuck with this problem for more than 24 hours [...] ... The stack trace should have pointed to the exact location and error, no? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For a

Struts 2 In Action Sample Application

2009-02-02 Thread SanJ.SANJAY
Has anyone here tried and tested the Sample Application code that comes for this book "Struts 2 In Action" ? I am having hard time to fix it. Currently I am facing the issues in applicationContext.xml file. This is the header for XML file that comes with sample application code "

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Musachy Barroso
The only thing I can think of, is extending DefaultActionMapper, extract the id from there, and add it to the mapping params, then plugin your mapper: musachy On Mon, Feb 2, 2009 at 11:48 AM, Greg Lindholm wrote: > > Thanks Jim, but I can't use a link, I need to submit the form as there are a

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Greg Lindholm
Thanks Jim, but I can't use a link, I need to submit the form as there are a bunch of other fields that need to get posted with the request. Jim Kiley wrote: > > How bout: > > > > Delete > > On Mon, Feb 2, 2009 at 11:37 AM, Greg Lindholm > wrote: > >> >> Yes Musachy, that is correct. So

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Jim Kiley
How bout: Delete On Mon, Feb 2, 2009 at 11:37 AM, Greg Lindholm wrote: > > Yes Musachy, that is correct. So is there some struts magic to do this? > > The only way I can think of doing this is to add some javascript to each > button that would set the id as a hidden parameter before doing th

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Greg Lindholm
Yes Musachy, that is correct. So is there some struts magic to do this? The only way I can think of doing this is to add some javascript to each button that would set the id as a hidden parameter before doing the submit. But I would prefer to do this without JS if possible. I guess what I'm th

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Musachy Barroso
Yeah, that's a good idea, you will find that under "Validation" (menu) -> Validation (ajax). musachy On Mon, Feb 2, 2009 at 11:22 AM, Christopher Maloof wrote: > The Firefox error console doesn't show any problems. I haven't tried this > showcase app (I'm pretty new to the framework) -- I guess

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Christopher Maloof
The Firefox error console doesn't show any problems. I haven't tried this showcase app (I'm pretty new to the framework) -- I guess I'll take a look and see if I can pin down any differences? Chris On 2/2/2009 11:14 AM, Musachy Barroso wrote: I just tried in showcase and they get cleared, is

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Musachy Barroso
What you need to do is pass a different parameter on each submit, not call a different method. musachy On Mon, Feb 2, 2009 at 11:06 AM, Greg Lindholm wrote: > > Thanks Miguel, but that doesn't sound workable with an arbitrary number of > buttons. > > Anyone else? > > I'm looking for a method of

Re: clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Musachy Barroso
I just tried in showcase and they get cleared, is there any javascript error on the page? musachy On Mon, Feb 2, 2009 at 11:06 AM, Christopher Maloof wrote: > Hello, > > I've just installed Struts 2.1.6, and I'm converting a form to use Ajax > validation. It's mostly working nicely, except that

clearing errors and input fields after Ajax validation in 2.1.6

2009-02-02 Thread Christopher Maloof
Hello, I've just installed Struts 2.1.6, and I'm converting a form to use Ajax validation. It's mostly working nicely, except that the input fields and errors don't clear after a submission. (Ideally, errors should always clear, and input fields should clear if validation succeeds.) The er

Re: [S2] Passng a parameter with (multiple) Submit buttons

2009-02-02 Thread Greg Lindholm
Thanks Miguel, but that doesn't sound workable with an arbitrary number of buttons. Anyone else? I'm looking for a method of dealing with a table with each row having a "remove" button. I need to pass a different rowId based on which button is clicked so I know which row to remove. I need to us

Re: Problem with ArrayList's add() function

2009-02-02 Thread sd9
God Bless you Nuwan and Nils :) I had been stuck with this problem for more than 24 hours and now it's solved. Yeah, as you said, I just had to add this "casePapers=new ArrayList();" And it worked!!! :) Thanks a million!!! -- View this message in context: http://www.nabble.com/Problem-with-

CookiesInterceptor config missing in 2.1.6

2009-02-02 Thread Andy Law
Is it deliberate that no reference to/configuration for the cookies interceptor is provided in struts-default.xml in the 2.1 releases? Obviously I can work around it by configuring in my struts.xml file but it seems bizarre that the code exists and is included in the jar, but the configuration is

Integrating struts with Flex

2009-02-02 Thread Sidharth Bhatia
Hi guys, I was interested in using struts with Flex technology on the front end. Does anyone have any experience doing this? and if so, could you enumerate any difficulties or obstacles you may have faced? thanks, Sid Bhatia "Try not. Do... or do not. There is no try" -- Yoda

Re: stack values in converter

2009-02-02 Thread Musachy Barroso
This is a known problem on xwork 2.1.2: http://jira.opensymphony.com/browse/XW-670 it is fixed in xwork trunk musachy On Mon, Feb 2, 2009 at 7:59 AM, Andrei Ivanov wrote: > Anybody? > > On Tue, Jan 20, 2009 at 10:30 AM, Andrei Ivanov > wrote: >> On Tue, Jan 20, 2009 at 5:08 AM, dusty wrote:

[S2] Autocomplete combobox with multiple columns

2009-02-02 Thread Milan Milanovic
Hi, I need to define popup window in my jsp page that will bring a new window with autocomplete combobox that will have multiple columns. So, my user should choose from that list a value that will be returned to main jsp (action). Is there any example of such combination ? -- Thx, Milan -- View

Re: Maven and Struts 2 Stack

2009-02-02 Thread Dave Newton
Michael Finney wrote: I am trying to find archetype-blank archetype mentioned below. I don't think it's been installed yet (I don't actually know how to do that, but am asking). You won't be able to use a non-local archetype until it's seeded to the repo(s). I also read http://struts.apach

Re: Struts 2.1.6, Sitemesh & FreeMarkerPageFilter

2009-02-02 Thread Musachy Barroso
thanks for reporting Markus. musachy On Mon, Feb 2, 2009 at 7:50 AM, Markus Doring wrote: > > Thanks Musachy, > those filters seem to work with the regular SiteMeshFilter! I still get the > same exception when using the FreeMarkerPageFilter, but the regular > com.opensymphony.sitemesh.webapp.Sit

RE: trouble deploying struts2 app to tomcat 1.5.0.05

2009-02-02 Thread Wick, Dan
Martin, > we can be of more assistance if you send us the .project Here's the contents of the .project...not much there. *.project** pwww org.eclipse.jdt.core.javabuilder

RE: Maven and Struts 2 Stack

2009-02-02 Thread Michael Finney
Hi, I am trying to find archetype-blank archetype mentioned below. I re-read http://thedevelopercorner.blogspot.com/2007/06/build-struts-2-application-us ing-maven.html I also read http://struts.apache.org/2.1.6/docs/struts-maven-archetypes.html which has: mvn archetype:create -DgroupId=tuto

Re: Problem with ArrayList's add() function

2009-02-02 Thread Nuwan Chandrasoma
casePapers must be null? sd9 wrote: Hi, This problem has been driving me mad! I have this code (below), which isn't going beyond the "casePapers.add(cp)" line. It displays the string "--before4--" But doesn't display this string "--after-

Re: stack values in converter

2009-02-02 Thread Andrei Ivanov
Anybody? On Tue, Jan 20, 2009 at 10:30 AM, Andrei Ivanov wrote: > On Tue, Jan 20, 2009 at 5:08 AM, dusty wrote: >> >> Sorry. I don't think I understand your problem. When you say the stack is >> being cleared are you seeing nulls in your converter for values that were >> previously populated o

Re: Problem with ArrayList's add() function

2009-02-02 Thread Nils-Helge Garli Hegvik
Have you actually created the ArrayList? Nils-H On Mon, Feb 2, 2009 at 1:42 PM, sd9 wrote: > > Hi, > > This problem has been driving me mad! > I have this code (below), which isn't going beyond the "casePapers.add(cp)" > line. > It displays the string "--before4--

Re: Struts 2.1.6, Sitemesh & FreeMarkerPageFilter

2009-02-02 Thread Markus Doring
Thanks Musachy, those filters seem to work with the regular SiteMeshFilter! I still get the same exception when using the FreeMarkerPageFilter, but the regular com.opensymphony.sitemesh.webapp.SiteMeshFilter works and I am able to access the ValueStack with Freemarker in my decorator without any p

RE: Executing action in a new tab?

2009-02-02 Thread sd9
ErrrI doubt if that'd work...I'm looking for struts 2 tags. How do you use this dojo tab thing. Never heard of it mgainty wrote: > > > a fairly good example is located at > http://www.blueskyworkshop.com/topics/JavaScript-Pages/examples/Dojo-Tabs-With-Code.phponce > you get it working p

Re: Problem with ArrayList's add() function

2009-02-02 Thread sd9
And this is the error from catalina.out: Feb 2, 2009 5:56:00 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Feb 2, 2009 5:56:01 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Feb 2, 2009 5:56:02 PM org.apache.coyote.ht

Problem with ArrayList's add() function

2009-02-02 Thread sd9
Hi, This problem has been driving me mad! I have this code (below), which isn't going beyond the "casePapers.add(cp)" line. It displays the string "--before4--" But doesn't display this string "--after--" The CasePaper class has been

FIXED - My tests fail in 2.1.6 - can someone help?

2009-02-02 Thread Andy Law
Andy Law wrote: > > 've hit a painful problem as I try to migrate to 2.1.6 (from 2.0.14). > > I have a class that extends ActionSupport and which calls getText() from > within a routine. I want to test the routine to ensure that it is working > properly. My test runs fine when I compile with 2.

Validation date - start date can not be larger than the final

2009-02-02 Thread Guilherme
Hello, How can I do a validation in struts there is always the starting date is not greater than the end date. Greeting.

Re: How to work with back button using javascript?

2009-02-02 Thread Ehteshamul Haque
Dear Taj Uddin You can try the code below, function goBack() { history.go(-1); return false; } Ehteshamul Haque 'A great man is not the one who never falls, but the  one who rises every time he falls' --- On Mon, 2/2/09, taj uddin wrote: > From: taj uddin

How to work with back button using javascript?

2009-02-02 Thread taj uddin
Hi, In my application i tried using the back button with javascript but its not working and instead it was calling the action specified in the form tag.  IN Detail:    when i click the back button, it was not rendering the previous page..instead it was calling the xyz action. So, pls help me

popout in struts

2009-02-02 Thread marc quast
Hello, i'm new in this list, i'm new j2ee developer i have some question related to interfacing struts (jsp) with javascript i have a link in the jsp page once the user click on this link, i wanna show a pop out (i already made the jsp page which will be dispalyed in this popout) so the pb is , how

My tests fail in 2.1.6 - can someone help?

2009-02-02 Thread Andy Law
All, I've hit a painful problem as I try to migrate to 2.1.6 (from 2.0.14). I have a class that extends ActionSupport and which calls getText() from within a routine. I want to test the routine to ensure that it is working properly. My test runs fine when I compile with 2.0.14 but disappears int

Re: DefaultActionInvocation exception

2009-02-02 Thread J D
I amn't able to get the links right in Nabble. It renders it wrong... Resending the messed up lines in the jsp ','APPROVALFORM');"> Thanks !! J D wrote: > > Here goes the details > > The files are > > struts.xml > class="com.jci.glims.web

Re: DefaultActionInvocation exception

2009-02-02 Thread J D
Here goes the details The files are struts.xml /main/test/display.jsp /main/test/input.jsp /main/test/confirmation.jsp message /main/test/display.jsp message /main/test/display

Re: persisting data across different form

2009-02-02 Thread Paweł Wielgus
Hi, consider following: 1. jsp with hidden field myField="someValue" 2. post to an action1 -> action1 can read myField and there is someValue in it 3. redirect to another action2 but with redirect="false" in struts-config.xml - it's very important to add redirect="false", it will not create new req

Re: textbox showing currency default value

2009-02-02 Thread Paweł Wielgus
Hi Paolo, first of all float for cash is a very bad idea. Use BigDecimal. Then You can ass getter and setter in Form like this: public String getMyFieldValue() { return myFieldValue.toString().replaceAll(".", ","); } public void setMyFieldValue(String amount) { myFieldValue = new BigDecimal(amo