Re: REST plugin URL syntax

2008-06-15 Thread Al Sutton
Mike, Rest URLs doesn't work that way, so the plugin is correct and your needs are not in sync with REST standards (see http://en.wikipedia.org/wiki/Representational_State_Transfer for a more details on REST). If you want to do something with multiple IDs my suggestion would be URLs along t

RE: Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
If it's useful to diagnose this, I made my action ParameterAware so I could inspect the request parameters directly. I received three parameter keys, "firstName", "lastName", and "[object Object]". The first two are expected. The last one is not expected, and that causes the exception I'm seeing

Re: DatePicker Button not generated

2008-06-15 Thread StrutsUser
Hi, I turned on debugging and got this error. There is no Action mapped for namespace /struts/dojo/src/widget/templates and action name DatePicker. - [unknown location] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186) at org.apache.struts2.impl.St

Re: Can't stop console warnings

2008-06-15 Thread Márcio Gurgel
Rsrs, it also aways happens to me. 2008/6/16 jefetech <[EMAIL PROTECTED]>: > > Thanks for the replies here everybody. I solved the issue. Stupid stupid > error on my part, of course. Always is. I had the log4j.jar but forgot to > copy over the commons-loggin.jar file. > > Works fine when the

Re: Can't stop console warnings

2008-06-15 Thread jefetech
Thanks for the replies here everybody. I solved the issue. Stupid stupid error on my part, of course. Always is. I had the log4j.jar but forgot to copy over the commons-loggin.jar file. Works fine when the correct jars are included :) jefetech wrote: > > Ya that looks just like mine.

RE: Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
Ok, this looks promising. I changed the package in my struts.xml to the following: - true /form.jsp - I then copied in updated jars from 2.1.2, being: commons-file

Re: Can't stop console warnings

2008-06-15 Thread jefetech
Ya that looks just like mine. Maybe struts2.1 has issues with Jetty. Does this error have anything to do with log4j though? Maybe I need to shut that off in another config file or something. Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not fin

Re: Can't stop console warnings

2008-06-15 Thread Márcio Gurgel
I'm also using struts 2.1 ... Here are my log4j: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLU

Re: Can't stop console warnings

2008-06-15 Thread jefetech
I've tried changing that, but it makes no difference with struts2.1. No matter what I do with log4j.properties, it just keeps on spitting out warning messages. Frustrating! Márcio Gurgel wrote: > > Hi, I also had this problem, I solved setting this in my log4j.properties > file: > > ### se

Re: Can't stop console warnings

2008-06-15 Thread Márcio Gurgel
Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton <[EMAIL PROTECTED]>: > Are you actually using Log4J? > > > --- On Sun, 6/15/08, jefete

Re: Can't stop console warnings

2008-06-15 Thread Dave Newton
Are you actually using Log4J? --- On Sun, 6/15/08, jefetech <[EMAIL PROTECTED]> wrote: > From: jefetech <[EMAIL PROTECTED]> > Subject: Re: Can't stop console warnings > To: user@struts.apache.org > Date: Sunday, June 15, 2008, 9:45 PM > That makes sense, but unforunately did not do anything. >

Re: Can't stop console warnings

2008-06-15 Thread jefetech
That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:

Re: Some confusion trying to do ajax form submit

2008-06-15 Thread Dave Newton
--- On Sun, 6/15/08, Karr, David <[EMAIL PROTECTED]> wrote: > I'm now trying to explore doing an Ajax form submit, > and getting a JSON response. I'm using YUI on the > client side. I'd like to see if I can get similar > data in the JSON response that I would in a normal > submit, for instance,

Re: Some confusion trying to do ajax form submit

2008-06-15 Thread Musachy Barroso
Take a look at this (2.1 only): http://struts.apache.org/2.0.11.1/docs/ajax-validation.html musachy On Sun, Jun 15, 2008 at 8:02 PM, Karr, David <[EMAIL PROTECTED]> wrote: > I have a simple page with validation that I got working with a > conventional submit and action. > > I'm now trying to exp

Some confusion trying to do ajax form submit

2008-06-15 Thread Karr, David
I have a simple page with validation that I got working with a conventional submit and action. I'm now trying to explore doing an Ajax form submit, and getting a JSON response. I'm using YUI on the client side. I'd like to see if I can get similar data in the JSON response that I would in a norm

REST plugin URL syntax

2008-06-15 Thread Mike Watson
Hi Folks, I'm trying to use the REST plugin to implement a service that serves resources using the following url syntax: http://www.mydomain.com/rest/book/123 (which works fine) http://www.mydomain.com/rest/book/123/chapter (which throws a 500 because my book controller doesn't have a chapter

Re: Can't stop console warnings

2008-06-15 Thread Joachim Rohde
Hi, add in your web.xml following snippet: log4jConfigLocation /WEB-INF/classes/log4j.properties And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages comi

Can't stop console warnings

2008-06-15 Thread jefetech
I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Cou

Re: Adding interceptors through annotations

2008-06-15 Thread Dave Newton
You don't, but this functionality may have been added to S2.1 (don't quote me on that; I'm woefully behind, but I know it has been discussed.) One typical solution is to define a package's interceptors via XML then use the @ParentPackage annotation to configure your actions. Dave --- On Sun, 6

Re: Adding interceptors through annotations

2008-06-15 Thread Ramon
Uff I wrote it so badly, Summary: Does anyone know how to add interceptors to an Action defined with annotations (without definitiion in an xml file)??? 2008/6/15 Ramon <[EMAIL PROTECTED]>: > Hi, > > I'm starting with a little project to test new features in struts2. I'm > trying both ways

Adding interceptors through annotations

2008-06-15 Thread Ramon
Hi, I'm starting with a little project to test new features in struts2. I'm trying both ways (xml configuration and annotations) but I don't know how to define interceptors for an action which is defined with interceptors. for a example my action looks like this: @Results({ @Result(value="/j

Re: 404 error

2008-06-15 Thread Dave Newton
I'm having such a wide range of reactions to this. I'll stick with saying just ask questions on the list and not directly to list participants unless you have an existing relationship with them. --- On Sun, 6/15/08, srinivasa varanasi <[EMAIL PROTECTED]> wrote: > and also I have enclsoed my app

Re: What can you do with S2?

2008-06-15 Thread Musachy Barroso
Yes, I just wasn't sure about the semicolon, but I guess it is fine. REST needs to be fixed then. musachy On Sun, Jun 15, 2008 at 1:31 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote: > On Sat, Jun 14, 2008 at 3:48 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > >> Not sure about WAS, but don't (at least)

Re: DatePicker Button not generated

2008-06-15 Thread Dave Newton
--- On Sun, 6/15/08, StrutsUser <[EMAIL PROTECTED]> wrote: > I have specified as . Okay, now turn on debugging and see if you get any errors. > I have not done any special S2 filter mapping. But you don't say what you *did* do, which would have saved an email. It should be mapped to /*. Dave

Re: How can i user Swing as "V" in the Struts MVC

2008-06-15 Thread Dave Newton
--- On Sun, 6/15/08, (¯`·.k ! k !.·´¯) <[EMAIL PROTECTED]> wrote: > Hi .. i m going to build a struts based application but i > dont want to use JSP's  instead of JSP's i > want to use Swing GUI .. how can i communicate Swing GUI > with struts app and how i will get the response back .. > e.g. sear

Struts2: result annotation not working when using Spring?

2008-06-15 Thread Marc Logemann
Hi, i am creating my actions via Spring. This works very well. But even though i use the "actionPackages" parameter of the FilterDispatcher, my @Result annotations dont work. Is this a Spring integration issue or what? I am getting this error in the frontend: # No result defined for acti

Re: DatePicker Button not generated

2008-06-15 Thread StrutsUser
Hi, I have specified as . I am not getting any errors. I have not done any special S2 filter mapping. Maybe that is the problem. Could you explain how it should be done. Thanks newton.dave wrote: > > Do you have Dojo debugging turned on in your tag? Are there > any error messages shown? Is yo

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
Many moons ago I started out using Tomcat, but moved to Jetty because I work with at a company along with Greg Wilkins and imho he had the righ attitude towards doing things (get it right rather than just get it out the door), and I had seen people encounter some problems with Tomcat (such as t

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
It's been pointed out to me that people couldn't see the full demo of lifefeed.info because registration was broken, but it's now fixed. Al. For those that are interested; OpenSuSE installs gnu-javamail when you install the tomcat55 package and symlinks to gnu-javamail from common-lib. This m

Re: What can you do with S2?

2008-06-15 Thread Al Sutton
I think it's more a case of Tomcat doesn't pass the jsessionid down to the filters & webapp, whereas jetty does. The jsessionid is still appended onto the URL in the browser, but with Tomcat the app works, with Jetty the error occurs. Al. Wendy Smoak wrote: On Sat, Jun 14, 2008 at 3:48 PM,

RE: Help required on Struts-Datagrid

2008-06-15 Thread Himanshu Rathore (TechSawi)
Hi Mukul, Sorry for late response. Hadn't seen your query. Well this option do have a drawback wherein the header table width differs from data table width. But problem is this is the only solution I have come across so far. Also not much help is available on net. You have to fix the data table wi