RE: [shale] Images and css being rejected

2006-01-29 Thread hermod.opstvedt
Hi If you had searched the list, you would have found my posting on this. Anyway, what you have to do is in the web.xml filtermapping for Shale do this comment this: add this: shale *.xml shal

RE: [Shale] Error in remoting

2006-01-29 Thread hermod.opstvedt
Hi I'll have to figure which of my browsers cause this (IE, Firefox or Opera) and report it to them. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Friday, January 27, 2006 5:58 PM To: Struts Users Mailing List Subject: Re: [

Re: One Pass JSP Parsing Woes! - how to generate Dynamic JSP and enforce those tags get parsed/translated?

2006-01-29 Thread Raghu Kanchustambham
Since I can not force the processing of the tags that are generated on the fly, I chose a hack to call the functions that the container would call on the tag myself explicitly. By doing so, I explicitly forced the tag-lifecycle. I am not claiming this is a neat solution, but the best of the workab

intercept any request to jsp page in Struts Tiles

2006-01-29 Thread Kai Mai
Hi, Whenever a user requests a JSP page, I need to determine if I need to re-generate it if the corresponding template has been changed. I use action forward to display tiles. login.view is an action forward in my struts-config file I tried to extend TilesRequestProcessor and

Re: [ANN] Tabbed notebooks in Struts/JSP or in pure JSP with new release of JSP Controls Tag Library

2006-01-29 Thread Paul Benedict
This is awesome!!! Since Struts doesn't have portlet support, using JSP to emulate it is second to none. Portlets are nothing but a subset of the servlet request anyway, so you're doing some great work. I'd like to see an example where you connect this all up to Struts. Paul

Re: Validation Issue

2006-01-29 Thread rama chandrula
There are two more reasons why the validator just stops to work. 1) The jar files get corrupted. Replace them and try again, the application might start working perfectly 2) There might have been an extra new line character in the Validation.xml file Checking these two helped me solve my prob

question: how to support both MVC and Struts?

2006-01-29 Thread Sun Shine
Hi, I'm rewriting an existing MVC project into Struts. I have to keep the existing servlet name e.g. 'fooServlet' available for 30 days. How can I support the new 'fooServlet.do' code and also support the old MVC code 'fooServlet'? (btw, I have to keep the fooServlet name for the rewrite). In Stru

Re: Validation Issue

2006-01-29 Thread Paul Benedict
Make your input="something.jsp" - What are the most popular cars? Find out at Yahoo! Autos

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Yes. Tried the same and it works now. I got a different problem now though. The following action results in validation being called recursively resulting in server crash. If I remove the input attribute a server exception is thrown. How can I make a page submit to itself on validat

Re: Validation Issue

2006-01-29 Thread Paul Benedict
I am not saying this is your problem, but I've had times where jar files get seemingly corrupted for no reason. I haven't figured out why but at least twice a year a JAR file just dies on me. Try reinstalling Struts and copy the default validation files out and start from there. Paul

[ANN] Tabbed notebooks in Struts/JSP or in pure JSP with new release of JSP Controls Tag Library

2006-01-29 Thread Michael Jouravlev
Well, finally I found time to encapsulate HTML into some tags. Wendy, roles work too :-) To build your own tabbed notebook you need to download tag library version 0.4 from here: http://sourceforge.net/project/showfiles.php?group_id=154342&package_id=171420&release_id=389310 Please, download samp

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I get the following error: [1/29/06 17:35:13:701 EST] 4e5645a ValidatorPlug I org.apache.struts.validator.ValidatorPlugIn Loading validation rules file from '/WEB-INF/validator-rules.xml' [1/29/06 17:35:13:721 EST] 4e5645a ServletInstan E SRVE0100E: Did not realize init() exception thrown by serv

Re: Validation Issue

2006-01-29 Thread Paul Benedict
The validation can silently fail if it is not configured correctly. Make sure you have the plug-in correctly configured with the 2 validation files -- one for the validators and the other your validation forms. Also if you upgraded to a new version of Validator your validator configurati

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Hi, I tried this. Using debug info I can see that the validate method is being called. But no errors are being returned. Thanks and regards, Karthik. On 1/29/06, Angelo zerr <[EMAIL PROTECTED]> wrote: > > Hi, > Name of form into validation.xml is the path of your Action > and not the name of yo

Re: One Pass JSP Parsing Woes! - how to generate Dynamic JSP and enforce those tags get parsed/translated?

2006-01-29 Thread Kai Mai
Raghu, can you be more specific about your solution? how about giving some coding examples? Thanks. Kai On 1/27/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > > Hi, > I solved the problem by "playing the container". > > I called the tag functions that the container would have called in th

Action class design for similar forms with different input fields?

2006-01-29 Thread Narayanan, Shiva
Hello, Following tables are present in our database. We have mapped these tables to model classes using hibernate where the model class for table 2 is a collection in model1 class. Table 1 Part_Id - int identity (10) - Primary key Part_Code - Char (10) Part_Name - Varchar (50) Table 2 S

Re: Validation Issue

2006-01-29 Thread Richard Yee
Karthik, I don't think you will be able to access your query parameter when you post your form. Your action attribute in your html:form tag should just be /Control Have you looked at the struts-example application? -Richard Karthik Manimaran wrote: Hi, I am using the validator framework f

Re: Validation Issue

2006-01-29 Thread Angelo zerr
Hi, Name of form into validation.xml is the path of your Action and not the name of your Action : Declare in your AplicationResources (see example into validator-rules.xml) errors.required={0} is required. privacyPrefForm.strFirstName=First name Regards Angelo 2006/1/29, Karthik

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
This is the form definition The JSP file is as follows: <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> Errors Not Present

Re: Validation Issue

2006-01-29 Thread Richard Yee
What is the form definition for privacyPrefForm? Where is the tag for your strFirstName field in your form? Are you using a debugger at all? -Richard Karthik Manimaran wrote: Hi, I am using the validator framework for form validation. Validation doesnt seem to happen and no error messages a

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I tried subclassing both ValidatorForm and ValidatorActionForm and it still doesnt work. Checked the properties too. I even tried using a custom error message using resource="false" This is always evaluating to true even if I submit the form with errors. Errors Not Present On 1/29/06, Paul Ben

Re: Validation Issue

2006-01-29 Thread Paul Benedict
Make sure you're using the right validator class. The ValidatorForm keys off the formname, ValidatorActionForm keys off the action name. This has happened to me before. Also make sure your properties are named the same. Paul __ Do You Yahoo!? Tir

Re: Set values in form bean

2006-01-29 Thread Deepa Khetan
No, actually, its my requirement. When user enters a particualr field and leaves that textbox, i need to get some data from the database and display him that! So, i am sending the value in the textbox as a hidden parameter of another form and submitting it! Hope u got the real picture On 1/28/06

Validation Issue

2006-01-29 Thread Karthik Manimaran
Hi, I am using the validator framework for form validation. Validation doesnt seem to happen and no error messages are displayed. However the form is getting pre-populated with the user input. Can anyone tell me what I am missing here? struts-config.xml - ...