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

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 Petrelli

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

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

2008-02-04 Thread Serge Bornow
Hello Jeromy, I do have : s:head theme=simple / 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

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: [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: [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 list:

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

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? Yep, I got

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 : s:head theme=simple / 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. :(

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 on the

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 all

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

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: s:head theme=ajax debug=true/ 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

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

question on mapping

2008-02-04 Thread Giovanni Azua
hi, Suppose you have a struts.xml mapping that looks like: action name=Form* class=com.sag.optimizer.ui.web.action.form.Form{1}Action result name=input type=tileswebui.form{1}/result result name=error type=tileswebui.failed/result /action In several cases I will probably want to

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: s:datetimepicker name=incomingAnswer displayFormat=d dayWidth=wide formatLength=full type=date value=%{defaultAnswerDate} startDate=%{tomorrowAsRFC3339} required=true/

[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

RE: AjaxTag 1.3 support?

2008-02-04 Thread Griffith, Michael *
Musachy Here is the autocompleter tag and the JSON returned... s:label name=text value=Search for Question Text: / s:url id=search namespace=/search value=/search/searchByText.action/ s:autocompleter theme=ajax href=%{search} name=text dataFieldName=text

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

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

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

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-fighter

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
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 array of

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

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 :-) Greg

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 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 text...],

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 2:37 PM

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 application

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

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

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 Application is

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 array

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.

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... MapString,String m= new HashMapString,String(); Question q= ... [from my list] m.put(id, q.getId().toString()); m.put(text, q.getText()); newList.add(m); And my JSON result looks:

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 * [EMAIL

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 does it use

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

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 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 Application a ME,

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: 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

[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

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, interceptor-ref name=servlet-config / interceptor-ref name=params / interceptor-ref name=login /

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 ? Thanks in

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 user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: How to add prinr option ?

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

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
Hmmm ... my login.jsp now looks like this, s:form action=index method=post validate=true s:textfield name=username key=user.username / s:password name=password key=user.password / s:submit name=login key=button.login / /s:form When the login button is pressed, the following exceptions are

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.