LOG4J in Struts2

2007-12-13 Thread Rajasekhar
hai every one, i am interrested to use Log4j in Struts2 so does any enyone have information about tutorials pls send me. Best Regards, Rajasekhar Yenduva B.tech(IT), Jr J2EE Developer, Miracle Software Systems, Inc Email: [EMAIL PROTECTED] --

Using JAAS with Struts2

2007-12-13 Thread Janesh
Hi, I want to use JAAS with Struts2 for our web application (which runs on Tomcat 5.x). Can you please give me some knowhow in this regard? Thanks, JS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: [S2]Checkbox value

2007-12-13 Thread carmi_cd
I've tried what you've suggested but i got same error.. Unexpected Exception catched: Error setting expression 'chkUserId' with value '[Ljava.lang.String;@138c03' here is part of the code..

Re: New to Struts

2007-12-13 Thread aum strut
Hi All, Thanks to all of you for providing me such a wonderfull guidance. Thanks, Umesh On Dec 13, 2007 8:48 PM, bhaarat Sharma <[EMAIL PROTECTED]> wrote: > I am new to struts2 as well and had no prior knowledge of Struts1. > Although, I think its an advantage if you\'ve worked with servlets an

How to use modules without *.do servlet-mapping in Struts 1.2?

2007-12-13 Thread Mark Piper
How do I get modules to work with URLs like these: "http://server.com/webApp/module1/action1"; "http://server.com/webApp/module2/action2"; Alternatively, is it now allowed to have multiple ActionServlets in one webapp? If so, I can use that technique rather than modules. Here's what's happeni

Latest Opinions on Struts & GWT, and Maven and GWT

2007-12-13 Thread Joe Germuska
Hello, Struts world... After a long time of not being able to follow the list very closely, i'm getting back up to speed building Struts 2 webapps, and i wanted to see what people thought about a couple of things we're investigating. First, we're having really great exploratory results with GWT,

Re: REST plugin and security

2007-12-13 Thread Don Brown
If you are putting username and password in the soap headers, why not just use basic authentication for your REST services, which basically does the same thing? If over the wire security is a problem, use HTTPS. Don On Dec 14, 2007 1:44 AM, Martin Gilday <[EMAIL PROTECTED]> wrote: > Hi, > We are

sendRedirect only works with "final" string

2007-12-13 Thread Paranoid_Fabio
Hello. I'm a problem and i'm really going mad with redirect... All i want to do is very simple. I've an action that sends a post to a server. The server answer with a page to which i've to redirect the client. When the server answer, i read the page in a buffer and i extract the url to which i've t

Re: Struts2: Problem result input

2007-12-13 Thread Laurie Harper
For what it's worth, overloaded setters are not supported by the JavaBeans specification, so if you do that you no longer have a valid JavaBean. The behaviour of code which depends on JavaBeans-style introspection (such as Struts) is JVM version dependent in such cases, which is a good reason t

Re: [S2]Checkbox value

2007-12-13 Thread Laurie Harper
Alberto A. Flores wrote: Yes, you can use tags within tags, ... To clarify: you can use JSP Custom Action tags within arbitrary HTML/XML tags; you *cannot* use JSP Custom Action tags within JSP Custom Action tags. So, And to be pedantic, the above is only true for 'regular' JSP files; for

How to show a JFreeChart using the same Action?

2007-12-13 Thread davilovick
Following the struts-jfreechart example, we have defined an action that return a chart, and another action that return the chart contain page. Another posibility is to use the same actions and get two methods. In my project we need to show a graph with the same data created when the jsp page is

Validation error ordering

2007-12-13 Thread Alberto A. Flores
With the "convention over configuration" approach in Struts 2, is there any way to have control over the order of the errors displayed? It looks like "conversion errors" are displayed as part of the tag and these are checked before the xxx-validation.xml constraints are checked. Thoughts? -

Re: Enum conversion problem

2007-12-13 Thread Vencent Chen
Ok,I'll check it out! On Dec 13, 2007 4:47 AM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Vencent Chen wrote: > > Hi,all! > > I am testing the Struts Showcase 2.0.11. > > With the Java 5 Enum conversion, I think the checkboxlist 's list > > property availableOperations just come from

Re: New to Struts

2007-12-13 Thread bhaarat Sharma
I am new to struts2 as well and had no prior knowledge of Struts1. Although, I think its an advantage if you\'ve worked with servlets and MVC structure before you begin. I am reading Practical struts2 web 2.0 projects book. I dont have a lot of nice things to say about the book but its practicall

[Struts2]blank extension

2007-12-13 Thread tamtam
Hello, i have a question about DefaultActionMapper(struts2.0.11). I want to access like a "http://example.com/webapps/sayHello";. So, blank is set to "struts.action.extension" in struts.xml. Access to "http://example.com/webapps/sayHello?name=hogehoge"; is successfull, but access to "http://exampl

[Struts2]blank extension

2007-12-13 Thread tamtam
Hello, i have a question about DefaultActionMapper(struts2.0.11). I want to access like a "http://example.com/webapps/sayHello";. So, blank is set to "struts.action.extension" in struts.xml. Access to "http://example.com/webapps/sayHello?name=hogehoge"; is successfull, but access to "http://exampl

Re: struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-13 Thread Musachy Barroso
"666 Struts2BaseAjaxAction.java" 666 and Ajax together can't be good :) musachy On Dec 13, 2007 6:22 AM, Christopher Cheng <[EMAIL PROTECTED]> wrote: > It's the autocompleter that doesn't work > http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ > It is perfect under Firefox, but n

REST plugin and security

2007-12-13 Thread Martin Gilday
Hi, We are interested in using the REST plugin to extend customer choice and complement our WS-* services. We are particularly interested in the multiple response types (.xml, .json etc). One thing I am not sure of is how we handle security. Say we have an order (/order/1234.xml), how can we pro

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Ted Husted
On Dec 13, 2007 5:46 AM, Ian Roughley <[EMAIL PROTECTED]> wrote: > Like Ted, I'm also putting together training options - specifically a > "quick start" for s1 developers who want to get up and running with s2. > So it would cover all the basics, as well as the more advanced > features. I'm also c

Re: New to Struts

2007-12-13 Thread Wes Wannemacher
You can also check out my tutorials - http://www.wantii.com/wordpress/?cat=6 start from the bottom and work your way up. -Wes On 12/13/07, aum strut <[EMAIL PROTECTED]> wrote: > Hi All, > > I am new to struts and wana to learn it.Please suggest me can i start > directly to learn Struts2 or do i

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Ian Roughley
Finally, in terms of education, there's some good books out now and there's a lot of sites providing tutorials (that reminds me, I'm going to order Ian's book today[1]). However, I don't know of any professional training courses yet and there's far fewer developers already knowledgeable on S

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Jeff Amiel
On Dec 12, 2007 11:28 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > I agree with Dave. S2 has been exceptionally robust. I find the core > framework is more productive and even more pleasurable (!) to work with > compared to S1. This is a key for me. My team and I have been using an ancient vers

Re: New to Struts

2007-12-13 Thread Alberto A. Flores
I agree that it may better *not* to have Struts 1.x background if possible, if you plan on doing Struts 1.x in the future (e.g. put it on your Resume), please be aware that it is not the same. If you have a Struts 1.x background, I strongly recommend the InfoQ tutorials (there are videos and a

Re: [S2]Checkbox value

2007-12-13 Thread Alberto A. Flores
Yes, you can use tags within tags, but remember that the quotes are important: (Notice the single quotes with double quotes). I see two things wrong: 1. You are calling a method directly. the %{#userId} approach should do the trick (so long as it is part of your Action) 2. IMHO, I would almo

Re: Resource Bundles and token replacement

2007-12-13 Thread Alberto A. Flores
Thanks Wes, Thanks for your help. The snippet you wrote is valid code, however I was hoping for a similar solution where I only need to use the Normally in Struts 1.x, I'll write and in my validation.xml, I would define the field to validate and the key to add to be replaced for the {0} v

Re: Struts2: Problem result input

2007-12-13 Thread Marc Eckart
Solved the problem: In my case the problem was a type conversion :-) I have a bean class, which is filled by hidden fields. I have some overloaded setters with a type and a string which converts into the type. So I assume struts doesn't look at the signature of the setter and just uses the first i

Re: Struts 2, file tag, accept attribute not working?

2007-12-13 Thread Amit Rana
Martin, Thanks for the response but unless I am missing something how do you expect this to work? > if("%{uploadContentType}%"=="'text/xml'") When this server side code runs you dont have any information about what the user is going to upload.. Has anyone got accept or size attribute of s:fil

Re: [S2] why is javascript executed before DOM is updated

2007-12-13 Thread Jeromy Evans
I think it is WW-1951. It's generally a bad idea to include inline scripts in a result loaded via XHR because it varies from browser-to-browser and library-to-library as to when the scripts are executed. In this case, Dojo has the responsibility to parse your result, extract the scripts and t

Re: [S2] why is javascript executed before DOM is updated

2007-12-13 Thread lbastil
Is this the WW-1951 - issue? And if so, is there any workaround for 2.0.11 release? Thank you, basti lbastil wrote: > > I have a serious problem with an ajax submit. > > the scenario is the following: > > I submit a form with ajax submit button and I want to update the parent > div (targets

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Ted Husted
On Dec 12, 2007 9:28 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Finally, in terms of education, there's some good books out now and > there's a lot of sites providing tutorials (that reminds me, I'm going > to order Ian's book today[1]). However, I don't know of any > professional training cour

Re: struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-13 Thread Christopher Cheng
It's the autocompleter that doesn't work http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ It is perfect under Firefox, but not under IE7 I have an existing written in S1 years ago using the dated ajaxtag (http://ajaxtags.sourceforge.net/) Since dojo's autocompleter doesn't work o

[OT] Jobs in Kiev, Ukraine available

2007-12-13 Thread Leon Rosenberg
Hi, sorry for off topic. I work as consulter for a company which has some positions to fill in Kiev, Ukraine. Basically they are searching for Java Developers WEB/Backend, and good HTML-ers/ JSScripters. Everyone interested please email me your CV and loan expectations I will forward it to the H

Re: Automatic form submission using javascript in struts2

2007-12-13 Thread Ted Husted
In production, it's better to set the logging level to ERROR, so that all the OGNL warnings aren't recorded. Once it doesn't find the property on ServletRedirectResult, the system should append systemId as a parameter to the redirect URL. -- HTH, Ted * On Dec 13,

RE: New to Struts

2007-12-13 Thread Dave Newton
Or look at the Struts 2 documentation wiki, which is generally more accurate and up-to-date. http://struts.apache.org/2.x/docs/home.html There are tutorials there to help you take your first steps, and guides once you have the basic idea. There are a few books available (as well as the old WebW

Re: Problem with

2007-12-13 Thread Dave Newton
OGNL treats a character in single-quotes as an actual character, not a String. d. --- quinquin2209 <[EMAIL PROTECTED]> wrote: > > I have defined a hyperlink as follow: > > > I > > > and when the page is called ,it will use the param "state" for processing > as > follow: > > > Inbox

Re: New to Struts

2007-12-13 Thread lbastil
I would say for some reasons it could be even advantage to not know struts1 and directly start with struts2. A very good resource beside the available tutorials is: http://www.infoq.com/minibooks/starting-struts2 (or even better, you buy the new book) Regards, basti aum strut wrote: > > Hi Al

Re: Automatic form submission using javascript in struts2

2007-12-13 Thread Dave Newton
--- "jignesh(india)" <[EMAIL PROTECTED]> wrote: > but,it is giving exception in log Technically, that's a warning. > 14:51:03,558 WARN [OgnlUtil] Caught OgnlException while setting property > 'serviceid' on type 'org.apache.struts2.dispatcher.ServletRedirectResult'. > ognl.NoSuchPropertyExceptio

Re: New to Struts

2007-12-13 Thread Antonio Petrelli
2007/12/13, aum strut <[EMAIL PROTECTED]>: > Hi All, > > I am new to struts and wana to learn it.Please suggest me can i start > directly to learn Struts2 or do i need to have prior knowledge of > Struts1.Any help or suggestion in this regard is much appriciated. You don't need to know Struts 1 to

Re: How know the jsp data modified or not on submit

2007-12-13 Thread Dave Newton
--- "Pamarthi, Ramakrishna" <[EMAIL PROTECTED]> wrote: > How to know the jsp data modified or not on click of save button on jsp? Compare it with the original data? d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[S2] why is javascript executed before DOM is updated

2007-12-13 Thread lbastil
I have a serious problem with an ajax submit. the scenario is the following: I submit a form with ajax submit button and I want to update the parent div (targets="...") The original content of this div and the result content contains a

RE: New to Struts

2007-12-13 Thread Deepak Kumar
HI, Please check http://www.roseindia.net/stuts and http://www.roseindia.net/struts/struts2 Thanks -Original Message- From: aum strut [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 3:53 PM To: Struts Users Mailing List Subject: New to Struts Hi All, I am new to struts an

New to Struts

2007-12-13 Thread aum strut
Hi All, I am new to struts and wana to learn it.Please suggest me can i start directly to learn Struts2 or do i need to have prior knowledge of Struts1.Any help or suggestion in this regard is much appriciated. Thanks, Aum

Problem with

2007-12-13 Thread quinquin2209
I have defined a hyperlink as follow: I and when the page is called ,it will use the param "state" for processing as follow: Inbox - Received Inbox - Exported Not Found The NOT Found is always shown. However, if I change the param "state" to "IR" and change the testing conditi

Struts + Xwork + xwork-conversion.properties = problem on start app

2007-12-13 Thread volnei Granado Munhoz
Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies. My struts.xml contains the follow line and when i start my servlet container the NPE is throwed and aplication is broken... When remove or comment the xwork-conversion.properties this runs normaly. Here is

Re: Automatic form submission using javascript in struts2

2007-12-13 Thread jignesh(india)
but,it is giving exception in log 14:51:03,558 WARN [OgnlUtil] Caught OgnlException while setting property 'serviceid' on type 'org.apache.struts2.dispatcher.ServletRedirectResult'. ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletRedirectResult.service Do i know what it tries

Re: [S2]Checkbox value

2007-12-13 Thread Johannes Geppert
> type="checkbox" > value=""/> try this version: you can't use tags in tags. Best Regards Johannes Geppert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom tags with Struts2

2007-12-13 Thread Varun Narang
That was a great help. Thanks a ton for it. I'll start working right away on that... Thanks once again, -- Regards, Varun Narang.