Robert,
perhaps you may look at:
http://jakarta.apache.org/commons/sandbox/email/
there is allready an implemented multipartemail.clazz
i used them successfully in my application. they are
easy to use, you are *free* from the java-mail-api
Cheers,
matthias
> -Original Message-
> From:
I pass an object ThreadBean from an action servlet in
a request scope:
request.setAttribute( "ThreadBean", threadBean );
In my JSP, there is no problem and everything works
well if I use scripting element:
<%
ThreadBean threadBean = ( ThreadBean
)request.getAttribute( "ThreadBean" );
%>
I then
Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone
explain how this could be used in conjunction with available struts
tag library to populate the beans?
For simplicity, consider a simple application, which stores User
You could use:
Click Me
Threads:
Thanks for all the supports and help that I have
received so far on this topic.
I have another question about the converstion of Java
code:
Click Me
<%else {%>
Threads:
<%}%>
1. what is the JSTL equivalent of the <
> 1. what is the JSTL equivalent of the <%else {%> ...
> <%}%> tag?
The c:choose, c:when, and c:otherwise tags:
http://tinyurl.com/2kqlz
> 2. how to write a tag to replace the
> tag while passing a number of
> parameters?
You could do this:
Click Me
Depending on how you
Thanks for all the supports and help that I have
received so far on this topic.
I have another question about the converstion of Java
code:
Click Me
<%else {%>
Threads:
<%}%>
1. what is the JSTL equivalent of the <%else {%> ...
<%}%> tag?
2. how to write a tag to replace the
t
You cannot call static methods with JSTL 1.0. The simplest option is to
create a JavaBean that you place in some application scope that wraps
the static method call with a normal JavaBean getter instance method.
That being said, if you truly are formatting stuff then use the JSTL
formatting tag
Have you looked at the format library for these kinds of situations?
Example:
-Original Message-
From: Eric Schneider [mailto:[EMAIL PROTECTED]
Sent: Monday, June 28, 2004 5:34 PM
To: Struts Users Mailing List
Subject: Re: Converting Java Code in JSP to JSTL
Can you use the JST
Can you use the JSTL tags to call static API?
Something like this:
Is this possible?
Thanks,
Eric
On Jun 26, 2004, at 5:48 AM, Pedro Salgado wrote:
On 04/06/26 1:33, "Michael McGrady" <[EMAIL PROTECTED]> wrote:
Looks like a test, Caroline!
At 05:20 PM 6/25/2004, Caroline Jen wrote:
I was told that
I've been tasked with sending out emails which contain both HTML and text.
I have successfully implemented this and tested it in Outlook 2000, 2002, 2003,
Outlook Express and various web email clients (Yahoo, Hotmail, etc...).
The problem I have is that some users, get the emails
with a message
I hate IDEs. Really I do.
My struts app launches fine under JB8. Under JBX, it cannot make it out
of Servlet.init().
Of note is that it gets through init() if I remove the tiles Plugin from
Struts-Config.
(FWIW, changing the IDE also changed Tomcat 4.1.12LE to 4.1.27LE)
Anyone fought this parti
Oops. Figured it out. I was putting a string literal in the
ActionError constructor instead of message resource references.
Sorry for the noise.
Thanks,
Eric
On Jun 28, 2004, at 2:00 PM, Eric Schneider wrote:
Hi,
I'm getting a error that I'm a bit confused about. I believe I'm
doing everyth
Hi,
I'm getting a error that I'm a bit confused about. I believe I'm doing
everything properly. A NullPointerException is thrown (trace pasted
below) when using the tag. Here's what I've done step
by step.
In my form bean, I have a validate method that creates a list of
ActionErrors.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This may help:
http://issues.apache.org/bugzilla/show_bug.cgi?id=19925
robert
> -Original Message-
> From: Axel Groß [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 28, 2004 11:52 AM
> To: Struts Users Mailing List
> Subject: Re: image submit and lookupDispatchAction - drives me struts
>
Hi Wendy thanks for the reply and the link!
But unfortunately i can't see how to implement those solutions to my
problem (which I didn't describe elaborate enought)
My button names are of dynamic nature like
DELETE_PROPERTY 'firstname'
(here firstname is the key of the property to delete)
so I
Well, even though they may not include your client session, it does
include information about you (username) and other stuff, that will
identify who's downloading what.
For many application servers, long URLs usually are part of the
identification process, like session id and stuff. For many java
Daniel, thanks for the reply.
You pretty much confirmed my own assumptions.
robert
> -Original Message-
> From: Daniel Perry [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 28, 2004 10:58 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] Anatomy of a long URL
>
>
> I dont think t
Can't you check it out from apache CVS ?
tag for 1.0.2 is "standard-102"
> I'm looking for the source distribution for the Jakarta Standard taglib
> v1.0.2. I am unable to find it archived on the Jakarta website. Can
> anyone point me to a copy?
>
> Thanks,
>
> Derek Richardson
>
> -
If you create EAR file with J2EE 1.2 (servlet 2.2) support level,
and deploy that on to WAS 5.1, you will get these errors.
Try creating EAR file with J2EE 1.3 level and deploy that on WAS 5.1.
I did the same and got rid of the error.
Reddy Pingili
> -Original Message-
> From: Smith
Hi,
you can use the following mirror
ftp://sunsite.cnlab-switch.ch/mirror/apache/dist/jakarta/taglibs/standar
d-1.0/source/
BR
/Amleto
-Messaggio originale-
Da: Derek Richardson [mailto:[EMAIL PROTECTED]
Inviato: lunedì 28 giugno 2004 17.13
A: Struts Users Mailing List
Oggetto: OT: Sou
I can getting the following error with Struts using WAS 5.1 can anyone
help?? I am using DB2
java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3
servlet
Please do not transmit orders or instructions regarding a UBS account by
email. The information provided in this email or
I'm looking for the source distribution for the Jakarta Standard taglib
v1.0.2. I am unable to find it archived on the Jakarta website. Can
anyone point me to a copy?
Thanks,
Derek Richardson
-
To unsubscribe, e-mail: [EMAIL PRO
I know that the sun link does not authenticate your current client session.
I know that because I wanted to download the JDK for linux.
I wanted to download it directly to the server but they have that stupid
web page based download.
I got the whole url, ssh'd into my server and used wget to downlo
I dont think there is any information out there of the type you're
requesting (it's not really a 'pattern').
Long URLs are long because there is a lot of information to transfer.
The big long codes given in urls are often are often hashes (eg session
id!). These are made long so that it's hard t
Try:
http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript
At 03:19 AM 6/28/2004, Axel Groß wrote:
just don't forget to keep the messages unique per form
had once delete property and delete main entries in one form, so the message
shouldn't be 'delete' for both of them...
At 1:36 PM +0100 6/28/04, Research labs wrote:
//***Please note that I am using DispatchAction not
Action***
Please tell me how to populate fields in a form with
data retrieved from a database table.
Please note that I am particular about how to do this
using Struts tags etc.
Are you saying that yo
Not if it's a POST.
Example, we had a page that allowed you to modify multiple items at once in
a list and submit them via a GET. This worked fine in testing. As
customers started to use the app, their list of items got very large and the
data submitted got much larger-- a much longer URL being
Hookom, Jacob wrote:
Another example is JSF. JSF allows you to store your state client side or
server side. If it's client side, your buttons, etc become POSTs instead of
GETs in order to get around the URL length limit. Also, hidden fields are
written out with your objects serialized into a str
Thanks Jacob,
are there any articles, books, use cases, etc... on when/why/how you would have to
design
an application in this manner?
robert
> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 28, 2004 10:06 AM
> To: 'Struts Users Mailing List'
>
It all kind of depends... most of the content is pregenerated such as in
Amazon. Amazon uses what is called the ART1 algorithm to categorize users.
These categories (java geek, linux guru, etc) are pre-generated web sites,
created by some application they have in house (hence the cryptic url).
So
I'm not sure the subject of this email is indicative of my question, but I have always
wondered why amazon, sun, and some financial
institutions,
use long URL's for invoking actions. My only guess, since I've only worked at small
companies where all the applications pretty much
run on
one machine
Then just add it on to the ActionForward returned from the Action ...
You can use the following method to do this:
protected ActionForward appendParam( String name,
String value,
ActionForward forward) {
StringBuffer path = new
No if you are creating a new ActionForward
object you can do without puting it in struts-config.xml
Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
[EMAIL PROTECTED]
06/28/2004 06:23 PM
Please respond to
"Struts Users Mailing List" <[EM
Hi,
But my value will be dynamic in nature.
Nikhil
--- Bill Siggelkow <[EMAIL PROTECTED]> wrote: >
Hi Nikhil,
>It sounds like what you really want to do is set
> add a request
> parameter name-value pair to the query string of the
> URL. If so, then
> you can add these values directly i
Dear Mr Labs:
Perhaps you do a little more "research"? Seriously, I am not sure what
problem you are having. I suggest you use the classic DAO (data access
object) pattern to encapsulate your database access. Have the DAO return
a Customer business object. You can then populate your CustomerFor
Thanks!
- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "Asif Rahman"
<[EMAIL PROTECTED]>
Sent: Friday, June 25, 2004 4:21 PM
Subject: RE: Is it possible to reuse the same FormBean with different
actions?
> Use differen
I second that !
--b
Navjot Singh wrote:
i agree with rick here.
I also tried using struts-config.xml using xdoclet. In the end it
turns out to be a futile exercise. Moreover, using modules makes
working with xdoclet more cumbersome. It's EASY to write the config
yourself.
Some may say that
Spring is ultra cool. The most usefull thing that I'm doing with it is
using it's built in hibernate support rather than creating
and having to manage my own session factory code. It also allows u to
manage your transactions in the xml config file
and use aspect oriented programming for stuff li
But I guess there should be an entry
in Struts config for that path .
Biswajit Basak
Tata Consultancy Services
Plot B-1, Block EP & GP
Sector - V, Salt Lake Electronics Complex
Kolkata - 700 091,West Bengal
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
[EMAIL PROTECTED]
06/28
//***Please note that I am using DispatchAction not
Action***
Please tell me how to populate fields in a form with
data retrieved from a database table.
Please note that I am particular about how to do this
using Struts tags etc.
//***Please also note that I am using DispatchAction
not Action***
Hi Nikhil,
It sounds like what you really want to do is set add a request
parameter name-value pair to the query string of the URL. If so, then
you can add these values directly in the definition of the foward and
still set redirect = "true" ... The example below passes two parameters
to Act
I wouldn't argue against the points Rick is making, particularly the benefit
of central place for configuration information as opposed to marking it out
all over the shop. I will throw one thing out there though. When you have
lots of Action Mappings and subsequent Action classes that are in a stat
//***Please note that I am using DispatchAction not
Action***
Please tell me how to populate fields in a form with
data retrieved from a database table.
Please note that I am particular about how to do this
using Struts tags etc.
//***Please also note that I am using DispatchAction
not Action***
Marco Mistroni wrote:
I m doing it coz I m lazy and I prefer that someone else
Generates configuration files for me..
But what aspect of configuration is it saving you time with? You still
have to code all the parameters for your action mapping in the Action
class, so what's the difference time-w
I guess you can try instantiting a new
ActionForward object with the path where you want to go to.
new ActionForward();
Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
"Guillermo Meyer"
<[EMAIL PROTECTED]>
06/28/2004 07:52 AM
Please r
You are needing something like a "navigation stack", doesn't you?
If so, let me know. We are working in an open source non intrusive
struts solution of a navigation stack.
Cheers.
Guillermo.
-Original Message-
From: Pietro Dansk [mailto:[EMAIL PROTECTED]
Sent: Viernes, 25 de Junio de 200
> >9. if ( prevArticle != null ) && ( !article.equals(
> >prevArticle ) ) {}
>
>
think, this is slightly different; the EL expression will be false
for prevArticle=="" (java syntax)
in EL you don't have to take care that prevArticle is not null to prevent a
runtimeException.
So if it aligns wi
just don't forget to keep the messages unique per form
had once delete property and delete main entries in one form, so the message
shouldn't be 'delete' for both of them...
ciao,
Axel
On 2004-06-28 at 14:56:32 +1200, [EMAIL PROTECTED] wrote:
> There is a nice solution described here
>
>
+1
If your interfaces are in place you can pretty much change the
persistence layer to whatever you like very quickly.
I'll check ibatis 2 out if it does mean editing lots of xml files :o)
On 28 Jun 2004, at 10:54, <[EMAIL PROTECTED]> wrote:
On 04/06/28 8:55, "Mark Lowe" <[EMAIL PROTECTED]> wrote
On 04/06/28 8:55, "Mark Lowe" <[EMAIL PROTECTED]> wrote:
> The only thing thats stopped me using ibatis is that there's no
> xdoclet template thus the need to edit and maintain a bunch of mapping
> files, "YAWN".
>
iBatis has the DAO framework so you could switch from persistence
layer
with rel
Hello,
Well, I agree with u, but it depends on how u generate
The struts-config and other config files..
U can still write ur own action-mapping file and make xdoclet
Merge it (I m doing it for action-forms for example)...
I m doing it coz I m lazy and I prefer that someone else
Generates
Hi,
I have. but I m not using EJB on top...just straight
Hibernate
Frankly, it depends on your type of app...
For example, If u want to use the session façade, you will have
A session EJB that hides the entity EJB. If u r not happy using entity
EJB,
U would replace entity code with hib
The only thing thats stopped me using ibatis is that there's no xdoclet
template thus the need to edit and maintain a bunch of mapping files,
"YAWN".
Mark
On 28 Jun 2004, at 02:11, Vic Cekvenich wrote:
EJB is heavy, therefore slow and less scaleable. So in order to
support a heavy transaction l
55 matches
Mail list logo