Re: Suggestion needed on good Struts book

2004-03-09 Thread Ed Robbins
I have to second Dave's opinion.  I have Strings In Action, Mastering 
Jakarta Struts, Mastering Jakarta Struts and JSP Site Design.  The book 
I turn to again and again is Struts In Action.  What I truly like about 
Ted's book, beside the fact that I won a free copy from him, is that he 
goes into a lot of design theory.  For instance, he talks about how the 
Action classes become a firewall to your web application.  It's little 
things like that which sets it apart from the rest.

Ed
David Evans wrote:
I have both the O'Reilly and Struts in Action. I think the O'Reilly book
is better when you're first starting out, it's overview presentation was
easier to understand for me. But the Struts in Action book really goes
into a lot greater depth about the possibilities form using the tools
Struts provides. 

For example, how do you get the data in an ActionForm into your business
objects? Struts in Action lists 8 different approaches, pros and cons,
etc. The O'Reilly book presents a single approach.
If you just wanna get it done the O'Reilly book is a faster way. If
you want to understand the many possible ways to do it, i think the
Struts in Action is alot better.
dave

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:link, display problems

2003-11-27 Thread Ed Robbins
Do you have a base element in the html?  Try adding a html:base 
http://jakarta.apache.org/struts/userGuide/struts-html.html#base

Ed

Mathieu Grimault wrote:

Hi everyone !

   My application is very simple and has 3 screens. The display on all screens is right. I would like to use a html:link to return from my 3rd screen to the second. The link is correct but the display is wrong : all my pics are not displayed. I've seen the source generated and the paths are right. Is this an IE problem ? Have you a solution ?

My environment : 
Windows XP - IE 6.0
Struts 1.1 - JDK 1.4 - Tomcat 4

Snipets from my sources :
An image that must be displayed : img src=pics/loupe.gif
The link : html:link href=jsp/menu.jsp Retour/html:link



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: .do as welcome-file

2003-09-23 Thread Ed Robbins
I like to do it with a filter.  I can accomplish several things with it, 
tighter security, I prevent someone from calling any of my jsp's 
directly and I can then have the welcome page be an action.

Ed

Mainguy, Mike wrote:

This is actually the way I do it.

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2003 9:58 AM
To: 'Struts Users Mailing List'
Subject: RE: .do as welcome-file

I guess it's all the same as long as it works.  You solution might be
simpler actually no web.xml configs for the servlet
-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:52 AM
To: Struts Users Mailing List
Subject: Re: .do as welcome-file
I usually just put s/th like this in my index.jsp

jsp:forward page=/main.do /

and that's it. Whats the possible advantage
of using a redirect or other solutions that
also require a physical file in the root dir?
-- Chris

- Original Message -
From: Menke, John [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 3:28 PM
Subject: RE: .do as welcome-file
 

Here's a trick to get an action to execute as home page in your webapp 
without having to do the jsp redirect.

Put a file called webapp.launch in the root directory of your webapp

Then configure these settings in your web.xml

servlet
   servlet-nameredirector/servlet-name
   servlet-classyourpackage.Redirector/servlet-class
/servlet
servlet-mapping
   servlet-nameredirector/servlet-name
   url-pattern*.launch/url-pattern
/servlet-mapping
package yourpackage;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
/**
*  Redirector to start application on browse to root url
*
*/
public class Redirector extends HttpServlet {
   /**
*  Stub method
*/
   public void destroy() {
   }
   /**
*  Forward the user to start page of webapp
*
[EMAIL PROTECTED]  request
[EMAIL PROTECTED]  response
[EMAIL PROTECTED]  ServletException
[EMAIL PROTECTED]  IOException
*/
   public void doGet(HttpServletRequest request, HttpServletResponse
response)
 throws ServletException, IOException {
   response.sendRedirect(home.do);
   }

   /**
*  Description of the Method
*/
   public void init() throws ServletException {
   }
}
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:05 AM
To: Struts Users Mailing List
Subject: Re: .do as welcome-file
I can confirm that this hack works for tomcat. Create the dummy file 
start/start.do and tomcat will be happy, and you will still get the 
actual struts mapping.

On 09/23/2003 02:06 PM Mainguy, Mike wrote:
   

I haven't tried it, but I've been told that, in tomcat, if you 
create a
 

file
   

with that exact name it will work properly.  Evidently you cannot
 

specify
 

a
   

servlet path as a welcome file.

-Original Message-
From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 7:00 AM
To: [EMAIL PROTECTED]
Subject: .do as welcome-file
Does anyone has figured out how to do this?

welcome-file-list welcome-file/start/start.do/welcome-file
/welcome-file-list
I am not able to make it work.

TIA,

Adolfo.

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message and its contents (to include attachments) are the 
property
 

of
 

Kmart Corporation (Kmart) and may contain confidential and proprietary 
information. You are hereby notified that any disclosure, copying, or 
distribution of this message, or the taking of any action based on 
information contained herein is strictly prohibited. Unauthorized use 
of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you
   

should
 

delete this message immediately.
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
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]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: how old is struts

2003-02-21 Thread Ed Robbins
Yeah but thats in Can, do the conversion and it's what 1 - 1 1/2 years!
:)

Cmon, I'm surprised no one else threw that joke out yet.

Ed

On Fri, 2003-02-21 at 16:43, [EMAIL PROTECTED] wrote:
 I asked this question is because there is a funny recruitment ad from a
 major Canadian bank hiring some one with 2 - 3 years experience of struts.
 
 Regards,
  
 
 PQ
  
 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing
 
 -Original Message-
 From: Trieu, Danny [mailto:[EMAIL PROTECTED] 
 Sent: February 21, 2003 4:40 PM
 To: 'Struts Users Mailing List'
 Subject: RE: how old is struts
 
 I started looking into Struts about 2yrs ago, and it was about 6mons old
 since Craig donated it.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 21, 2003 1:34 PM
 To: [EMAIL PROTECTED]
 Subject: how old is struts
 
 
 Craig,
 
  
 
 Since you are one of the developers of struts, can you tell me how old is
 this project?
 
  
 
 
 
 Regards,
 
  
 
 
 
 
 
 PQ
 
  
 
 This Guy Thinks He Knows Everything
 
 This Guy Thinks He Knows What He Is Doing
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Ed Robbins [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: how to handle method not found in DispatchAction

2003-02-03 Thread Ed Robbins
If it's running in a 2.3 container a filter might do it.  I had a very
similar problem and wrote a filter mapping a particular call, I check
for the parameter and if not there redirect elsewhere to be handled.

Ed

On Mon, 2003-02-03 at 15:17, Wendy Smoak wrote:
 Larry wrote:
  You should override the method unspecified. Check out the 
  DispatchAction Java doc
 
 Thanks!  That will fix my problem, but not Ashish's.  He's apparently got
 people sending requests that contain a parameter value for which there is no
 mapping.  Any help there, or is my guess okay?
 
 if ( !getKeyMethodMap.containsKey( request.getParameter(
 mapping.getParameter() ) ) { ... }
 
 -- 
 Wendy Smoak



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Multiple rows from a result set.

2003-01-22 Thread Ed Robbins
Create a bean representing each row returned, put them in a collection
in the form bean and then use the logic:iterate tag to populate the
page.


Ed
On Wed, 2003-01-22 at 20:56, Peng Tuck Kwok wrote:
 How do I present multiple rows from a sql query in struts ? Let's say I 
 have a list of customers from that table and I want to display it on the 
 page. Does the action form have to return a collection of beans for this ?
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ed Robbins [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]