How to produce valid HTML output with the html:tags

2006-04-27 Thread Peter Neu
Hello, in an effort to clean up my site I try to do everything by the W3C standard. I threw out all design tables and other useless crap but now one problem remains and it's related to Struts. All html:input tags generate a tag which is not closed. Like this: input type=hidden

Re: How to produce valid HTML output with the html:tags

2006-04-27 Thread Nikolaj Berntsen
Peter Neu wrote: Hello, in an effort to clean up my site I try to do everything by the W3C standard. I threw out all design tables and other useless crap but now one problem remains and it's related to Struts. All html:input tags generate a tag which is not closed. Like this: input

StrutsTestCases

2006-04-27 Thread Chaitanya Parkhi
hi friends i m working on Struts Test Cases ,i have written the following code,for testing accurate user login from login page for my application i hav included strutsTest-2.1.3.jar,junit.jar from JUNIT_HOME directory,when i run the following code i m getting following failures:

Re: Problem with message and Expired session

2006-04-27 Thread Angel Navarro
Hi, thanks for your comments. My problem is the session expired because the system expired session. I have not invalidate()..do you know? Thanks 2006/4/26, Juergen Kopper [EMAIL PROTECTED]: Hi, Angel Navarro schrieb: When user logon, I set the locale's user and all is ok. But, the

Re: How use AND,OR in logic struts tag lib

2006-04-27 Thread Vinit Sharma
A very small article on JSTL for quick reference: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html On 4/26/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 4/26/06, Angel Navarro [EMAIL PROTECTED] wrote: Hi, I need to translate: if ( a == 'option1' || a == 'option2' )

Re: How use AND,OR in logic struts tag lib

2006-04-27 Thread Angel Navarro
Thanks 2006/4/27, Vinit Sharma [EMAIL PROTECTED]: A very small article on JSTL for quick reference: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html On 4/26/06, Rahul Akolkar [EMAIL PROTECTED] wrote: On 4/26/06, Angel Navarro [EMAIL PROTECTED] wrote: Hi, I need to

Re: multiple pattern mapping

2006-04-27 Thread Ted Husted
Sadly, multiple extension mappings is not supported by Action 1 (*). There can only be one. The usual workaround is to use different folders to represent different authentification types. So, you'd have to have something like /auth/something.do versus /open/something.do. For more complex

Re: Problem with message and Expired session

2006-04-27 Thread Juergen Kopper
Hi, Angel Navarro schrieb: My problem is the session expired because the system expired session. I have not invalidate()..do you know? I don't know. But perhaps you show some code (Action, jsp and struts-config), to get a better help for this problem. Juergen

Re: StrutsTestCases

2006-04-27 Thread Ed Griebel
There was a question about this a couple of days ago where web.xml was not being found. Also, it looks like you have a leading slash before the D: in setConfigFile(), that could be the problem. HTH -ed On 4/27/06, Chaitanya Parkhi [EMAIL PROTECTED] wrote: hi friends i m working on Struts Test

Re: Problem with message and Expired session

2006-04-27 Thread Angel Navarro
Hi, when I say 'the system expired session' is that the user are a lot of time without navigate and explorer expired session, dou you understand me? Thanks 2006/4/27, Juergen Kopper [EMAIL PROTECTED]: Hi, Angel Navarro schrieb: My problem is the session expired because the system

Re: Problem with message and Expired session

2006-04-27 Thread Juergen Kopper
Hi, Angel Navarro schrieb: Hi, when I say 'the system expired session' is that the user are a lot of time without navigate and explorer expired session, dou you understand me? Yes I understand it and I think this makes the same as the invalidate(), this means it unbinds all Objects of a

Re: validatewhen --- what's wrong?

2006-04-27 Thread Jakub Milkiewicz
Hi To tell you the truth i do not understand what you wanna do... Anyway your validwhen condition is always true! Note that you are comparing *this* - for property password, with property password. It means something like 1==1. 2006/4/26, Zheng Wen Zhe [EMAIL PROTECTED]: Hey all, I wanna

ActionMessages not working

2006-04-27 Thread fea jabi
in action I have ActionMessages messages = (ActionMessages)frm.validate( mapping, request ); if ( messages != null !messages.isEmpty() ) { saveMessages(request, messages); * return (mapping.findForward(validFailed)); }else {

RE: ActionMessages not working

2006-04-27 Thread fea jabi
Here is the solution for this just make sure to add message=true in the html:messages tag i.e IN jsp html:messages id=CrditRtMsg property=CreditRate message=true c:out value=${CrditRtMsg} /or just ${CrditRtMsg} /html:messages From: fea jabi [EMAIL PROTECTED] Reply-To: Struts Users

RE: validatewhen --- what's wrong?

2006-04-27 Thread Chaudhary, Harsh
Try it like this. var-value(*this* == 'password')/var-value -Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 12:34 PM To: Struts Users Mailing List Subject: Re: validatewhen --- what's wrong? Hi To tell you the truth i do not

Re: validatewhen --- what's wrong?

2006-04-27 Thread Jakub Milkiewicz
Right This anlr gramma is quite not intuitive ... 2006/4/27, Chaudhary, Harsh [EMAIL PROTECTED]: Try it like this. var-value(*this* == 'password')/var-value -Original Message- From: Jakub Milkiewicz [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 12:34 PM To: Struts Users

[ANN] JAVAWUG BOF XVI Videos Available Now!

2006-04-27 Thread Peter Pilgrim
Hi All I am very proud to announce that two video presentations are now downloadable from Google Video Beta sites. These presentations were recorded on our sixteenth Java Web User Group meet-up that took place at Oracle's City of London offices on Friday, 17th February 2006. In case you are

Accessing Validation Errors in an Action

2006-04-27 Thread Asad Habib
How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action code so I can throw the appropriate kind of exception. Thanks. - Asad - To

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Lixin Chu
if the validation is done at the server side (in your actionform), then you can easily get the errors. On 4/28/06, Asad Habib [EMAIL PROTECTED] wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action

Where dose JSP works in JSF request lifecycle?

2006-04-27 Thread 王曾wang_zeng
In JSF, when a request arrives, it should go through 6 phases to process the request. The first stage is called Restore the View , and the last stage is called Render the Response. I wonder where JSP works in these 6 phases. If JSP only works in the last phase, how can JSF restore the view first

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Rick Reumann
Asad Habib wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my action code so I can throw the appropriate kind of exception. Thanks. I show this very thing at the end of this article:

Re: Where dose JSP works in JSF request lifecycle?

2006-04-27 Thread Craig McClanahan
On 4/27/06, 王曾wang_zeng [EMAIL PROTECTED] wrote: In JSF, when a request arrives, it should go through 6 phases to process the request. The first stage is called Restore the View , and the last stage is called Render the Response. I wonder where JSP works in these 6 phases. If JSP only

[Friday] struts and email

2006-04-27 Thread Braun, James F
The goal is to upload a file and have it automatically emailed to a recipient. In my .jsp page I have: html:file property=attachment styleClass=textBody/ In my action form I have: private FormFile attachment; My email code looks like this: void sendMessage() { try //

Re: Beginner's question on Struts and JSP

2006-04-27 Thread Dharmendra Singh
It is little complex to extract data from database on to jsp page.I would say that Go ahead step by step. I am sure will get touch with struts. Step1. You create ActionFrombean class (getter setter methods). 2) make a connection pool with database by using struts-config file(Datasource

RE: [ANN] JAVAWUG BOF XVI Videos Available Now!

2006-04-27 Thread Rakesh.Bhat
Hi, Thanks for sharing these links. They are really great. Kind regards, Rakesh Bhat -Original Message- From: Peter Pilgrim [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 4:01 AM To: [EMAIL PROTECTED]; Maven Users List; Struts Users Mailing List; Struts Developers List

Re: StrutsTestCases

2006-04-27 Thread Chaitanya Parkhi
hi Ed,ya this is the same problem i m trying to solve. i hav removed that addtional slash before D: but still its not working, also i i forgot to mention in my first mail that i m getting follwing warnings on my consol window: log4j:WARN No appenders could be found for logger (

RE: [Friday] struts and email

2006-04-27 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi Braun, After upload file you have to save that in local or any where then attach. I think you are not saving file. Try this. Thanks, Jeeva.P -Original Message- From: Braun, James F [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 9:18 AM To: Struts Users Mailing List Subject:

Re: Where dose JSP works in JSF request lifecycle?

2006-04-27 Thread 王曾wang_zeng
Thank you,Craig. What do you mean by setup action? Is that the kind of action which grabs some data, do some encapsilation work, and stuff them into JSP scopes. You say we can archive the goal with shale as well as without shale. I remeber that between phases a Phase Event will be fired. When

Re: [shale] Form token giving NPE

2006-04-27 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I'm trying to use the token component on a form to ensure that a user doesn't submit the form more than once. Whenever I try and submit the form a second time, I get a NPE. I'm using it in Clay, if that makes any difference. The

Re: Accessing Validation Errors in an Action

2006-04-27 Thread Asad Habib
Hello Rick. Great! Thank you for the URL. This site has a wealth of information on it! - Asad On Thu, 27 Apr 2006, Rick Reumann wrote: Asad Habib wrote: How do I access errors that the Validator places in the ActionErrors object instance within a Struts action? I need to do this in my

Re: [shale] Form token giving NPE

2006-04-27 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I'm trying to use the token component on a form to ensure that a user doesn't submit the form more than once. Whenever I try and submit the form a second time, I get a NPE. I'm using it in Clay, if that makes any difference. The