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 a

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 bean:mes

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 unsubscri

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 progr

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 have

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 folder}/conf/server.xm

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 t

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, 200

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 Equino

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: 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 datepi

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 Se

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 th

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 i

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 , and the String "Hello" would be output to the page. I want to put the props in the database a

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 ther

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 PROT

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" To: "Struts Users Mailing List" Subject: Re: reset method with DyanValidatorForm Date: Wed, 1 Nov 2006 08:21:41 -0700 On 11/1/06, fea jabi <[EMAIL PROTECTED]> wrote: may I know

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" To: "Struts Users Mailing List" Subjec

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

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: Wednes

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 applica

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

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 If

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 readonly by setting readonly="true" which works. 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 disabled or readonly while keeping the va

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 *one*

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 po

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 regard

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 ver

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.

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: For your field specific messages, you can use either the or tags to position m

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: My definition does *not* include "body" The "actual" jsp page determines the proper value for "body": Question: the way I'm doing this means I now have *two *pages for every page...in my

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 do:

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 Then I just write a Welcome.jsp that only contains the body for the welcome page. So for every page I want to add, I add one jsp file and one entry in tiles-defs.xml. If

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: struts conf

RE: 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: in Struts 2 Hi Ashish, Just curious, Is it Struts 2 tagli

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 wr

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 co

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 t