Re: Handling Session Objects

2007-08-06 Thread Sawan
Hi Laurie, Yes, my url includes session id, as suggested by Dale. But I am not adding it manually and also don't know from where it is coming. If the problem is only due to addition of session id with the url, then please suggest me to remove it from the URL. Thanks & Regards Sawan Laurie Harp

Re: Handling Session Objects

2007-08-06 Thread Sawan
Hi Dale, Yes, my url includes ";jsessionid=...", but I am not adding it in my program manually and don't know from where it is coming..? If the problem is due to addition of ";jsessionid=..." then I really wants to remove it from my url. Please suggest me any solution to remove ";jsessionid=..."

Re: [s2] Is it possible to replace/supplement i18n resolution logic?

2007-08-06 Thread Ray Clough
Yes, getters/setters are generally 'evil', but sometimes unavoidable. Just because the get/set idiom is popular doesn't make it good. First, the term POJO originally meant "Not EJB". The way people have been using it lately means "Java Bean". One of the real weaknesses of Struts-1 was the Ac

[S2] Successfully migrated my WW-2.2 app to Struts-2.0.9

2007-08-06 Thread Van Riper
I had one last hiccup with the Sitemesh integration on S2. Although I am using the default JSP approach and didn't need the template support for Freemarker or Velocity provided by the Sitemesh plugin for S2, I did need to add the ActionContextCleanUp filter to my web.xml as recommended as part of t

Re: html:form styleId name attribute javascript issue

2007-08-06 Thread Paul Benedict
Use the getElementById scripting method. On 8/6/07, john lee <[EMAIL PROTECTED]> wrote: > > I have two file, and try to test javascript, but javascript can not access > document.form. > > Can one know why? inside , styleId <> Name attribute? if so, > what is the solution for that? > > i use st

Re: ActiveMQ Problem migrating from WebWork 2.2.2 to Struts 2.0.9

2007-08-06 Thread Van Riper
Yup! I had updated build process to exclude the spring plugin, but, I never did a full rebuild that would have nuked it from my distribution. Doh! I'm not past this problem. I'm even see struts tags execute in the JSPs forwarded to from my actions. However, I am now hitting my head on a problem wi

Re: executeScript not working?

2007-08-06 Thread Oleg Mikheev
rrecoba wrote: Hi, i´m trying to do something like the example "A div that calls the server, and JS in the resulting page is executed" in the showcase. But with a little diference, i´m not using the href in the s:div tag, i´m just using a link to reload the content. The problem is that the scrip

executeScript not working?

2007-08-06 Thread rrecoba
Hi, i´m trying to do something like the example "A div that calls the server, and JS in the resulting page is executed" in the showcase. But with a little diference, i´m not using the href in the s:div tag, i´m just using a link to reload the content. The problem is that the scripts in the reola

Re: Access control with roles

2007-08-06 Thread Oleg Mikheev
Session A Mwamufiya wrote: Thanks for the replies guys, but is there an example that I can follow? It seems to me that a user's roles are defined in a request object, but I'm not sure how. I'm continuing to search online for examples. Mapping roles to action is putting this into struts.xml:

Re: Access control with roles

2007-08-06 Thread Session A Mwamufiya
Thanks for the replies guys, but is there an example that I can follow? It seems to me that a user's roles are defined in a request object, but I'm not sure how. I'm continuing to search online for examples. Thanks, Session > Session A Mwamufiya wrote: >> Is there a way to implement access c

Re: Access control with roles

2007-08-06 Thread Oleg Mikheev
Session A Mwamufiya wrote: Is there a way to implement access control in struts 2? I presume that we can use an interceptor, but I'm not sure how to map actions to specific roles. Any ideas? http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/RolesInterceptor.h

Re: Access control with roles

2007-08-06 Thread Dave Newton
--- Session A Mwamufiya wrote: > Is there a way to implement access control in struts > 2? I presume that we can use an interceptor, but > I'm not sure how to map actions to specific roles. > Any ideas? Set action properties (roles, in your case) in the config file? d. __

Access control with roles

2007-08-06 Thread Session A Mwamufiya
Hi, Is there a way to implement access control in struts 2? I presume that we can use an interceptor, but I'm not sure how to map actions to specific roles. Any ideas? Thanks, Session - To unsubscribe, e-mail: [EMAIL PRO

Re: [s2] s:component and reading parameters

2007-08-06 Thread mraible
Here's how I'm referencing the component/template: In my addposition.jsp, I added: This doesn't render the error for "partnerPosition". However, if I change it to: ...it works. In my textfield tags, parameters.name is resolved correctly, so I know I'm passing the proper value

Re: Problems migrating Roller to Struts 2.0.9

2007-08-06 Thread eliasthayer
I ran into the same problem and was able to resolve it by changing the tags to in my tiles.xml file. Dave Johnson-8 wrote: > > On 8/4/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: >> > So I downloaded 2.0.9. First, I found that the old Tiles listener >> > "org.apache.tiles.listener.TilesLis

Re: [s2] s:component and reading parameters

2007-08-06 Thread Musachy Barroso
Ah..that "parameter", my bad. Just to make it easier to figure it out break it down to: now this is kind of a dumb question, but are you sure there is an error for that field? musachy On 8/6/07, mraible <[EMAIL PROTECTED]> wrote: > > I tried your suggestion, no dice. I think the problem is

Re: [s2] s:component and reading parameters

2007-08-06 Thread mraible
I tried your suggestion, no dice. I think the problem is that I have an expression w/in an expression. The following works for a textfield: I don't know if "parameters" is request parameters - it's whatever creates. Matt Musachy Barroso wrote: > > Try (assuming parameters here are the requ

Re: [s2] s:component and reading parameters

2007-08-06 Thread Musachy Barroso
Try (assuming parameters here are the request parameters) (#parameter.name is an array, it gets me all the time :) ) musachy On 8/6/07, mraible <[EMAIL PROTECTED]> wrote: > > That worked - thanks! > > Now I can't get the following to work - is it possible? > > > > I need to use this syntax to

Re: [s2] s:component and reading parameters

2007-08-06 Thread mraible
That worked - thanks! Now I can't get the following to work - is it possible? I need to use this syntax to render errors next to fields since the default (simple) tag wraps the error with an even when there's only one error. This makes it difficult to put errors next to fields (w/o customizi

Re: specifying a struts 2 action in the url field of a dojo function

2007-08-06 Thread Session A Mwamufiya
Great, it works!! You were an immense help, I thank you. Best, Session > Yes, it seems like the Dojo api changed at some point (the example was > fixed for 2.1) and now dojo passes the widget object for the node that was > selected, instead of the id string. Just use the "id" property in the >

Re: Struts 2 URL parameters lost

2007-08-06 Thread JBL
Final answer: we implemented a custom ActionMapper that handles a URL string that doesn't involve a ? to separate the query parameters. Stuck a reference to it in struts.properties: struts.mapper.class=mypackage.MyActionMapper Building a new ActionMapper isn't terribly difficult. It helps to def

Re: [s2] Is it possible to replace/supplement i18n resolution logic?

2007-08-06 Thread mraible
Don Brown wrote: > > On 8/4/07, mraible <[EMAIL PROTECTED]> wrote: >> >> With Struts 2, how would I go about doing the following: >> >> 1. Replace the i18n resolution logic to load key/value pairs from a >> database >> instead of properties files? > > Well, if your Action class implements Text

Re: [s2] Is it possible to replace/supplement i18n resolution logic?

2007-08-06 Thread mraible
Ray Clough wrote: > > We did something similar to what you are suggesting. We still use > properties files, but we replaced much of the lookup with our own classes. > We created a wrapper around ResourceBundle which has overloaded > 'getText()' methods. We make this accessible to all parts o

Re: [s2] s:component and reading parameters

2007-08-06 Thread Musachy Barroso
try : musachy On 8/6/07, mraible <[EMAIL PROTECTED]> wrote: > > I'm trying to use the tag to create a re-usable set of fields > in a form. In my JSP: > > > > > > In template/simple/addposition.jsp, I have: > > <%@ taglib uri="/struts-tags" prefix="s" %> > > Name: > > For some reaso

[s2] s:component and reading parameters

2007-08-06 Thread mraible
I'm trying to use the tag to create a re-usable set of fields in a form. In my JSP: In template/simple/addposition.jsp, I have: <%@ taglib uri="/struts-tags" prefix="s" %> Name: For some reason, this doesn't work. Is there something I'm doing wrong? Can templates be JSPs or do

Getting beat up troubleshooting my app; help please.

2007-08-06 Thread Peter L. Berghold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, I'm writing a web application that part of it maintains a list of accounts and maps to those accounts privileges. I'm getting some odd bomb-outs that aren't making sense to me. Of course, this could also be a case I'm not seeing something.

html:form styleId name attribute javascript issue

2007-08-06 Thread john lee
I have two file, and try to test javascript, but javascript can not access document.form. Can one know why? inside , styleId <> Name attribute? if so, what is the solution for that? i use strusts 1.3 tks in advance john one file is javacript file, called my.js

Re: Using Nested tag and JavaScript

2007-08-06 Thread semaj.najraham
It works now.. Thanks.. semaj.najraham wrote: > > Hi Paul, > > I successfully copied the values from mailing address textfields to > billing address textfields using javascript (see below). However, the > billing address text fields values are not sent to the server. They are > empty!! > > I

Re: Using Nested tag and JavaScript

2007-08-06 Thread semaj.najraham
Hi Paul, I successfully copied the values from mailing address textfields to billing address textfields using javascript (see below). However, the billing address text fields values are not sent to the server. They are empty!! If I directly type mailing and billing address, the values are sent t

Struts2 + Dynamic Forms + File Upload

2007-08-06 Thread rakeshxp
Hi, I am trying to create a form which would have dynamic number of file tag ( this would be created by the JS ). I am looking for a way to do so in struts. I have created the following class public class FileDetails { private File file; private String contentType; private String

Re: X11 server at :0.0

2007-08-06 Thread Laurie Harper
John Mammen wrote: Hi Guys, From your explanation, I understand that the X11 server is required to render graphics. Thank you guys for the information. No, it's only *required* for a subset of operations. However, it is assumed to be available if you don't specify -Djava.awt.headless=true.

Re: specifying a struts 2 action in the url field of a dojo function

2007-08-06 Thread Musachy Barroso
Yes, it seems like the Dojo api changed at some point (the example was fixed for 2.1) and now dojo passes the widget object for the node that was selected, instead of the id string. Just use the "id" property in the object that is passed to the function. musachy On 8/6/07, Session A Mwamufiya <[

Re: specifying a struts 2 action in the url field of a dojo function

2007-08-06 Thread Session A Mwamufiya
Hi, Thanks so much for the breakthrough. I implemented the change, and now the action gets called. The only thing now is that I don't seem to be getting an actual nodeId in the display element. I just get an object; here's what comes out in the display: Id:[object Object] Name: It seems th

RE: change

2007-08-06 Thread Manuel Correa
But how know what is the page to change in the div, if you I want to change another page in my server... ? Manuel Correa. -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, August 06, 2007 1:49 PM To: Struts Users Mailing List Subject: Re: change wrote: > H

Re: change

2007-08-06 Thread Musachy Barroso
Why don't you just publish the "link1_topic" topic? dojo.event.topic.publish("link1_topic"); musachy On 8/6/07, Manuel Correa <[EMAIL PROTECTED]> wrote: > Hi, I want to switch the div when the users click in one of the links > built for Struts 2. I have a function that receive the new url to inv

Re: specifying a struts 2 action in the url field of a dojo function

2007-08-06 Thread Musachy Barroso
That didn't come out right, "this" in the global scope points to the Window object. musachy On 8/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > That code is wrong as this line: > > dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected"); > > is using "this" which is not gonna be

change

2007-08-06 Thread Manuel Correa
Hi, I want to switch the div when the users click in one of the links built for Struts 2. I have a function that receive the new url to invoke and get the widget but when arrive to the method refresh(, the system said that method is not defined. Somebody knows a better way to do this. Code

Re: [S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread mleneveut
Here is a sample application containing the test pages : http://oughacom.free.fr/Java/Test.war mleneveut wrote: > > The whole string. > > If I clicked the date 06/08/2007, I have "06/08/2007" in the input, I > delete all to have an empty string "", I click on the calendar, it appears > with

Re: [S2] Bug v2.1.0 for double and int validation

2007-08-06 Thread mleneveut
Here is a sample application containing the test pages : http://oughacom.free.fr/Java/Test.war mleneveut wrote: > > Hi, > > I try to validate a double, but it generates this in my JSP : > > // field name: familleProduit.chargeTravail > // validator name: double > if (f

Re: [S2] Problem of validation with a select in my form

2007-08-06 Thread mleneveut
Here is a sample application containing the test pages : http://oughacom.free.fr/Java/Test.war mleneveut wrote: > > The Change() method is rather doing nothing, just modifying a flag : > > function Change(){ > document.forms[0].change.value = '1'; > } > > > My validattion xml is sim

Re: specifying a struts 2 action in the url field of a dojo function

2007-08-06 Thread Musachy Barroso
That code is wrong as this line: dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected"); is using "this" which is not gonna be defined there. Try: dojo.event.topic.subscribe("treeSelected", function treeNodeSelected(nodeId) { dojo.io.bind({ url: "?nodeId="+no

specifying a struts 2 action in the url field of a dojo function

2007-08-06 Thread Session A Mwamufiya
Hello, I've been trying to get the tree view code from the showcase to work for many days now, and I'm literally stuck. I use logging to determine whether action methods are called or not, and the following script never gets to the dynamicTreeSelectAction action: function treeNodeSelecte

RE: [S2] Help with Templates

2007-08-06 Thread Hoying, Ken
I have created new JSP template file and placed it in a directory of wbe root where the directory format template/theme. This new JSP templat file contains other Struts2 tags, including s:a. However if I do not specifically set the theme and templateDir attributes to that of the Struts2 tag loca

Re: Handling Session Objects

2007-08-06 Thread Laurie Harper
Well, I can think of at least two possibilities: 1) the URL you're copying includes a session ID, as suggested by Dale 2) the URL you're copying includes request parameters for user name and password What is the exact URL you're copying? What do the relevant action mappings, JSPs and Java cl

Re: Handling Session Objects

2007-08-06 Thread Dale Newfield
Sawan wrote: Now if anyone copy and paste the url on another machine's browser, then How can he/she will get the user name and password there..? If that url includes ";jsessionid=..." then sure, they've just had their session hijacked, including all the information you put in that session. -

Re: Gettin the selected item in a s:tree

2007-08-06 Thread Toni Lyytikäinen
YUI has great documentation, there are also nice examples at: http://developer.yahoo.com/yui/treeview/ On 8/6/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote: > > Do you have an example, because I know nothing about YUI. > > Also, I saw in the link you provided that there is a workaround for d

Re: [S2] Help with Templates

2007-08-06 Thread Musachy Barroso
Can you give more details on what you are doing? I'm using the "component" tag without problems (I only specify the templateDir and theme attributes in the component tag). regards musachy On 8/6/07, Hoying, Ken <[EMAIL PROTECTED]> wrote: > I love the idea of being able to create JSP templates and

Re: [S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread MLENEVEUT
The whole string. If I clicked the date 06/08/2007, I have "06/08/2007" in the input, I delete all to have an empty string "", I click on the calendar, it appears with all days as "NaN" "Musachy Barroso" <[EMAIL PROTECTED]> 06/08/2007 17:28 Veuillez répondre à "Struts Users Mailing List"

Re: [S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread Musachy Barroso
When you delete the date in the input, do you delete the whole thing? or juts a part of it? musachy On 8/6/07, mleneveut <[EMAIL PROTECTED]> wrote: > > Hi, > > When I click the calendar picture of my datetimepicker tag (the input is > empty), the calendar shows up normally. I pick a date, all is

Re: Gettin the selected item in a s:tree

2007-08-06 Thread Session A Mwamufiya
Do you have an example, because I know nothing about YUI. Also, I saw in the link you provided that there is a workaround for dojo, but I can't even check it out because I downloaded dojo and followed the HelloWorld tutorial, but it doesn't work. I don't know what files/jars to include in my p

Struts 2 Ajax forms-multiple forms with one submit, how?

2007-08-06 Thread lupus
Is it possibe to have one submit for several ajax forms instead of submitting each Ajax form? I tried to use javascript to submit two form actions, but only the second one in my javascript submit list is displayed and the result is displayed in a different page instead of in the defined target a

RE: X11 server at :0.0

2007-08-06 Thread John Mammen
Hi Guys, From your explanation, I understand that the X11 server is required to render graphics. Thank you guys for the information. But I don't understand why websphere throws this error when I am deploying an EAR with external Jars imported directly into my EAR, but deploys the applicatio

error to render image with action

2007-08-06 Thread Pedro Herrera
I´l like to show several imagens in the page using : showImage is a action with result type = stream The following error message appears : SEVERE: Could not execute action: //showImage java.lang.IllegalStateException: getWriter() has already been called for this response

Re: X11 server at :0.0

2007-08-06 Thread Roberto Nunnari
Hi John. First of all try to run your appserver with the java command line option: -Djava.awt.headless=true if that is not enough, then make sure the required X libraries are installed and in the appserver LD_LIBRARY_PATH. Al Sutton wrote: Yup, it's a problem where the full set of required

Re: Defining a validate() method

2007-08-06 Thread Session A Mwamufiya
Great help, Thanks! Session > I forgot to add that you can also use annotations or XML validation for > simple validations. If you set the validate=true on your s:form and you > are using the XML validators, it will generate the client side javascript > nessessary to do the validations. After

[S2] Help with Templates

2007-08-06 Thread Hoying, Ken
I love the idea of being able to create JSP templates and reference them with the Component tag. However, I am not sure that I am implementing them correctly. If I have another Struts tag in my template, such as , then I get errors saying that it cannot find the template in my theme and template

Defining a validate() method

2007-08-06 Thread Session A Mwamufiya
Hi, I want to set up my own validate method to validate fields in my own way, but I'm not sure how to set up the method. I don't know how to set or clear the validation error message. Is it ok just to use the action's error stack, like this: public void validate() { if (listOfExistingEleme

Re: Defining a validate() method

2007-08-06 Thread Richard Sayre
I forgot to add that you can also use annotations or XML validation for simple validations. If you set the validate=true on your s:form and you are using the XML validators, it will generate the client side javascript nessessary to do the validations. After the form submits it will do those valid

@ConversionErrorFieldValidator and Collections

2007-08-06 Thread Petzsch, Martin
Hi, I have a data bean which contains a date field. I annotate the set method with: @ConversionErrorFieldValidator(message="aDate: Conversion Error") @RequiredFieldValidator(message="aDate: Required Field") public void setADate(Date date) { aDate = date;

Re: Defining a validate() method

2007-08-06 Thread Richard Sayre
addFieldError("fieldName","message"); will add a specific field error. If you are using the XHTML theme, the error will appear above the field. This should set and clear the validation message for you. If you are using the simple theme you have to add the s:fielderror tag. On 8/6/07, Session

Re: Custom user roles and Action

2007-08-06 Thread Jim Theodoridis
tnx a lot but i am using struts 1.2.9 and at pressent time its difficalt to upgrade to struts 2.x Richard Sayre wrote: An interceptor is exactly like a filter. I runs before and after an action executes. Check out the following: http://struts.apache.org/2.x/docs/interceptors.html http://str

Re: Custom user roles and Action

2007-08-06 Thread Richard Sayre
An interceptor is exactly like a filter. I runs before and after an action executes. Check out the following: http://struts.apache.org/2.x/docs/interceptors.html http://struts.apache.org/2.x/docs/writing-interceptors.html Also the 'FAQ" section at the bottom of the first like has some useful in

Re: Custom user roles and Action

2007-08-06 Thread Jim Theodoridis
I wrote a "LoadApplication" action that executes after my user has logged in. It checks the database to see what roes they have and it fills the session with a few variables such as... I am thinkng to do the same with filter is it possible? I am using DispatchAction alot is it possible to allow

Re: Custom user roles and Action

2007-08-06 Thread Richard Sayre
I wrote a "LoadApplication" action that executes after my user has logged in. It checks the database to see what roes they have and it fills the session with a few variables such as admin = true; designer = false; etc. by default they are all false. Then I wrote an interceptor that checked th

Action and user authentication

2007-08-06 Thread Jim Theodoridis
Hello I am using my own security manager to login to a struts application. I am looking for a way to fires an action only when a user logs in have the rights permissions Any suggestions? - To unsubscribe, e-mail: [EMAIL P

Custom user roles and Action

2007-08-06 Thread Jim Theodoridis
Hello I am using my own security manager to login to a struts application. I am looking for a way to fires an action only when a user logs in have the rights permissions Any suggestions? - To unsubscribe, e-mail: [EMAIL P

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
you are right, it now works. Thanks a lot for your help and patience Best, Session > I believe the correct spelling is redirect-action > > http://cwiki.apache.org/WW/action-configuration.html > > On 8/6/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote: >> >> I get the following: Caused by:

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
In my interceptor stack i added this parameter: true I assume it is using either commons logging or log4j but I'm not sure where the log file is or how to manipulate what information goes into the log file. On 8/6/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Richard Sayr

Re: Exception Handling and Logging

2007-08-06 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > Do I open a file stream on the JSP page or is there a > better way to log this information? Use commons-logging and / or Log4J? d. Need a vacation? Get gr

Re: populating input fields on page load

2007-08-06 Thread Dave Newton
--- Session A Mwamufiya wrote: > I'm using struts 2.0.6, is redirectAction not > defined for it? I don't recall when the result type renaming happened, but I suspect post-2.0.6 so I'd try redirect-action. Giving the information about what the error actually was made it much, much easier to help.

Re: populating input fields on page load

2007-08-06 Thread Toni Lyytikäinen
I believe the correct spelling is redirect-action http://cwiki.apache.org/WW/action-configuration.html On 8/6/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote: > > I get the following: > Caused by: There is no result type defined for type 'redirectAction' > mapped with name 'createSMIG' - result

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
I set up my application to throw the Exceptions back and I am using Exception mapping to redirect the user to an error page. The error page displays the exception and stack trace. How do I log this to a file instead? Do I open a file stream on the JSP page or is there a better way to log this in

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
I get the following: Caused by: There is no result type defined for type 'redirectAction' mapped with name 'createSMIG' - result - file:/C:/jboss-4.2.1.GA/server/default/deploy/zen.server.war/WEB-INF/classes/edu/cmu/sei/smart/zen/server/smigmaintenance/smigmaintenance-config.xml:21:52 I'm using

Re: populating input fields on page load

2007-08-06 Thread Dave Newton
--- Session A Mwamufiya wrote: > I tried to follow this approach, but my server fails > in struts.xml, stating that there's an error in > building results for my first action. Does it say anything in particular about the error? d.

Re: X11 server at :0.0

2007-08-06 Thread Manos Batsis
John Mammen wrote: Have any of you faced this issue while deploying an application in WAS? This is irrelevant to Struts i think... Try googling for -Dheadless=true or something. Cheers, Manos - To unsubscribe, e-mail: [E

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
Hi, I tried to follow this approach, but my server fails in struts.xml, stating that there's an error in building results for my first action. Here are my actions: /pages/smigmaintenance/SMIGSelection.jsp /pages/smigmaintenance/EmptyReloadNavigationTree.jsp SMIGCreation /pages/smigma

RE: X11 server at :0.0

2007-08-06 Thread Al Sutton
Yup, it's a problem where the full set of required X11 libraries aren't installed on the machine your trying to run the webapp on and you're doing something involving graphics (e.g. drawing to a buffer and serving the image from a servlet). Best bet is to install the X libraries, next best would b

[S2] Error datetimepicker when erase input and click again calendar

2007-08-06 Thread mleneveut
Hi, When I click the calendar picture of my datetimepicker tag (the input is empty), the calendar shows up normally. I pick a date, all is ok. But if I then delete the choosen date in the input, and click again on the calendar, all the dates are NaN. As if the displayFormat was in trouble. Is t

Re: populating input fields on page load

2007-08-06 Thread mleneveut
You could do redirection after your first action. myFirstAction.jsp : form + submit buton to MyFirstAction.process() MyFirstAction { private String myAttribute; execute() : initialize myAttribute and redirect to "success" = myFirstAction.jsp process() : do stuff on myAtrribute submitted in myF

X11 server at :0.0

2007-08-06 Thread John Mammen
Hi, Have any of you faced this issue while deploying an application in WAS? Error executing deployment: java.lang.InternalError. Error is Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.. java.lang.InternalError: Can't connect to X11 window server using ':

Re: populating input fields on page load

2007-08-06 Thread Toni Lyytikäinen
Does your class implement Preparable interface? Do you have the interceptor in your interceptor stack? Also, check the syntax of the preparable method - it should be void like this public class TestAction extends SomeClass implements Preparable { ... public void prepare() { log.debug("This should

Re: populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
Hi, could you give me an actual example, because I added a method called Prepare() in my class, but it never gets called. Here's my code: public String Prepare() { log.debug("Populating form fields if a SMIG was selected"); // ... return SUCCESS; } Nothing gets logged when the form is d

Re: populating input fields on page load

2007-08-06 Thread Nuwan Chandrasoma
Hi, Implement the prepare method in your action class and add the code in that method. Thanks, Nuwan Session A Mwamufiya wrote: Hi, I have a page with input fields, and would like my action to populate those fields before they get displayed. This page is handled by a certain action, bu

Concerning index on validating under logic:iterate

2007-08-06 Thread Hiroyuki Suzuki
Guys,i have this error saying that indexed is invalid for my multibox attribute this is my JSP what seems to be the problem? -- View this message in context: http://www.nabble.com/Concerning-index-on-validating-under-logic%3Aite

populating input fields on page load

2007-08-06 Thread Session A Mwamufiya
Hi, I have a page with input fields, and would like my action to populate those fields before they get displayed. This page is handled by a certain action, but it is the result page from a different action (I click on a button in the previous action form, and this one gets called up). I put s

[S2] css_xhtml theme & ajax validation

2007-08-06 Thread TuomoS
Dear all, Is it possible to use the css_xhtml theme template and ajax validation together with forms? Since ajax theme extends xhtml theme .. is the only option to modify the ajax theme by hand? Regards, TuomoS -- View this message in context: http://www.nabble.com/-S2--css_xhtml-theme---aj

Re: Gettin the selected item in a s:tree

2007-08-06 Thread Toni Lyytikäinen
I'm under the impression that the selected topic publishing isn't currently working in Struts 2. At least the examples in the showcase app aren't working for me (in Firefox 2.0.0.6). When I had to do something similar I found this: http://issues.apache.org/struts/browse/WW-1813?page=com.atlassian.j

Re: Gettin the selected item in a s:tree

2007-08-06 Thread Session A Mwamufiya
Hi again, Anyone has a clue about obtaining a user's selection in an s:tree element? I used the example from the showcase, and I don't fully understand the following script: function treeNodeSelected(nodeId) { dojo.io.bind({ url: "

[S2] Bug v2.1.0 for double and int validation

2007-08-06 Thread mleneveut
Hi, I try to validate a double, but it generates this in my JSP : // field name: familleProduit.chargeTravail // validator name: double if (form.elements['familleProduit.chargeTravail']) { field = form.elements['familleProduit.chargeTravail']; var

velocity problem with jetty 6.1.1

2007-08-06 Thread alex xander
i run my application with tomcat 6.x or jboss 4.x it's work fine. i'm use struts 2.0.8 but when i test with jetty 6.1.1 there is some velocity problem. the applcation run ok, but there is error message in my console here is the error [ERROR] Digester - Parse Fatal Error at line 1 column 1: Content