Re: [S1] json and Action execute()

2008-01-23 Thread nuwan chandrasoma
Hi, I haven't used ExtJS., but we i have done is i just writhe the json string to the output stream and from my js i convert it to JSON and used it. i used Dojo Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) On Jan 23, 2008 12:26 AM, auz [EMAIL PROTECTED] wrote: this is struts

[Struts2] anchor tag performance with ajax

2008-01-23 Thread Pete Hall
I'm using the s:a tag and I'm experience a severe performance penalty. This is with Struts 2.0.11 As part of my JSP page I have s:iterator value=pageData tr id=row_s:property value=id/ td

Need Help

2008-01-23 Thread mohammed hussain
hi iam muzaffar,struts learner, Any body is having any struts application means pls send to me with source code,its will be very helpful to me and iam very thankful to you. waiting for ur reply

RE: [Formatting data] - Format a number as currency

2008-01-23 Thread John Koutros
Create on you class path a properties file celled for example globalMessages.properties and add the format.money line Then declare this file in struts.properties (struts.custom.i18n.resources=globalMessages). Thus, you are able for every page to format a number like a currency -Original

RE: how to validate field right after the data is entered, HELP!

2008-01-23 Thread ravi_eze
i dont think ull run into problems atleast as long as u reatain the theme as ajax. try using theme as simple and give onblur=validate(this);. Also include the necessary .js files (make the necessary ajax configurations and view source in browser, ull see the .js files). check if the .js files

Re: Need Help

2008-01-23 Thread Antonio Petrelli
2008/1/23, mohammed hussain [EMAIL PROTECTED]: hi iam muzaffar,struts learner, Any body is having any struts application means pls send to me with source code,its will be very helpful to me and iam very thankful to you. Google struts tutorial, or go directly to: http://struts.apache.org/

Re: Need Help

2008-01-23 Thread ravi_eze
did u try struts showcase?? its part of downloads available at the site. also is a good start for struts. Antonio Petrelli-3 wrote: 2008/1/23, mohammed hussain [EMAIL PROTECTED]: hi iam muzaffar,struts learner, Any body is having any struts application means pls send to me with source

validating conditional fields...

2008-01-23 Thread Kavita Mehta
Hi, i have a JSP in which either I show x , y fieds or y, z field based on some condition . Now, i have to validate all x, y,z fields in such a way that if these fields are present, they should be validated else not . can somebdy pls suggest how to do this ... Regards, Kavita

Re: Question on validation

2008-01-23 Thread Andriy Kharchuk
You can turn off validation for a specific method by using the @SkipValidation annotation above your action method. http://struts.apache.org/2.x/docs/validation.html 2008/1/21, Martin Braure de Calignon [EMAIL PROTECTED]: Hello :-), I have two questions, the first one is more important for

Re: Need Help

2008-01-23 Thread mohammed hussain
thanx ravichandaran for ur reply ,wat is this showcase,could you tell me how i can see in net bean On Jan 23, 2008 2:38 PM, ravi_eze [EMAIL PROTECTED] wrote: did u try struts showcase?? its part of downloads available at the site. also is a good start for struts. Antonio Petrelli-3

Re: Need Help

2008-01-23 Thread ravi_eze
download, explode, and search for war files. then deploy them onto tomcat. http://mirror.x10.com/mirror/apache/struts/binaries/struts-2.0.11-all.zip mohammed hussain wrote: hi iam muzaffar,struts learner, Any body is having any struts application means pls send to me with source

Re: Question on validation

2008-01-23 Thread Martin Braure de Calignon
Le mercredi 23 janvier 2008 à 11:17 +0200, Andriy Kharchuk a écrit : You can turn off validation for a specific method by using the @SkipValidation annotation above your action method. http://struts.apache.org/2.x/docs/validation.html Ok many thanks, I though it works only for validation

Re: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-23 Thread totojack
Hi. I've solved the problem. And the solution was... reading the documentation with great attention!!! In particular, from http://struts.apache.org/2.0.11/docs/type-conversion.html, the paragraph Relationship to Parameter Names: 1 - Use JavaBeans! The framework can only create objects if the

Java Script in JSP pages

2008-01-23 Thread naveen k
Hi, I am in a development of struts web application. I need to use java script in a jsp page. but i could not do that. cant we use java script in jsp pages? If possible how would i do that? Naveen

struts2/dojo: duplicate events (struts 2.0.11)

2008-01-23 Thread Otto, Frank
hi, I have a ajax div (div1) in another ajax div (divGrp1). I publish the event refreshDivGrp1 to divGrp1, the div1 was recreate and the event refreshDiv1 was subscribed twice. Here are the debug messages: DEBUG: [divGrp1] Listening to refreshDivGrp1 to refresh DEBUG: [div1] Listening to

Re: Java Script in JSP pages

2008-01-23 Thread Antonio Petrelli
2008/1/23, naveen k [EMAIL PROTECTED]: I am in a development of struts web application. I need to use java script in a jsp page. but i could not do that. cant we use java script in jsp pages? If possible how would i do that? You can put Javascript in your JSP page, what's your problem?

Re: Java Script in JSP pages

2008-01-23 Thread nuwan chandrasoma
Hi, yes, you can, what is the issue you are facing? just add the script /script tag inside your page and write your javascript code there and just use them in your page. Thanks, Nuwan On Jan 23, 2008 2:10 PM, naveen k [EMAIL PROTECTED] wrote: Hi, I am in a development of struts web

Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Thanks for ur reply. I have Jason's Calendar code which run calendar.js script. I need to set that in my JSP page i could not da that. I have done the same thing in html page. I was trying to do like this %@ page language=java pageEncoding=UTF-8% %@ taglib

dojo version in struts 2

2008-01-23 Thread Mark Levitsky
Hi, Does any one knows when is struts 2.1 should be released and do you know with what dojo version it will be released? Regards, Mark Levitsky Amdocs Self Service +972-9-7960880(desk) This message and the information contained herein is proprietary and confidential and

Re: Java Script in JSP pages

2008-01-23 Thread Antonio Petrelli
2008/1/23, naveen k [EMAIL PROTECTED]: script type=text/javascript src=/Calendar/calendarDateInput.js /script I think that the problem is in the inclusion of the javascript file. Anyway, this is not a Struts related problem. I suggest to use Firefox and Firebug to track this kind of

Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Right now i was using Mozilla Firefox. Is there any problem with that? Any way i am going to install the plugin which u have suggested me. Naveen On Jan 23, 2008 2:36 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/1/23, naveen k [EMAIL PROTECTED]: script type=text/javascript

Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Even after i have installed the plugin, there is no result. what would be my problem. Naveen On Jan 23, 2008 2:43 PM, naveen k [EMAIL PROTECTED] wrote: Right now i was using Mozilla Firefox. Is there any problem with that? Any way i am going to install the plugin which u have suggested me.

Re: Basic validation, input, and redirects

2008-01-23 Thread Jack Gould
I'll expand on this comment (and I believe this is what ravi_eze is suggesting)... I have a similar situation in my application, and I got around it by creating a non-validating stack for the setup actions. I basically removed all the interceptors that trigger validation for those actions where I

Re: File Upload

2008-01-23 Thread Pablo Vázquez Blázquez
Is there any problem with this mail list? I can´t send mails. Jeromy Evans escribió: I'd use a breakpoint in to inspect the content of the data variable. Is it a tree of Nodes or is it plain text/html? If the former it can be appended/inserted directly into the DOM with the respective

Re: File Upload

2008-01-23 Thread Pablo Vázquez Blázquez
Well, if I begin my Plugins.jspx with a div tag, it works (before, the begin was a jsp:root tag). But, when the response is loaded (it is the same page but with a new plugin entry), the delete link is bad created. So, 2 questions: a) why didn´t it work with jsp:root? b) why delete links are

Re: Java Script in JSP pages

2008-01-23 Thread Antonio Petrelli
2008/1/23, naveen k [EMAIL PROTECTED]: Even after i have installed the plugin, there is no result. what would be my problem. Probably I've been not clear. Your problem is not Struts-related. My suggestion to use Firebug meant that you need to *use* it to *track* your problem and, after

Re: Java Script in JSP pages

2008-01-23 Thread naveen k
Hello anyone please help me out of this problem. Naveen On Jan 23, 2008 2:49 PM, naveen k [EMAIL PROTECTED] wrote: Even after i have installed the plugin, there is no result. what would be my problem. Naveen On Jan 23, 2008 2:43 PM, naveen k [EMAIL PROTECTED] wrote: Right now i was

struts request encoding to utf-8 problem

2008-01-23 Thread wessam
i'm using struts 1.1, oracle 10g environment i'm facing a problem that i can't save special characters as ẻ, € from the page to database correctly though i used all the possible ways to set the encoding to utf-8 her's the code i used 1- in the.jsp page .. %@ page language=java

Re: Java Script in JSP pages

2008-01-23 Thread naveen k
How to use this Firebug for these jsp pages to track my problem? In what way it can help me? Please dont think i am boring u my friend. Naveen On Jan 23, 2008 3:45 PM, Antonio Petrelli [EMAIL PROTECTED] wrote: 2008/1/23, naveen k [EMAIL PROTECTED]: Even after i have installed the plugin,

Re: Java Script in JSP pages

2008-01-23 Thread naveen k
thanks for ur reply. But i need to use calendarDateInput.js in my code. how can i call it from my Jsp if i remove src attribute from the script tag? Naveen On Jan 23, 2008 3:54 PM, Pablo Vázquez Blázquez [EMAIL PROTECTED] wrote: try script type=text/javascript /script in your funcions

[OT] Re: Java Script in JSP pages

2008-01-23 Thread Dave Newton
--- naveen k [EMAIL PROTECTED] wrote: How to use this Firebug for these jsp pages to track my problem? In what way it can help me? Please dont think i am boring u my friend. The issue isn't that you're boring anybody, it's that you're using the struts-user list to ask JavaScript questions

Re: struts request encoding to utf-8 problem

2008-01-23 Thread Robert Slama
try : request.setCharacterEncoding(encoding); response.setCharacterEncoding(encoding); filterChain.doFilter(request, response); r^ S pozdravom Robert Slama SpiritLine s.r.o. Bernolakova ul. 1A 901 01 Malacky [EMAIL PROTECTED] gsm: +421 905 122 841 tel: +421 34 778 20 88

Re: dojo version in struts 2

2008-01-23 Thread Dave Newton
--- Mark Levitsky [EMAIL PROTECTED] wrote: Does any one knows when is struts 2.1 should be released No, there is no timeline (in general) for Struts releases. and do you know with what dojo version it will be released? As it stands it's using 0.4.mumble (0.4.3?), IIRC. d.

Re: Spring MVC Struts 2 Pros/Cons

2008-01-23 Thread Adam Hardy
When I read your first question, I thought you might be a troll, because that is often the first question in a flame war. But it seems you are genuine, so here are my pros and cons of struts vs spring mvc, based on the use of spring webflow (using spring mvc underneath): - struts interceptor

RE: dojo version in struts 2

2008-01-23 Thread Mark Levitsky
Can I work some how with struts 2 and with dojo 1.0 together (instead the 0.4 version) If yes how can I configure to use this dojo version? And another question do you know in what version of struts the dojo will be above 1.0 Regards, Mark Levitsky Amdocs Self Service +972-9-7960880(desk)

RE: dojo version in struts 2

2008-01-23 Thread Dave Newton
--- Mark Levitsky [EMAIL PROTECTED] wrote: Can I work some how with struts 2 and with dojo 1.0 together (instead the 0.4 version) You can use Dojo raw (i.e., not using the S2 tags), or you could get the 2.1 source and replace the Dojo plugin version with 1.0 and deal with any potential issues

Re: struts request encoding to utf-8 problem

2008-01-23 Thread wessam
i did add response.setCharacterEncoding(encoding), in EncodingFilter class but still output corrupted characters in the jsp :( i really need to solve this problem as soon as possible .. any help please ? -- View this message in context:

FW: DailyRollingFileAppender for a Struts Web Application using WAS 6.0 and Struts 1.1

2008-01-23 Thread Paula McDowell
Hi, all. Is there a way to set a DailyRollingFileAppender outside of a log4j.properties in a struts application? My company’s website is running in a mainfame environment with multiple WAS instances for each region ie., development, test, and production. This type of architecture requires

RE: dojo version in struts 2

2008-01-23 Thread ravi_eze
can we use dojo 1 in struts 2.0.9? newton.dave wrote: --- Mark Levitsky [EMAIL PROTECTED] wrote: Can I work some how with struts 2 and with dojo 1.0 together (instead the 0.4 version) You can use Dojo raw (i.e., not using the S2 tags), or you could get the 2.1 source and replace the

Dwr and combo box (select) input, please help.

2008-01-23 Thread Jeancarlo
Hello, I'm using struts 2 version 2.0.9. I have a form with a lot of input fields, including a select, which is the 'category group'. When I select a group (onchange), I go to the server and get all categories for that group. The way I did so far, is by using DWR; I have a class called

Re: validating conditional fields...

2008-01-23 Thread ravi_eze
one approach: you need to achieve appearing and dissappearing of the filelds based on some event (say radio button) using client side javascript. how ever in either case according to the html the fields are all present (i.e. x,y,z) now in action calss you can write validate method in which you

Re: Why should we keep

2008-01-23 Thread Laurie Harper
Also worth mentioning is that configuring data sources in struts-config.xml has been deprecated for a long, long time. The preferred way to do it is to configure the data source in your container and reference it from your Struts app through JNDI. Switching to that approach should avoid issues

Struts2 getting action's full URL

2008-01-23 Thread Filipe David Manana
Hi, is there anyway to get, from within an Action's code, a string with the full URL for that action (including query string with current value of the parameters) ? I already took a look at ActionSupport, ActionContext and ActionInvocation javadoc, but nothing there fits my needs. thanks --

combobox - howto eliminate the optional text-field?

2008-01-23 Thread xianwinwin
hi all, I have the following code: s:combobox label=Group name=groupAssociation theme=simple list=#{'red':'red','green':'green','blue':'blue'} headerKey=-8 readonly=true headerValue=--- Please Select --- emptyOption=false value=green / this provides the

Re: validating conditional fields...

2008-01-23 Thread Laurie Harper
Kavita Mehta wrote: Hi, i have a JSP in which either I show x , y fieds or y, z field based on some condition . Now, i have to validate all x, y,z fields in such a way that if these fields are present, they should be validated else not . can somebdy pls suggest how to do this ...

Re: Struts2 getting action's full URL

2008-01-23 Thread Dave Newton
--- Filipe David Manana [EMAIL PROTECTED] wrote: is there anyway to get, from within an Action's code, a string with the full URL for that action (including query string with current value of the parameters) ? I already took a look at ActionSupport, ActionContext and ActionInvocation javadoc,

Re: combobox - howto eliminate the optional text-field?

2008-01-23 Thread Dave Newton
Isn't that a select? http://struts.apache.org/2.x/docs/select.html --- xianwinwin [EMAIL PROTECTED] wrote: hi all, I have the following code: s:combobox label=Group name=groupAssociation theme=simple list=#{'red':'red','green':'green','blue':'blue'}

Re: dojo version in struts 2

2008-01-23 Thread Laurie Harper
The default reply to these question is always: you can use any Javascript library or framework you want, with any version of Struts, exactly as you would use it outside of Struts. Struts2 includes some tags and other convenience features which make a few basic Ajax-y things easy to do without

Re: Struts2 getting action's full URL

2008-01-23 Thread Filipe David Manana
Basically I am creating a page that contains a select box. When the user changes the selected item, it is redirected to an URL. The value of each item in the select box corresponds to the URL of the current page but with different values for the action's parameters (passed in the query string).

Re: Struts2 getting action's full URL

2008-01-23 Thread Dave Newton
--- Filipe David Manana [EMAIL PROTECTED] wrote: Basically I am creating a page that contains a select box. When the user changes the selected item, it is redirected to an URL. The value of each item in the select box corresponds to the URL of the current page but with different values for the

Re: struts request encoding to utf-8 problem

2008-01-23 Thread Laurie Harper
wessam wrote: i'm using struts 1.1, oracle 10g environment i'm facing a problem that i can't save special characters as ẻ, € from the page to database correctly though i used all the possible ways to set the encoding to utf-8 [...] the point is the the characters reaches the action class

Re: Java Script in JSP pages

2008-01-23 Thread Randy Burgess
Try this. script type=text/javascript src=Calendar/calendarDateInput.js /script You need to check your file paths and understand relative links in your web application. If that isn't it then you will have to figure it out. The syntax is correct. Regards, Randy Burgess Sr. Web Applications

Re: FW: DailyRollingFileAppender for a Struts Web Application using WAS 6.0 and Struts 1.1

2008-01-23 Thread Laurie Harper
I think that's more of a Log4j configuration question (i.e. how to configure a Log4j appender dynamically during webapp startup). As such, you might be better off asking on a Log4j-specific list. L. Paula McDowell wrote: Hi, all. Is there a way to set a DailyRollingFileAppender outside of a

Re: struts1 and struts2 together

2008-01-23 Thread Laurie Harper
Otto, Frank wrote: hi, I have an old struts1 application. Now, I want to use struts 2 for a new part of them (ajax configurator). With the struts 2.0.11 version it work's fine, but If I upgrade to struts 2.1.0 snapshot, I will get many errors, especially NullPointerExceptions. Is it possible

struts2 blank app (at java.lang.Thread.run(Thread.java:595) )

2008-01-23 Thread A. Lotfi
Hi, I just downloaded struts2 and tomcat and tried to run the blank app , I got the first page that say : Struts is up and running... Languages . English . Espaniol when I click in those links nothing happen. Since I put the war file in webapps folder of tomcat

Re: including the output of an action execution in a servlet response.

2008-01-23 Thread Darren James
I finally found the answer for any that are interested. servlet filters apparently don't trigger (by default) on forwarded and included requests. I had to change my filter url mapping in web.xml to make the struts2 filter fire from: filter-mapping

Re: File Upload

2008-01-23 Thread Pablo Vázquez Blázquez
Any idea? How can I fix the Delete links problem? Pablo Vázquez Blázquez escribió: Well, if I begin my Plugins.jspx with a div tag, it works (before, the begin was a jsp:root tag). But, when the response is loaded (it is the same page but with a new plugin entry), the delete link is bad

Re: Struts2 getting action's full URL

2008-01-23 Thread Filipe David Manana
Good ideia. I just made the select box submit the form whenever a new option is selected, via the onchange event. The form's target is the same action, with hidden parameters, except for the select box, which targets one of the parameters. Thanks for your suggestions. On 1/23/08, Dave Newton

Re: struts request encoding to utf-8 problem

2008-01-23 Thread Laurie Harper
Please keep discussions on the mailing list rather than replying to anyone directly, so the archives are complete. In this case, you've isolated your problem to the database read/write phase, which means it's not a Struts issue. You'll need to look again at your database configuration and

RE: dojo version in struts 2

2008-01-23 Thread Yuval Rotem
Hi, We haven't tried this with Struts 2.1, as suggested below, but I don't think it would work. There have been many changes between Dojo 0.4 and 1.0. One of them is that require(packageName.*) is not supported anymore in Dojo 1.0. (I also know that there have been many changes in the way Dojo

RE: dojo version in struts 2

2008-01-23 Thread Dave Newton
I said you could use it raw or port the plugin (S2.1) or Dojo tags (S2.0) to Dojo 1.x; so this will work. I didn't mean to imply there wouldn't be issues (I thought I said I didn't know if there would be issues or not, since I'm not familiar with Dojo 1.x). --- Yuval Rotem [EMAIL PROTECTED]

Missing/broken links for prior releases

2008-01-23 Thread Jeff Hill (RR)
Note sure if this is the right mailing list for this, but on the download page (http://struts.apache.org/downloads.html), there are links for prior releases such as 2.0.9. They all take you to the same page (download.cgi), with local references (struts#209), but those local anchors have apparently

Re: File Upload

2008-01-23 Thread Jeromy Evans
Sorry Pablo, I'm not sure about this. My suggestions are: - try it in FireFox. If it works, you know you have an IE-specific problem. If it doesn't work, there's something wrong with the code - innerHTML is known to have quirks in IE. I'd simplify the HTML result and work upwards from

Where's dojo?

2008-01-23 Thread Jeff Hill (RR)
I've seen references all over the place to the struts dojo plugin, but I can't find a jar by that name in any of the 2.x distributions I've checked (2.09 and later). Is the jar called something else? Or is it not actually part of the distribution as the docs say? Also, I understand the Ajax

Re: Where's dojo?

2008-01-23 Thread Dave Newton
The S2.1 Dojo plugin is not bundled in the distribution because S2.1 isn't released yet. If you build from source (manually or via Maven) it's in the plugins directory. d. --- Jeff Hill (RR) [EMAIL PROTECTED] wrote: I've seen references all over the place to the struts dojo plugin, but I

StandardWrapperValve[DBProxyServlet]Servlet.service() for servlet

2008-01-23 Thread yogeerocks
StandardWrapperValve[DBProxyServlet]: Servlet.service() for servlet DBProxyServlet threw exception java.lang.NullPointerException PLEASE HELP ME TO SOLVE THIS PROBLEMM SIR PLEASE thankss -- View this message in context:

Re: StandardWrapperValve[DBProxyServlet]Servlet.service() for servlet

2008-01-23 Thread James Mitchell
That's a class in Tomcat, not Struts. Looks like you're datasource is misconfigured. Please ask on the tomcat users list. Thanks On Jan 24, 2008 12:29 AM, yogeerocks [EMAIL PROTECTED] wrote: StandardWrapperValve[DBProxyServlet]: Servlet.service() for servlet DBProxyServlet threw exception

JSP Date Control

2008-01-23 Thread Chris Pratt
This is a tiny bit off topic, but does anyone know a good JSP based Date Control that works well for Birth Dates? Most of the JavaScript libraries with the fancy calendar controls are horrible to enter birthdates (just hit the Previous Year button 45 times). I'm hoping for something that can