[ANN] Mail Reader sample application implemented with Struts Action Framework + JSP Controls Tag Library

2006-06-18 Thread Michael Jouravlev
JSP Controls Tag Library version 0.6.2 includes yet another implementation of venerable Mail Reader sample application. Struts Framework is used to obtain and process input data and for business/persistence services. JSP Controls Tag Library is used to implement portlet-like components on one web

Re: want javamail debug help

2006-06-18 Thread Patil, Sheetal
properties.put ("mail.smtp.host","smtp host name); properties.put("mail.debug", "true"); auth a=new auth (); Session session = Session.getDefaultInstance (properties,null); MimeMessage message = new MimeMessage (session);

want javamail debug help

2006-06-18 Thread Patil, Sheetal
Hello friends, I am trying to send email from my application but I am not able to. So I set debug=true and get following debug. I am having exception "javax.mail.NoSuchProviderException: Invalid protocol: null" . Can u please describe me this debugs. DEBUG: JavaMail version 1.4ea DEBUG: java.io.Fi

Re: Checkling Security

2006-06-18 Thread Richard Yee
I'd suggest doing it in a filter or a base Action class. -Richard chamal desilva wrote: Hi, How should we test wether a user has permission for an action. Can we do it in action class or do we have to do it in EJB tier. Thanking You, Chamal. __

Re: Checkling Security

2006-06-18 Thread Paul Benedict
Struts action mappings also contain a role attribute. This role is checked against HttpServletRequest.isUserInRole. Adam Samere <[EMAIL PROTECTED]> wrote: You can use the standard Servlet authorization/authentication mechanism, or use a Servlet filter, or use a custom ActionMappings class or co

Re: Checkling Security

2006-06-18 Thread Adam Samere
You can use the standard Servlet authorization/authentication mechanism, or use a Servlet filter, or use a custom ActionMappings class or common base Action subclass if you're bent on handling it within Struts. -Adam chamal desilva wrote: Hi, How should we test wether a user has permission f

Checkling Security

2006-06-18 Thread chamal desilva
Hi, How should we test wether a user has permission for an action. Can we do it in action class or do we have to do it in EJB tier. Thanking You, Chamal. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail

Re: How to set size of submit button

2006-06-18 Thread Frank W. Zammetti
Hehe, looks like Adam saved us both the trouble :) I guess I didn't realize everything was derived from Element, I thought that was just what you got back via DOM access (can't say I ever actually thought about it, but I don't think I would have known that even if I did). Frank Eddie Bush wr

Re: How to set size of submit button

2006-06-18 Thread Frank W. Zammetti
Cool, I wasn't aware of that. Thanks Adam, that will come in very handy indeed! :) Frank Adam Samere wrote: Frank and Eddie are right about not being able to read the css property unless you have set it ahead of time. The javascript Element Object (from which buttons etc are derived) has pro

Re: How to set size of submit button

2006-06-18 Thread Adam Samere
Frank and Eddie are right about not being able to read the css property unless you have set it ahead of time. The javascript Element Object (from which buttons etc are derived) has properties called clientWidth and clientHeight. This will give you the width and height of the element in pixels a

Re: How to set size of submit button

2006-06-18 Thread Eddie Bush
Frank, I don't think you could extract the width from the control's style unless you'd set it. I'd have to agree with you on that one. Isn't there a property on the control (width?) you could determine the width from? Maybe I answered too quick and should have done some research first. I w

Re: How to set size of submit button

2006-06-18 Thread Frank W. Zammetti
Would that even work Eddie? I seem to remember that if you didn't explicitly set the width of an element yourself, you can't retrieve it. Indeed, this quick test: ...results in a blank alert in both IE and FF. This only matters of course if you have to make all the buttons the same wi

Re: How to set size of submit button

2006-06-18 Thread Eddie Bush
Generally, what I will do to accomplish this is to use CSS. You can either use incline styles in the "style" attribute, or you could specify a style class with the styleClass attribute. It would necessarily take a more contrived solution if you weren't able to arrive at a fixed width for all

Re: How to set size of submit button

2006-06-18 Thread Richard Yee
My appologies. Please disregard. user@struts.apache.org is correct. -Richard Yee, Richard K CTR DMDC wrote: Pankaj, You are sending this to the wrong address. You should be sending it to struts-user@jakarta.apache.org -Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAI

RE: How to set size of submit button

2006-06-18 Thread Yee, Richard K CTR DMDC
Pankaj, You are sending this to the wrong address. You should be sending it to struts-user@jakarta.apache.org -Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, June 18, 2006 11:11 AM To: user@struts.apache.org> Subject: How to set size of submit

Re: How to set size of submit button

2006-06-18 Thread Frank W. Zammetti
Hi Pankaj, In the of your page (or via import): .cssSubmitButtons { width : 100px; height : 20px; } ... You can make the heights all the same this way too, or just remove that attribute from the style selector. Alternatively, you can use the style attribute of the tag to

How to set size of submit button

2006-06-18 Thread pankaj . gupta
I am using html:submit for creating 4 sumit buttons. The requirement is to make them of same size. can anyone suggest how to do that? regards, Pankaj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: jsp:setProperty puzzlement

2006-06-18 Thread Don Vawter
Figured it out. The setProperty tag is ignored when inside a useBean tag if the bean has already been instantiated. On Jun 18, 2006, at 7:38 AM, Don Vawter wrote: I am trying to set a property using setProperty. The method works if the property doesn't already exist but if the property is

Re: BeanUtils, Form Bean and POJO Bean

2006-06-18 Thread Paul Benedict
And to Rick's note, I should mention I never use copyProperties.. I "can" if I was insane enough :o) Rick Reumann <[EMAIL PROTECTED]> wrote: Paul Benedict wrote: > I can use the copyProperties() method of the BeanUtils > to convert all the String(s) read from the web page to > proper Java "type

Re: BeanUtils, Form Bean and POJO Bean

2006-06-18 Thread Rick Reumann
Paul Benedict wrote: I can use the copyProperties() method of the BeanUtils to convert all the String(s) read from the web page to proper Java "types" in my form bean. Just be weary though, that BeanUtils can really by a major PAIN when you have domain objects that have number wrapper data ty

jsp:setProperty puzzlement

2006-06-18 Thread Don Vawter
I am trying to set a property using setProperty. The method works if the property doesn't already exist but if the property is already defined (subsequent page hits) it fails to update the property. Here is the snippet: scope="session" > The current active link is:<%=menu%> <%=d%> The curr

RE: BeanUtils, Form Bean and POJO Bean

2006-06-18 Thread Joe Hertz
For starters, you should generally be using String properties in your form bean because this is what the JSP sends to you. If you declare an integer in your form bean, and the user enters character data into the text field, youre going to get an exception thrown before you (or the validator) ever g