Problems emailing from struts

2005-10-27 Thread C.F. Scheidecker Antunes
Hello all, I've been trying to email from my struts application without success. I've first tried the standard approach wich is to use javax.mail.* javax.mail.internet.* classes. As on O'reilly's Servlet Cookbook. Then I've tried commons email, also without success. So at this point I wonder

Re: Problems emailing from struts

2005-10-27 Thread Borislav Sabev
java.lang.NoClassDefFoundError: javax/mail/Message com.nando.struts.action.TestAction.send1Mail(TestAction.java:35) com.nando.struts.action.TestAction.execute(TestAction.java:69) Seems that you don't have mail.jar in WEB-INF/lib. borislav

Problem with request.setAttribute

2005-10-27 Thread Deepa Khetan
Hi, I have a observed a peculiar behaviour with Struts. We cannot use request.setAttribute() while passing values from JSP to Action class. It works fine if i do it from Action to JSP. but when i use it in JSP and retreive value in Action class, it results in null. Can anyone please explain why

Re: Problem with request.setAttribute

2005-10-27 Thread rajasekhar . cherukuri
Hi, When you use request.setAttribute() in Action, it is the same request which goes to JSP also. So, you are able to get the values in JSP through request.getAttribute(). But when you use request.setAttribute() in JSP and submit the form, then a new request is generated with the values

difference between setAtttibute and setPatameter

2005-10-27 Thread Ankit Pancholi
Hi guys I wanted to know wat is the difference between request.setAttribute and request.setParameter. Rather there seems to be nothing called request.setParameter wen there is request.getParameter. Is the only way to pass values from action to jsp is request.setAttribute and then

Re: difference between setAtttibute and setPatameter

2005-10-27 Thread rajasekhar . cherukuri
Hi, There is nothing like request.setParameter(). When ever you submit a form (say JSP), all the controls in the form like textbox, checkbox, textarea etc..will be submitted to the Action or Servelt with the names given to them and these values can be retrieved through

Re: how to copy the properties of one Struts form-bean to another?

2005-10-27 Thread starki78
Thank you for your answer! But if you have a shared form bean, would it also be an alternative to have a super class form bean with the shared paramters and the heritaged subclasses? Nice greetings Starky -- Initial Header --- From : Wendy Smoak [EMAIL PROTECTED] To

MockStrutsTestCase problem

2005-10-27 Thread Kanuri, Chand
Hi, i am testing my action class using MockStrutsTestCase. the properties that are threre directly in the form are getting tested properly. but the nested properties(the properties of bean used in action form) are getting failed any ideas? my test case code looks like this public class

Re: MockStrutsTestCase problem

2005-10-27 Thread atta-ur rehman
Hi, what's the exception? does your form class has a method getPb()/setPb() and is it non-null for the current instance of the form? ATTA On 10/27/05, Kanuri, Chand [EMAIL PROTECTED] wrote: Hi, i am testing my action class using MockStrutsTestCase. the properties that are threre directly

Re: how to copy the properties of one Struts form-bean to another?

2005-10-27 Thread atta-ur rehman
Hi Starky, Yes, I'd think that having a common super class for a set of form classes that all have some common fields should be a good idea. Not only you get shared fields but also reset() and validate() can be reused in subclasses, for example. ATTA On 10/27/05, starki78 [EMAIL PROTECTED]

Re: new website look

2005-10-27 Thread Ted Husted
Just to keep things in perspective: The Struts site is not meant to be business-to-consumer. We are geek-to-geek :) The primary purpose of the site is to attract new committers to the project. We don't care about anonymous downloads, or marketshare, or any of that. We care about working together

Re: new website look

2005-10-27 Thread Ted Husted
On 10/26/05, Niall Pemberton [EMAIL PROTECTED] wrote: Personally I'm still in the Struts Classic camp at this point in time, but thats because my day job has 4+ years worth of investment in it and I havem't had time to evaluate the alternatives yet. It wouldn't surprise me to find that at

Re: new website look

2005-10-27 Thread Martin Gainty
Usability Integrators typically will go thru all of a sites features test all links, make sure all backgrounds have uniform color, placement of menus doesnt hop about Use of CSS tags whenever possible and presents the same in all browsers Better to be a pain in the neck than someone who blindly

Re: [OT] Re: How to prevent the login information cached

2005-10-27 Thread info3853 Bush
Thanks for the information. Unfortunately, we did exactly the same as described. The thing is that Window 2000 allows login formation cached. When you use the back button to the point where URL is something like http://xxxDomain/applicationName/logon.do and you refresh the page, windown will ask

Cross Tab Reports with Jasper

2005-10-27 Thread Meenakshi Singh
Hi, Would anybody please tell me : Do Jasper Reports have a support for crosstab reports? if yes, then how do we make a crosstab report with Jasper API? Thanks Regards, Meenakshi. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: How to prevent the login information cached

2005-10-27 Thread info3853 Bush
Hi, Michael, What you suggest works fine. In this way, the URL is changed from login.do to login.jsp. And in jsp, all user information has been reinitialized so user has to provide login information. Thanks, Bush --- Michael Jouravlev [EMAIL PROTECTED] wrote: On 10/26/05, info3853 Bush

Re: Cross Tab Reports with Jasper

2005-10-27 Thread Martin Gainty
Have you looked at net.sf.jasperreports.crosstabs interface available from sourceforge jasperreports? http://jasperreports.sourceforge.net/api/index.html Here is crosstab dataset implementation class (used at design time)

Validator Logic Help Needed

2005-10-27 Thread Jim Reynolds
Using Validator in struts 1.2 Problem: I have a form that has two rows of data: The first column is a radio button and its value is either new or old See mimic form below So the user must select either the new or existing but not both. No big deal. Problem is for each row, there are two columns

how many Form beans

2005-10-27 Thread fea jabi
I am new to web development and struts too. I am trying to create a jsp which has a text field for display only for Name and a Table below it with couple of rows and columns in it. how many form beans do I have to create? Do I have to create one for the jsp and one for the table alone? do

Re: how to copy the properties of one Struts form-bean to another?

2005-10-27 Thread Laurie Harper
And Struts 1.3 will make it much easier to setup your form bean declarations in struts-config.xml when you do this :-) But note that having a shared form bean and having a common parent class don't achieve the same thing. A shared form bean means having a single instance of a particular bean

Re: Validator Logic Help Needed

2005-10-27 Thread Laurie Harper
Jim Reynolds wrote: Using Validator in struts 1.2 Problem: I have a form that has two rows of data: The first column is a radio button and its value is either new or old See mimic form below So the user must select either the new or existing but not both. No big deal. Problem is for each row,

Re: how many Form beans

2005-10-27 Thread Laurie Harper
fea jabi wrote: I am new to web development and struts too. I am trying to create a jsp which has a text field for display only for Name and a Table below it with couple of rows and columns in it. how many form beans do I have to create? Do I have to create one for the jsp and one for the

[Shale] new Clay replacement symbols

2005-10-27 Thread Ryan Wynn
I noticed the new code for the replacement symbols. Gary, I like how you've opened it up to any attribute that is not defined. Great job on this. It seems that the ClayViewHandler will now have to change to accomodate this. I noticed the following problem today. If I have component

Re: Validator Logic Help Needed

2005-10-27 Thread Niall Pemberton
On 10/27/05, Laurie Harper [EMAIL PROTECTED] wrote: There are a couple of validation rules you can look at for this; the first, and older option, is the 'validif' rule. The more modern option is the 'validwhen' option. Unfortunately, I can't see where the validator documentation has moved to

Implementing Wizards

2005-10-27 Thread Ross Gibb
I know this comes up from time to time and yes I have read the previous posts on implementing wizard like interfaces. As a result of previous posts I decided to give Struts Workflow Extension a shot, http://www.livinglogic.de/Struts/. I implemented a simple five screen wizard like interface

Re: new website look

2005-10-27 Thread Adam Hardy
Ted Husted on 27/10/05 14:03, wrote: On 10/26/05, Niall Pemberton [EMAIL PROTECTED] wrote: Personally I'm still in the Struts Classic camp at this point in time, but thats because my day job has 4+ years worth of investment in it and I havem't had time to evaluate the alternatives yet. It

RE: Implementing Wizards

2005-10-27 Thread bsimonin
Hi Ross. I created a User Wizard to add Users to Microsoft Active Directory from Linux. I did look at the Workflow Extensions as a possibility but I found it cumbersome to use and chose to create a Wizard using pure Struts and not the extensions. I have to tell you the Struts knowledge I

RE: Implementing Wizards

2005-10-27 Thread Mark Benussi
Yep +1. I did the same. Implemented my own. I was nervous about using yet another framework, when what I did instead was get a pen and paper and design it from scratch. Yes I had some time to kill (Although not that much) but I learnt a lot, about how users work as well as Struts. Its not

Re: [Shale] new Clay replacement symbols

2005-10-27 Thread Ryan Wynn
I think I may have narrowed down the problem. In org.apache.shale.clay.component.chain.CreateComponentCommand String id = null; if ((id = displayElement.getId()) == null) id = facesContext.getViewRoot().createUniqueId(); UIComponent child = null; if (displayElement.getFacetName() !=

Re: Problems with custom taglibs

2005-10-27 Thread Eric Plante
Well, I do have a jstl.jar in the lib of my project already. From: Laurie Harper [EMAIL PROTECTED] Yes, you need to add the implementation jars to your application classpath. Which version you need to install will depend on your servlet container. This might help you sort out which one

Re: Implementing Wizards

2005-10-27 Thread Michael Jouravlev
On 10/27/05, Ross Gibb [EMAIL PROTECTED] wrote: I know this comes up from time to time and yes I have read the previous posts on implementing wizard like interfaces. As a result of previous posts I decided to give Struts Workflow Extension a shot, http://www.livinglogic.de/Struts/. I

[ot] utility to verify if an Object implements all methods from Interface?

2005-10-27 Thread Mick Knutson
I have some generated Objects that I CANT make implement my given interface, but I would like to run a test at startup time, if the Object has all the methods it is suppose to have? MMS safeway.com made the following annotations.

Re: Problems with custom taglibs

2005-10-27 Thread Wendy Smoak
From: Eric Plante [EMAIL PROTECTED] Well, I do have a jstl.jar in the lib of my project already. Do you also have standard.jar? (Both are in contrib/struts-el/lib of the Struts 1.2.7 distribution.) -- Wendy - To

Re: Problems with custom taglibs

2005-10-27 Thread Eric Plante
I have the one that comes with Exadel studio 3.0 (or eclipse3.1). it is named jstl.jar but I don'T know which version I have. All standard taglibs(bean, html and logic) works fine and core tags are recognized but the variables are seens as common strings and my personnal taglibs don't compile but

Re: Problems with custom taglibs

2005-10-27 Thread Wendy Smoak
From: Eric Plante [EMAIL PROTECTED] I have the one that comes with Exadel studio 3.0 (or eclipse3.1). it is named jstl.jar but I don'T know which version I have. Unzip/unjar it (jar -xvf fileame.jar) or open it with WinZip and look in the META-INF directory for the manifest.mf file. It

Re: how many Form beans

2005-10-27 Thread fea jabi
thankyou for your responses. for my Jsp I created a formbean and for Form1 with attributes name row[] table row in the jsp created another formbean.--- Form2 with attributes type currency amount In the action I created dummy data Form2[] - row[] and set it to the form1 attribute Now

Re: [ot] utility to verify if an Object implements all methods from Interface?

2005-10-27 Thread Frank W. Zammetti
Interesting... why can't you implement the interface? Just curious. Does it implement any other interfaces to build up the method list? If so, you could just do a serious of instanceof's against all the interfaces it implements. Alternatively, you can use reflection to get a list of the

html:base and Tiles

2005-10-27 Thread Laurie Harper
I feel like I should know the answer to this one but I seem to be stumped... How do I get the actual request URI (or URL) in a JSP that's included via Tiles? Both ${pageContext.request.requestURI} and ${pageContext.request.requestURL} are pointing to the Tiles layout JSP, whether or not I

Re: [Shale] new Clay replacement symbols

2005-10-27 Thread Gary VanMatre
Ryan Wynn Wrote: I think I may have narrowed down the problem. In org.apache.shale.clay.component.chain.CreateComponentCommand String id = null; if ((id = displayElement.getId()) == null) id = facesContext.getViewRoot().createUniqueId(); UIComponent child = null; if

Re: how many Form beans

2005-10-27 Thread Laurie Harper
fea jabi wrote: thankyou for your responses. for my Jsp I created a formbean and for Form1 with attributes name row[] table row in the jsp created another formbean.--- Form2 with attributes type currency amount In the action I created dummy data Form2[] - row[] and set it to the

logic:iterate and bean:write not showing when jstl c:out does

2005-10-27 Thread Stephen Souness
Hi all, I am using Struts 1.2.7, under Tomcat 5.0.25. I have a JSP within my struts application which I ultimately want to have output some checkboxes (using html:multibox). Other areas of my application use LabelValueBean with html:multibox and bean:write just fine. However, this

RE: Cross Tab Reports with Jasper

2005-10-27 Thread Meenakshi Singh
Is there a GUI tool available which creates a crosstab report also. Thanks Regards -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, October 27, 2005 8:35 PM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: Cross Tab Reports with Jasper

Re: html:base and Tiles

2005-10-27 Thread Craig McClanahan
On 10/27/05, Laurie Harper [EMAIL PROTECTED] wrote: I feel like I should know the answer to this one but I seem to be stumped... How do I get the actual request URI (or URL) in a JSP that's included via Tiles? Both ${pageContext.request.requestURI} and ${pageContext.request.requestURL} are

Re: [ot] utility to verify if an Object implements all methods from Interface?

2005-10-27 Thread David Evans
I think you could use the java.lang.reflect package classes: Object obj = new Object(); Method[] methods = obj.getClass.getMethods(); Create another test object that does implement all of the interfaces, and then compare the methods array to the array created by the test object's

java.util.Date in Action Form Bean

2005-10-27 Thread Yujun Liang
Hello, I am working on a project using Struts. Struts uses BeanUtil to populate Action Form Bean. This is such a nice framework to work with, except, BeanUtil doesn't support java.util.Date conversion. But when I use java.sql.Timestamp, it asks for the format of -mm-dd hh:mm:ss.f

Struts Validation Rule for Single Java Bean form-property

2005-10-27 Thread Yujun Liang
Hello, I define a single Java Bean Form Bean, do you know how to define the validation rule? Thanks. Regards Yujun Liang [EMAIL PROTECTED] (0408) 467 448 1. Form Bean Definition, form-bean name=myForm type=org.apache.struts.validator.DynaValidatorForm form-property name=mybean

Re: java.util.Date in Action Form Bean

2005-10-27 Thread Murray Collingwood
Hi I add additional getters and setters for handling dates and prices (and other special numeric formats). For example, in addition to the normal getter I code an additional one to retrieve the date as a string. public Date getDateStart() { return dateStart; } public

Re: java.util.Date in Action Form Bean

2005-10-27 Thread Yujun Liang
Murray, Thanks for your reply. I know how to use other methods to handle it, such as putting String property on form bean and convert it to date inside mybean. I am asking whether it is possible for Struts to handle date conversion with Locale automatically, then I can only configure a single

Re: Submit buttons getting their value

2005-10-27 Thread Dakota Jack
Try to stay on topic, Martin. Less heat and more light, please. If you have something enlightening to say, I am sure we all would be interested. Building straw men and torching them is an old trick. I am not talking about the Planet. Although, in this area I don't know a better solution. One

Re: Submit buttons getting their value

2005-10-27 Thread Dakota Jack
By the way, I find your use of a disaster in the course of human affairs to advance your own interests at best creepy. If you don't know the difference between this conversation and Nazism, you are not going to do all that well in social situations. On 10/16/05, Martin Gainty [EMAIL PROTECTED]