Re: is an action path attribute with periods ok?

2004-07-28 Thread Kishore Senji
oblem, supply the extension to your action, so, if you give your action to be a b c test link, then it should work. IMHO, You might want to think about Modules, instead of using the '.' in your action paths. Thanks, Kishore Senji. On Wed, 28 Jul 2004 19:34:55 +1000, Jurn Ho <[EMAIL

Re: Single argument to multiple vaildator rules ?

2004-07-29 Thread Kishore Senji
If you don't specify the name attribute for arg0, it will become the default arg value for the different error messages constructed. so, use Thanks, Kishore Senji. On Thu, 29 Jul 2004 13:06:18 +0530, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi friends, > >

Re: Module and pages Behind WEB-INF don't work...???

2004-07-29 Thread Kishore Senji
the prefix of the module. If you use forwardPattern like the one below, then the module prefix won't be prepended or you can use to save some typing. P.S: forwardPattern only applies if you haven't set contextRelative="true" for a forward. Thanks, Kishore Senji. ---

Re: Retrieving specific form validation error messages

2004-07-29 Thread Kishore Senji
You could do something like this Thanks, Kishore Senji. On Thu, 29 Jul 2004 14:18:25 -0400, Erik Weber <[EMAIL PROTECTED]> wrote: > Thanks Niall. > > Now, what I need is to change the style of the prompt text beside the > field, not the field itself, or else perhaps the t

Re: Please .dont

2004-08-04 Thread Kishore Senji
mapping.findForward returns a ForwardConfig and not ActionConfig. If you want /banner and not /banner.do, Use RequestUtils.getActionMappingName(action). On Tue, 3 Aug 2004 22:49:48 -0500, e-denton Java Programmer <[EMAIL PROTECTED]> wrote: > (Sorry, I posted this once already under the wrong subje

Re: escaping html in property files?

2004-08-04 Thread Kishore Senji
On Wed, 4 Aug 2004 08:36:38 -0700 (PDT), Woodchuck <[EMAIL PROTECTED]> wrote: > when i put html in my property files it gets translated after > processes it (ie. the html comes out literally). > > this is what i'm getting: > HelloWorld! > > but i want: > Hello > World! > > is there a way t

Re: Display Error Message

2004-08-04 Thread Kishore Senji
If you want to display the message from Exception.getMessage() then, Save the exception in to request request.setAttribute("exception", exception); and in the jsp display it with If you want to display a customized message for an exception, then you should define the mapping between exceptio

Re: sharing images across modules

2004-08-04 Thread Kishore Senji
In tag, module is valid only when an action attribute is set. On Wed, 4 Aug 2004 08:38:21 -0700, Michael Rush <[EMAIL PROTECTED]> wrote: > I'd like to use some common images across modules. I've found that I > can accomplish what I need by using: > >"/> > > Originally I was trying to accomp

Re: Internationalization & Localization

2004-08-05 Thread Kishore Senji
o the bean "date" by looking up the format found for the formatKey specified in the resources corresponding to the Locale. You can also give the name of the locale bean to use, if you choose not to set the configuration, my creating a Locale by looking in the request headers. Thanks, Ki

Re: Having Action forward to another applications action

2004-08-05 Thread Kishore Senji
ServletResponse response){ // logic response.sendRedirect("/chlogin/logout.do"); return null; } Thanks, Kishore Senji. On Thu, 5 Aug 2004 10:46:29 -0400, DuBois, Joseph <[EMAIL PROTECTED]> wrote: > Heylo all, > > Problem: I have two related applications, one

Re: Help me with iterate tag

2004-08-05 Thread Kishore Senji
, ListadoFormatosForm listadoFormatosForm = (ListadoFormatosForm) form; then you don't have to set it to the request. Thanks, Kishore Senji. On Thu, 05 Aug 2004 14:33:21 -0500, Milson Fredy Cardona Echeverri <[EMAIL PROTECTED]> wrote: > Hi friends > > I have the following probl

Re: Finding an ActionMapping

2004-08-05 Thread Kishore Senji
protected ActionMapping getActionMapping(ActionMapping mapping, String parameter){ if(mapping == null){ return null; } ModuleConfig mc = mapping.getModuleConfig(); ActionConfig acs[] = mc.findActionConfigs(); ActionConfig ac = null; for(int i=0; i wrote: > In Action.execute, is ther

Re: very dynamic forms

2004-08-05 Thread Kishore Senji
See section 4.3.2 in http://struts.apache.org/userGuide/building_controller.html Thanks, Kishore Senji. On Thu, 05 Aug 2004 20:17:17 -0400, Dean A. Hoover <[EMAIL PROTECTED]> wrote: > Sorry, I thought I stated it plainly. Forget about tiles. > I think what I need is Map Backed

Re: Problem setting nested bean properties on ActionForms

2004-08-06 Thread Kishore Senji
You cannot have "." in your form-property names. This is what the dtd says about form-properyt names Thanks, Kishore Senji. On Fri, 06 Aug 2004 14:02:40 +0100, Ricardo Gladwell <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm having some problems with nested prop

Re: FW: null pointer --org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)

2004-08-06 Thread Kishore Senji
You don't have the required Rumtime Permission for getting the context ClassLoader. You might have to set the right permissions in the catalina.policy file. I guess, By default, these permissions are granted. Are you overriding these permissions? Thanks, Kishore Senji. On Fri, 6 Aug 20

Re: FW: null pointer --org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)

2004-08-06 Thread Kishore Senji
Well, the Null Pointer Exception is caused by java.security.AccessControlException. Look in the catalina.out that you pasted in your mail. Thanks, Kishore Senji. On Fri, 6 Aug 2004 17:17:05 -0400, Shilpa Nalgonda <[EMAIL PROTECTED]> wrote: > I am pretty much sure that none of the pe

Re: Exception handler question

2004-08-09 Thread Kishore Senji
p://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Thanks, Kishore Senji. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Intermittent problem with DispatchAction

2004-08-11 Thread Kishore Senji
r request parameter, which drives which method to dispatch to, is null for that particular request. Thanks, Kishore Senji. > > Its difficult to trace this problem because of its intermittent nature and > unfortunatley i can't provide more detailed info at this time. > >

Re: Struts security/validation

2004-08-11 Thread Kishore Senji
the one described in the below url http://wiki.apache.org/struts/StrutsCatalogBaseAction OR 2) You can also define a custom RequestProcessor and override processPreprocess(HttpServletRequest request, HttpServletResponse response). > Any other suggestions would be much appreciated, as I couldn&#x

Re: Struts security/validation

2004-08-11 Thread Kishore Senji
Jakarta commons lang String Escape Utils has a set of utility methods for escaping xml, html, sql, java, javascript ... http://jakarta.apache.org/commons/lang/apidocs/org/apache/commons/lang/StringEscapeUtils.html Kishore Senji. On Wed, 11 Aug 2004 10:41:13 -0700, Jim Barrows <[EMAIL PROTEC

Re:

2004-08-11 Thread Kishore Senji
n. So, instead of use in the way shown below. errors.add("name", new ActionMessage("user.name.empty.error")); In jsp use, Kishore Senji. On Wed, 11 Aug 2004 13:08:14 -0400, Laran Evans <[EMAIL PROTECTED]> wrote: > When I use I get a ClassCastException. So I us

Re: Read only iterate?

2004-08-14 Thread Kishore Senji
> Try the one below: Problematic input Thanks, Kishore Senji. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to print out html with bean tag

2004-08-18 Thread Kishore Senji
http://marc.theaimsgroup.com/?l=struts-user&m=109164486002689&w=2 On Wed, 18 Aug 2004 16:06:16 +0100, teknokrat <[EMAIL PROTECTED]> wrote: > I need to print out strings without having the html escaped i.e. i have > embedded in some message and I want the browser to reat them as > line breaks, ins

Re: html:img tag and modules

2004-08-18 Thread Kishore Senji
and provide the behaviour you want Thanks, Kishore Senji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Validation plug-in & Websphere Studio 5.0.1

2004-08-18 Thread Kishore Senji
What's your input attribute for that action? (My guess is your input attribute might be pointing to the same action, instead of a jsp, the only way, i can think of getting looped 163 times.) Thanks, Kishore Senji. On Wed, 18 Aug 2004 15:05:39 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED

Re: DynaForm external Xml Source

2004-08-19 Thread Kishore Senji
Try the strategy listed at the bottom of the below url http://www.jamesholmes.com/struts/ On Thu, 19 Aug 2004 18:08:55 +0530, Krishna Murthy .U <[EMAIL PROTECTED]> wrote: > > Hi , > > we are developing an application. We are using Struts's DynaForms. > problem ). > we have 12-13 froms each fo

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Kishore Senji
cancel, // return null if(StringUtils.isNotEmpty(request.getParameter(org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY ))){ return null; } return errors; } Thanks, Kishore Senji. On Thu, 19 Aug 2004 14:24:44 -0500, Robert Miller <[EMAIL PROTECTED]> wrote: > I have a f

Re: form problem

2004-08-20 Thread Kishore Senji
gt; myForm.setAge("289"); > etc... > > form = myForm; The above assignment doesn't modify the original form once you are out of this method, since it is a copy of the reference. Thanks, Kishore Senji > > How can a use something similar to the first

Re: form property - Collection

2004-08-21 Thread Kishore Senji
> logic:iterate needs a "name" attribute if you specify "property" attribute. If you give the "name" attribute equal to your form name, it should work. Kishore Senji. - To unsubscribe, e-mail:

Re: Creating List Catgeories from a Single Collection

2004-08-22 Thread Kishore Senji
> I have a collection that contains the following data: > EmpId CourseIdDate_Taken Assessment > 12341 01/01/2000 PASS > 12342 01/02/2001 PASS > 12344 01/05/2002 PASS > 12341 01/04/2003 PASS >

Re: JSTL

2004-08-22 Thread Kishore Senji
In the Struts tags documentation, for most of the tags, the equivalent of Jstl is given. What bean tag are you having trouble with? Kishore Senji. On Sun, 22 Aug 2004 18:57:53 +1000, Mike Young <[EMAIL PROTECTED]> wrote: > Hi ALL, > > Are there any good resources on how to conv

Re: MappingDispatchAction dilema

2004-08-22 Thread Kishore Senji
in the execute of the CommonAction. If there are any differences in the common code b/n different methods (show, update), you can have show & update methods in the CommonAction and can have the subclasses overriding those methods and calling super.execute(). Thanks, Kishore Senji.

Re: setting a collection in my form bean usin iterate or forEach

2004-08-22 Thread Kishore Senji
ve to get the "property" attribute right. Take a look at http://struts.apache.org/faqs/indexedprops.html Thanks, Kishore Senji. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Displaying errors for all except one key

2005-08-15 Thread Kishore Senji
I believe the reason that the Validator errors are missing is that Validator keys the errors with the property name of the form field. And so, if you say that just show the errors whose property is "ActionErrors.GLOBAL_ERROR" you would definitely miss out on the Validator errors. It has nothing to

Re: Displaying errors for all except one key

2005-08-16 Thread Kishore Senji
the iterator excluding the errors that you don't want to see. > > Thanks again for your help. > > Chris > > -Original Message- > From: Kishore Senji [mailto:[EMAIL PROTECTED] > Sent: Monday, August 15, 2005 6:15 PM > To: Struts Users Mailing List > Subje

Re: Displaying errors for all except one key

2005-08-24 Thread Kishore Senji
> > I do have a problem I should solve: in the case where the only error in > errors is one I need to exclude, it does get excluded but I also get the > empty which displays a big red box on my page. Fortunately, that > happens very rarely. I guess I could extend messagesPresent as well to > take

Re: Trim all fields before validation

2005-09-01 Thread Kishore Senji
Wouldn't this be easier, without mucking with the form, to let this be handled by the validator itself. For any field validation you would just have to have the "requires" validation before you do any other validation, and that way you would take care of empty strings or as Joe said you could d

Re: [OT] Application context URL

2005-09-01 Thread Kishore Senji
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getContextPath() On 9/1/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I'm using iText to dynamically create PDF and I'd like to make them > available by appending the location of the generated file to the > a

Re: Specifying MessageResource for Title information.

2005-09-01 Thread Kishore Senji
one way is to define a CustomMessageResources and a CustomMessageResourcesFactory to take care of this. The basic idea is that we would define something like this in the struts-config.xml and let our CustomMessageResources in it's loadBundle method parse the parameter with the "," delimiter a

Re: Problem with Actionform

2005-09-02 Thread Kishore Senji
The easiest way is to make the "fvknList" as a form property and keep the form in session scope. ... ... ... If you don't like to keep the form in the session, you would have to follow one of the ways listed in http://wiki.apache.org/struts/StrutsCatalogLazyList Also take a look at

Re: int range validation

2005-09-06 Thread Kishore Senji
I looked at Struts 1.2.4 source code and it appears to me that both "integer" and "intRange" treat empty strings as valid (Although I might be wrong as well). Are you using Struts 1.1? I would give it a shot using "validWhen" combination to your validations test (*this* != null) min 1

Re: Currency Formatter...

2005-09-06 Thread Kishore Senji
If you are using struts tags you could use, takes a "format" property. You can also use JSTLs fmt tags to do the same. On 9/5/05, Iyanu, Rajasekaran <[EMAIL PROTECTED]> wrote: > > > Hi All, > > Though this question is not applicable to this forum, thought, > some of our struts champs will be

Re: Dealing with nulls

2005-09-06 Thread Kishore Senji
If the value of "endDate" is null the page fails with an error message from > beanutils. I think if the endDate is null, the would silently put empty string as the value. Wondering if the exceptions you are seeing are causing by something else. What is the exception by the way?

Re: Wrapping Struts tags in tag files

2005-09-12 Thread Kishore Senji
I don't know how much of work it would be to modify those tags, however, just wondering why you wouldn't want to have such logic outside the actual struts tag. You could have logic in the tag file which, If both "alt" and "altKey" or just "alt" is given, uses "alt" value and if just "altKey" is

Re: Newbie: html:link with action taken from bean

2005-09-14 Thread Kishore Senji
Define a scripting variable with the "actionUrl" and use that in your like so On 9/14/05, Wojciech Ciesielski <[EMAIL PROTECTED]> wrote: > > Hi there, > > > > I am quite new to JSP and struts. So - as I suppose - quite "lame" > question > ;-) > > In order to implement bread crumbs fe

Re: LabelValueBean in a Form

2005-09-14 Thread Kishore Senji
It is possible. Have a method on your ActionForm which returns a java.util.Collection of org.apache.struts.util.LabelValueBean's and use it using in the jsp For eg: public Collection getMyLVBList() { Collection options = new ArrayList(); options.add(new LabelValueBean(label, value)); // add m

Re: Keeping Session small using Validation

2005-09-14 Thread Kishore Senji
If you only want to use a DynaActionForm, you could use TilesController and set the list in the form using BeanUtils. In you tiles controller get the ActionForm for the module and set the corresponding form property. ActionConfig actionConfig = (ActionConfig)request.getAttribute( Globals.MAPPIN

Re: How to prevent path shows up at the Address box in the browser, IE and others

2005-09-14 Thread Kishore Senji
Define action aliases to your jsps and use those actions for eg: and use that in your tiles menu You can do some processing on the list of items that are read by the tiles to include the as part of the "link" attributes On 9/13/05, Kam Lung Leung <[EMAIL PROTECTED]> wrote: > > > Hi, >

Re: Problem with Tiles

2005-09-14 Thread Kishore Senji
There are 2 ways of doing it. 1) Get the "pageheading" in the layout.jsp and pass it on to the header.jsp 2) If you need the "pageheading" inside the heading.jsp, it's better to make the "header" a separate definition and use the "pageheading" directly in the header.jsp

Re: How to replace normal html-from through html:form in Struts? Example

2005-09-14 Thread Kishore Senji
> A tag would be handy for this ... Indeed there is one, please take a look at

Re: versus Scriptlet...

2005-09-15 Thread Kishore Senji
looks for an attribute with the given "name" and compares for equality with the given "value". not only creates a scripting variable but also puts an attribute with the same name. Here you only modify the value of the scripting variable and not the "attribute" value, which is what the is goi

Re: multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-15 Thread Kishore Senji
I think by default the CactusStrutsTestCase reads the /WEB-INF/struts- config.xml only. If you have multiple config files you would have to set the appropriate config file in your test method. For eg: public void testDisplay() throws Exception { setConfigFile("/WEB-INF/struts-config.xml,/WEB-INF/

Re: ActionMessages problem

2004-12-27 Thread Kishore Senji
Make sure that you have imported the "html" tag library On Mon, 27 Dec 2004 12:53:27 -0600, Barnett, Brian W. <[EMAIL PROTECTED]> wrote: > Hello, > I'm sure it's something simple, but I can't get my ActionMessage to display > in my JSP page. > > Action class code: > ActionMessages messages = new

Re: Multiple struts config files.

2004-12-29 Thread Kishore Senji
Read Section 5.3 in http://struts.apache.org/userGuide/configuration.html On Tue, 28 Dec 2004 10:13:17 +0530, Amit Kumar Sharma <[EMAIL PROTECTED]> wrote: > Dear All, > > We have an existing project where the size of struts-config.xml file is > ever increasing the struts version we are using is

Re: Which methodology is better?

2004-12-29 Thread Kishore Senji
Read Lesson 1 in http://www.ftponline.com/special/j2ee/modi1/default.aspx which concurs with the views expressed by all the other posters On Wed, 29 Dec 2004 16:13:14 -0800 (PST), Manisha Sathe <[EMAIL PROTECTED]> wrote: > Thanks to all, I will do both, i.e. Javascript (w/o DynaAction - i hope th

Re: Form data does not get pre-populated on the page with certain tag usages

2005-01-08 Thread Kishore Senji
For the first question; I would recommend using LabelValueBean You should have a method "getDropDownValues" which returns a "Collection" of LabelValueBeans. On Sat, 8 Jan 2005 18:27:01 -0800 (PST), meena r <[EMAIL PROTECTED]> wrote: > I am facing issues while the my jsp has to be > pre-po

Re: Determining the "original" request URL from within a tile

2005-01-10 Thread Kishore Senji
1) You can have a Controller (org.apache.struts.tiles.Controller) and in the "perform" you can get the "original" request url and save it as a "request" attribute; and the tile can pull that request attribute. You can specify the controller class for your tiles definition. Just Before the jsp is re

Re: Handling the exceptions in struts

2005-01-11 Thread Kishore Senji
org.apache.struts.action.ExceptionHandler by default puts the exception in the request; request.setAttribute(Globals.EXCEPTION_KEY, ex); So, if you have a custom ExceptionHandler, just make sure you call super.execute() so that setting of the exception is done for you. (or You have to set it in t

Re: Validating DynaBean nested beans with a custom validator.

2005-01-11 Thread Kishore Senji
This shoud do it. Isn't it? private static PersonFormBean getPersonFormBean(Object bean, String property) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException{ return (PersonFormBean) BeanUtils.getProperty(bean, property); }

Re: Multiple Struts-config problem

2005-01-12 Thread Kishore Senji
The module name in the should start with a "/" link On Wed, 12 Jan 2005 18:39:58 +0530, sachin <[EMAIL PROTECTED]> wrote: > hi all , > > i am implementing multiple modules in struts 1.2.4 > i have two config files which i define in web.xml like > > > config > /WEB-INF/struts-con

Re: Unable to see out put

2005-01-12 Thread Kishore Senji
On Wed, 12 Jan 2005 13:52:32 +0530, Vamsee Kanakala <[EMAIL PROTECTED]> wrote: > Rick Reumann wrote: > > > It sounds like you are probably are now using a JSP2.0 container like > > Tomcat5 and are refering to the wrong tld. Refer to the one in the jar > > like: > > > > <%@ taglib prefix="c" uri="h

Re: Stuts forwarding does not work

2005-01-12 Thread Kishore Senji
Make sure that "/pages/QueryInput.jsp" exists and relavtive to context root. On Wed, 12 Jan 2005 14:40:49 -0500, Alex Kravets <[EMAIL PROTECTED]> wrote: > I am trying to redirect from index.jsp to another page but no luck. I > get this error: > > org.apache.jasper.JasperException: Exception forw

Re: Unable to see out put

2005-01-12 Thread Kishore Senji
> > > > > > > > > > > > > > > > And this worked fine, gave me: 1 2 3 4 5 in red. > > > > Jack > > > > > > On Wed, 12 Jan 2005 12:52:59 -0600, Abdullah Jib

Re: PLZ Help with Cannot find message resources under key org.apache.struts.action.

2005-01-12 Thread Kishore Senji
Do you have the defined in the struts-config.xml or as an init-param in the web.xml? On Wed, 12 Jan 2005 22:01:05 -0500, Avinash Sridhar <[EMAIL PROTECTED]> wrote: > Hi All, > This is my directory structure > WEB-INF i have struts-config.xml and web.xml > WEB_INF classes / com / masslight / Stru

Re: html:hidden query

2005-01-13 Thread Kishore Senji
Note that is just enough to populate the text box. The in the body of doesn't do anything. On Wed, 12 Jan 2005 23:34:27 -0800 (PST), Manisha Sathe <[EMAIL PROTECTED]> wrote: > Following i could get it but now i want this inside html hidden form tag. > > > > > > But If i use hidden tag t

Re: Action Chaining

2005-01-13 Thread Kishore Senji
In your BasicForm's validate() you could do check for the "parameter"'s value and return "ActionErrors" based on that value; public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){ /* if load or unspecified return null */ if(org.apache.commons.lang.StringUtils.isEmpty

Re: uncheck and update

2005-01-13 Thread Kishore Senji
In your "reset" method get the Collection of "users"; Iterate over that collection and set the two properties "admin" and viewer on the object (I assume "user") to false; On Thu, 13 Jan 2005 11:46:37 -0600, UKASICK, AIMEE L (SBCSI) <[EMAIL PROTECTED]> wrote: > Hi. I'm using the Struts Nested tagl

Re: Action Chaining

2005-01-13 Thread Kishore Senji
Sounds like you need one more request parameter to distinguish between the a new request and a request coming after finishing an action. Token processing might be a good option which prevents the user from book marking. Do a saveToken() in the AnnuityAction. If the previous and next are form "sub

Re: Why Can't show the errors generated by a ActionForm's validate method

2005-01-13 Thread Kishore Senji
On Fri, 14 Jan 2005 10:03:55 +0800 (CST), èé å <[EMAIL PROTECTED]> wrote: > hi, I'm new to struts and I really can't find a way to solve the proplem. > plese help me. thank you so much. > Here is the proplem. I have a input.jsp,a ActionForm and a Action > public class HelloForm extends ActionForm >

Re: does not contain handler parameter

2005-01-14 Thread Kishore Senji
On Fri, 14 Jan 2005 10:55:57 -0200, Flávio Maldonado <[EMAIL PROTECTED]> wrote: > > Hi people! > > Anybody knows what kind of error is this? > > exception > > javax.servlet.ServletException: Request[/user] does not contain handler > parameter named action > org.apache.struts.actions.LookupDispa

Re: Struts FormFile and

2005-01-14 Thread Kishore Senji
I can't think of any usecase where it would fail for not setting the FormFile property to null in the reset. On the otherhand it wouldn't hurt if you set the FormFile to null in the reset(), heeding to the warning that the docs give On Mon, 10 Jan 2005 17:43:43 -0800, Sullivan, Sean C - MWT <[EMA

Re: problem with List-Backed Form

2005-01-15 Thread Kishore Senji
On Fri, 14 Jan 2005 23:20:47 -0800, Oleg <[EMAIL PROTECTED]> wrote: > Hi, ok I am trying to get my Dynamic List-Backed form to work, no > luck, here is what I have so far. > > ActionForm with a List in it: > > public ArrayList getFields() { >return fields; > } > > public void setFields(Ar

Re: problem with List-Backed Form

2005-01-15 Thread Kishore Senji
Sorry forgot to tack on the actual property /// similarly for other fields On Sat, 15 Jan 2005 02:32:48 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote: > On Fri, 14 Jan 2005 23:20:47 -0800, Oleg <[EMAIL PROTECTED]> wrote: > >

Re: LookupDispatchAction Help

2005-01-15 Thread Kishore Senji
On Fri, 14 Jan 2005 18:01:25 -0200, Flávio Maldonado <[EMAIL PROTECTED]> wrote: > Hello... > > When I use this tags above, the Button works well, but the Link doesn't > work. > > > key="button.new"/> > New Try the following code below <% String message = org.apache.struts.taglib.TagUtils.

Re: Errors with 'validwhen' rule

2005-01-15 Thread Kishore Senji
On Sat, 15 Jan 2005 15:18:33 +0530, Vamsee Kanakala <[EMAIL PROTECTED]> wrote: > Hi List, > > I have something like this in my validation.xml: > > > > test > > ((phone != null) or (mobile == null) or (*this* != null)) (((phone != null) or (mobile == null))

Re: validwhen confusion

2005-01-15 Thread Kishore Senji
On Sat, 15 Jan 2005 15:08:17 -0500, Todd Nine <[EMAIL PROTECTED]> wrote: > Hi All, > I am having trouble getting my mind around the boolean expression > semantics of the validwhen validator. Consider the following example. > > I have a form with two possible input groups depending on the user >

Re: Problem using mechanismen

2005-01-15 Thread Kishore Senji
On Sun, 16 Jan 2005 01:02:50 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote: > > >Yes. You could've been using a pre-1.1 struts.jar. > > > > > Ok, i found the old jar. My first Problem is solved ;-). > > But the next Error is comming. I don't use tiles and get the foll

Re: problem submiting List-Backed Indexed ActionForm

2005-01-15 Thread Kishore Senji
Looks like you are not properly initializing your "fields" (ArrayList) in FormActionForm. You should initialize it while declaring or in the reset() On Sat, 15 Jan 2005 17:06:33 -0800, Oleg <[EMAIL PROTECTED]> wrote: > I finally got it to display, no problem, however there is an error > when I s

Re: exception frustrations - solved

2005-01-16 Thread Kishore Senji
On Sun, 16 Jan 2005 12:10:37 +0800, Nathan Coast <[EMAIL PROTECTED]> wrote: > Hi, > > I've been strugling for a while with exception handling. I've been > trying to ensure: > 1) all exceptions are displayed consistently regardless of where / how > the exception is raised. > 2) the root cause exce

Re: How to detect empty array list / databean on JSP?

2005-01-16 Thread Kishore Senji
If you are not using JSTL, you can do the same thing using On Sun, 16 Jan 2005 16:04:51 -0800 (PST), Manisha Sathe <[EMAIL PROTECTED]> wrote: > I am putting one arraylist and one javabean object with > request.setAttribute.. > > I can access this in JSP. But how i can detect that Arraylist

Re: validation syntax - decimal precision

2005-01-16 Thread Kishore Senji
how about "^\d{1,3}(\.\d{1,2})?$" Here is the testcase import org.apache.commons.validator.GenericValidator; public class TestFloat{ public static void main(String[] args) throws Exception { String[] f = new String[]{"123.23", "123", "1234.23", "1234.234", "12345.2342", "11234.123.23",

Re: Divide config files

2005-01-16 Thread Kishore Senji
On Mon, 17 Jan 2005 08:34:38 +0100, COGOLUEGNES Arnaud <[EMAIL PROTECTED]> wrote: > Hi all, > > Does anyone has means of dividing Struts config files into separate files, > so that one main file can include all separate files? > > I've been working on quite big applications where some code is aut

Re: i18n & Tiles

2005-01-17 Thread Kishore Senji
On Mon, 17 Jan 2005 17:54:55 +0900, Sylvain ~ <[EMAIL PROTECTED]> wrote: > By the way, I don"t want to have ONE internationilized title for all > my pages, so I can't do that, it would have been too simple !! > I have many pages, having different i18n titles, You can extend the main.layout and ov

Re: HTTP Status 404 - Servlet action is not available

2005-01-19 Thread Kishore Senji
May be you are missing commons-dbcp.jar assuming your DataSource is a commons-dbcp DataSource. On Wed, 19 Jan 2005 13:49:17 +0530, Kalluru Uma. Maheswar <[EMAIL PROTECTED]> wrote: > Hi Vijaya, > That's all fine. I figured out the problem and its because I am > connectiong to mysql in struts-confi

Re: Message Resources not displayed

2005-01-19 Thread Kishore Senji
I would debug this problem in the following ways: * Verify if you are saving the "errors" to the request * Make sure you are using "saveErrors" and not "saveMessages" * Write a "StrutsTestCase" or a similiar testcase to verify the ActionErrors * Have a dump of the request and see that the ActionEr

Re: url in address bar

2005-01-19 Thread Kishore Senji
Just wondering if you are maintaining the URL in the address bar constant using HTML frames (and not using some sort of configuration. Also wondering what the configuration can be?). If you are infact using frames, then your application should do some sort of state (client state) management. It sho

Re: Help with logic tags, and commas please.

2005-01-19 Thread Kishore Senji
On Wed, 19 Jan 2005 18:49:52 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I need to know an additional question: > You sent me: > > varStatus="status"> > > I need to know if this would be correct as well, where > creditApplicationListDto.businessLine is a Boolean: > > varStatus="stat

Re: Help with logic tags, and commas please.

2005-01-19 Thread Kishore Senji
On Wed, 19 Jan 2005 18:25:55 -0800, Kishore Senji <[EMAIL PROTECTED]> wrote: > On Wed, 19 Jan 2005 18:49:52 -0600, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > I need to know an additional question: > > You sent me: > > > > > varStatus=&quo

Re: select multiple woes

2005-01-19 Thread Kishore Senji
Did you take a look at the html source (with String[])? It should have multiple="multiple" in the On Wed, 19 Jan 2005 20:54:05 -0600, Will Stranathan <[EMAIL PROTECTED]> wrote: > I promise I google'd first > > I'm trying to use a multiple-select select box, for example: > > > One > Two >

Re: Action Returning to previous page

2005-01-19 Thread Kishore Senji
On Wed, 19 Jan 2005 22:57:01 -0500, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Will Stranathan wrote: > > > Not positive I completely understand the question, so I'll make a very > > vague response. > > Yeah, after I read it I didn't make much sense to myself either. :-P > > > > > You can: > >

Re: Where to send !isTokenValid(request)

2005-01-21 Thread Kishore Senji
On Fri, 21 Jan 2005 16:26:51 -0600, snekse <[EMAIL PROTECTED]> wrote: > I have a Best Practices type question. Where should I send the user > if isValidToken returns FALSE? This is the sort of question you should be asking yourself or probably your business analyst. What do you want to do when th

Re: String[5] trunc'ed to String[1]

2005-01-21 Thread Kishore Senji
On Fri, 21 Jan 2005 21:22:23 -0600, Dave Bender <[EMAIL PROTECTED]> wrote: > I'm having a problem passing a set of checkbox values from an ActionForm to > our database. When I transfer the values of the String[] array, such as a > String[5] array, using BeanUtils.populate in my Action, the array g

Re: comparing password and confirm password

2005-01-21 Thread Kishore Senji
Use "validWhen" and you conditional can be (*this* == password) to evaluate whether password2 is equal to password always ((password == null) or (*this* == password)) to evaluate whether password2 is equal to password only when password is not empty Please take a look http://struts.apache.org/use

Re: How to get the input action path?

2005-01-24 Thread Kishore Senji
On Mon, 24 Jan 2005 18:37:35 +0100, Gianpiero Caretti <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > FYI, all of my Actions call a common setup function at the start of > > execute(), > > and one of the things it does is set an attribute "command" in the request > > with the value of

Re: Validation is not working for me

2005-01-24 Thread Kishore Senji
On Mon, 24 Jan 2005 18:38:18 -0800 (PST), Norris Shelton <[EMAIL PROTECTED]> wrote: > It looks like they are set-up, but nothing happens. It goes > right into my dispatch action method. > > If I submit the form with nothing entered, it goes into the add > method. It was working last night, but .

Re: OT - Evaulating JSP as internal template?

2005-01-25 Thread Kishore Senji
Not anything new, but we can also increase the buffer size <%@ page buffer="10kb" autoFlush="false" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> Also, if you define your action to extend IncludeAction, then by

Re: struts tag extension for dynamic group level security

2005-01-25 Thread Kishore Senji
How abt ? On Wed, 26 Jan 2005 14:01:51 +0900, Prasad, Kamakshya <[EMAIL PROTECTED]> wrote: > Hi All, > > Are there any struts tag extension available implementing the dynamic > security? > > We want to drill the security access to each input element fields. > Further, the security groups are a

Re: How to get the item of ArrayList?

2005-01-25 Thread Kishore Senji
On Wed, 26 Jan 2005 14:16:13 +0800, Daniel PC Leung <[EMAIL PROTECTED]> wrote: > The error message looks like this. > > [ServletException in:/layout/tabsLayout.jsp] java.util.ArrayList' > > The tabsLayout.jsp file looks like this. > (How can I solve it? Thanls) > > type="org.apache.struts.tiles

Re: WEB-INF and non-JSP files

2005-01-26 Thread Kishore Senji
The primary purpose of storing JSP's under WEB-INF/ is to prevent user to access them directly instead of going to an Action which might be setting something which is required for the workflow, Authentication, Authorization etc. which avoids putting that sort of logic in the JSP itself. I don't se

Re: Regarding LOGIC tags

2005-01-26 Thread Kishore Senji
On Thu, 27 Jan 2005 10:48:47 +0530, Krishna Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > > Hi all, > I have a very simple doubt on struts equal tag. > > The tag is like this > > Here is one way: > > Here planDesc1 and planDesc2 are both beans of the same class planModel. > > Can I h

  1   2   >