RE: change border of field when error comes(Custom CSS)

2008-10-16 Thread Hardik Shah
let me explain your idea works on error message ,it creates border on error messages i am trying something that it chages border of element(textbox,combobox) on which error comes so i am iterating fieldErrors List from valuestack and get its key as elementname and using #, create dynamically cs

Re: dynamic action in form

2008-10-16 Thread Laurie Harper
styl9090 wrote: Hi, I am using struts 2 in my current project. How can I write the action dynamically in my JSP form tag? Here is the example: This case, I have my form action is in session. I have tried using below, which didn't work: Assuming the action attribute is evaluated, it would be

RE: Want to make dropdown () readonly without making it disabled

2008-10-16 Thread arunabh
Hi , Thank you for the reply . But the side you reffered me to , they charge money for signing up . And without signing up i can't see the solutions . So could tell me what is the solution for the problem . With Regards Arunabh Kawczynski, David wrote: > > Try picking one of the suggestions

issue with autocompleter tag

2008-10-16 Thread akash agrawal
Hi, I am trying to attach javascript event onkeypress with autocompleter tag but can't. I can't seem to attach any event for that matter. Can anyone throw any light on it? Please find my code details below. Thanks. My code: Javascript: function processKey(e) { if (null == e) e

Execute and Wait Question

2008-10-16 Thread Zoran Avtarovski
I have to build a list of display items from a legacy system which takes a while to process. I¹ve set up the execute and wait interceptor and that part of it is working well. Where I¹m running into problems is when the long running process is complete and sitemesh. My decorator file has the refre

404 error in struts 2 blank helloworld example in RAD7

2008-10-16 Thread Tim Jowers
Hi, Has anyone run the struts2-blank-2.0.11.2.war in RAD7/WebSphere? I get 404 on calling an action. First, https://localhost:9444/testo/example/HelloWorld.jsp works. Then the action 404's: https://localhost:9444/testo/example/HelloWorld.action?request_locale=en I validated the HelloWorld.class

Re: [S2] best way to share data between actions

2008-10-16 Thread Wes Wannemacher
If you want a Struts-y solution, you could take a look at the patch to this JIRA - https://issues.apache.org/struts/browse/WW-2635 It implements a "flash" scope, which sounds like what you're looking for. -Wes On Thu, 2008-10-16 at 16:47 -0500, [EMAIL PROTECTED] wrote: > This is the million do

Re: [S2] best way to share data between actions

2008-10-16 Thread stanlick
This is the million dollar question! Always strive to "hold onto" the least amount of data possible. This usually means for as long as it takes to build the web page.Use the request scope unless you *must* access the *same* data later. At which point you should save only *keys* to the actual

[S2] best way to share data between actions

2008-10-16 Thread John Cartwright
Hello All, What is the recommendation for sharing data between actions? I have one action that performs a search and displays the results in a JSP page. That results page contains links to another action in which I'd like to have access to the original search results. My first instinct was t

Re: Hibernate and Struts

2008-10-16 Thread jygnash
Hi Anoop, YOu can use the JNDI context to get the Hibernate's SessionFactory. 1) in hibernate-cfg.xml give the jndi name as below 2) in one of your startup servlet or first class handling the request for session factory creation (we had a start up servlet) , you can have the session f

Re: Date in jspx

2008-10-16 Thread Pablo Vázquez Blázquez
Thanks both. Pablo Vázquez Blázquez escribió: Hi, I have a long representing a date. How can I get the date and time associated in a jspx? I tried: format.date.short={0, date, short} format.time.short={0, time, short} But it gives me "null null", for instance with value = 1224170724804

RE: Session timeout

2008-10-16 Thread Martin Gainty
your web.xml contains a session-timeout parameter set e.g. 30 from my understanding..regular catalina SSL or non-SSL connector has no ability to understand events you may want to look at implementing NIOConnector which will throw RetryRequest for Continuation.getEvent() calls http://

Re: Date in jspx

2008-10-16 Thread Chris Pratt
The cleanest way would probably be to add an accessor to your Action that return new Date(value). Something like: public Date getDateValue () { return new Date(value); } Then in your page you can use: (*Chris*) On Thu, Oct 16, 2008 at 8:42 AM, Pablo Vázquez Blázquez <[EMAIL PROTECTED] >

Re: Date in jspx

2008-10-16 Thread Tobin Juday
How about something like: (disclaimer: haven't actually run it yet) Tobin On Thu, Oct 16, 2008 at 11:42 AM, Pablo Vázquez Blázquez < [EMAIL PROTECTED]> wrote: > Hi, > > I have a long representing a date. How can I get the date and time > associated in a jspx? > > I tried: > > format.date.shor

Struts2 with Annotation and problem (always returning the default action)

2008-10-16 Thread Romain Maton
Hi all, Sorry, I don't know which mailing list to contact so... I will try to explain as I can my problem : * I use Struts 2, my actions are defined with Annotations. * I have a struts.xml very simple, only defining a default page, here it is : http://struts.apache.org

Date in jspx

2008-10-16 Thread Pablo Vázquez Blázquez
Hi, I have a long representing a date. How can I get the date and time associated in a jspx? I tried: format.date.short={0, date, short} format.time.short={0, time, short} But it gives me "null null", for instance with value = 1224170724804 ---

Re: Struts 2 actions executing twice

2008-10-16 Thread wskent
Finally figured this one out! I am using the YSlow plugin to Firefox and it is causing a second HTTP GET to gather information about the site. Thanks for the heads up on using the "Live HTTP headers" plugin to help catch this beast. aum strut wrote: > > well i did what you have mntioned in ur

Re: Session timeout

2008-10-16 Thread David C. Hicks
I think the usual method is to have some kind of authentication interceptor on your stack. If it cannot find a User/Login/Authentication object in the session for the current request, then it redirects to the login page. That's all server-side, of course. Francisco Exposito wrote: Hi, How

Session timeout

2008-10-16 Thread Francisco Exposito
Hi, How can I check if my session is timed out and redirect then to the login page? Regards, Paco _ Llega la nueva temporada. Consulta las nuevas tendencias en MSN Estilo http://estilo.es.msn.com/moda/

org.apache.jasper.JasperException: File "/tags/struts-logic"

2008-10-16 Thread Raghu
I have struts application running in windows-xp., jdk1.5, apache-tomcat-5.5 I moved the same application to linux, jdk1.6.0-10, and apache-tomcat 5.5.26 I am getting following error on linux system. HTTP Status 500 - description : The server encountered an internal error () that preven

RE: Struts2 Collection validation

2008-10-16 Thread Martin Gainty
thanks for the links gabriele If I had to make a suggestion to the xwork committers I would suggest their attribute configurations be a bit more specific so instead of Login-validation.xml configured as ... myContext true where by magic incantation a

RE: Want to make dropdown () readonly without making it disabled

2008-10-16 Thread Kawczynski, David
Try picking one of the suggestions from here: http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_23 689617.html -Original Message- From: arunabh [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 10:13 AM To: user@struts.apache.org Subject: Want to make dropdow

Want to make dropdown () readonly without making it disabled

2008-10-16 Thread arunabh
Hi, I'm using struts2. I want to make a drop down () as a read only element. If I use disabled attribute the data would be lost upon submission. So I can't use disabled. How do I make it read only without losing the data while submission? Thanks, Arunabh -- View this message in context: http

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-16 Thread Haulyn Jason
Thanks Dave, it works well now. I need to make my package extends to rest-default or setup the interceptorStack as rest-default's style. --- Thanks! Mobile: +086-15864011231 Website:http://www.openmotel.cn http://www.vvthumb.com GTalk:[EMAIL PROTECTED] Skype

Re: Struts2 Collection validation

2008-10-16 Thread Gabriel Belingueres
You may want to look at type conversion [1] and VisitorValidator [2] to validate those form fields. Also, please note that collection indexing is done with [square] brackets, like in: "persons[2].name" [1] http://struts.apache.org/2.1.2/docs/type-conversion.html#TypeConversion-Anadvancedexamplef

How to populate comboboxes from Database ??

2008-10-16 Thread A. Lotfi
Hi, I am using struts1.2 I need to have a jsp page that has a form with two comboboxes or listboxes and a submit button, so the user can transfer data between the two comboboxes and the press submit button to update the database. is there any small example on how to get data fro

Re: How to setup Interceptor when using struts2.1.2 rest plugin with codebehind?

2008-10-16 Thread Dave Newton
--- On Wed, 10/15/08, Haulyn Jason wrote: > So, I want to know the details of the interceptorStack of > rest-default package. Or is there a way to find reference? Looks like you found it. > Is this the default interceptor stack for rest plugin? One line later: Dave ---

RE: change border of field when error comes(Custom CSS)

2008-10-16 Thread Jishnu Viswanath
That's the way you should not do it, I still don't understand what are you doing there, though There is an attribute called cssClass and cssStyle . className { border:1px solid #cc; } Try it, it should work, I never tried with fieldError cos I never used it. Regards,

Re: Struts2+YUI

2008-10-16 Thread aum strut
sorry for using another mail box for posting the question i am geting some problem in my ID while posting the question in the mail listso i have used my alternative ID. On Thu, Oct 16, 2008 at 4:31 PM, aum strut <[EMAIL PROTECTED]> wrote: > No i want to get this arraylist using YUI Ajax funct

Re: Struts2+YUI

2008-10-16 Thread aum strut
No i want to get this arraylist using YUI Ajax functionality i have a drop down in my jsp page and i am calling the ajax function with onChange event the code which i have used for calling my action class is working fine and even i am able to hot my action class using YUI APIbut what i want is tha

Re: Struts2+YUI

2008-10-16 Thread Hardik Shah
hi you can use for getting array list of valuestack but you should setter and getter for this arraylist for accessing it from jsp side shekher awasthi wrote: > > Hi All, > > I am trying to integrate struts2 with YUI ,but facing some problems with > this. I want that

Re: change border of field when error comes(Custom CSS)

2008-10-16 Thread Hardik Shah
thanks i dont know how to create custom theme for that but i have done manually #, { border-color: #FFE6F7; } Torsten Krah wrote: > > Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah: >>

Struts2+YUI

2008-10-16 Thread shekher awasthi
Hi All, I am trying to integrate struts2 with YUI ,but facing some problems with this. I want that when my action get called by YUI it must return a arrayList of string which i must be able to handle using the YUI. For this i took the help of example from YUI site and able to hit the action but m

Re: change border of field when error comes(Custom CSS)

2008-10-16 Thread Torsten Krah
Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah: > can anybody gives idea Make a custom theme for your tag you want to get a custom border and add your css definition there. Another solution would be, to use s:if and look in the fielderror List for a failure for your field and if on

Is it a bug for

2008-10-16 Thread Haulyn Jason
Hi, all When I use , everything works well, struts2 generate the html as below: But when I want to add some parameters, and change the code as:,struts looks lost the namespace param. It generates the html as below: When I change the code to , it generates what I need as below: Can anybody t

Re: Hibernate and Struts

2008-10-16 Thread Hardik Shah
hope this help to you http://hardik4u.wordpress.com Anoop-9 wrote: > > Hi, > We are looking forward to integrating struts with hibernate in our web > application project. Could you guide us on how to to integrate them. I > tried the hibernate plugin as recommended on the hibernate website, >

Re: Struts2 Collection validation

2008-10-16 Thread Julio Alberto Jalón
May I didn't explain myself correctly. What I would like to know is how to validate multiple fields. I'll write an example. I have a form in a JSP which generate the field dynamically. E.g: ID First Name Last Name

change border of field when error comes(Custom CSS)

2008-10-16 Thread Hardik Shah
hi i am using simple theme for struts 2.0.11.2 i have define also works fine , but i want to change border color of particular field when error comes can anybody gives idea thanks in advance -- View this message in context: http://www.nabble.com/change-border-of-field-when

change border of field when error comes(Custom CSS)

2008-10-16 Thread Hardik Shah
hi i am using simple theme for struts 2.0.11.2 i have define also works fine , but i want to change border color of particular field when error comes can anybody gives idea thanks in advance -- View this message in context: http://www.nabble.com/change-border-of-field-when