Re: including in JSP:include

2006-08-07 Thread Romu
your other actions works ? else try refresh on Eclipse if u develp ith eclipse IDE. else do u have declared your taglib in your web.xml , after your servlet mapping: action *.do index2.jsp /tags/struts-bean

RE: including in JSP:include

2006-08-07 Thread Vijay Gupta
Michael thanks for the help bu I could not figure out why I am getting this error when declaring taglib on top of JSP (<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>), I have jstl.jar and standard.jar in WEB-INF/lib folder. Error 500--Internal Server Error java.lang.NoClassDe

RE: Browser History by HTTP-REFERER

2006-08-07 Thread Vijay Gupta
George thanks for the help bu I could not figure out why I am getting this error when declaring taglib on top of JSP (<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>), I have jstl.jar and standard.jar in WEB-INF/lib folder. Error 500--Internal Server Error java.lang.NoClassDe

Re: Browser History by HTTP-REFERER

2006-08-07 Thread Monkeyden
Sorry George, I misread one of the previous posts in my response to yours. You're correct. JSP is not the place for this type of authentication/validation, although I don't know that I would want everything to ActionServlet handles to require a referer. I dont suspect that spiders typically pass

Re: Browser History by HTTP-REFERER

2006-08-07 Thread Bart Busschots
I wrote my own tag called loggedIn that I wrap all elements of the page that are not to be viewed by the public in. The loggedin tag just checks a flag in session scope that is set by the login attribute. It's a very simple solution that works well for me. Bart. Monkeyden wrote: I don't incl

Re: Browser History by HTTP-REFERER

2006-08-07 Thread Monkeyden
I don't include any tiles in my application(s). It's the layout JSP page that includes the screen specific HTML and handles the common code (META, HTML, BODY, menus, etc.). Implemented this way, it's not nearly as easy to inadvertently avoid the META tags as you would have us believe. That said

RE: Browser History by HTTP-REFERER

2006-08-07 Thread George.Dinwiddie
I would suggest that a servlet filter is a better choice than depending on the inclusion of a particular tile. > -Original Message- > From: Thomas Joseph [mailto:[EMAIL PROTECTED] > Sent: Monday, August 07, 2006 2:36 AM > To: Struts Users Mailing List > Subject: Re: Browser History by HTT

Re: including in JSP:include

2006-08-07 Thread Michael Jouravlev
On 8/7/06, Vijay Gupta <[EMAIL PROTECTED]> wrote: Hi All, I would really appriciate your help in this: I am trying to JSP:include 2 actions and having the problem that the request never comes back from 1st include and that stops further excutuion of the JSP trying to include. I guess the reason

including in JSP:include

2006-08-07 Thread Vijay Gupta
Hi All, I would really appriciate your help in this: I am trying to JSP:include 2 actions and having the problem that the request never comes back from 1st include and that stops further excutuion of the JSP trying to include. I guess the reason is that struts does forward the request and the con

[O/T] RE: Unlock Your Mind's Hidden Power, Today...

2006-08-07 Thread David Friedman
Isn't this the SECOND step in Human cloning? Wouldn't the FIRST step be growing a replacement body so who's advertised about that? Like we need the ability to copy our brains before our clone is ready. Duh! Now if both steps were ready I could clone myself and do twice the work in half the time

Re: Broken link in User Guide

2006-08-07 Thread Bart Busschots
Hi Wendy, Wendy Smoak wrote: On 8/7/06, Bart Busschots <[EMAIL PROTECTED]> wrote: Just came across another broken link in the User Guide. At the end of section 4.8 (Writing Action Mappings) there is a link to http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionMapping.html l

Re: Broken link in User Guide

2006-08-07 Thread Wendy Smoak
On 8/7/06, Bart Busschots <[EMAIL PROTECTED]> wrote: Just came across another broken link in the User Guide. At the end of section 4.8 (Writing Action Mappings) there is a link to http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionMapping.html labeled "ActionMapping documentati

Broken link in User Guide

2006-08-07 Thread Bart Busschots
Hi, Just came across another broken link in the User Guide. At the end of section 4.8 (Writing Action Mappings) there is a link to http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionMapping.html labeled "ActionMapping documentation" which gives a 404. This is the second bro

Re: RE : Validator dynamic var

2006-08-07 Thread Niall Pemberton
You could implement your own MessageResources which could call a java class instead of a properties file. You would need to do something like the following: 1) Create your own MessageResources implementation: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts

RE : Validator dynamic var

2006-08-07 Thread Jean-Marie Pitre
Thank you Niall, Do you know if I can call a java class instead of a properties file ? Jean-Marie. -Message d'origine- De : Niall Pemberton [mailto:[EMAIL PROTECTED] Envoyé : lundi 7 août 2006 15:37 À : Struts Users Mailing List Objet : Re: Validator dynamic var You can do this in Str

RE: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Givler, Eric
I had a similar problem here. I used formdef to define the page attribute and didn't specify the type. When the cast was made inside of validator, it was unable to cast the value to an Integer. The field was a string containing the page number. Couldn't it use Integer.valueOf? -Original

Re: Validator dynamic var

2006-08-07 Thread Niall Pemberton
You can do this in Struts 1.3.x and Commons Validator 1.3.0 where the element can come from a resource bundle. See the "1.2 Variables in Resource Bundles" section here: http://wiki.apache.org/jakarta-commons/ValidatorVersion120 Niall On 8/7/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: H

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Bart Busschots
Romu wrote: U mean a javascript error ? No, I don't use clientside validation on my forms. It's going to the server anyhow so I don't see the point, just an extra layer for things to not work in. u need to define a message.properties file too which will define the error messa Good point

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Romu
for example : mentor.createStudentGroup .groupName.label = the Student Group Name 2006/8/7, Romu <[EMAIL PROTECTED]>: U mean a javascript error ? u need to define a message.properties file too which will define the error messa 2006/8/6, Bart Busschots < [EMAIL PROTECTED]>: > OK, I go

Re: Validator not getting called and I can't see why [resolved]

2006-08-07 Thread Romu
U mean a javascript error ? u need to define a message.properties file too which will define the error messa 2006/8/6, Bart Busschots <[EMAIL PROTECTED]>: OK, I got all this figured out in the end. The validator was being called but because of problems with the page attribute in the form th

Validator dynamic var

2006-08-07 Thread Jean-Marie Pitre
Hi, Is it possible to set dynamic variable value in validation.xml file ? My application is in several language and I would like avoid to define several formset definition according to each language to just change datepatternstrict value. Any idea ? Thanks, Regards Jean-Marie. --

Re: html:erros in jsp

2006-08-07 Thread Thomas Joseph
You can define the border for the text box in a style class and use errorStyle. This will reduce redundancy http://struts.apache.org/1.2.9/userGuide/struts-html.html#text Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India www.kott

html:erros in jsp

2006-08-07 Thread Puneet Lakhina
Hi, I want to display a border around by text fields when a validation error occurs. Can someone suggest how i could do this?? is there a way i could probably use tag in case an error existed for that particular property, so that I can use two text fields and display the bordered one in case an e

Getting NoInitialContextException

2006-08-07 Thread Franklin Phan
I use struts 1.1 and struts test case 2.1.3. In my DispatchAction class that I'm trying to test, one of the action methods uses the log4j logger. MockStrutsTestCase seem to find the logger properties file OK, but encounters NamingException and spits out errors afterwards: javax.naming.NoInitial