RE: Dynamically pulling in tile definitions based on session attributes using OGNL

2008-06-12 Thread Gamble, Wesley (WG10)
Antonio, Chris, Dave, Martin, Thanks for the responses. I haven't had a chance to thoroughly mull them over, but I am confident that once I do so, my confusion will be eased. I'm quite keen on the combination of S2 and Tiles - and I'm sure I can do what I need to. Thanks again, Wes -Origin

[STRUTS2] Configuring Eclipse3.2 for struts2

2008-06-12 Thread Thulasi S.
Hi I am newbie to Struts2 & I am using Eclipse3.2. Could anyone help me on this regard? Thanks in Advance, Thulasi Disclaimer: This message and the information contain

Struts2 and Tables

2008-06-12 Thread StrutsUser
Hi, I am new to struts and am stuck with a problem. Could anyone please help me with this. I need to create a table which should get values from DB and display them. I should also be able to add/delete rows to/from the table. Some of the columns of the table should be rendered as combo boxes. Is

problems when using

2008-06-12 Thread Alexander Bätz
Hi, i'm making my first steps with struts and currently i'm testing the s:iterate tag. Unfortunately my test wont work. at first i created an action with a getter that returns a ArrayList of a special class. then i tried to iterate over that list. at first nothing happend. the tag didnt wo

Re: Could not load dojo.js problem

2008-06-12 Thread Dave Newton
--- On Thu, 6/12/08, Ramesh K <[EMAIL PROTECTED]> wrote: > From: Ramesh K <[EMAIL PROTECTED]> > Subject: Could not load dojo.js problem > To: user@struts.apache.org > Date: Thursday, June 12, 2008, 6:33 PM > Hi, > >In my struts 2 application I used s:datetimepicker to > manipulate date. >

Re: struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread Dave Newton
Search a database of city names? I'm not sure what you're asking. --- On Thu, 6/12/08, xianwinwin <[EMAIL PROTECTED]> wrote: > From: xianwinwin <[EMAIL PROTECTED]> > Subject: struts2: how to read the 'potenrial list' from a database > To: user@struts.apache.org > Date: Thursday, June 12, 2008,

Re: Struts Excel download using POI... throwing java.lang.IllegalStateException

2008-06-12 Thread Struts_tania
Chris, Thanks for your reply.. How can I avoid this.. I want to download the excel file in the same screen where the download button was there. So at the end I was forwarding to that jsp.. Should I not have a forward int he action class?If so how do I achieve that. Thanks Chris Pratt wrote:

Could not load dojo.js problem

2008-06-12 Thread Ramesh K
Hi, In my struts 2 application I used s:datetimepicker to manipulate date. for that If I try to include <@ taglib prefix="sx" uri="/struts-dojo-tags"/> It shows the that it could not be loaded. How can I load this dojo.js to my struts 2.0.11 application Thanks Ramesh K -- View t

struts2: how to read the 'potenrial list' from a database

2008-06-12 Thread xianwinwin
I have a list of 20,000 cities; I would like the user to provide at least 2 chars and then present him a'potential list'. I managed to do this: JSP Java: public class autocompleter extends ActionSupport { private List state; public String execute() throws Exception{ state = new Arr

Re: Struts 2 file uploaded with temp extension

2008-06-12 Thread Ramesh K
Hi, In my struts 2 file uploading application I uploaded a jpg image through s:file tag and got .tmp file as output. How can I get my uploaded file with the same extension? I set the first filter as ActionContextCleanup in web.xml please help me to solve this. Regards, Ramesh K Ramesh K

Re: adding a header in a struts 2 interceptor

2008-06-12 Thread Dave Newton
--- On Thu, 6/12/08, Page <[EMAIL PROTECTED]> wrote: > I have an interceptor that I'm writing to handle all > the needs of the client > side framework and a second that manages the json objects > called (not > clever) JsonInterceptor. It grabs json strings from the > header and > instantiates them

RE: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-06-12 Thread UncleLongHair
I was getting the "getOutputStream() has already been called for this response" problem and figured out a solution. In my case, I was able to switch from getOutputStream() to getWriter() because I was dealing with text files, and the error message stopped. I think the error message is misleading

Re: Struts 2 file uploaded with temp extension

2008-06-12 Thread Dave Newton
--- On Thu, 6/12/08, Ramesh K <[EMAIL PROTECTED]> wrote: > In my struts 2 file uploading application I uploaded a > jpg image through s:file tag and got .tmp file as output. > How can I get my uploaded file with the same extension? Was the FAQ entry not helpful? http://struts.apache.org/2.x/docs

adding a header in a struts 2 interceptor

2008-06-12 Thread Page
I'm on a project which is using struts 2 on the backend and an inhouse javascript framework on the client side that receives status information from the server in an X-JSON header. I have an interceptor that I'm writing to handle all the needs of the client side framework and a second that mana

Struts 2 file uploaded with temp extension

2008-06-12 Thread Ramesh K
Hi, In my struts 2 file uploading application I uploaded a jpg image through s:file tag and got .tmp file as output. How can I get my uploaded file with the same extension? I set the first filter as ActionContextCleanup in web.xml please help me to solve this. Regards, Ramesh K -- View th

Re: dojo with struts 2.0.11.1.

2008-06-12 Thread Dave Newton
--- On Thu, 6/12/08, Struts Two <[EMAIL PROTECTED]> wrote: > It makes u wonder where "sx" is coming from for > 2.0.11, as David mentioned "sx" tags are included > in 2.1.x. Because the wiki isn't versionable, it's a volunteer project, and when information is added sometimes it isn't complete or p

Re: dojo with struts 2.0.11.1.

2008-06-12 Thread Struts Two
The confusion is caused by the documentation. Dojo plugin is included in 2.1.x, however; the documentation for 2.0.11 uses in its example at the buttom of the page, while it uses on the top of the page. You can even go the following link http://struts.apache.org/2.0.11/docs/bind.html and then

Re: dojo with struts 2.0.11.1.

2008-06-12 Thread Joachim Rohde
As Dave mentioned, the tags are Struts 2.1. So download the 2.1.2 distribution ( http://struts.apache.org/download.cgi#struts212 ) and you'll find the dojo-plugin in the lib-directory. Joachim Lalchandra Rampersaud schrieb: Thanks for the quick reply. I assume that the plugin is in a jar fi

Re: Struts 2 s:select question

2008-06-12 Thread Ralf Fischer
Hi, On Thu, Jun 12, 2008 at 4:30 PM, kukudas <[EMAIL PROTECTED]> wrote: > Hi, thanks for your reply i think i did it right but still getting an > exception: > this is how it works when i do a textfield and enter the value by my hand: > > > And this is when i try doing it with the s:select > > >

Re: dojo with struts 2.0.11.1.

2008-06-12 Thread Dave Newton
--- On Thu, 6/12/08, Lalchandra Rampersaud wrote: > Where can i get the plugin? In the beta S2.1 build or by building from source. I have no idea if it works in S2.0.11.1 out-of-the-box; I'd be skeptical. It might make more sense to use the existing S2.0 Dojo tags. Dave (No CC is necessary;

Re: Struts 2 s:select question

2008-06-12 Thread kukudas
Hi, thanks for your reply i think i did it right but still getting an exception: this is how it works when i do a textfield and enter the value by my hand: And this is when i try doing it with the s:select i have getter/setter for a in my ActionClass. a is a Object from another Class lets call

Re: dojo with struts 2.0.11.1.

2008-06-12 Thread Lalchandra Rampersaud
Thanks for the quick reply. I assume that the plugin is in a jar file. Where can i get the plugin? Lalchandra Carpe diem - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, June 12, 2008 7:24 AM Subject: Re: dojo

[OT]Re: Struts 2 s:select question

2008-06-12 Thread Al Sutton
How many people think him sending out of office emails to the list is enough of an emergency to call his cell phone as he's given us the number :)? Al. [EMAIL PROTECTED] wrote: I will be out of the office, and mostly without email access, until June 17. Please contact the One World office, 6

Re: dojo with struts 2.0.11.1.

2008-06-12 Thread Dave Newton
--- On Thu, 6/12/08, Lalchandra Rampersaud <[EMAIL PROTECTED]> wrote: > From: Lalchandra Rampersaud <[EMAIL PROTECTED]> > Subject: dojo with struts 2.0.11.1. > To: "Struts Users Mailing List" > Date: Thursday, June 12, 2008, 12:48 PM > hey all > whenever i put <%@ taglib prefix="sx" > uri="/strut

Re: Confused about s:include

2008-06-12 Thread Jeromy Evans
Jim Kiley wrote: I guess I could just use , huh? It's amazing how these insights reach me five minutes after I send mail to the list. jk The Include tag creates a javax.servlet.RequestDispatcher and performs an include operation [1]. The tag attempts to create a reference to the resour

Re: Re: Struts 2 s:select question

2008-06-12 Thread stewart
I will be out of the office, and mostly without email access, until June 17. Please contact the One World office, 605-845-7172, with any general needs, and Danny Nickels, [EMAIL PROTECTED], at the same number, for any technical or integration issues. If this is an emergency, please feel free to

dojo with struts 2.0.11.1.

2008-06-12 Thread Lalchandra Rampersaud
hey all whenever i put <%@ taglib prefix="sx" uri="/struts-dojo-tags"%> on my jsp pages eclipse gives me an error. i am using struts-2.0.11.1. the docs has include the Dojo Plugin distributed with Struts 2 in your /WEB-INF/lib folder but i can't seem to find it anywhere.. what could be the pr

Re: Struts 2 s:select question

2008-06-12 Thread Martin
Can you supply the jsp sepecifically looking for s:select web.xml struts<-config>.xml as well as the code from Action class http://struts.apache.org/2.0.11.1/docs/select.html Thanks Martin - Original Message - From: "kukudas" <[EMAIL PROTECTED]> To: Sent: Thursday, June 12, 2008 9:34

Re: Struts 2 s:select question

2008-06-12 Thread Jim Kiley
The s:select tag doesn't have much to do with the namespace. What you'll want to do is something like this: Then you just have to make sure that your action ('myAction') has getters and setters for 'myProperty', a getter for 'backingList', and that each element of 'backingList' has fields 'f

Struts 2 s:select question

2008-06-12 Thread kukudas
hi, basicly i can't find any working example, howto set the value which was choosen into a variable so i can use this in my beans. i've tryied using the namespace which didn't work. someone can provide me with an working example would be awesome thanks. greets kuku -- View this message in cont

Re: Problems with action-redirect

2008-06-12 Thread Felipe Lorenz
Finally work fine... go flipper!!! ehhehehehh OK, now, how do i turn off this log warning? Remember, my devMode isnt on On Thu, Jun 12, 2008 at 8:23 AM, Ralf Fischer <[EMAIL PROTECTED]> wrote: > Hi, > > On Thu, Jun 12, 2008 at 1:08 PM, Felipe Lorenz <[EMAIL PROTECTED]> > wrote: > > I

Re: Problems with action-redirect

2008-06-12 Thread Ralf Fischer
Hi, On Thu, Jun 12, 2008 at 1:08 PM, Felipe Lorenz <[EMAIL PROTECTED]> wrote: > I dont know if it is just a warning... cause i dont use devMode on. And when > i use the action whith action-redirect, it doesnt work. It IS just a warnung, as you see from the message: WARNING: Caught OgnlException

Re: Problems with action-redirect

2008-06-12 Thread Felipe Lorenz
I dont know if it is just a warning... cause i dont use devMode on. And when i use the action whith action-redirect, it doesnt work. Strange Do you have idea? Thanks! On Wed, Jun 11, 2008 at 5:12 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > That's a warning issued because params may be se

Re: Multiple Struts2 WAR in a single EAR

2008-06-12 Thread Hugo de Paix de Coeur
Thanks for your advices... Sure, the first configuration I tried was to put struts jars in each .war/WEB-INF/lib. For those interested, a good link on classloaders : https://glassfish.dev.java.net/nonav/javaee5/docs/DG/beade.html But it doesn't work with Glassfish in this configuration because

Re: Autocompleter onchange attribute

2008-06-12 Thread Craftyman
Anybody have any idea ? I'm just want to configure my s:autocompleter to allow to when a user select a new value to submit my form automatically Thanks. Cédric 2008/6/10 Craftyman <[EMAIL PROTECTED]>: > I have any errors and i use the s:head theme="ajax"/> in my head section a > the auto search