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

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 B

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 wrote: > On Tuesday 10 March 2009 17:56:30

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

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

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 fi

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

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 access

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 doin

RE: logic:iterate issue

2009-03-10 Thread Russo, Joe
The following bean:write code outputs: [com.cadmus.rpm.domain.custom.authorsc...@d08faa] I am using a (allAdditionalAuthors) ArrayList to store AuthorsCDTO. Should I be using another collection type? Not sure why this is not working and would really appreciate any help. -Original Message

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 back end handle processing of RequestParameters/FormFields/SessionValues ? Martin __ Disclaimer and confidentiality note Everything in this e-ma

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

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

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() cal

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

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 an

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

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 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; publi

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

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 wrote: > Thanks Musachy for your prompt response. > > Makes total sense. > > However, I now tried the following b

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

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 wrote: > Hi all, > > This question concerns the Convention Plugin, specifically in regards to > Action Ch

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

2009-03-10 Thread sajidbigler
Hi Kavita, If you use http://www.nabble.com/Please-help-to-get-Arabic-i18n%28internationalization%29-using-struts2.1.6-tp2312p22437387.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: Re: struts2 and dojo

2009-03-10 Thread Lukasz Lenart
2009/3/10 : > 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 in Struts2 was deprecat

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 (/administ

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

Re: struts2 and dojo

2009-03-10 Thread Lukasz Lenart
2009/3/10 fr Rouxel : > 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 unsubscribe, e-mail: u

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

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 Cat

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 wor

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 : How to render fields horizontally.

2009-03-10 Thread François Rouxel
just wrap it like that    - Message d'origine De : "Kra, Aime yao (TEK System)" À : user@struts.apache.org Envoyé le : Mardi, 10 Mars 2009, 9h21mn 02s Objet : How to render fields horizontally

Re: How to render fields horizontally.

2009-03-10 Thread Jim Kiley
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 rendered vertically even when I use html to > organize the fields p

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 to organize the fields positioning. Any sample will be appreciated. Thanks. Aimé Kra

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 wrote: > Hi, > > we're using struts2 2.1.6 convention plugin with annotations on the action > classes. > When running though eclips

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

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 a

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 application/csv UTF-8 input

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: http://www.nabble.com/What%27s-wrong-with-my-Validation-framework-it-was-working-fine-b4-but-now-its-

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 the

theme="simple" cant render actionerror or actionmessage ?

2009-03-10 Thread sajidbigler
UserAvailabilityAction .java package com.teleparadigm.mms.application.useravailability; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.apache.struts2.interceptor.ServletRequestAware; import com.opensy

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 c