Question regarding OGNL

2008-03-13 Thread Thomas Ramapuram
Hi, I have query regarding OGNL Expression. Can the "#name" kind of expression be used anywhere? Or are they applicable only in certain attributes of struts tags Till now I was using the %{name} expression and that too in the some attribute of a tag I tried using #name expression but it d

Problem assiging elements in to list

2008-03-13 Thread Vamsi Gmail!
Hi all, I have a requirement where I need to assign a Objects to a list. I tried the example given in showcase there is working (in the site). But It is not assigning to that list I am also attaching code for your refernce. ---Vamsi /* * $Id: PersonAction.java 471756 2006-11-06 15:01:4

Multiple Actions for a single page. Is this possible

2008-03-13 Thread ravi_eze
hi, We have two pages a.jsp and b.jsp developed with the action class mehods Ac.a() & Ac.b() that render these pages. Now we need to develop a new page c.jsp which is combination of both a & b.jsps. i can include the jsps into the c.jsp. But what abt the action class behind? can they not get aut

Re: selective validation using validation.xml

2008-03-13 Thread ravi_eze
akash agrawal-2 wrote: > > Hi, > > Is this possible to do selective validation using validation.xml? What I > meant by this is that calling a different set of validation on > each(different) invocation of same action and same method. > > Quite possible: in that case u would write valildation

Re: Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-13 Thread kannan_307
I am using the struts version 1.2.4 Antonio Petrelli-3 wrote: > > 2008/3/13, kannan_307 <[EMAIL PROTECTED]>: >> >> >> When I deploying my War file in Weblogic 8.1, I am getting the following >> error: >> >> Error in using tag library uri='/WEB-INF/tlds/struts-html.tld' >> prefix='html': The T

Re: Struts 2 scheduler

2008-03-13 Thread alex xander
thx all, i solve my problem with quartz, i used it with spring thx so much - Original Message From: "Peters, John" <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Wednesday, March 12, 2008 10:14:18 PM Subject: RE: Struts 2 scheduler Depends on the implementation. If you only nee

Re: How to initialize business service objects?

2008-03-13 Thread Jeromy Evans
Hi Frank, Have a read of Martin Fowler's article on deciding which option best suits you: http://martinfowler.com/articles/injection.html As Dave described you have many possibilities, but the common techniques are (not in order of preference): a. Use a ServletContextListener to to setup you

[OT] RE: How to initialize business service objects?

2008-03-13 Thread Dave Newton
--- Frank Fischer <[EMAIL PROTECTED]> wrote: > I just read a bit regarding Spring. As far as i understand its focus is on > J2EE appllications. I guess for what i want to do in a first step (my > simple chat app) it would be overkill to use Spring. Do i get that right? Not really. IMO Spring is a

RE: How to initialize business service objects?

2008-03-13 Thread Frank Fischer
Hi Randy Hi all I just read a bit regarding Spring. As far as i understand its focus is on J2EE appllications. I guess for what i want to do in a first step (my simple chat app) it would be overkill to use Spring. Do i get that right? I would prefere to go the most simple way if possible. So, ju

Re: validation with annotation

2008-03-13 Thread matt.payne
The current usage of Annotating methods seems broken. Its still applying all the validation rules to all methods despite methods having different validation requirements. The Struts "Zero Config/Annotation/Auto Config needs help" Hopefully, a http://jira.opensymphony.com/browse/XW-603 sprink

Re: How to initialize business service objects?

2008-03-13 Thread Randy Burgess
For a POJO you can use dependency injection such as Spring or Guice or you can instantiate the object the normal way BusinessServiceObject bso = new BusinessServiceObject(); in your action class. There is nothing special about accessing your BSO's in Struts. Regards, Randy Burgess Sr. Web Applic

RE: [struts] JSON plugin

2008-03-13 Thread Stanley, Eric
Musachy, That seems to work. I now see the proper response when I call response[0].name. Thanks. -Ryan -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 3:45 PM To: Struts Users Mailing List Subject: Re: [struts] JSON plugin If re

Latest Quickstart & Sitemesh

2008-03-13 Thread Doug Pham
Hi All, I took the current quickstart application and added sitemesh to the pom.xml and added all the necessary files for sitemesh, the dojo that listed the Persons broke. The decorator works but the ajax failed with "Error loading '/quickstart/list.action' (200 OK)" Is there any special

Re: [struts] JSON plugin

2008-03-13 Thread Musachy Barroso
If response[i] is a char then the response is a text, not an object. If I don't remember wrong dojo builds the object for you when the mimetype is "application/json", but I am not sure right now. Use the "eval" function to turn the text into an object. musachy On Thu, Mar 13, 2008 at 5:31 PM, Sta

How to initialize business service objects?

2008-03-13 Thread Frank Fischer
Hi all i'm just starting with struts2 (even with struts at all). Of course i first read some how-to-starts. But there is one thing i don't understand. I'm trying to create a simple little chat app. I have two action classes, one for the normal chat user, one for the moderators. Both classes nee

RE: [struts] JSON plugin

2008-03-13 Thread Stanley, Eric
Dale, I am using dojo, so here is the snippet that handles the request/response: var kw = { url: url, mimetype: "text/json", method: "POST", load: function(responseObject, ioArgs) { console.debug(responseObject[0].name); // Dump it to the console

Re: [struts] JSON plugin

2008-03-13 Thread Dale Newfield
Stanley, Eric wrote: I tried just printing out responseObject[i] How in your javascript code do you convert the text of the response into responseObject? -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

RE: JSON plugin

2008-03-13 Thread Stanley, Eric
Martin, Im not sure I catch what your saying. I understood it was the json plugin that determined the format of the json response. I am not using an autocompleter either. -Ryan -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 4:15 PM

Can validation be evaluated ahead of time to paint JQuery validation rules?

2008-03-13 Thread matt.payne
I really like the treatment the JQuery http://jquery.bassistance.de/validate/demo/ validation plugin (not struts plugin), gives for a user experience. I would really like the rules to come from back end rules and decorate the form fields the same way if the back end bounces a validation error.

Re: struts wml

2008-03-13 Thread CarloSilva
Laurie Harper, email-me please. I think I have help to you. An emabrace [EMAIL PROTECTED] - Original Message - From: "Laurie Harper" <[EMAIL PROTECTED]> To: Sent: Thursday, March 13, 2008 5:26 AM Subject: Re: struts wml Sean Chen wrote: Dear all, The latest struts wml tag li

RE: JSON plugin

2008-03-13 Thread Stanley, Eric
Musachy, I tried just printing out responseObject[i] where I was 1-10, and it returns the actual characters of the response like it is an array: responseObject[0] = [ responseObject[1] = { responseObject[2] = " Is it a problem with converting my ArrayList into json? -Ryan -Original M

RE: JSON plugin

2008-03-13 Thread Stanley, Eric
Musachy, Thanks for the quick reply. I just added what you suggested and tried it. This is the response: undefined What else can I check? -Ryan -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 2:36 PM To: Struts Users Mailing Li

Re: JSON plugin

2008-03-13 Thread Musachy Barroso
you don't have a "projectList" field in the response, only an array of objects. If you do: responseObject[0].name it will return "Alarming page". musachy On Thu, Mar 13, 2008 at 4:30 PM, Stanley, Eric <[EMAIL PROTECTED]> wrote: > I am trying to use dojo and the JSON plugin, but I have hit a sna

JSON plugin

2008-03-13 Thread Stanley, Eric
I am trying to use dojo and the JSON plugin, but I have hit a snag. I am using JSON to serialize: ArrayList projectList. It seems to do this fine, as I can see the result in firebug. The problem I am having is that the JSON response seems to be missing something, and I cant figure out how to reme

Re: Struts 2 Weblogic and NTLM

2008-03-13 Thread dgv123
Ok i found out what was going wrong. I used the sun package to encode "new sun.misc.BASE64Encoder().encodeBuffer(msg1)" I replaced it with a class I got from http://iharder.net/base64 and it works fine now. I did not know sun.* apis are not supposed to be used dgv123 wrote: > > I am attac

Re: Problem with submitting while using NTLM authentication

2008-03-13 Thread dgv123
Check if works. I had the same issue with this on a UNIX environment(struts 2). When i replaced the tag with the regular tag...it worked fine Tarun Reddy wrote: > > Hi all, > I'm using NTLM authentication to let the user in. After the user gets into > the application, he'll be shown a jsp p

Re: Problem accessing GET parameter in Struts2

2008-03-13 Thread Christoph Kepper
Thanks to your hint I found the mistake :-) Dave Newton wrote: I tried to get some debug information from the params interceptor and put the following code into my struts.xml (inside the action): true DEBUG Nate that when you use an interceptor-ref element inside an action configurati

Proxy action and tag

2008-03-13 Thread stanlick
I am working on a piece of code where a single action services several methods. It uses a wildcard mapping and the method attribute of the tag is what drives the specific methods. I was unable to get the validators to work and started debugging the AnnotationValidationInterceptor to discover tha

Struts 2 Weblogic and NTLM

2008-03-13 Thread dgv123
I am attaching a WAR file which uses code to obtain the user id via NTLM. This code works fine on Tomcat and Weblogic 9.2 on unix (if i do not use in the Home.jsp - I do not know why that breaks http://www.nabble.com/file/p16032835/NTLM1.war NTLM1.war ) This WAR does not work on Weblogic 9.2 Win

RE: property in not interpreted

2008-03-13 Thread Allen, Daniel
I actually thought you couldn't nest tags. You can nest them in regular HTML tags because the JSP and the HTML are interpreted at different steps, so from the separate perspectives of the two parsers there's not really any nesting going on (the JSP parser on the server only cares about JSP tags, a

Re: Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
Ha ha I was trying this and couldn;t get it to work. My mistake was fullAccess = true, so readOnly="%{fullAccess}" was returning true, i meant to say readOnly="%{!fullAccess}". thanks On Thu, Mar 13, 2008 at 1:01 PM, Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > I have done it.. It goes like t

Re: Setting disable attribute dynamically

2008-03-13 Thread Rushikesh Thakkar
I have done it.. It goes like this: (1) The Action: public class PrepareScreen extends ActionSupport { private String yesOrNo; public String execute() throws Exception { yesOrNo = "true"; return SUCCESS; } public String getYesOrNo() { return yesOrNo;

Re: Parameters: Invalid chunk ignored (parameters not passed)

2008-03-13 Thread Rushikesh Thakkar
Thanks Dave. Thats the one I am using, but I was referring to http://struts.apache.org/2.x/docs/submit.html Bierb, can you tell me what does your code do? I might get an idea.. Does anybody have an Idea of when this error is thrown? 07.mar.2008 15:30:46 org.apache.tomcat.util.http.Parametersproce

Re: not interpreted

2008-03-13 Thread Manos Batsis
Laurie Harper wrote: Dave Newton wrote: --- matthieu martin <[EMAIL PROTECTED]> wrote: That's not valid XML; you can't nest tags like that. Off the top of my head I don't recall if the "id" attribute will eval OGNL or not. To be pedantic, JSPs are not XML files ...unless you

Re: not interpreted

2008-03-13 Thread Laurie Harper
Dave Newton wrote: --- matthieu martin <[EMAIL PROTECTED]> wrote: That's not valid XML; you can't nest tags like that. Off the top of my head I don't recall if the "id" attribute will eval OGNL or not. To be pedantic, JSPs are not XML files and thus don't have to be valid; hence

Re: Parameters: Invalid chunk ignored (parameters not passed)

2008-03-13 Thread Dave Newton
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote: > Thanks anyways, but can you tell me what does it do? I didn't find any > property as 'formFilter' in the documentation given for in the > tag reference. http://struts.apache.org/2.0.11.1/docs/dojo-submit.html Dave --

Re: Parameters: Invalid chunk ignored (parameters not passed)

2008-03-13 Thread Rushikesh Thakkar
I tried it and Its Not Working !! Thanks anyways, but can you tell me what does it do? I didn't find any property as 'formFilter' in the documentation given for in the tag reference. On Thu, Mar 13, 2008 at 3:32 PM, bierb <[EMAIL PROTECTED]> wrote: > > Add parameter formFilter="formFilter" to y

Re: Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-13 Thread Antonio Petrelli
2008/3/13, kannan_307 <[EMAIL PROTECTED]>: > > > When I deploying my War file in Weblogic 8.1, I am getting the following > error: > > Error in using tag library uri='/WEB-INF/tlds/struts-html.tld' > prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has > no > setter method corre

ajax file upload

2008-03-13 Thread matthieu martin
Hi all ! I have a rather disturbing issue with a file upload. I have the tag used along with a form. This works just fine, I get my files on the server. In my action, I move my file where I want to, and I create my entry in the database. I refresh my div containing my images. The problem is thi

Getting error in using tag library : The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.1 spec, 5.4.1)

2008-03-13 Thread kannan_307
When I deploying my War file in Weblogic 8.1, I am getting the following error: Error in using tag library uri='/WEB-INF/tlds/struts-html.tld' prefix='html': The Tag class 'org.apache.struts.taglib.html.FormTag' has no setter method corresponding to TLD declared attribute 'acceptCharset', (JSP 1.

Re: not interpreted

2008-03-13 Thread matthieu martin
On Thu, Mar 13, 2008 at 3:26 PM, Richard Sayre <[EMAIL PROTECTED]> wrote: > try: > > targets="dataImageDiv%{id}"/>">Copy > > > if id is on the stack, you can get it with OGNL > This works, thanks a lot. I haven't working for a long time with struts 2 and I still have some issues figuring out wha

Re: Parameters: Invalid chunk ignored (parameters not passed)

2008-03-13 Thread bierb
Add parameter formFilter="formFilter" to your and create Javascript function in head function formFilter(element) { return true; } it's funny but works! :-) Rushikesh Thakkar wrote: > > Kindly help.. I have not been able to solve it yet. > > -- Forwarded message -- > Fr

Re: not interpreted

2008-03-13 Thread Dave Newton
--- matthieu martin <[EMAIL PROTECTED]> wrote: > That's not valid XML; you can't nest tags like that. Off the top of my head I don't recall if the "id" attribute will eval OGNL or not. Dave - To unsubscribe, e-mail:

Re: not interpreted

2008-03-13 Thread Richard Sayre
try: ">Copy if id is on the stack, you can get it with OGNL On Thu, Mar 13, 2008 at 10:49 AM, matthieu martin <[EMAIL PROTECTED]> wrote: > Hi all ! > > I have a little issue and I find no clues on the web, so i'm turning myself > to you. > > I have a piece of code like this : > > > > >

Re: Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
I made a slight error readonly="%{fullAccess}" with s:textfield does not work but readonly="true" /> works. On Thu, Mar 13, 2008 at 10:48 AM, Richard Sayre <[EMAIL PROTECTED]> wrote: > If the disable attribute is present in a HTML tag it will be disable, > no matter what the value of the attri

not interpreted

2008-03-13 Thread matthieu martin
Hi all ! I have a little issue and I find no clues on the web, so i'm turning myself to you. I have a piece of code like this : Edit Move Copy this piece of code is placed in a loop, and creates a small menu for each images I have in gallerie

Setting disable attribute dynamically

2008-03-13 Thread Richard Sayre
If the disable attribute is present in a HTML tag it will be disable, no matter what the value of the attribute is. So if I have a s:select and I say disabled="false" it will be disabled (renders disabled="disabled"). But if we have a text, and we set readonly="false" it will not be editable. O

RE: Struts get string and is boolean

2008-03-13 Thread Peters, John
Thankssorry I missed it..inbox was cluttered -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 9:27 AM To: Struts Users Mailing List Subject: RE: Struts get string and is boolean --- "Peters, John" <[EMAIL PROTECTED]> wrote: > Any idea

RE: Struts get string and is boolean

2008-03-13 Thread Dave Newton
--- "Peters, John" <[EMAIL PROTECTED]> wrote: > Any ideas? I haven't seen any replies other than my own. Dave > From: Peters, John > > Is it possible to have multiple methods for the same value? > Then have the jsp either load a text box or a check box For example > Depending the circumstance

RE: Struts get string and is boolean

2008-03-13 Thread Peters, John
Any ideas? -Original Message- From: Peters, John Sent: Friday, March 07, 2008 10:57 PM To: 'Struts Users Mailing List' Subject: Struts get string and is boolean Is it possible to have multiple methods for the same value? Then have the jsp either load a text box or a check box For exampl

Re: How to implement ajax in struts 1.1

2008-03-13 Thread Dave Newton
--- Raghu varma bhupathiraju <[EMAIL PROTECTED]> wrote: > Can any one tell me how to implement ajax in struts 1.1 with simple > example. Can any one provide complete code for that. ... You'd have to provide a somewhat less-nebulous requirement. There are dozens of ways to "implement Ajax in Strut

Re: How to use the 'struts 1 plugin' in struts2

2008-03-13 Thread Dave Newton
--- udaykumar <[EMAIL PROTECTED]> wrote: > I'm Trying to use ActionForm and Action class in my struts2. I Used the > struts 1 plugin for this. I followed the procedure, which they given. Still > i'm finding error in this. It would be helpful if you'd tell us *what* error(s). Just saying "it doesn

Re: Problem accessing GET parameter in Struts2

2008-03-13 Thread Dave Newton
--- Christoph Kepper <[EMAIL PROTECTED]> wrote: > >admin >/WEB-INF/jsp/artikelForm.jsp > > > My action class (ArtikelAction.java) contains the property "private > Integer artnr" with the appropriate Getters and Setters. As a sanity check, what are your getter and setters named? > I tr

Re: Struts2 URL problem

2008-03-13 Thread Jeromy Evans
Hi Tauri, I don't have time to try it myself right now, but what I meant was create an additional default package that contains no actions. I'm not sure if it will help though. The idea is that when the default action mapper can't match the namespace, it falls back to an empty back. Like th

How to implement ajax in struts 1.1

2008-03-13 Thread Raghu varma bhupathiraju
Hi friends Can any one tell me how to implement ajax in struts 1.1 with simple example.Can any one provide complete code for that. Thanks in advance Raghu Varma Bhupathiraju -- View this message in context: http://www.nabble.com/How-to-implement-ajax-in-struts-1.1-tp16024761p16024761.html Sent

Parameters: Invalid chunk ignored (parameters not passed)

2008-03-13 Thread Rushikesh Thakkar
Kindly help.. I have not been able to solve it yet. -- Forwarded message -- From: Rushikesh Thakkar <[EMAIL PROTECTED]> Date: Fri, Mar 7, 2008 at 3:40 PM Subject: Parameters: Invalid chunk ignored (parameters not passed) To: Struts Users Mailing List I am facing a strange proble

How to use the 'struts 1 plugin' in struts2

2008-03-13 Thread udaykumar
Hi I'm Trying to use ActionForm and Action class in my struts2. I Used the struts 1 plugin for this. I followed the procedure, which they given. Still i'm finding error in this. I'm giving my entire application here. strutslogin.jsp --- <%@ taglib prefix="s" uri="/struts-t

Re: struts wml

2008-03-13 Thread Laurie Harper
Sean Chen wrote: Dear all, The latest struts wml tag library I found is struts-wml 1.1. Does anyone know what I can work with wml tag with struts 1.3.x? Thank you Sean Since I'd never heard of struts-wml I googled, and found the SourceForge project page for it. It doesn't look like it's

Problem accessing GET parameter in Struts2

2008-03-13 Thread Christoph Kepper
Hi, I am new to Struts and new to this list. I want to create a blog with struts as a university project and have been wrestling with this (obscenely) simple problem for two days without any progress. Maybe any of you struts experts may help out here: All I want to do is access a GET paramet

Re: How can I combine a result (tiles + xslt)?

2008-03-13 Thread Antonio Petrelli
2008/3/13, Antonio Petrelli <[EMAIL PROTECTED]>: > > 2008/3/12, Griffith, Michael * <[EMAIL PROTECTED]>: > > > > if( getFlush() ){ > > LOG.debug("Flushing output stream"); > > out.close(); // ...and flush... > > } > > > > Yup you're right! Ple

Re: How can I combine a result (tiles + xslt)?

2008-03-13 Thread Antonio Petrelli
2008/3/12, Griffith, Michael * <[EMAIL PROTECTED]>: > > if( getFlush() ){ > LOG.debug("Flushing output stream"); > out.close(); // ...and flush... > } Yup you're right! Please open a JIRA issue: https://issues.apache.org/struts/browse/WW In