Re: execAndWait Interceptor

2010-12-14 Thread RogerV
Sparecreative wrote: We use the interceptor for interrogating a legacy database where we have no control over the execution or timing of the query. We basically have an API we call and then wait in hope. I have to say that I've found the interceptor to be inconsistent at best. For

Convention without REST

2010-12-14 Thread stanlick
I began writing about the 2.2.1 convention plugin and naturally started writing code. I especially like not having to code XML when my file naming is clean and straightforward. I started off with a package named *com.foo.actions.music* which resolves to the namespace (URL)* /music*. Next I

Calculate module of index in Struts2 iterator

2010-12-14 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts2 iterator to setup a list of checkbox in a table(about 150 checkboxes). I want to have 10 checkbox per row, so I'm doing the following: table tr s:iterator value=securityMasterFields status=fieldNameStatus var=fieldName s:if test=#fieldNameStatus.index % 10

Help... My url grows...

2010-12-14 Thread Ellson, Jared L
Hey anybody have a quick idea what would cause my URL to grow. First time I hit the page: http://localhost:8080//struts/locationAssign submit the page then: http://localhost:8080//struts/struts/locationAssign then submit again:

RE: Help... My url grows...

2010-12-14 Thread Biesbrock, Kevin
Let's see your location assign jsp as well. Beez From: Ellson, Jared L Sent: Tuesday, December 14, 2010 4:24 PM Hey anybody have a quick idea what would cause my URL to grow. First time I hit the page: http://localhost:8080//struts/locationAssign submit the page then:

RE: Help... My url grows...

2010-12-14 Thread Ellson, Jared L
Here you go: %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% %@ taglib prefix=s uri=/struts-tags% %@ taglib prefix=t tagdir=/WEB-INF/tags % !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd;

Re: Help... My url grows...

2010-12-14 Thread Aaron Brown
Every time I've had a URL with an extra path element that I didn't intend, it was always because I messed up the namespace for the action - I have a bad habit of forgetting the leading / on my namespaces. I see you don't have a namespace defined for your package, that's part of the stock package

Re: Help... My url grows...

2010-12-14 Thread Dave Newton
On Tue, Dec 14, 2010 at 4:24 PM, Ellson, Jared L wrote: Hey anybody have a quick idea what would cause my URL to grow. Excitement. Dave

RE: Help... My url grows...

2010-12-14 Thread Ellson, Jared L
Nope... namespace didn't help... I was thinking it was maybe because I was doing the submit via javascript but it happens when I use the s:submit it happens also. -Original Message- From: Aaron Brown [mailto:aa...@thebrownproject.com] Sent: Tuesday, December 14, 2010 2:34 PM To:

Re: Help... My url grows...

2010-12-14 Thread Aaron Brown
After I saw the next chunk of code you posted, it looks like it really is a namespace problem: you're referring to your action as struts/actionName, which will continue to add struts subdirectory to whatever URL you're currently using. Instead, try /struts/actionName. Alternately, and probably

RE: Help... My url grows...

2010-12-14 Thread Ellson, Jared L
Yup.. I realized that right after I sent my last email.. That was the problem thank you everyone! -Original Message- From: Aaron Brown [mailto:aa...@thebrownproject.com] Sent: Tuesday, December 14, 2010 2:53 PM To: Struts Users Mailing List Subject: Re: Help... My url grows... After

Re: Convention without REST

2010-12-14 Thread Allen Lee
I think this does the right thing if you return Action.SUCCESS in your remove() action method instead of remove. Otherwise you'll need a custom result mapping for that new result string. On Tue, Dec 14, 2010 at 8:57 AM, stanl...@gmail.com wrote: I began writing about the 2.2.1 convention

S2 REST Example - Cimande 2.0

2010-12-14 Thread Frans Thamura
hi all we wanna to share our new code, we put in Github also, http://github.com/blueoxygen/cimande this is a REST example, we will upload the REST client using Android shortly review of code welcome -- Frans Thamura Director Meruvian. The Most Complete Java Services Provider in Indonesia