Re: Response already committed when using ActionTag

2008-06-13 Thread David . W . Larson
Hi Jeromy, thanks for the respose. The response is already committed in the action class (before the Result is executed). In the execute() method, the result of 'response.isCommitted()' is true. So I think the response is committed even before getting to the Result. According to J2EE documentat

DatePicker Button not generated

2008-06-13 Thread StrutsUser
Hi, I have defined datepicker in my JSP as But when the page is launched only the label is getting displayed. The button for the picker is not displayed. Could you anyone please help me out on this? Thanks I have given below the generated scripts for the date picker -

Re: Response already committed when using ActionTag

2008-06-13 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: I have a JSP that uses an ActionTag to call a Struts 2 action class directly from the JSP. But in the action class, the HTTP response has already been committed. This makes it impossible for me to set cookies from my action class. I tested this by calling HttpServletR

Re: Looking for some more troubleshooting resources

2008-06-13 Thread Dave Newton
In addition to Alberto's answer when I'm using XML config I'll pop into the config-browser for a simple sanity check. Dave --- On Fri, 6/13/08, Karr, David <[EMAIL PROTECTED]> wrote: > From: Karr, David <[EMAIL PROTECTED]> > Subject: Looking for some more troubleshooting resources > To: "Strut

Re: Looking for some more troubleshooting resources

2008-06-13 Thread Alberto A. Flores
Check the HTML form that is submitted to the server. Understanding namespaces is a bit tricky in the beginning. Also check the "slashes" configuration attribute as part of the mapping name. On Fri, Jun 13, 2008 at 10:08 PM, Karr, David <[EMAIL PROTECTED]> wrote: > I'm starting to do some simple e

Looking for some more troubleshooting resources

2008-06-13 Thread Karr, David
I'm starting to do some simple experiments with Struts2 (those who know me would wonder what took me so long :) ). I have one blocking problem, but I would more appreciate hints on how to diagnose particular kinds of problems, as opposed to just giving me the answer. In this case I'm getting the

Re: struts 2 datetimepicker does not fire events

2008-06-13 Thread Ramesh K
Hi Dave, I had a new problem. the date specified in that control is not retrieved in the action. so it is null. How can I retrieve that date value in action? Ramesh K Ramesh K wrote: > > Hi Everyone, > > I faced a tedious problem in manipuluating s:datetimepicker in my > page. It

Re: What can you do with S2?

2008-06-13 Thread Musachy Barroso
I just hit the same problem, I think the REST plugin doesn't handle that case very well. musachy On Fri, Jun 13, 2008 at 2:15 PM, Al Sutton <[EMAIL PROTECTED]> wrote: > OK, Problem solved (switched to using apache and tomcat). > > Now, as I was saying... can you do better that http://www.lifefeed

Re: adding a header in a struts 2 interceptor

2008-06-13 Thread Dave Newton
Glad to hear it :) --- On Fri, 6/13/08, Page <[EMAIL PROTECTED]> wrote: > From: Page <[EMAIL PROTECTED]> > Subject: Re: adding a header in a struts 2 interceptor > To: user@struts.apache.org > Date: Friday, June 13, 2008, 4:09 PM > Thanks for you help Dave, that was exactly what I needed and > a

Re: adding a header in a struts 2 interceptor

2008-06-13 Thread Page
Thanks for you help Dave, that was exactly what I needed and all is working! -- View this message in context: http://www.nabble.com/adding-a-header-in-a-struts-2-interceptor-tp17808069p17831109.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: What can you do with S2?

2008-06-13 Thread Owen Berry
Just so you know that there is some kind of response to this; although I can't show you what I'm working on because it's an intranet type application for work, I am using version 2.1.2 and will file any bugs I come across. Actually, I've already filed one and it's already marked as fixed in 2.1.3.

Re: What can you do with S2?

2008-06-13 Thread Al Sutton
OK, Problem solved (switched to using apache and tomcat). Now, as I was saying... can you do better that http://www.lifefeed.info/ ? Al. Al Sutton wrote: OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin arggg

Re: What can you do with S2?

2008-06-13 Thread Al Sutton
OK, small hitch atm, Jetty in it's infinite wisdom is adding a jsessionid to all requests which is screwing over the REST plugin argggh!! Al Sutton wrote: Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in orde

[OT] Re: [JPA more than Struts 2] Two action classes ?

2008-06-13 Thread Al Sutton
Milan, Please read the EntityManager JavaDoc at http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html and http://www.oracle.com/technology/pub/articles/gupta-jpa.html You'll see these explain why you can't simply put the object into a session and keep using it. You need

What can you do with S2?

2008-06-13 Thread Al Sutton
Well, OK, S2.1 (but the title wouldn't sound so catchy). A push is being made for a high quality 2.1 GA release, and in order to do this the codebase needs a jolly good thrashing in every way imaginable, and the best way of doing this is to write S2.1 apps (and don't worry, the codebase loves

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

2008-06-13 Thread xianwinwin
OK...I'm getting there! I got the idea: loadOnTextChange. so I ended up with this JSP: BUT where is the list?!?!?! I can invoke a method, but how does the statement above knows which list to use?! And what should the potentialList method return? THANKS for any pointers! newton.dave wrot

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
When user clicks on one object in jsp list, its id is set in action class and the method in action class is called which will based on that id choose from the list and put that object in session. Then with redirect-action (somehow) I will call another action for editing that object from session. I

Re: struts 2 datetimepicker does not fire events

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Ramesh K <[EMAIL PROTECTED]> wrote: > I faced a tedious problem in manipuluating s:datetimepicker in my page. > It hasn't focus set and events are not fired. That's not much to go on. You have the tag? Your S2 mapping is correct such that it's serving the Dojo files? Dave

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
Yes, EntityManager will be closed, but it always closes whenevery you do something (read/write) your object from database, isn't it ? When I read for example Fruit (id=1) from database, change it and try to save it will know with new EntityManager instance to save it because of id number ? -- Thx

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > But could I pass object through session object ? I don't know how to answer that. If you have a list of objects in the session you could use the id to retrieve the object from the session (if it's in a map, or if you iterate over

struts 2 datetimepicker does not fire events

2008-06-13 Thread Ramesh K
Hi Everyone, I faced a tedious problem in manipuluating s:datetimepicker in my page. It hasn't focus set and events are not fired. Anyone help me to give the solution. Regards, Ramesh K -- View this message in context: http://www.nabble.com/struts-2-datetimepicker-does-not-fire-e

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Al Sutton
If you're using a persistence framework (Hibernate, JPA, etc.) then No. During after the first request the EntityManager will be closed, so when you access it during the second request updates will not be propagated to the database. Al. Milan Milanovic wrote: But could I pass object through

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
But could I pass object through session object ? newton.dave wrote: > > --- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >> Yes that's what I want. The first action search in database and show the >> list of Fruits. Then user click on one and that concrete Fruit object is >> pas

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > Yes that's what I want. The first action search in database and show the > list of Fruits. Then user click on one and that concrete Fruit object is > passed to other action for editing. All you can pass in an HTTP request is a stri

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
Hi Dave, Yes that's what I want. The first action search in database and show the list of Fruits. Then user click on one and that concrete Fruit object is passed to other action for editing. -- Thx, Milan newton.dave wrote: > > --- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >

Response already committed when using ActionTag

2008-06-13 Thread David . W . Larson
I have a JSP that uses an ActionTag to call a Struts 2 action class directly from the JSP. But in the action class, the HTTP response has already been committed. This makes it impossible for me to set cookies from my action class. I tested this by calling HttpServletResponse.isCommitted() is m

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > I want to read object from database in the first action class > (i.e. Fruit fruit) to store it into session and then to call > other action class method for editing of that method, is it possible ? Oh, I thought you said you were

Re: adding a header in a struts 2 interceptor

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Page <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.x/docs/writing-interceptors.html > > > > The result has already been rendered after the invoke, > so header > > modification would be a bit superfluous ;) > > > > I guess I'm going about this the wrong way. I want

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
Hi, I want to read object from database in the first action class (i.e. Fruit fruit) to store it into session and then to call other action class method for editing of that method, is it possible ? -- Thx, Milan newton.dave wrote: > > --- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> w

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

2008-06-13 Thread Dave Newton
No CC. Just list. I don't need two copies of all list traffic. --- On Fri, 6/13/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote: > From: Onur Idrisoglu <[EMAIL PROTECTED]> > Subject: Re: struts2: how to read the 'potenrial list' from a database > To: "Struts Users Mailing List" , [EMAIL PROTECTED]

Re: [Struts 2] Two action classes ?

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: > I want to have two action classes, the first class called > SearchAction will search from database and show results in a jsp page. > When user click some row I want to pass that value (through a session) to > another action class ca

Ajax and page refresh

2008-06-13 Thread Paranoid_Fabio
Hello. I'm using Struts2 with Ajax support and I'm able to refresh the content of a div with remote content via Ajax calls. Anyway I've a problem: when the div is refreshed, the page is scrolled up to the top, like if the entire page is refreshed.That's it, if I scroll down the page and then i cl

Re: problems when using

2008-06-13 Thread Alexander Bätz
Hi, I would suggest experience or some insight to the requirements of struts2 that i don't have. yes, you can get my code, but since it is quite the same than some iterate-examples that work (at least if you follow their authors) that part should be correct. the action: public class GetE

Re: adding a header in a struts 2 interceptor

2008-06-13 Thread Page
Page wrote: > > - except that it can't modify the request. > sorry, meant can't modify the response -- View this message in context: http://www.nabble.com/adding-a-header-in-a-struts-2-interceptor-tp17808069p17824575.html Sent from the Struts - User mailing list archive at Nabble.com. --

Execute And Wait

2008-06-13 Thread Ian Meikle
Hi, Does anyone have any experience of using the execute and wait interceptor in a clustered environment. I see the interceptor put the BackgroundProcess object in the session. This object has a reference to among other things the action. If the app server is using a DB to share session informati

Re: adding a header in a struts 2 interceptor

2008-06-13 Thread Page
newton.dave wrote: > > http://struts.apache.org/2.x/docs/writing-interceptors.html > > The result has already been rendered after the invoke, so header > modification would be a bit superfluous ;) > I guess I'm going about this the wrong way. I want the other developers on the team to be able

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

2008-06-13 Thread Onur Idrisoglu
I'm not sure if you can do that with autocompleter.. Autocompleter need the whole list at startup, but as I understand you want to shape this list dynamically according to what user types. Each time user types a character, the action will create a new list... Maybe you can use DWR to do this On F

[Struts 2] Two action classes ?

2008-06-13 Thread Milan Milanovic
Hi, I want to have two action classes, the first class called SearchAction will search from database and show results in a jsp page. When user click some row I want to pass that value (through a session) to another action class called EditAction which will then show that object for editing. Is th

Re: Struts 2 and Velocity Intergration

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, dim5b <[EMAIL PROTECTED]> wrote: > Can anyone point out a clear demo of how i can integrate > Velocity with Struts i have followed the guide in > http://struts.apache.org/2.0.11/docs/velocity.html > > but no success i am trying to integrate with VelocityTools > is this no sup

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

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, srichin <[EMAIL PROTECTED]> wrote: > I want the objects id to be the value of the option and > code to bethe label to be shown in the autocompleter dropdown options. > > I should be shown codes as select options in the dropdown and when I > select any of the code, the corresp

Re: [STRUTS2] Configuring Eclipse3.2 for struts2

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Thulasi S. <[EMAIL PROTECTED]> wrote: > I am newbie to Struts2 & I am using Eclipse3.2. > Could anyone help me on this regard? S2 is just another web framework; no special configuration is necessary other than creating a web application project and putting the appropriate lib

Re: problems when using

2008-06-13 Thread Dave Newton
--- On Fri, 6/13/08, Alexander Bätz <[EMAIL PROTECTED]> wrote: > 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 itera

Re: Form template

2008-06-13 Thread Craftyman
Hi, You can use theme="simple" in your tag to disable table mode. Ex : Cédric 2008/6/13 Ralf Fischer <[EMAIL PROTECTED]>: > Hi Matthieu, > > On Fri, Jun 13, 2008 at 11:08 AM, Matthieu MARC > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am making a form page with jstl tags : > > > > <%@ taglib

Re: Form template

2008-06-13 Thread Ralf Fischer
Hi Matthieu, On Fri, Jun 13, 2008 at 11:08 AM, Matthieu MARC <[EMAIL PROTECTED]> wrote: > Hi, > > I am making a form page with jstl tags : > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> > > > > >cssStyle="font-weight: bold;" /> >id="am%{index}" key="ti

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

2008-06-13 Thread srichin
I'm trying to use a autocompleter that is to be built from a list (of objects). I want the objects id to be the value of the option and code to bethe label to be shown in the autocompleter dropdown options. I should be shown codes as select options in the dropdown and when I select any of the co

Struts 2 and Velocity Intergration

2008-06-13 Thread dim5b
Can anyone point out a clear demo of how i can integrate Velocity with Struts i have followed the guide in http://struts.apache.org/2.0.11/docs/velocity.html http://struts.apache.org/2.0.11/docs/velocity.html but no success i am trying to integrate with VelocityTools is this no supported in St

Form template

2008-06-13 Thread Matthieu MARC
Hi, I am making a form page with jstl tags : <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> cssStyle="font-weight: bold;" /> onchange="countHour();" id="am%{index}" key="timetable.morning" list="heures" value="%{am}" /> onchange="countHour();"