Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
That looks fine. Do you have an action called index in the default namespace? It's calling ActionSupport which is the default/fallback action under some circumstances. You may need to go back to the default interceptor stack to isolate what's wrong. Or post the package from struts.xml here.

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
Hmmm ... my login.jsp now looks like this, When the login button is pressed, the following exceptions are shown in the console, com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting

Re: How to add prinr option ?

2008-02-04 Thread Kavita Mehta
how do u implement using js ..can u send me any link having more info .. "bhaarat Sharma" <[EMAIL PROTECTED]> 02/05/2008 11:02 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: How to add prinr option ? CSS and JS are best for this On Fe

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
It depends what your interceptor is trying to do... At the moment, I still think params is trying to call getButton().setLogin(val) on your ACTION (prior to execution of your login interceptor). I presume your interceptor is going to check the params or session and redirect if not authenticated

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
The "button.login" is a key in i18n properties file, and it is suppose to retrieve the label for a button. I suspect this problem could be the interceptor statck I configured, // my interceptor

Re: How to add prinr option ?

2008-02-04 Thread bhaarat Sharma
CSS and JS are best for this On Feb 5, 2008 12:21 AM, Kavita Mehta <[EMAIL PROTECTED]> wrote: > Hi , > I have a web page implemented using Struts and I want to add a Printer > button to it so that user can take print out of the same. Is there any > option supported by struts to do this ? > > > Tha

How to add prinr option ?

2008-02-04 Thread Kavita Mehta
Hi , I have a web page implemented using Struts and I want to add a Printer button to it so that user can take print out of the same. Is there any option supported by struts to do this ? Thanks in advance , Kavita *DISCLAIMER**

Example that includes both struts1.1 and struts2

2008-02-04 Thread nagendrabvvs
Hi all, Could i ask...? Any one please provide me any available website link where i can get example-application develped with both struts1 and struts2 side by side. (As i required to migrate our existing project(with struts1.1) to struts2.). I have read few of the migration tutorials, in that th

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
A param called "button.login" means the ParametersInterceptor has to call getButton().setLogin(val). If you don't have a getButton() method, or getButton() returns null, an exception like this occurs while trying to set the parameter. hezjing wrote: Hi I'm trying to create a login interce

[S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
Hi I'm trying to create a login interceptor. When a login form is submitted, I got the following exception: com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'button.login' on 'class com.op

Re: How to add login field in the image

2008-02-04 Thread Wes Wannemacher
This isn't necessarily a struts question, but more of a general DHTML question. That being said, I would suggest the easiest solution (IMO) to be creating a position:absolute div and placing your login form within it. -Wes On Tue, 2008-02-05 at 09:14 +0530, mohammed hussain wrote: > hi >In i

How to add login field in the image

2008-02-04 Thread mohammed hussain
hi In index .jsp i have an image ,the whole page is coverd with the same image,i want to add login field in that page ,can anybody tell me how to add login field in that page thanx

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
Right on. On Feb 4, 2008 6:45 PM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: > Dave, > > I think the bigger problem is the JSON that is returned, while it may be > valid, it not in the right structure expected. I should be generating > JSON like this: > > {"questions":{"420":"Is your Java Appl

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Dave, I think the bigger problem is the JSON that is returned, while it may be valid, it not in the right structure expected. I should be generating JSON like this: {"questions":{"420":"Is your Java Application a ME, SE or EE application?","440":"If your Java Application is an SE application doe

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Dave, Check out this JSON parser: http://braincast.nl/samples/jsoneditor/ Paste in the snippet below and it parses fine. BTW, the brackets are returned from the response. Without the brackets, the snippet doesn't seem to be correct. [{"questions":{"420":"Is your Java Application a ME, SE or EE a

RE: AjaxTag 1.3 support?

2008-02-04 Thread Dave Newton
... That's probably an issue. --- "Griffith, Michael *" <[EMAIL PROTECTED]> wrote: > Yea, I think so -- I copied and pasted this from the log file/console... > > From: Dave Newton [mailto:[EMAIL PROTECTED] > > Is it generating those brackets around your JSON? > > --- "Griffith, Michael *" <[E

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Yea, I think so -- I copied and pasted this from the log file/console... -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 5:02 PM To: Struts Users Mailing List Subject: RE: AjaxTag 1.3 support? Is it generating those brackets around your JSO

RE: AjaxTag 1.3 support?

2008-02-04 Thread Dave Newton
Is it generating those brackets around your JSON? Dave --- "Griffith, Michael *" <[EMAIL PROTECTED]> wrote: > Musachy, > > Thanks for your many replies... Does this JSON look like the right > format? As far as I can tell, it matches your snippet below -- but I get > the same dojo parting error

Struts 2 Spring sitemesh hangs on tomcat 6 and jboss

2008-02-04 Thread Emil.I
Hello, You guys had this, happen when i deploy my war file to tomcat, the application hangs seems waiting for reply forever. I deployed it on jboss ok for a while, then again after a while just hangs. Increasing memory in tomcat to 512 did not help. I got some params interceptor errors (setting

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy, Thanks for your many replies... Does this JSON look like the right format? As far as I can tell, it matches your snippet below -- but I get the same dojo parting error. [{"questions":{"420":"Is your Java Application a ME, SE or EE application?"}},{"questions":{"440":"If your Java Applic

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
The rule to use a map (simplest one) was added on 2.1, on 2.0.x the easiest way to generate the json is to have an object with a map field that matches the name of "dataFieldName" in the autocompleter tag: class QuestionJson { private Map questions; } public QuestionJson getQuestionJson(

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy, Ok, I had a parameter set in the JSON plugin, that I think was effecting the serialization (root) ... I removed it and now my JSON looks like this: [JSON]{"question":[{"text":"Is your Java Application a ME, SE or EE application?","id":"420"},{"text":"If your Java Application is an SE a

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy, I'm still not getting it... I am now serializing a list of maps with the entity id and text I want... Map m= new HashMap(); Question q= ... [from my list] m.put("id", q.getId().toString()); m.put("text", q.getText()); newList.add(m); And my JSON result looks: [JSON][{"text":"Is your

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
Take a look here: http://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On Feb 4, 2008 3:43 PM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: > So, if you have an array of Entity objects, in my case question: > > How can I produce? > { > "question" : [ > ["1","question 1 tex

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
So, if you have an array of Entity objects, in my case question: How can I produce? { "question" : [ ["1","question 1 text..."], ["2","question 2 text..."] ] } -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
yes, but the output will depend on what you feed the JSON result. musachy On Feb 4, 2008 3:20 PM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: > Musachy, > > I must have missed your point. Isn't the idea of using the JSON plug-in > so you don't have to iterate and create the list? If I have an

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy, I must have missed your point. Isn't the idea of using the JSON plug-in so you don't have to iterate and create the list? If I have an array or Entity objects or maps, isn't there a way that the plug-in will create the JSON specified below? MG -Original Message- From: Musachy Ba

Re: DAO pattern

2008-02-04 Thread Manos Batsis
Zhang, Larry (L.) wrote: I have a user object whose data is from three resources: Db2, LDAP, and other flat file. Per dao pattern, do you think I should have three daos or one dao to encapsulate the data access implications? Depends on what is easier for you. This will not effect your code if

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
to use the dataFIeldName, you have to return something like: { "state" : [ ["Alabama","AL"], ["Alaska","AK"] ] } if you are using 2.1 check this link: http://cwiki.apache.org/WW/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Autocompleter otherwise just an arr

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy Here is the autocompleter tag and the JSON returned... [JSON][{"id":420,"questionType":{"declaringClass":"class gov.hhs.fda.datacall.model.QuestionType"},"text":"Is your Java Application a ME, SE or EE application?"},{"id":440,"questionType":{"declaringClass":"class gov.hhs.fda.dat

[OT] Re: DAO pattern

2008-02-04 Thread Antonio Petrelli
2008/2/4, Zhang, Larry (L.) <[EMAIL PROTECTED]>: > Sorry if this is not too on topic. > > I have a user object whose data is from three resources: Db2, LDAP, and > other flat file. Per dao pattern, do you think I should have three daos > or one dao to encapsulate the data access implications? It d

DAO pattern

2008-02-04 Thread Zhang, Larry (L.)
Sorry if this is not too on topic. I have a user object whose data is from three resources: Db2, LDAP, and other flat file. Per dao pattern, do you think I should have three daos or one dao to encapsulate the data access implications?

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
funny thing is that now I remember the code(duh!), it is in the struts widget. It seems like the json is empty. Paste the section of your jsp with the autocompleter and the json that your action is returning. regards musachy On Feb 4, 2008 2:16 PM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: >

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Jeromy, Thanks for your help. I was able to finally get the autocompleter to work with the example you provided. Strange behavior -- I can only get the autocompleter to work if the list (array) is of the type String. If I try to return an array of my Entity objects, or a Map I get the dojo erro

Re: [OT] Killer Scam

2008-02-04 Thread Antonio Petrelli
2008/2/4, Greg Reddin <[EMAIL PROTECTED]>: > On Feb 4, 2008 4:47 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > I received an email scam in my apache.org email that is, > > substantially, the first in this list: > > http://www.scamorama.com/killer.html > > > > Did you receive such a letter? >

RE: AjaxTag 1.3 support?

2008-02-04 Thread Hodgins, Grant
Thanks for the insight Jeremy. I totally agree that writing to the response is not an elegant solution. But sometimes we choose quick solutions that work when a project deadline looms. The reason I initially chose AjaxTags was that the example for the autocompleter combo in Struts Showcase di

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date: ""

2008-02-04 Thread Laurie Harper
Doesn't that need to be theme="ajax"? Serge Bornow wrote: Hello Jeromy, I do have : Also, i use Netbeans to generate respective get/set method so they are JavaBean std compliant. The issue for me unfortunately is getting the value back , it seems to lose it. :( Thanks for feedback thoug

Re: [OT] Killer Scam

2008-02-04 Thread bhaarat Sharma
i do see a shady construction truck outside my building On 2/4/08, Greg Reddin <[EMAIL PROTECTED]> wrote: That\'s awesome :-) > > On Feb 4, 2008 11:30 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > > Sorry everyone, I guess I should take two lessons away from this - > > > > 1. No matter how

Re: [OT] Killer Scam

2008-02-04 Thread Greg Reddin
That's awesome :-) On Feb 4, 2008 11:30 AM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > Sorry everyone, I guess I should take two lessons away from this - > > 1. No matter how frustrated you get with a project, you should never > take it out on other users. > > 2. I should do a bit more research

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Actually, I thought I would post the entire debug message here, in case that is helpful: DEBUG: DEPRECATED: dojo.widget.Manager.getImplementationName Could not locate widget implementation for "html" in "html.widget" registered to namespace "html". Developers must specify correct namespaces for al

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy, The error displays in the browser, true, but I believe this is because I have: set to show debug. So this is an ajax/dojo message...? I don't have any code such as: "this.data[x][0].toLowerCase" anywhere in the JSP or javascript sources. Oh, and I have given up on AjaxTags -- it seem

Re: [OT] Killer Scam

2008-02-04 Thread Wes Wannemacher
Sorry everyone, I guess I should take two lessons away from this - 1. No matter how frustrated you get with a project, you should never take it out on other users. 2. I should do a bit more research on the integrity of the hitmen I hire before agreeing to a contract. There is nothing to worry ab

RE: Struts validator

2008-02-04 Thread Alexandru BARBAT
Hi, You can override method public String getValidationKey(ActionMapping mapping, HttpServletRequest request) {..} >From your ValidatorForm (it doesn't matter if it is dyna or not) And return different validation keys for each button pressed. Validation key

Re: question on mapping

2008-02-04 Thread Giovanni Azua
Thanks this looks like what I was looking for. I will have to see how to define a custom stack and use the two together ... regards, Giovanni Jeromy Evans wrote: Will CodeBehind give what you need? I'm not sure with your use of wildcards. It gives "pages with no mapping": a default do-nothing

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
I think that error is coming from your jsp, not the JSON generation. Do you have "this.data[x][0].toLowerCase" somewhere? musachy On Feb 4, 2008 11:57 AM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: > Jeromy, > > Again, thanks for the reply. I appreciate your help! > > Following your example b

Re: [OT] Killer Scam

2008-02-04 Thread Greg Reddin
On Feb 4, 2008 11:00 AM, bhaarat Sharma <[EMAIL PROTECTED]> wrote: > I didnt get it. or maybe i deleted it already. > > Anyone wana paste what it read? Antonio's post had the link: http://www.scamorama.com/killer.html Maybe you should be worried if you didn't get one :-) Greg -

Re: AjaxTag 1.3 support?

2008-02-04 Thread Musachy Barroso
sorry to be late to this discussion. Dave and Jeromy are right on the spot. I would advise not to use ajaxtags project and go with what Struts 2 provides, or use YUI which will play nicely with JSON. musachy On Feb 4, 2008 11:57 AM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: > Jeromy, > > Aga

Re: [OT] Killer Scam

2008-02-04 Thread bhaarat Sharma
I didnt get it. or maybe i deleted it already. Anyone wana paste what it read? On 2/4/08, Greg Reddin <[EMAIL PROTECTED]> wrote: On Feb 4, 2008 4:47 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > I received an email scam in my apache.org email that is, > > substantially, the first in this li

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Jeromy, Again, thanks for the reply. I appreciate your help! Following your example below, I can see the JSON result in the app server console when the action called, but I get the following error in the browser: FATAL exception raised: TypeError: Value undefined (result of expression this.dat

Re: [OT] Killer Scam

2008-02-04 Thread Greg Reddin
On Feb 4, 2008 4:47 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > I received an email scam in my apache.org email that is, > substantially, the first in this list: > http://www.scamorama.com/killer.html > > Did you receive such a letter? Yep, I got one. Somebody don't like Tiles I guess :-) G

Re: question on mapping

2008-02-04 Thread Jeromy Evans
Will CodeBehind give what you need? I'm not sure with your use of wildcards. It gives "pages with no mapping": a default do-nothing action that provides access to s2 tags & resources...but not to a default tile AFAIK http://struts.apache.org/2.0.11/docs/codebehind-plugin.html Giovanni Azua wr

cannot find catalog?

2008-02-04 Thread woods5242-grizz
Hi, We are using struts2 with the struts 1 plugin. I have been getting this error when posting to an action. I really am not sure where to start looking, any ideas? [91000] [/].[action] Servlet.service() for servlet action threw exception javax.servlet.ServletException: Cannot find catalog 'str

Re: [OT] Killer Scam

2008-02-04 Thread Musachy Barroso
oh I was just reading it. Struts 2 team, you are going down! :) musachy On Feb 4, 2008 7:06 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Antonio Petrelli <[EMAIL PROTECTED]> wrote: > > I received an email scam in my apache.org email that is, > > substantially, the first in this list: > > http

question on mapping

2008-02-04 Thread Giovanni Azua
hi, Suppose you have a struts.xml mapping that looks like: class="com.sag.optimizer.ui.web.action.form.Form{1}Action"> webui.form{1} webui.failed In several cases I will probably want to provide a valid non empty implementation of a corresponding Form{1}Action.class but in some ca

tomcat can't see french resource bundle

2008-02-04 Thread wessam
i've a strange problem my application is done with struts, working local with JDeveloper IDE which has OC4J embedded server when i change locale to french local the labels are read correctly but when i deploy on tomcat labels from resource bundle are read in english though labels are retrieved fr

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date: ""

2008-02-04 Thread Jeromy Evans
Here is an example where I use it successfully: but in this specific case defaultAnswerDate, startDate and incomingAnswer are all String properties whose values are in RFC3339 format ("-MM-dd"). This doesn't account for the blank error you're experiencing. As Dave mentioned, the most li

Re: Datetimepicker simple thing doesn't work java.text.ParseException: Unparseable date: ""

2008-02-04 Thread Serge Bornow
Hello Jeromy, I do have : Also, i use Netbeans to generate respective get/set method so they are JavaBean std compliant. The issue for me unfortunately is getting the value back , it seems to lose it. :( Thanks for feedback though. Serge Jeromy Evans wrote: Hi Serge, You'll find many

Re: [OT] Killer Scam

2008-02-04 Thread Dave Newton
--- Antonio Petrelli <[EMAIL PROTECTED]> wrote: > I received an email scam in my apache.org email that is, > substantially, the first in this list: > http://www.scamorama.com/killer.html > > Did you receive such a letter? I got one this morning. Of course, I'm a pretty skilled knife- and stick-f

Re: [OT] Killer Scam

2008-02-04 Thread Don Brown
Aw, I just thought I was special, and was so excited - my first death threat! :) Don On Feb 4, 2008 9:54 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: > Hi Antonio, I received that spam for the first time today too on my > address used on this list. I guess it just went wild. > > > Antonio Petrell

Re: [OT] Killer Scam

2008-02-04 Thread Jeromy Evans
Hi Antonio, I received that spam for the first time today too on my address used on this list. I guess it just went wild. Antonio Petrelli wrote: I received an email scam in my apache.org email that is, substantially, the first in this list: http://www.scamorama.com/killer.html Did you receiv

extending BasicPreparerFactory

2008-02-04 Thread mteccles
Hi, I found the DTD for tiles configuration at http://struts.apache.org/struts-sandbox/tiles/tiles-core/dtddoc/index.html. What I want to do is extend the BasicPreparerFactory and configure the struts 2 application to use my class. The application uses the spring plugin but tiles 2 is sandbox an

[OT] Killer Scam

2008-02-04 Thread Antonio Petrelli
I received an email scam in my apache.org email that is, substantially, the first in this list: http://www.scamorama.com/killer.html Did you receive such a letter? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition