in Struts 2

2006-10-31 Thread Asish Kr. Samanta
Hi, I am Asish, I am using datepicker, but it will not come to the page. Dojo is undefined. What is the problem? Can you give the solution. My cod snippet is given below. <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> Sign

tiles and resource bundle

2006-10-31 Thread Rick Schumeyer
In struts 1.3.x, what is the best way to use resource bundle keys together with tiles? I found the following feature request, but it is a couple of years old...I don't know whether this was ever implemented...but basically this is what I'm trying to do: It would be convenient to implement

Re: Re: Struts 1.3.5 error

2006-10-31 Thread Niall Pemberton
OK, that helps clarify the conditions its happening in, unfortunately I can't reproduce it though (using Tomcat 5.5.16) Tracing through from FormTag to TagUtils to ModuleUtils - it should always find the ModuleConfig for the "default" module and this exception shouldn't occur. But since you and s

RE: Re: Struts 1.3.5 error

2006-10-31 Thread Kevin Healy
The error occurred when directly accessing the .jsp (not after an action forwarded to the .jsp). I also neglected to mention in my follow-up that I am not using the modules feature (new since version 1.1) and am instead relying on backward compatibility. -Original Message- From: Niall Pe

RE: Re: Struts 1.3.5 error

2006-10-31 Thread Kevin Healy
The error occurred when directly accessing the .jsp (not after an action forwarded to the .jsp). -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 9:25 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Re: Struts 1.3.5 erro

Re: Download, Obtain Src [S2]

2006-10-31 Thread Ted Husted
A surprising number of the Interceptors, and other base classes (including ActionSupport), are found in the XWork source, so you might want that too. * svn co http://svn.opensymphony.com/svn/xwork/trunk xwork -- HTH, Ted. * http://www.husted.com/struts/ On 10/31/06, Wendy Smoak <[EMAIL PROTECTE

how to generate generic errors using Struts validation framework

2006-10-31 Thread robin bajaj
Hi Everyone, I am using Struts 1.2 validation framework where I am using the following elements to mention validation rules for specific action properties. But this only allows me to generate validation errors for specific ActionForm property names. I need to

Re: How to set <%@ page session="false" %>, globally?

2006-10-31 Thread Chris Pratt
Use tiles and place it in your default layout. (*Chris*) On 10/31/06, Bryce Nesbitt <[EMAIL PROTECTED]> wrote: I'm having trouble with Google and Alexa indexing pages on my site hundreds of times, each with a different colon separated session ID. I was able to reduce this by adding: <%@ page

How to set <%@ page session="false" %>, globally?

2006-10-31 Thread Bryce Nesbitt
I'm having trouble with Google and Alexa indexing pages on my site hundreds of times, each with a different colon separated session ID. I was able to reduce this by adding: <%@ page session="false" %> To the top of all my template pages. But the subpages still generate session ID's. How can I m

Re: Dynamic links

2006-10-31 Thread Chris Pratt
You need to include the taglib in the page with something similar to the following directive: <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"%> (*Chris*) On 31 Oct 2006 11:59:43 +0100, Jorge Martín Cuervo < [EMAIL PROTECTED]> wrote: El mar, 31 de 10 de 2006 a las 10:41, Ju

RE: Mailreader2 question

2006-10-31 Thread Dave Newton
From: Jim Reynolds [mailto:[EMAIL PROTECTED] > After analyzing the Mailreader2 application, I cannot figure out these > three lines of the Welcome.java file, full class below: > > String message = getText(Constants.ERROR_DATABASE_MISSING); > if (Constants.ERROR_DATABASE_MISSING.equals(mess

Mailreader2 question

2006-10-31 Thread Jim Reynolds
After analyzing the Mailreader2 application, I cannot figure out these three lines of the Welcome.java file, full class below: String message = getText(Constants.ERROR_DATABASE_MISSING); if (Constants.ERROR_DATABASE_MISSING.equals(message)) { addActionError(Constants.ERROR_MESSAGES_NOT

Re: Best Practices for Form-Based Authentication With Struts

2006-10-31 Thread Asad Habib
Thanks Li. Is the use of filters good practice as well? And what about container-managed authentication using j_security_check? - Asad On Tue, 31 Oct 2006, Li wrote: you can use form authentication (JDBCRealm based) or JAAS. You may have to choose a cipher (e.g. md5 or sha-1). Besides that,

multiple nesting validation

2006-10-31 Thread Saym Basheer
Hi, I know struts provide validation for one level nesting forms but how can we validate n-level nesting forms. For example, my form is like that "Team" has --One or more "Player" -- a Player can have one or more "shoes"

Acegi Implementation [s2]

2006-10-31 Thread Jim Reynolds
Is there any documentation regarding Acegi implementation and Struts2. I would like to somehow use the Acegi security framework, and a Struts Interceptor to handle login and session management. I googled this, but did not find anything that amounted to much. Thanks,

Re: Download, Obtain Src [S2]

2006-10-31 Thread Wendy Smoak
On 10/31/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: Pardon for another question... but I would like to interrogate some of the Interceptors that are included with the S[2] codebase. What is the best way to download the original src code for S2? I am here < http://svn.apache.org/viewvc/struts/st

RE: NoClassDefFoundError

2006-10-31 Thread Mariano Stampella
Thanxs, but is not the idea, i need xwork2 because i am trying to use Struts2 and xwork2, but really i am angry with all about this, and really I don’t wanna put the two .jars in Classloader, i am just need stable versions of all If I put 2.0.2 SNAPSHOT the error is: The package name 'str

RE: Acegi Implementation [s2]

2006-10-31 Thread Marco Mistroni
Hello, My 2 cents I have used acegi with spring and JSF... Shouldn't be just a problem of configuring some context listeners and some Spring beans? As long as you can integrate spring with struts2 (sorry , cant help here since I m still stuck at struts 1.x) then you can just 'plug' acegi on

AW: Re: Struts 1.3.5 error

2006-10-31 Thread [EMAIL PROTECTED]
I have the error in several examples. The exception occurs as result of the jsp display and not when the at action execution. Does anybody know how I can swich on the structs library log stamps? Ursprüngliche Nachricht Von: [EMAIL PROTECTED] Datum: 31.10.2006 14:58 An: "Struts Users Mail

RE: Download, Obtain Src [S2]

2006-10-31 Thread Dave Newton
Consider grabbing the entire distro; the source is in there, and it'll be faster in the long run. From: Jim Reynolds [mailto:[EMAIL PROTECTED] > What is the best way to download the original src code for S2? I am > here < http://svn.apache.org/viewvc/struts/struts2/trunk/?root=Apache- > SVN > > bu

Re: NoClassDefFoundError

2006-10-31 Thread Martin Gainty
Mariano include xwork.jar from OpenSymphony in /WEB-INF/lib M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have re

Re: java.lang.NullPointerException: Module 'null' not found.

2006-10-31 Thread Niall Pemberton
Can you post more information - the relevant parts of your struts config. Also are you using modules (if so what) and how are you navigating to your "submit_jsp" - i.e. via an action or directly? Niall On 10/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: With the struts 1.3 distribution I

Download, Obtain Src [S2]

2006-10-31 Thread Jim Reynolds
Pardon for another question... but I would like to interrogate some of the Interceptors that are included with the S[2] codebase. What is the best way to download the original src code for S2? I am here < http://svn.apache.org/viewvc/struts/struts2/trunk/?root=Apache-SVN but not sure what to loo

Re: Re: Struts 1.3.5 error

2006-10-31 Thread Niall Pemberton
On 10/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have the error in several examples. The exception occurs as result of the jsp display and not when the at action execution. Sorry, can you clarify this - I'm not sure if you mean the action executed first and then forwarded to the jsp

NoClassDefFoundError

2006-10-31 Thread Mariano Stampella
Hi, My name is Mariano Stampella, im working with the tutorial demo, and have this problem when tomcat startup:     GRAVE: Excepción arrancando filtro action2 java.lang.NoClassDefFoundError: com/opensymphony/xwork/config/ConfigurationException   at org.apache.struts2.dispatcher.Fi

Re: Struts 1.3.5 error

2006-10-31 Thread Niall Pemberton
On 10/31/06, Kevin Healy <[EMAIL PROTECTED]> wrote: I encounter the error appearing below when trying to run a simple example using Struts 1.3.5 under Tomcat 5.5.17 and JDK 1.5. The error arises when the Jasper JSP compiler encounters the following tag of my .jsp I've seen references to this

RE: Acegi Implementation [s2]

2006-10-31 Thread Juan Espinosa
Im also interested on acegy security with struts 2. Juan -Mensaje original- De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Martes, 31 de Octubre de 2006 10:52 a.m. Para: user@struts.apache.org Asunto: Acegi Implementation [s2] Is there any documentation regarding Acegi implemen

RE: Rolling back form changes

2006-10-31 Thread Dave Newton
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Really? BeanUtils.copyProperties seems to indicate that it copies > "bean > properties" which are usually defined as strings for which the methods > getFoo and setFoo exist. For a DynaValidatorBean, no such methods > exist. http://jakarta.apa

Re: if("N".equals()),can I?

2006-10-31 Thread Martin Gainty
Mallik/Dave be aware of upperCase/lowerCase lexical compares you can use a variable which stores the param and then test the value later on as in.. <% if ("N".equals(parameterVal)) %> Anyone else? Martin -- This e-mail communication and any attachments may contain confidential and privileg

Re: Rolling back form changes

2006-10-31 Thread Niall Pemberton
On 10/31/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: Again, the problem was creating the target bean, not copying the properties. Thanks, though. How about posting the stack trace / line number that its throwing the NPE on? Also what Struts version are you using? Niall - -chris ---

Exception handling best practices: ModuleException

2006-10-31 Thread Rick Schumeyer
I would appreciate any insights people have on the best way to handle exceptions. I would really like to keep it simple, and not create a custom exception handler or whatever if I don't need to. I ran across ModuleException, mentioned in the Jakarta Struts book by Cavaness (2nd ed for struts

Re: Rolling back form changes

2006-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: >> For a DynaValidatorBean, no such methods exist. > > http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.6.1/docs/api/ > > 'If the origin "bean" is actually a Map, it is assumed to contain > String-valued simpl

RE: if("N".equals()),can I?

2006-10-31 Thread Dave Newton
From: Mallik [mailto:[EMAIL PROTECTED] > how can i do this ? I have taken the liberty of formatting your included code to a) be left-aligned, thus a bit more readable and b) including only the information necessary to answer your question. Any errors introduced by this reformatting are mine and I

Re: Transactions in struts

2006-10-31 Thread Ted Husted
Database transactions are outside the scope of the framework. For that, you would look to iBATIS, Hibernate, Cayenne, or another data access framework. -- HTH, Ted. * http://www.husted.com/struts/ On 10/31/06, Raja Sekhar Vujji/xinthe <[EMAIL PROTECTED]> wrote: Hi All, Do struts interna

if("N".equals()),can I?

2006-10-31 Thread Mallik
hi Frineds i have a problem that based on one field value i should display some fields for that i need to check value... for example if no lunch break, i should not display lunch from and lunch to fields otherwise i should display ? how can i do this ? this is the way i did, but it is not workin

RE: Struts 1.3.5 error

2006-10-31 Thread Kevin Healy
I encounter the error appearing below when trying to run a simple example using Struts 1.3.5 under Tomcat 5.5.17 and JDK 1.5. The error arises when the Jasper JSP compiler encounters the following tag of my .jsp I’ve seen references to this error in other  recent postings on this list but no

Re: Dynamic links

2006-10-31 Thread Jorge Martín Cuervo
El mar, 31 de 10 de 2006 a las 10:41, Juanjo Cuadrado escribió: > Thanks for your reply, Jorge... but... it don't work fine for me. Or I don't > know use it correctly. > > When the page is showed, its html code is " " > > > > 30 Oct 2006 17:59:17 +0100, Jorge Martín Cuervo <[EMAIL PROTECTED]

Re: Dynamic links

2006-10-31 Thread Juanjo Cuadrado
Thanks for your reply, Jorge... but... it don't work fine for me. Or I don't know use it correctly. When the page is showed, its html code is " : Hi, try with jslt : <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/tags/smartcv2" prefix="s"

Re: Tiles "best practices" question

2006-10-31 Thread Antonio Petrelli
Rick Schumeyer ha scritto: I have a layout that includes: My definition does *not* include "body" The "actual" jsp page determines the proper value for "body": Question: the way I'm doing this means I now have *two *pages for every page...in my case the "success.jsp" page that contains t