Re: Please help to get Arabic i18n(internationalization) using struts2.1.6

2009-03-10 Thread kavita P
Hi Friends, I am also trying out the same example and facing the same problem. I am trying to make japanese locale but not able to do that. I have saved the package_ja.properties file as UTF-8 type. I have tried all the option mention below but all in vain. Can anyone please help.

RE: Get jsp content in struts action

2009-03-10 Thread D1vy@@Ind1@
Hmm.. I am not sure if the code is problematic because with the same code I am able to read the contents of all JSP pages. Only for JSPs using struts tags I get an exception as mentioned previously, I wanted to know how can I get rid of that exception. -D mgainty wrote: the input stream

Re: Get jsp content in struts action

2009-03-10 Thread Nils-Helge Garli Hegvik
Why do you need the contents of the JSP? I'd consider a Servlet Filter instead if you need to process the output before it's returned to the browser. Nils-H On Tue, Mar 10, 2009 at 7:29 AM, D1vy@@Ind1@ divya.rajendran...@gmail.com wrote: Hmm.. I am not sure if the code is problematic because

Re: Get jsp content in struts action

2009-03-10 Thread D1vy@@Ind1@
Our application is a simple online form, in which users enters details about various books maintained in a library, hence when updated/new editions of book arrive, we would be mailing the concerned people about the updated version of the book. Before the user updates the existing record, when he

theme=simple cant render actionerror or actionmessage ?

2009-03-10 Thread sajidbigler
s:form action=doSignUP method=POST theme=simple s:actionerror / s:actionmessage/ /s:form UserAvailabilityAction .java package com.teleparadigm.mms.application.useravailability; import java.util.Map; import javax.servlet.http.HttpServletRequest; import

Equivalent of immediate=true in JSF

2009-03-10 Thread Mohan Radhakrishnan
Hi, When we use JSF we get used to the fact that values entered by the user need not be bound to the backing bean when they fail validation. How is this design rationale implemented in a non-component framework like Struts 2 ? 1. If values are not bound to the bean because

What's wrong with my Validation framework it was working fine b4 but now its give problem :(

2009-03-10 Thread sajidbigler
Hi Friends, Please help me to understand why validation framework is not working http://www.nabble.com/file/p22431543/CompleteFiles.rar CompleteFiles.rar -- View this message in context:

Stream Result and Japanese data getting corrupted

2009-03-10 Thread shyamb
Hi, I am using Struts2 Stream Result for Downloading To Excel, by constructing the inputStream as required for Stream Result as : inputStream = new ByteArrayInputStream(getSomeStringData().getBytes(UTF-8)); My action is configured in struts.xml as follows result name=sendFile type=stream

struts2 convention plugin not scanning classpath

2009-03-10 Thread Timothy Pick
Hi, we're using struts2 2.1.6 convention plugin with annotations on the action classes. When running though eclipse everything works fine, but when deployed to a standalone tomcat 5 the convention plugin does not appear to scan our web app classpath. We normally package all our classes into

Re: Validation framework wont apply when we use table in jsp ?

2009-03-10 Thread Dave Newton
As far as I can tell you've posted three questions asking the same thing. The simple theme doesn't render error information. Dave sajidbigler wrote: Hi plz help me to resolve this when we use table with in jsp validation framework wont be applied and as well actionerror,actionmessages wont b

Re: struts2 convention plugin not scanning classpath

2009-03-10 Thread Musachy Barroso
Set the debugging level to DEBUG, and post it here. BTW, that's an awesome name for a jar file morepork :) musachy On Tue, Mar 10, 2009 at 12:36 AM, Timothy Pick t...@comrad.co.nz wrote: Hi, we're using struts2 2.1.6 convention plugin with annotations on the action classes. When running

How to render fields horizontally.

2009-03-10 Thread Kra, Aime yao (TEK System)
Hello I am a new user of struts 2 and want to know how to force struts to render two fields on the same line. All my fields are rendered vertically even when I use html table to organize the fields positioning. Any sample will be appreciated. Thanks. Aimé Kra

Re: How to render fields horizontally.

2009-03-10 Thread Jim Kiley
s:textfield name=more theme=simple/ s:textfield name=cowbell theme=simple/ On Tue, Mar 10, 2009 at 9:21 AM, Kra, Aime yao (TEK System) ak...@allstate.com wrote: Hello I am a new user of struts 2 and want to know how to force struts to render two fields on the same line. All my fields are

Re : How to render fields horizontally.

2009-03-10 Thread François Rouxel
just wrap it like that tables:youstrutstags//table   - Message d'origine De : Kra, Aime yao (TEK System) ak...@allstate.com À : user@struts.apache.org Envoyé le : Mardi, 10 Mars 2009, 9h21mn

struts2 and dojo

2009-03-10 Thread fr Rouxel
Hi, how can I use dojo 0.9 or dojo 1.0 with struts2. I think struts 2 uses dojo 0.4 ? thanks -- View this message in context: http://www.nabble.com/struts2-and-dojo-tp22435740p22435740.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: struts2 and dojo

2009-03-10 Thread Struts Two
I am using dojo 1.2.3 with struts 2. Just copy dojo library to your workspace and then you are set. However, you can not use struts dojo tag lib with it. In other words, you can not use theme=ajax, and you need to code your own javascripts to work with widgets or containers. I think it is

Struts 2 Type Conversion HashSet Object within the List of Object

2009-03-10 Thread sanrosh95
Hi , I am able to display List and HashSet within List correctly from Action to JSP .But when Form is Submitted i m getting error while setting SubCats within the Category Object I have addded Type Conversion for Category and its working fine .How to add Conversion for SubCategory Within the

Re: struts2 and dojo

2009-03-10 Thread fr Rouxel
and when struts 2 will integrate dojo 1.0? Struts Two wrote: I am using dojo 1.2.3 with struts 2. Just copy dojo library to your workspace and then you are set. However, you can not use struts dojo tag lib with it. In other words, you can not use theme=ajax, and you need to code your

Re: struts2 and dojo

2009-03-10 Thread Lukasz Lenart
2009/3/10 fr Rouxel rouxe...@yahoo.com: and when struts 2 will integrate dojo 1.0? Support for Dojo was deprecated, some work is going on to integrate Struts2 with jQuery Regards -- Lukasz http://www.lenart.org.pl/ - To

Re: Re: struts2 and dojo

2009-03-10 Thread pascal . gehring
Support for dojo was not deprecated!! It was bundled to a plugin and is called struts2-dojo-plugin-2.1.6.jar. You can use this tags with: %@ taglib prefix=sx uri=/struts-dojo-tags% and then use the tags with the prefix sx! This tags render an element on the frontend depending on which tag

Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
Hi all, This question concerns the Convention Plugin, specifically in regards to Action Chaining. I am using Struts 2.1.6 I have the following package structure. com.company.web.actions.administrators.GetAction (/administrators/get) com.company.web.actions.administrators.SaveAction

Re: Re: struts2 and dojo

2009-03-10 Thread Lukasz Lenart
2009/3/10 pascal.gehr...@freenet.de: Support for dojo was not deprecated!! It was bundled to a plugin and is called struts2-dojo-plugin-2.1.6.jar. It was deprecated, there is no plans to upgrade Dojo to latest version, no plans to add new Dojo futures and so on... In such case support for Dojo

Re: Please help to get Arabic i18n(internationalization) using struts2.1.6

2009-03-10 Thread sajidbigler
Hi Kavita, If you use s:form theme=simple then key will work use utf-8 link which i have send or you can even go with s:text also.if you have any more clarity ping me on sajidbig...@gmail.com bye -- View this message in context:

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
Yes, you can chain actions if they are in the same package: http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Chaining musachy On Tue, Mar 10, 2009 at 11:52 AM, Edward Song edward.s...@nuhorizons.com wrote: Hi all, This question concerns the Convention Plugin, specifically

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
The problem in your case, is that Convention tries to find get-get.jsp and then tries get.jsp, which it will find, so it will never chain to the action, but rather dispatch to the jsp. Chaining only works when no result is found. musahcy On Tue, Mar 10, 2009 at 12:12 PM, Musachy Barroso

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
Thanks Musachy for your prompt response. Makes total sense. However, I now tried the following based on your reply GetAction.execute() returns ActionSupport.SUCCESS. forwards to get-success.jsp (renamed get.jsp, so that it would not be found in the instance below) SaveAction.execute()

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
If the result is get and the source action is target is save, then the target action has to be save-get (yours is get). musachy On Tue, Mar 10, 2009 at 1:42 PM, Edward Song edward.s...@nuhorizons.com wrote: Thanks Musachy for your prompt response. Makes total sense. However, I now tried the

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
Thanks Musachy, I fully understand now. I appreciate your help. On Tue, Mar 10, 2009 at 1:54 PM, Musachy Barroso musa...@gmail.com wrote: If the result is get and the source action is target is save, then the target action has to be save-get (yours is get). musachy On Tue, Mar 10, 2009 at

RE: Convention Plugin and Action Chaining

2009-03-10 Thread Russo, Joe
I defined the below code and would like to use the iterate functionality witin the jsp. This code does not cause any error, but does not display any data. Any ideas why? package com.cadmus.rpm.domain.custom; import java.io.Serializable; import java.util.Date; import java.util.ArrayList;

logic:iterate issue

2009-03-10 Thread Russo, Joe
Sorry forgot to change subject. -Original Message- From: Russo, Joe [mailto:rus...@cadmus.com] Sent: Tuesday, March 10, 2009 2:25 PM To: Struts Users Mailing List Subject: RE: Convention Plugin and Action Chaining I defined the below code and would like to use the iterate functionality

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
By convention you should not chain your questions into an existing thread on another topic :) musachy On Tue, Mar 10, 2009 at 2:25 PM, Russo, Joe rus...@cadmus.com wrote: I defined the below code and would like to use the iterate functionality witin the jsp.  This code does not cause any

RE: Convention Plugin and Action Chaining

2009-03-10 Thread Russo, Joe
Sorry about that. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Tuesday, March 10, 2009 2:28 PM To: Struts Users Mailing List Subject: Re: Convention Plugin and Action Chaining By convention you should not chain your questions into an existing thread on

HOWTO implement multiple submit buttons with type = image.

2009-03-10 Thread Kra, Aime yao (TEK System)
Hello I am implementing a form with two buttons CANCEL and REGISTER. I have followed the sample provided in the cookbook http://struts.apache.org/2.x/docs/multiple-submit-buttons.html This works fine if type=submit

disadvantage by not using the default execute() method for ActionClass?

2009-03-10 Thread Wick, Dan
We're trying to decide as a team what conventions we are going to follow. Does anyone know if there's anything we lose by not calling the default execute() method in our actionsopting for specifying another class name in the struts config xml? For example, executeView() and executeDo()

Re: struts2 and dojo

2009-03-10 Thread Dave Newton
pascal.gehr...@freenet.de wrote: So please don't say that dojo-support is deprecated. This is wrong. Dojo just has moved!! Dojo is most certainly deprecated: deprecated means that support still exists, but may, or will, stop being supported at some point in the future. Dave

Re: HOWTO implement multiple submit buttons with type = image.

2009-03-10 Thread Jim Kiley
With image type submits, an x and y value are usually submitted (so that if the button is an imagemap, the server knows where the user clicked). Struts is complaining that you don't have any fields that accept an x or a y field on your action class. jk On Tue, Mar 10, 2009 at 2:46 PM, Kra, Aime

RE: HOWTO implement multiple submit buttons with type = image.

2009-03-10 Thread Martin Gainty
(other than political) are there reasons why you would'nt want to stick with type='submit' and let the Action back end handle processing of RequestParameters/FormFields/SessionValues ? Martin __ Disclaimer and confidentiality note Everything in

RE: logic:iterate issue

2009-03-10 Thread Russo, Joe
The following bean:write code outputs: [com.cadmus.rpm.domain.custom.authorsc...@d08faa] bean:write name=summaryArchiveForm property=allAdditionalAuthors/ I am using a (allAdditionalAuthors) ArrayList to store AuthorsCDTO. Should I be using another collection type? Not sure why this is not working

Mapping FreeMarker results in struts-rest-plugin

2009-03-10 Thread wkbutler
Hi - Has anyone had luck using .ftl templates with the struts2-rest-plugin? I see that .ftl is mapped by the struts-default.xml in struts-core, and somehow Convention enables this mapping itself, although I don't quite get how that happens. The REST plugin resolves .jsp (or is Convention

Re: Struts mapping failing when using struts2-convention-plugin

2009-03-10 Thread wkbutler
I resolved this by removing a struts.properties in our resources/ dir that had snuck in. It had defined properties conflicting with our struts.xml, in particular the 'spring' configuration type caused trouble. Unfortunately I deleted the .properties file from CVS already and don't have

Re: Mapping FreeMarker results in struts-rest-plugin

2009-03-10 Thread Musachy Barroso
xml and json are the output types (the response sent to the client). JSP and FreeMarker are the result types, which are mapped by Convention. Check the Convention documentation for details on how the templates are found (same rules apply for jsp(s) and ftl(s)) musachy On Tue, Mar 10, 2009 at

Re: Cross Browser issues!

2009-03-10 Thread mitch gorman
sajidbigler wrote: Hi friends, is How to resolve cross browser issues.i was doing dynamic tree in firefox it works fine but in IE the div wont be updated .later i come to conclusion its bcoz if innerHTML or table,tr,td tags.in the showcase example we don't use any tables so it works fine

Re: Struts Ajax Newbie

2009-03-10 Thread mitch gorman
chumbobumbo wrote: This is probably so basic - I'll put my flame proof suit just in case. I have a 2 combos and (yes ;-) I would like the second one to be loaded depending on what's been chosen in the first one, so in my action execute method I have: take a look at s:doubleselect.

[OT] Authorization and Authentication Question

2009-03-10 Thread Ashish Kulkarni
HiIs it possible to Authenticate user using LDAP, but authorize using a DB2 database, I have situation where i need to authenticate and authorize some web pages. I want to authenticate users against LDAP, but have to maintain authorization list, roles etc in DB2 database Has anyone done anything

Re: [OT] Authorization and Authentication Question

2009-03-10 Thread Wes Wannemacher
On Tuesday 10 March 2009 17:56:30 Ashish Kulkarni wrote: HiIs it possible to Authenticate user using LDAP, but authorize using a DB2 database, I have situation where i need to authenticate and authorize some web pages. I want to authenticate users against LDAP, but have to maintain

Re: [OT] Authorization and Authentication Question

2009-03-10 Thread Jim Kiley
I'd agree. Have your UserDetailsService implementation hit LDAP for authentication, and pass GrantedAuthorities[] on to the returned object by asking DB2 about that info if the user is authenticated. jk On Tue, Mar 10, 2009 at 6:44 PM, Wes Wannemacher w...@wantii.com wrote: On Tuesday 10 March

Re: Mapping FreeMarker results in struts-rest-plugin

2009-03-10 Thread Bill Stilwell
I'm not sure if this applies, but I have found that with the rest plugin and freemarker, I _have_ to have a Controller. It's not clear to me from reading the docs if this is the intention with the rest plugin, but that's how things are working for me. -b On Tue, Mar 10, 2009 at 1:56 PM, Musachy

Re: struts2 and dojo

2009-03-10 Thread Mohan Radhakrishnan
newton.dave wrote: pascal.gehr...@freenet.de wrote: So please don't say that dojo-support is deprecated. This is wrong. Dojo just has moved!! Dojo is most certainly deprecated: deprecated means that support still exists, but may, or will, stop being supported at some point in the