Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-17 Thread LucaLuca
Hi, It was in the right place, but didn't work. So, i've tried to put the "hilbernate-all.jar" in the build path, and it worked. I don't know the reason, but probably i was using the latest version of the requested libraries and it need something older.. Thank you everybody for the time you spe

problem while developing a DynaValidatiorForm application

2007-07-17 Thread Narasimha Raju Naidu
dear, i am not getting the parameter values whlie dispalying the errors. i am providing all my code here can any one help me regarding this Form Bean class:URformBean.java java Code: *import* javax.servlet.http.*;*import* org.apache.struts.action.*;*import* org.apache.struts.validator.*;*p

Re: ******** Java script not working in Netscape,Firefox,Safari*******URGENT PLS HELP ME**********

2007-07-17 Thread csirus
Just a note on the Javascript document properties not found error. I encountered this when I was trying to handle a div that did not exist in the html. My script would hide all layers before showing a selected layer, and one of the layers to be hidden did not actually exist. -- View this message

Validation of DynaValidatorForm with String array

2007-07-17 Thread Rahul Joshi
Hi, In my struts application I am using a DynaValidatorForm which contains a String[]. I am doing "required", "integer" and "intRange" validation on the form. The problem I am facing is that if I declare the property in struts-config.xml as a string array with given size (like this : ) then the "

Validation Problem

2007-07-17 Thread alamsz alamsz
Hi All, I'm new in struts , I have problems with struts validation, my application was using struts 1.1 and validator 1.0,,i'm trying to upgrade to struts 1.2.7 and common validator 1.1.4 because i use non default resource bundle as arg key in validation. My problem is when struts generate

[SOLVED] Re: [S2] Disable fileupload interceptor

2007-07-17 Thread Oguz Kologlu
I think the simplest way is to copy org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper to your classpath and change the MultiPartRequestWrapper(..) method to ignore the content. I've put in a enhancement request in jira for a configuration item to disable Multipart request pars

Re: Display Tag Help

2007-07-17 Thread Peng Tuck Kwok
There's a in depth tutorial somewhere on the displaytag home page & some examples that you can play around with. http://displaytag.sourceforge.net/11/ On 7/18/07, naseer mohammed <[EMAIL PROTECTED]> wrote: Can any one explain me step by step method to use display tags

Display Tag Help

2007-07-17 Thread naseer mohammed
Can any one explain me step by step method to use display tags

Re: error

2007-07-17 Thread naseer mohammed
yes i used jdk only as java_home but still it does'nt work. On 7/17/07, Perssy Llamosas <[EMAIL PROTECTED]> wrote: Use a JDK, not a JRE as JAVA_HOME. naseer mohammed wrote: > i am trying to run struts-blank application which encounter this > exception.. > > > org.apache.jasper.JasperExcept

Re: Displaytag help in Struts 2

2007-07-17 Thread Jeromy Evans
Yes, I use it as stated previously. Is row the object you think it is? You either have a typo or you're trying to access properties of row that don't exist. The code below shows plain html contained in a column that accesses properties of the current row. property="dateCre

[S2] Struts-JSF Plugin

2007-07-17 Thread Ray Clough
We are trying to use the Struts-JSF plugin, and are encountering problems. 1. The rendered form has the wrong 'action' attribute. We want it to be "TableTest.action", and the component renders it as "TableTest.jsf". We were able to overcome this with a javascript at the end of the page to chang

RE: Does Tiles Layout page can have struts form components

2007-07-17 Thread Arunkumar Balasubramanian
Hi Thanks for your response. Could you please elaborate on this. I read your message and was trying to extract the information from it. If you could elaborate it, It will be of great help. Once again thanks for your response. Regards, Arun > Date: Tue, 17 Jul 2007 09:13:45 +0200

How can I tell Struts 2 to throw/log exceptions for invalid OGNL Expressions

2007-07-17 Thread mraible
I have the following class: public class TestAction { public static String concat(String str1, String str2) { return str1 + " and " + str2; } } In a JSP, I can write the following and it works fine: However, if I change it to an invalid class name, it fails silently: I've

Re: S2: Getting info from server via topic

2007-07-17 Thread Musachy Barroso
Anything that you write to the output stream on your action will be available on the "data" argument. musachy On 7/17/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: For this topic: dojo.event.topic.subscribe("/saveTopic", function(data, type, e) { // data : text returned // type : "before", "l

S2: Getting info from server via topic

2007-07-17 Thread Scott Nesbitt
For this topic: dojo.event.topic.subscribe("/saveTopic", function(data, type, e) { // data : text returned // type : "before", "load" or "error" // e: request object if ('load' == type) { } } When my action on the server is successful the type is set to load and things work great. Ho

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-17 Thread cilquirm
By the looks of it, your classpath is messed up. Is the hibernate3 jar in the right place? I can't think of any other reason it wouldn't be able to find org.hibernate.MappingNotFoundException LucaLuca wrote: > > Hi, > > I've tried to make some changes to make it work..But nothing!. These ar

RE: [S2] TabbedPanel with Remote DIVs

2007-07-17 Thread Hoying, Ken
I must have had my syntax wrong or something else before. It is working for me now. Thank you for the follow up. Take care, Ken -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 11:45 AM To: Struts Users Mailing List Subject: Re: [S2] Tabbe

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
We actually didnt provide you any solution, but its pretty hard, since you haven't provided any details :-) There are many possibilities, IP-Throttle, session-based throttle or a mechanism which manages the overall load on the server. Without knowing what you are doing, providing even a hint is p

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
I think you misunderstand things a bit here (or maybe the spec wasnt clear, as often) servlet spec 2.5 (the current one, and the one tomcat 6 is implementing) states in SRV.14.2.2 Web Application Environment (9.11 now merily point to this chapter): "Java EE defines a naming environment that allo

Struts2 StrutsTestCase

2007-07-17 Thread bartlebooth
Hello, I'm fairly new to Struts 2. I'm currently migrating a project from Struts 1 to Struts 2, but I'd like to make heavy use of Unit Testing to aid in the migration. In the documentation, the testability of the new actions is often mentioned. However, I have the impression that it's not that

Re: how do I get latest version of xwork library or struts 2.0.8

2007-07-17 Thread Guillaume Carré
2007/7/17, David Harland <[EMAIL PROTECTED]>: Hi, As recommended in http://cwiki.apache.org/confluence/display/WW/S2-001 I tried downloading and building the latest version of struts but instead of getting 2.0.8 I got 2.1. I then tried to get the latest version xwork and build that, and that h

how do I get latest version of xwork library or struts 2.0.8

2007-07-17 Thread David Harland
Hi, As recommended in http://cwiki.apache.org/confluence/display/WW/S2-001 I tried downloading and building the latest version of struts but instead of getting 2.0.8 I got 2.1. I then tried to get the latest version xwork and build that, and that had 3 errors. Can someone please give me a link

Re: [S2] TabbedPanel with Remote DIVs

2007-07-17 Thread Musachy Barroso
Using any tool like firebug, and building the url with the "url" tag, do you see the parameters in the request? musachy On 7/16/07, Hoying, Ken <[EMAIL PROTECTED]> wrote: I have a tabbed panel with divs that retrieve their content remotely. Basically the control is acting like a tabbed address

RE: slowing down action execution time

2007-07-17 Thread Al Sutton
You could always use a holder page and a meta refresh. For example; Page 1 - Has the form on which the details are entered | [submits to] | Action A which stores the details of the query | [forwards to] | Page 2 which has a meta refresh (http://webdesign.about.com/od/metataglibraries/a/aa080300a

Re: slowing down action execution time

2007-07-17 Thread Ing. Andrea Vettori
thanks to all I'll try... Il giorno 17/lug/07, alle ore 16:38, Antonio Petrelli ha scritto: 2007/7/17, Ing. Andrea Vettori <[EMAIL PROTECTED]>: I don't remember where but I think I read somewhere that's not possibile to call Thread methods inside a servlet container. Anyone can confirm this

Re: slowing down action execution time

2007-07-17 Thread Antonio Petrelli
2007/7/17, Leon Rosenberg <[EMAIL PROTECTED]>: you can create threads in tomcat. It's not recommended unless you know what you are doing, but you can. It seems that you are right... and not :-) You can create threads in a servlet container, but it is not portable. As stated in Servlet 2.4 sp

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
On 7/17/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/7/17, Ing. Andrea Vettori <[EMAIL PROTECTED]>: > I don't remember where but I think I read somewhere that's not > possibile to call Thread methods inside a servlet container. > > Anyone can confirm this ? AFAIK you cannot create any t

[S2] TabbedPanel with Remote DIVs

2007-07-17 Thread Hoying, Ken
I have a tabbed panel with divs that retrieve their content remotely. Basically the control is acting like a tabbed address book with each tab showing a subset of names broken out alphabetically (i.e. Tabs: A-B, C-D, etc..) When specifying the URL for the remote div to call, I am having diffic

Re: [OT] Re: slowing down action execution time [Friday]

2007-07-17 Thread Leon Rosenberg
On 7/17/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/7/17, Wesley Wannemacher <[EMAIL PROTECTED]>: > > I've found the most effective way to slow down the execution time is ask > an intern to "optimize" it... Hey it's not friday, you broke the rule! ;-) yeah, but it was funny :-) A

[OT] Re: slowing down action execution time [Friday]

2007-07-17 Thread Antonio Petrelli
2007/7/17, Wesley Wannemacher <[EMAIL PROTECTED]>: I've found the most effective way to slow down the execution time is ask an intern to "optimize" it... Hey it's not friday, you broke the rule! ;-) Antonio

Re: error

2007-07-17 Thread Perssy Llamosas
Use a JDK, not a JRE as JAVA_HOME. naseer mohammed wrote: i am trying to run struts-blank application which encounter this exception.. org.apache.jasper.JasperException: No Java compiler available org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

RE: slowing down action execution time [Friday]

2007-07-17 Thread Wesley Wannemacher
I've found the most effective way to slow down the execution time is ask an intern to "optimize" it... /zing -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 10:38 AM To: Struts Users Mailing List Subject: Re: slowing down action executio

Re: autocompleter works at firefox but broken at IE 6

2007-07-17 Thread NHSoft.YHW
deploy showcase apps at tomcat 5.5.17 & JDK1.5.11, when I test "Link two autocompleter elements" example, when click "Autocompleter 2", the same error found at IE 6(Firefox works) but I found follow URL works with IE 6: http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ :( My Env

Re: slowing down action execution time

2007-07-17 Thread Antonio Petrelli
2007/7/17, Ing. Andrea Vettori <[EMAIL PROTECTED]>: I don't remember where but I think I read somewhere that's not possibile to call Thread methods inside a servlet container. Anyone can confirm this ? AFAIK you cannot create any thread in a Java EE environment (though products like Quartz do

autocompleter works at firefox but broken at IE 6

2007-07-17 Thread NHSoft.YHW
the code detail: JSP File : action config: /ajax/regions.ftl regions.ftl: [ <#list regions as region> ["${region.regionName}","${region.regionNum}"], ] when I test code using firefox, it works; but when change to IE 6, when I selected first autocomp

Re: slowing down action execution time

2007-07-17 Thread Ing. Andrea Vettori
I need to initially slow down and after a few minutes completely block access to aa site to logged-users and/or remote ip addresses that reads too many pages too fast. It's something like controlling that the site is not mirrored. I don't remember where but I think I read somewhere that's no

Re: slowing down action execution time

2007-07-17 Thread Leon Rosenberg
actually you named it. Thread.sleep(). only for debugging purposes of course :-) regards leon On 7/17/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: Hi what's the best method to slow an action execution time ? Something like Thread.sleep(...). Thanks ! -- Ing. Andrea Vettori Consulente p

slowing down action execution time

2007-07-17 Thread Ing. Andrea Vettori
Hi what's the best method to slow an action execution time ? Something like Thread.sleep(...). Thanks ! -- Ing. Andrea Vettori Consulente per l'Information Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Displaytag help in Struts 2

2007-07-17 Thread kishanparikh
Hello, Were you able to get the "row" to work? I am trying to get hold of the my properties using the "row" variable inside of a displaytag table. The table itself if working fine. I have tried both the JSTL and the OGNL way but the "row" is always empty. Does anyone know how to get this workin

RV: Struts 2 Theme that doesn't generate extra HTML

2007-07-17 Thread Néstor Boscán
Yes, I find S2 to be a good framework and a good evolution from S1, but the tags themes instead of helping me are just making things more difficult. I would also like to use JSTL and JSP but my project requires this tags and OGNL. Regards, Néstor Boscán -Mensaje original- De: Ray Clough

RE: Struts 2 Theme that doesn't generate extra HTML

2007-07-17 Thread Néstor Boscán
Yes, I find S2 to be a good framework and a good evolution from S1, but the tags themes instead of helping me are just making things more difficult. I would also like to use JSTL and JSP but my project requires this tags and OGNL. Regards, Néstor Boscán -Mensaje original- De: Ray Clough

RE: Struts 2 Theme that doesn't generate extra HTML

2007-07-17 Thread Néstor Boscán
Hi Kishen I just want to use them like I did in Struts 1. Let the tags generate de content but not extra design (, , , , ). I have a Web Designer that takes care of my HTML design and if I add the tags it will generate extra design that I don't need. For example for the tag I just need to gener

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread M.Liang Liu
Thanks for you quick reply,Nuwan. yeah,ur code works and action-error should be add to the original action(I tested). However,I set my global result in my default package,and when the invalid action accessing was intercepted,the browser was redirect to the login page. It's strange that the action

error

2007-07-17 Thread naseer mohammed
i am trying to run struts-blank application which encounter this exception.. org.apache.jasper.JasperException: No Java compiler available org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.serv

checkbox bug

2007-07-17 Thread TonyD
I'am not using a specified theme in my form. In my jsp I have the following code: and it generates the folowing HTML code: I want to be green How to change the label color to green? I tried in many ways, I think it's a bug. -- View this

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread Nuwan Chandrasoma
Hi, hope this code will help you. Object action = invocation.getAction (); if (action instanceof com.opensymphony.xwork2.ValidationAware) { ((com.opensymphony.xwork2.ValidationAware) action).addActionError ("Username or password incorrect."); } Thanks, Nuwan. - Original

Re: Struts 2 + Spring 2 + JPA + AJAX Tutorial

2007-07-17 Thread LucaLuca
Hi, I've tried to make some changes to make it work..But nothing!. These are my configuration files: ---"ApplicationContext.xml":--- http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:aop="http://www.springframework.org/schema/aop

答复: [S2]struts2 validation error message problem

2007-07-17 Thread chenshibing
You should modify your bean definition, If you’re using spring 2.0.x, …. Spring 1.xx That ensure a new action was constructed every time a new request was sent, not a singleton Action bean. Crazyreal _ 发件人: 钟原froast [mailto:[EMAIL PROTECTED] 发

How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread M.Liang Liu
Hi,all I've got a problem when I put my own interceptors in my app: I write an interceptor to authenticate whether the user access the current page or action has logged in. I write the code in the following style(refer to the mailreader example): ---

Re: Struts 2 Theme that doesn't generate extra HTML

2007-07-17 Thread Kishen Simbhoedatpanday
How do you want your field errors displayed? I always use a the list tags for displaying lists Maybe you can use the css_xhtml theme in the tag. And xhtml themes for formelements like textfields etc. Still you will have the overhead when it comes to and tags. Néstor Boscán-3 wrote: >

[S2]struts2 validation error message problem

2007-07-17 Thread 钟原froast
hi, this is my first web-based project using struts2.0. I met a problem when using the validation . It seems the error message haven't been cleared and each time I submit the form, then the error message was added after the previous error message, it means if i submit 10 times, then there will dis

how do I get latest version of xwork library or struts 2.0.8

2007-07-17 Thread David Harland
Hi, As recommended in http://cwiki.apache.org/confluence/display/WW/S2-001 I tried downloading and building the latest version of struts but instead of getting 2.0.8 I got 2.1. I then tried to get the latest version xwork and build that, and that had 3 errors. Can someone please give me a link

Re: Struts Resource Bundles (i18n)

2007-07-17 Thread Nuwan Chandrasoma
Hi, You can define multiple resource bundle in struts config., one would be a default and other ones you should give a key. eg:- Thanks, Nuwan - Original Message - From: "Saravanan Vijayappan" <[EMAIL PROTECTED]> To: "struts user" Sent: Tuesday, July 17, 2007 3:38 AM Subject

Re: Does Tiles Layout page can have struts form components

2007-07-17 Thread Antonio Petrelli
2007/7/17, Arunkumar Balasubramanian <[EMAIL PROTECTED]>: The calender icon on pagetwo.jsp is You could use a "controller" (in the Tiles sense) for the definition that stores an extra attribute (for example, the javascript command) and then import it (via ) and put it in your "href"