RE: e-mail address validator

2005-09-28 Thread Wielemaker, Bram
It's a standard build in validation of the validator see http://struts.apache.org/userGuide/dev_validator.html Gr, Bram I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks.

SV: recursive and struts. SOS

2005-09-28 Thread Ekberg Mats KONSULT
Also, look at the nested struts taglib. /mats -Ursprungligt meddelande- Från: Michael Jouravlev [mailto:[EMAIL PROTECTED] Skickat: den 27 september 2005 23:29 Till: Struts Users Mailing List Ämne: Re: recursive and struts. SOS On 9/27/05, Laurie Harper [EMAIL PROTECTED] wrote:

RE: bean:write tag within html:link tag

2005-09-28 Thread Vishal Dalal
hi catherine, I am new to the struts framework so please ignore and correct if i am wrong But when using jsp without struts, you experience the same problem while passing parameters to javascript function. I think a better way(which always works!!!) is to make that java variable as a hidden

How to customize a displaytag column?

2005-09-28 Thread 梁炳場
display:table name=UserRole display:column property=messageKey title=System / /display:table I'd like to change the messageKey column to html:link action=href bean:message key=messageKey /html:link where href is another property. How can it be done?

Re: e-mail address validator

2005-09-28 Thread Francisco - São Paulo - Brazil
What is the matter with the Struts Validator? Can't you use it? It's easy. [EMAIL PROTECTED] escreveu: I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have any pointers? Thanks.

RE: e-mail address validator

2005-09-28 Thread Bryon Lape
Wow, even better. Thanks. It's a standard build in validation of the validator see http://struts.apache.org/userGuide/dev_validator.html Gr, Bram I'm looking for a regular expression or something I can plug into Struts 1.2 to validate e-mail addresses off of a DynaForms. Anyone have

Debugging

2005-09-28 Thread Bryon Lape
I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but it seems very complex to configure. Is this correct? Is

Re: Debugging

2005-09-28 Thread Borislav Sabev
Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but it seems very complex to configure. Is

JSTL Error

2005-09-28 Thread Vijaya S
Hello, I am struggling with the JSTL error for the past two days. Can someone help me in this? In my JSP, I have the following code to populate bean array properties. c:forEach var=vsr items=${vsroute} c:catch var=coercionError tr tdc:out value=${vsr.fromcity} //td

Re: Debugging

2005-09-28 Thread Bryon Lape
I hope this could help you: 1. get log4j and put it together with other jars of your web project 2. create a log4j.properties file and put on the root of your web app. 3. add following lines in log4j.properties Borislav My goodness, it is as long as I thought. I can at least cut and paste

Re: Debugging

2005-09-28 Thread Borislav Sabev
Bryon Lape wrote: My goodness, it is as long as I thought. I can at least cut and paste this instead of doing all that typing. is it so much? Thanks. I'll let you know how it goes. I am running under iPlanet Web Server 6.0 SP1, so things can goofy. It already will not find the

Re: Debugging

2005-09-28 Thread Borislav Sabev
Bryon Lape wrote: My goodness, it is as long as I thought. I can at least cut and paste this instead of doing all that typing. that's why I pasted you lines from my log4j.proprties file and it's sure they are correct borislav

Re: Debugging

2005-09-28 Thread Frank W. Zammetti
An alternative is the following: (1) Create the file commons-logging.properties and put it in WEB-INF/classes with the following contents: org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog (2) Create the file simplelog.properties and also place it in WEB-INF/classes with

Re: Debugging

2005-09-28 Thread Bryon Lape
Bryon Lape wrote: My goodness, it is as long as I thought. I can at least cut and paste this instead of doing all that typing. is it so much? Thanks. I'll let you know how it goes. I am running under iPlanet Web Server 6.0 SP1, so things can goofy. It already will not find the message

Re: Debugging

2005-09-28 Thread Richard Yee
My suggestion is to use an IDE that has source level debugging (JDeveloper, Eclipse, NetBeans). If you start your appserver in debugging mode, you can connect remotely with your IDE and step through the code and observe variable values. -Richard Bryon Lape wrote: Bryon Lape wrote:

struts config logging

2005-09-28 Thread paul
user@struts.apache.org, I have a problem with my tiles set up. I get a Null pointer exception with the following stack trace. java.lang.NullPointerException org.apache.struts.taglib.tiles.InsertTag.processAttribute(InsertTag.java:687 )

Re: Debugging

2005-09-28 Thread Bryon Lape
I am currently using IntelliJ 5.0 and I have tried numerous times to get remote debugging for iPlanet working. So far, no dice. My suggestion is to use an IDE that has source level debugging (JDeveloper, Eclipse, NetBeans). If you start your appserver in debugging mode, you can connect

Re: Debugging

2005-09-28 Thread Bryon Lape
Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but it seems very complex to configure. Is

Re: Debugging

2005-09-28 Thread Borislav Sabev
Bryon Lape wrote: Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but it seems very

Re: How to customize a displaytag column?

2005-09-28 Thread Ugur Cetinkaya
Lets try to like this display:column titleKey=System html:link action=href ${messageKey} /html:link /display:column On 9/28/05, 梁炳場 [EMAIL PROTECTED] wrote: display:table name=UserRole display:column property=messageKey title=System / /display:table I'd like to change the messageKey

Re: Debugging

2005-09-28 Thread Bryon Lape
Bryon Lape wrote: Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but it seems very

Re: Debugging

2005-09-28 Thread Borislav Sabev
Bryon Lape wrote: Bryon Lape wrote: Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on

Re: Session Question

2005-09-28 Thread Rahul Akolkar
On 9/28/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Troy Bull [EMAIL PROTECTED] snip/ c:out value=${session.variable}/ %= session.getAttribute(variable) % So the c:out tag isn't working, any ideas why that would be? Try just: c:out value=${variable}/ It will check page,

[OT] Re: Debugging

2005-09-28 Thread Dave Newton
Borislav Sabev wrote: Bryon Lape wrote: Bryon Lape wrote: Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook

Re: [OT] Re: Debugging

2005-09-28 Thread Borislav Sabev
Dave Newton wrote: Holy crap, edit your replies! Dave Sorry Dave, ussualy i do Borislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Debugging

2005-09-28 Thread Bryon Lape
Bryon Lape wrote: Bryon Lape wrote: Bryon Lape wrote: I am looking for good pointers on getting debug logging turned on in Struts. I've added debug and detail params to my web.xml file, but I get nothing. Do I need log4j? In the Struts Cookbook I've found some things on debugging, but

Re: Debugging

2005-09-28 Thread Borislav Sabev
Bryon Lape wrote: just make a file search under the path where the server is installed Please excuse my ignorance, but look for what? That is, what file name should I expect to find? I did a search for *.log and *log* and didn't find anything of use. hm strange ... in this case I

Re: Debugging

2005-09-28 Thread Bryon Lape
hm strange ... in this case I don't know what ot tell you ... the file name should be struts.log may be somebody who is more familiar with log4j should give you an idea ... borislav Let me do a search on the whole harddrive for that file name.

Re: Debugging

2005-09-28 Thread Bryon Lape
Configuring a .File and giving it a name I've been able to find the log. I can see it converting the parameter on message-resources / and converts it to a String. WHat I don't see is it reading it nor are there any errors. I even put a value in of a file that does not exist and still no error.

Perhaps more info on my MessageResource problem

2005-09-28 Thread Bryon Lape
I now have logging giving me something useful. When a form is submitted with validation errors and below is an excerpt. No errors reported, but it can't find tiles-def files. There is a tiles-def.xml, but the html form is not listed there. Nor are the inputs or success urls.

Re: JSTL Error

2005-09-28 Thread Yahzz Yan
What are the scope the variables used in that object? Vijaya S [EMAIL PROTECTED] wrote:Hello, I am struggling with the JSTL error for the past two days. Can someone help me in this? In my JSP, I have the following code to populate bean array properties. Route Disp Err :

use bean:message tag for configurable parameters?

2005-09-28 Thread Raghu Kanchustambham
Hi, When I use the following line...it prints a 4 on the screen. { selectbox.size has been defined as 4 in application.properties file } bean:message key='selectbox.size'/ However, the following code doesnt seem to work. Can somebody explain what is wrong with this? I want a select box of size

Re: radio buttons with struts

2005-09-28 Thread Laurie Harper
If the form is being submitted by your Javascript event handler (updateDiagramm() function) by building a URL rather than calling form.submit() then yes, that URL will need the form inputs appended to it explicitly. L. Lothar Krenzien wrote: Hi there, I'm new to struts but have to maintain

Re: use bean:message tag for configurable parameters?

2005-09-28 Thread Cedric Levieux
Your problem is a tricky one, so don't worry bean:define id=selectboxSizebean:message key='selectbox.size'//bean:define html:select property=filter.topicId size='%=selectboxSize%' html:optionsCollection name=topicsList value=id label=name/ /html:select Cedric Raghu Kanchustambham wrote:

Re: use bean:message tag for configurable parameters?

2005-09-28 Thread Ed Griebel
You can't have nested struts tags. I usually do something like this, although there's probably a better way: c:set var=selectboxSize bean:message key='selectbox.size'/ /c:set ... html-el:select property=filter.topicId size=${selectboxSize} html:optionsCollection name=topicsList value=id

Re: Debugging

2005-09-28 Thread Laurie Harper
Bryon Lape wrote: hm strange ... in this case I don't know what ot tell you ... the file name should be struts.log may be somebody who is more familiar with log4j should give you an idea ... borislav Let me do a search on the whole harddrive for that file name. make sure your

Re: JSTL Error

2005-09-28 Thread Rick Reumann
Yahzz Yan wrote the following on 9/28/2005 2:17 PM: Route Disp Err : value=${coercionError}/ Not sure what the above has to do with the below, but I get the following error from the JSP javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute value

SwitchAction.java in struts

2005-09-28 Thread Carl Smith
Can you describe in which case we should be using SwitchAction.java in struts? Can you offer some sample code? Is this used for multiple submit buttons (save, delete, update, cancle buttons for example) on one jsp page? Thanks. - Yahoo! for Good

logic tag - to check form elements

2005-09-28 Thread Raghu Kanchustambham
I have a hidden html varibale called operation. html text=hidden name=operation / Now I want to conditionally display some buttons based on the value of this hidden field. I am trying something like this... logic:equal name=${operation} value=update # display update related buttons /logic

[OT]Open source Backup software for windows

2005-09-28 Thread Ashish Kulkarni
Hello Does anyone know or used an open source for databaup from windows XP, i need this software to be able select folders for backup, backup files changed, add if does not exist, and schedule backup from my laptop and desktop Ashish __ Yahoo!

Re: [OT]Open source Backup software for windows

2005-09-28 Thread Bryon Lape
Hello Does anyone know or used an open source for databaup from windows XP, i need this software to be able select folders for backup, backup files changed, add if does not exist, and schedule backup from my laptop and desktop I'm guess you mean something in place of the backup programme

Re: logic tag - to check form elements

2005-09-28 Thread Michael Jouravlev
On 9/28/05, Raghu Kanchustambham [EMAIL PROTECTED] wrote: I have a hidden html varibale called operation. html text=hidden name=operation / This defines a field in an HTML form, server knows nothing about it. Now I want to conditionally display some buttons based on the value of this

RE: [OT]Open source Backup software for windows

2005-09-28 Thread David G. Friedman
There is stuff all over if you want something server based. Amanda (www.amanda.org) has a win32 client via a second sourceforge project), plus stuff I've never heard of like http://backuppc.sourceforge.net/info.html and more. Remember, google is your friend. :) If it's just those 2 Windows based

Re: problem with html:form tag action property

2005-09-28 Thread Aman A
Hi Its good taht we have found the solution, I have a question here! Why are u making two url-patterns for action servlet.i want to know the use case. coz i have never done that is there some benefit with this Regards A On 9/27/05, Jane Eisenstein [EMAIL PROTECTED] wrote: Problem solved. The

More Tiles and Definitions problems

2005-09-28 Thread Graham Reeds
I have my pages defined in tiles-defs.xml thus: !-- main layout -- definition name=Main.layout path=/_common/layouts/mainLayout.jsp put name=header value=/_common/layouts/tiles/_header.jsp / put name=footer value=/_common/layouts/tiles/_footer.jsp / /definition !-- test Page -- definition

Re: [OT]Open source Backup software for windows

2005-09-28 Thread Ovidiu EFTIMIE
What I recomend is SyncBack - it's free but it's not open source. quote SyncBack is our freeware program that helps you easily backup and synchronise your files to: the same drive; a different drive or medium (CDRW, CompactFlash, etc); an FTP server; a Network; or a Zip archive. /quote

Re: logic tag - to check form elements

2005-09-28 Thread Murray Collingwood
Hi Raghu What's the name of the form bean? Let's assume it's myformbean for the example: html:hidden name=operation/ logic:equal name=myformbean property=operation value=update ... /logic:equal Use the 'name' parameter to reference the form bean name. Use the 'property' parameter to

[shale] I miss ActionForward.. am I missing something?

2005-09-28 Thread David Bowers
I am investigating using struts on an upcoming project, and I will need to figure out a way to port some of my custom struts security preprocessing to Shale. In my most current Struts implementation, I use a chain to test several attributes on a request to authenticate it, (things like cookies or

Re: More Tiles and Definitions problems

2005-09-28 Thread Guillermo Castro
Contrary to popular belief, tiles attributes are not propagated to jsp's defined as attributes. It means that _header.jsp doesn't have any information about a tile attribute 'title', thus ignoring the tiles:getAsString/ tag (when you remove the ignore=true, struts is actually throwing an

Re: More Tiles and Definitions problems

2005-09-28 Thread Greg Reddin
On Sep 28, 2005, at 7:39 PM, Guillermo Castro wrote: In order to do what you want you have to define your tiles as: !-- main layout -- definition name=Main.layout path=/_common/layouts/mainLayout.jsp put name=header value=layout.header / put name=footer

struts redeploy problem

2005-09-28 Thread Elaine Sit
My webapp using tomcat5.5 + struts I create a new form bean in the struts-config.xml as following: form-bean name=surveyForm type=org.apache.struts.validator.DynaValidatorForm form-property name=emailAddr type=java.lang.String/ form-property name=senderName type=java.lang.String/

Re: struts redeploy problem

2005-09-28 Thread Murray Collingwood
I would guess that type is a reserved word. Try changing it to myType? Kind regards mc On 29 Sep 2005 at 11:40, Elaine Sit wrote: My webapp using tomcat5.5 + struts I create a new form bean in the struts-config.xml as following: form-bean name=surveyForm