using SMTP server

2006-11-01 Thread Anet
Hi everybody; I wanna put a text box on my form that user can enter her email and by submitting, an email send to her. I can do it with a free SMTP server. I set smtp host on localhost in server.xml ( {tomcat folder}/conf/server.xml). But It just works for gmail. It can't send mails to yahoo

Tiles

2006-11-01 Thread Juan Espinosa
Hi im going to start using - and giving a try to Tiles The installation of tiles in struts 2 is the same as in struts 1 ? Anybody has a working example, maybe a war. Thanks to all Juan

Tiles, me again

2006-11-01 Thread Juan Espinosa
Me again...i want to use tiles to solve the problem of putting in every page a include of a header a footer and a menu. If anyone has suggestions or knowdlege of using another template engines, like sitemesh or anything else. Regards, Juan

bean:write with database backed properties

2006-11-01 Thread Adam Lipscombe
Folks, I have a requirement to use a database backed properties mechanism rather than a simple resources text file. The property that is retrieved will depend on the some of the user attributes, so at least 1 attrib would have to passed to the lookup mech. I want to use the standard

RE: how to generate generic errors using Struts validation framework

2006-11-01 Thread Dave Newton
From: robin bajaj [mailto:[EMAIL PROTECTED] I need to know how can I generate GLOBAL validation errors using the validation.xml file. I know this can be done easily in ActionForm's java code like: Like what kind of global validation errors? Dave

RE: using SMTP server

2006-11-01 Thread Dave Newton
From: Anet [mailto:[EMAIL PROTECTED] Plz help me or introduce me some documents about SMTP protocol. http://www.ietf.org/rfc/rfc0821.txt But I'm guessing lack of RFC knowledge isn't the issue here! ;) Dave - To

webcast/sms

2006-11-01 Thread Sócrates Medina
Hello everybody. I have 2 question : 1) I've been feeling the needs, just for hobbie, to realize a test videoconference or webcast system over the internet. I would like to know if some of you have done something related and where to get information about it. 2)I would like to do a SMS

bean:message with database backed properties (was bean:write ...)

2006-11-01 Thread Adam Lipscombe
Sorry should have been bean:message Adam Adam Lipscombe wrote: Folks, I have a requirement to use a database backed properties mechanism rather than a simple resources text file. The property that is retrieved will depend on the some of the user attributes, so at least 1 attrib would

Re: using SMTP server

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, I wanna put a text box on my form that user can enter her email and by submitting, an email send to her. I can do it with a free SMTP server. I set smtp host on localhost in server.xml ( {tomcat

SSL support [s2]

2006-11-01 Thread Jim Reynolds
Considering upgrading a site from Struts 1.x to Struts 2. Looking back through the code there was a SSL Extension I used that allowed me to set a true/false in the action as to whether or not the action was going to be SSL or normal. This all extended from the RequestProcessor, so with S2, I am

Re: Tiles

2006-11-01 Thread Jim Reynolds
I do not know this answer, but I think I may try using SiteMesh for my first S2 site. Matt Raible from AppFuse has some great examples of using SiteMesh. It seems pretty easy to use and it is from the same folks at Open Symphony. My 2 cents. On 11/1/06, Juan Espinosa [EMAIL PROTECTED] wrote:

RE: Tiles

2006-11-01 Thread Juan Espinosa
ok i will give it a try Suggestions ?? Juan -Mensaje original- De: Jim Reynolds [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 01 de Noviembre de 2006 10:49 a.m. Para: Struts Users Mailing List Asunto: Re: Tiles I do not know this answer, but I think I may try using SiteMesh for

Re: bean:message with database backed properties (was bean:write ...)

2006-11-01 Thread Martin Gainty
Good Morning Adam- First off I would recommend viewing this article in implementing EJBs specifically establishing DTO's to handle the data components http://husted.com/struts/tips/018.html M- This e-mail communication and any attachments may contain confidential and privileged information for

RE: using SMTP server

2006-11-01 Thread David Friedman
Don't forget about the handful of ISP's that block outgoing port 25 (SMTP) unless it is directly to their own mail servers. I had one of two of those in recent years. Regards, David -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01,

Re: Tiles

2006-11-01 Thread Jim Reynolds
If you go to AppFuse [ equinox ] you can download any example, and then look inside. Appfuse is a cool product, and deserves some attention. Here is the URL. http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse Here is the skinny. AppFuse is a large scale [struts-blank.war] application and

ModuleException

2006-11-01 Thread Rick Schumeyer
Let me give this one more try: I'm considering using the ModuleException class for exception handling. It looks like a reasonably painless way to go. Is there any reason *not* to use this method? Or if anyone can point me to an example showing a better method, that would be great also.

Re: s:datepicker in Struts 2

2006-11-01 Thread robin bajaj
Hi Ashish, Just curious, Is it Struts 2 taglib that you are using in this case? I am still at Struts 1.2.x, was wondering if there are any datePicker/Calendar taglibs in the latest Struts 2.x Would appreciate your feedback, robin Asish Kr. Samanta wrote: Hi, I am Asish, I am using

Re: reset method with DyanValidatorForm

2006-11-01 Thread Wendy Smoak
On 11/1/06, fea jabi [EMAIL PROTECTED] wrote: may I know the reason why do we have to use Serializable in the below. package com.example.myapp; public final class AccountForm extends DynaValidatorActionForm implements Serializable {...} You don't. DynaValidatorActionForm is already

Re: using SMTP server

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, Don't forget about the handful of ISP's that block outgoing port 25 (SMTP) unless it is directly to their own mail servers. I had one of two of those in recent years. That is unlikely, as he can successfully send messages to gmail. I

Struts Assistant in IDEA 6

2006-11-01 Thread Wendy Smoak
Has anyone used this? I opened a Struts 1 project, and IDEA added a 'Struts Assistant' button over by 'Project' and 'Structure'. It's like Struts Console, a graphical editor and validator for the config files. I noticed that it wasn't recognizing Validator config files on the classpath, which

Re: bean:message with database backed properties (was bean:write ...)

2006-11-01 Thread Adam Lipscombe
Thanks for that, but I don't understand how it addresses the problem. Maybe I am missing the point... Say I have 2 props in a resource file: prop1=Hello prop2=Hi The bean:message tag would read bean:message key=prop1/, and the String Hello would be output to the page. I want to put the

Re: reset method with DyanValidatorForm

2006-11-01 Thread Niall Pemberton
On 1/6/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 1/6/06, fea jabi [EMAIL PROTECTED] wrote: So, I might have to reset the checkboxes now. Do, I have no other choice but to create a formbean Class with all the setter's and getter's and then add reset method too for it. or is there an

Re: ModuleException

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick, Let me give this one more try: I'm considering using the ModuleException class for exception handling. It looks like a reasonably painless way to go. Is there any reason *not* to use this method? You mean exception, right? I recall

RE: Struts Assistant in IDEA 6

2006-11-01 Thread Wesslan
I wonder how long it would take them if I opened a ticket complaining that it doesn't support Struts 2... :) Exactly my thought too... :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: reset method with DyanValidatorForm

2006-11-01 Thread fea jabi
Great. thanks a lot for your help. From: Wendy Smoak [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users Mailing List user@struts.apache.org Subject: Re: reset method with DyanValidatorForm Date: Wed, 1 Nov 2006 08:21:41 -0700 On 11/1/06, fea jabi

Re: reset method with DyanValidatorForm

2006-11-01 Thread fea jabi
Thanks. This forum has been great help to me. we are using 1.2.7 so, can't use this nice feature yet. But where can I get the new features added after 1.2.7 version from? From: Niall Pemberton [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org To: Struts Users

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread robin bajaj
Hi Dave, Thanks for the reply. My Desired Scenario: a) When the user submits the form with more than one fields left blank (or with incorrect values), I want to show a general (GLOBAL) message on top of the form saying Following shown mandatory fields were provided with incorrect values b)

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, When the user submits the form with more than one fields left blank (or with incorrect values), I want to show a general (GLOBAL) message on top of the form saying Following shown mandatory fields were provided with incorrect values How

RE: using SMTP server

2006-11-01 Thread Shardayyy
I have the same problem with Hotmail only not yahoo, Hotmail does not relay or accept mails coming from IP addresses that are dynamic and not static. I use PostCast Server (http://www.postcastserver.com/) -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent:

Re: ModuleException

2006-11-01 Thread Rick Schumeyer
Thanks for the reply. It's not that I'm nervous about ModuleException, but rather that there are several ways to do it. There is the traditional java way, ModuleException, your method of catching exceptions and forwarding to a global error page...and many others. I was hoping to learn about

Re: ModuleException

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rick, Rick Schumeyer wrote: I was hoping to learn about the pros/cons of various methods before picking one. I prefer my technique because it does not require throwing another exception. It's a tiny amount of time, but throwing an exception takes

ActionServlet and RequestProcessor

2006-11-01 Thread Nitin M. Mandolkar
The Actionservlet delegates the handling of a request to a RequestProcessor object Previously this is job is done by ActionServlet itself. Now it is pass on to RequestProcessor. I am not getting how it is going to help for web application development. Can any one put some light on this one.

RE: ActionServlet and RequestProcessor

2006-11-01 Thread Dave Newton
From: Nitin M. Mandolkar [mailto:[EMAIL PROTECTED] The Actionservlet delegates the handling of a request to a RequestProcessor object Previously this is job is done by ActionServlet itself. Now it is pass on to RequestProcessor. I am not getting how it is going to help for web application

Re: ActionServlet and RequestProcessor

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin, Nitin M. Mandolkar wrote: The Actionservlet delegates the handling of a request to a RequestProcessor object Previously this is job is done by ActionServlet itself. Now it is pass on to RequestProcessor. I am not getting how it is going

Re: ActionServlet and RequestProcessor

2006-11-01 Thread Nitin M. Mandolkar
Hay Chris Good Logical reply. Is RequestProcessor also help for mutiple modules under single web application. Say i have a Web Application, Online Shoppe. This web application is divded in to modules like 1. Billing Module 2. Order Placement Module 3. Order Processing Module 4. Admin Module

How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Mississippi John Hurt
Help, I can make html:text readonly by setting readonly=true which works. html:select has no readonly attribute, only a disabled. If I use disabled attribute, then the value of the select is no longer recognized and my form validation says its required. How can I make the html:select disabled or

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Rafael Nami
You can choose to maintain the value from this select in a hidden field, that will be submitted with your page. I was used to use another approach, making the select enabled in the submit, but it was a great meal to hackers. 2006/11/1, Mississippi John Hurt [EMAIL PROTECTED]: Help, I can make

Velocity vs FreeMarker

2006-11-01 Thread frankiestd168
I'm not sure if I understand correctly.. In Struts2 documents sample code, it mentions Velocity and FreeMarker, both can be used as a template,(i.e. *.vm and *.ftl ) Any suggestion, which is better? I'm new to Struts2, so, a little confuse what to learn first? i am following this example..

Re: ModuleException

2006-11-01 Thread Rick Schumeyer
umm...let me make something up real quick...one can obviously handle exceptions in non-struts Java apps. I was thinking at the time you could do the same thing in struts, and simply not take advantage of any of the exception handling features of struts. I didn't mean to suggest there is

Re: SSL support [s2]

2006-11-01 Thread Don Brown
There currently isn't anything like this in Struts 2, however, it would be easy to implement as an Interceptor. The SSL extension for Struts 1 also does some other interesting things that should also be considered like a secure link tag and redirect support with the same context. I'd start by

Re: Velocity vs FreeMarker

2006-11-01 Thread Ted Husted
On 11/1/06, frankiestd168 [EMAIL PROTECTED] wrote: I'm not sure if I understand correctly.. In Struts2 documents sample code, it mentions Velocity and FreeMarker, both can be used as a template,(i.e. *.vm and *.ftl ) Yes, or you can just use JSPs. The Struts tags are almost identical

Re: reset method with DyanValidatorForm

2006-11-01 Thread Niall Pemberton
On 11/1/06, fea jabi [EMAIL PROTECTED] wrote: Thanks. This forum has been great help to me. we are using 1.2.7 so, can't use this nice feature yet. But where can I get the new features added after 1.2.7 version from? Its in the Struts 1.3.x series - the only ga (or production) quality

Re: reset method with DyanValidatorForm

2006-11-01 Thread Niall Pemberton
Woops, sorry download link should have been: http://struts.apache.org/downloads.html On 11/1/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 11/1/06, fea jabi [EMAIL PROTECTED] wrote: Thanks. This forum has been great help to me. we are using 1.2.7 so, can't use this nice feature yet. But

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Niall Pemberton
You can also do the same kind of thing that Chris suggests with Struts tags: For your global message, uses the messagesPresent tag to detect if there are errors and then output the appropriate message: logic:messagesPresent bean:message key=error.title.some-fields-are-bad /

Re: Tiles best practices question

2006-11-01 Thread Adam Hardy
Antonio Petrelli on 31/10/06 08:07, wrote: Rick Schumeyer ha scritto: I have a layout that includes: tiles:insert attribute=body/ My definition does *not* include body The actual jsp page determines the proper value for body: tiles:insert definition=library.default tiles:put name=body

Re: tiles and resource bundle

2006-11-01 Thread Adam Hardy
Rick Schumeyer on 01/11/06 02:51, wrote: 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

Re: Tiles best practices question

2006-11-01 Thread Rick Schumeyer
I have decided to use Antonio's suggestion. Every page now has an entry in tiles-defs.xml. For example definition name=welcome extends=default put name=body value=/pages/Welcome.jsp / /definition Then I just write a Welcome.jsp that only contains the body for the welcome page.

struts2 action and spring bean

2006-11-01 Thread boa
Hi there, I am using struts2.0.1 and spring1.2.8. I follow the showcase example in struts2 config file to use bean name instead of fully qualified classname for action, then I get Action class [XXXAction] not found. My spring config file is like this: beans default-autowire=autodetect

RE: s:datepicker in Struts 2

2006-11-01 Thread Asish Kr. Samanta
Hi Robin, I am using Sturts2 taglib. There is datepicker also. Regards, Asish -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 8:07 PM To: Struts Users Mailing List Subject: Re: s:datepicker in Struts 2 Hi Ashish, Just curious, Is it

How to realize print function

2006-11-01 Thread red phoenix
I want to realize print function in Struts,when click a button in jsp page,it will print part of screen information in Printer. I know javascript: window.print() can realize print function,but it don't fit me,because window.print() will print all screen information.I know another method,it will

Re: struts2 action and spring bean

2006-11-01 Thread Don Brown
Have you modified your struts.properties to point Struts to the spring ObjectFactory? See http://cwiki.apache.org/WW/spring.html for more information. Don On 11/1/06, boa [EMAIL PROTECTED] wrote: Hi there, I am using struts2.0.1 and spring1.2.8. I follow the showcase example in struts2

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2006-11-01 Thread Angelo zerr
Hi, if you see HTML specification at http://www.w3.org/TR/html401/interact/forms.html#h-17.6, select has not readonly (just disabled, but you can't use it for submiut value). So proposition of Rafael, is the same solution that I use. But when you have several select in your JSP, it begin borring