RE: [OT] Sending multipart alternative emails (HTML and text)

2004-06-28 Thread Matthias Wessendorf
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:

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Caroline Jen
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

Regarding DynaActionForms

2004-06-28 Thread Ashutosh Satyam
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

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread jthompson
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 <

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Ron Grabowski
> 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

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Caroline Jen
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

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Bill Siggelkow
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

RE: Converting Java Code in JSP to JSTL

2004-06-28 Thread Ricardo Cortes
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

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Eric Schneider
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

[OT] Sending multipart alternative emails (HTML and text)

2004-06-28 Thread Robert Taylor
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

Anyone using JBuilder X with Tiles and the Struts Nightly?

2004-06-28 Thread Joe Hertz
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

Re: NPE iterating over form error messages

2004-06-28 Thread Eric Schneider
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

NPE iterating over form error messages

2004-06-28 Thread Eric Schneider
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.

Video Clip

2004-06-28 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Video Clip

2004-06-28 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: image submit and lookupDispatchAction - drives me struts

2004-06-28 Thread Robert Taylor
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 >

Re: image submit and lookupDispatchAction - drives me struts

2004-06-28 Thread Axel Groß
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

Re: [OT] Anatomy of a long URL

2004-06-28 Thread Guillermo Castro
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

RE: [OT] Anatomy of a long URL

2004-06-28 Thread Robert Taylor
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

Re: Source for Jakarta JSTL 1.0.2

2004-06-28 Thread Nicolas De Loof
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 > > -

RE: Struts on WAS 5.1??

2004-06-28 Thread Pingili, Madhupal
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

R: Source for Jakarta JSTL 1.0.2

2004-06-28 Thread Amleto Di Salle
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

Struts on WAS 5.1??

2004-06-28 Thread Smith, Johnathan M.
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

OT: Source for Jakarta JSTL 1.0.2

2004-06-28 Thread Derek Richardson
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

Re: [OT] Anatomy of a long URL

2004-06-28 Thread Bryan Hunt
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

RE: [OT] Anatomy of a long URL

2004-06-28 Thread Daniel Perry
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

Re: multiple submit buttons/one form

2004-06-28 Thread Michael McGrady
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...

Re: How to populate fields in a form with data retrieved from a database table...

2004-06-28 Thread Joe Germuska
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

RE: [OT] Anatomy of a long URL

2004-06-28 Thread Hookom, Jacob
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

Re: [OT] Anatomy of a long URL

2004-06-28 Thread Rick Reumann
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

RE: [OT] Anatomy of a long URL

2004-06-28 Thread Robert Taylor
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' >

RE: [OT] Anatomy of a long URL

2004-06-28 Thread Hookom, Jacob
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

[OT] Anatomy of a long URL

2004-06-28 Thread Robert Taylor
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

Re: using set-property in forward tag

2004-06-28 Thread Bill Siggelkow
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

RE: Is there anyway an Action can dynamically return to a page based on input?

2004-06-28 Thread brati . sankarghosh
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

Re: using set-property in forward tag

2004-06-28 Thread nikhil walvekar
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

Re: How to populate fields in a form with data retrieved from a database table...

2004-06-28 Thread Bill Siggelkow
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

Re: Is it possible to reuse the same FormBean with different actions?

2004-06-28 Thread Asif Rahman
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

Re: RE : Struts, XDoclet, and Maven...

2004-06-28 Thread Bryan Hunt
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

Re: EJB + Struts + Hibernate

2004-06-28 Thread Bryan Hunt
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

RE: Is there anyway an Action can dynamically return to a page based on input?

2004-06-28 Thread biswajit . basak
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

How to populate fields in a form with data retrieved from a database table...

2004-06-28 Thread Research labs
//***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***

Re: using set-property in forward tag

2004-06-28 Thread Bill Siggelkow
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

RE: RE : Struts, XDoclet, and Maven...

2004-06-28 Thread Matthew Ryan
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

How to populate fields in a form with data retrieved from a database table...

2004-06-28 Thread Research labs
//***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***

Re: RE : Struts, XDoclet, and Maven...

2004-06-28 Thread Rick Reumann
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

RE: Is there anyway an Action can dynamically return to a page based on input?

2004-06-28 Thread brati . sankarghosh
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

RE: Is there anyway an Action can dynamically return to a page based on input?

2004-06-28 Thread Guillermo Meyer
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

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Axel Groß
> >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

Re: multiple submit buttons/one form

2004-06-28 Thread Axel Groß
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 > >

Re: EJB + Struts + Hibernate

2004-06-28 Thread Mark Lowe
+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

Re: EJB + Struts + Hibernate

2004-06-28 Thread salgado.pc
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

RE: RE : Struts, XDoclet, and Maven...

2004-06-28 Thread Marco Mistroni
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

RE: EJB + Struts + Hibernate

2004-06-28 Thread Marco Mistroni
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

Re: EJB + Struts + Hibernate

2004-06-28 Thread Mark Lowe
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