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
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);
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
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.
__
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo