RE: Hot deploying struts application

2006-12-14 Thread George.Dinwiddie
Yes, I'm using Tiles.  I've just got the Auto Update Interval set for
3000 milliseconds ("Configuration | Applications" on the WL console) and
I drop the war file into the incoming directory.  The appserver explodes
them and restarts the application.  Over time, it loses memory and I
have to restart the server.

>From your error message, it looks like Weblogic is replacing the
TilesRequestProcessor class but not initializing it.  I've had trouble
with WL deserializing classes that shouldn't be serialized as a shortcut
to reloading them.

 - George

> -Original Message-
> From: Harish Kumar [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 13, 2006 11:58 PM
> To: Struts Users Mailing List
> Subject: Re: Hot deploying struts application
> 
> 
> hi,
> Can you tell me whts the procedure for doing it, am doing 
> deployement using exploded archieve. Am using Tiles in my 
> application. Do you also use it? Dont you do restarting  of 
> server at all ?
> 
> thanks,
> Harish
> 
> 
> On 12/13/06, [EMAIL PROTECTED] < 
> [EMAIL PROTECTED]> wrote:
> >
> > I'm successfully hot-deploying war files to WebLogic 8.1
> >
> > > -Original Message-
> > > From: Harish Kumar [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, December 13, 2006 1:54 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: Hot deploying struts application
> > >
> > >
> > > hi,
> > > Thanks for the reply.But sorry to say my question is still not 
> > > answered. Am working with weblogic and am getting NullPointer 
> > > exception in TilesRequestProcessor.Is there anyway to 
> overcome this. 
> > > The classes are getting deployed and its carried on well 
> i have no 
> > > issues on that, but when the action compiles and comes to 
> the JSP, 
> > > its searching for Tiles or something and throwing the 
> exception, i 
> > > have also include the reload/view functionality of Tiles advanced 
> > > features.But am still facing the problem.
> > >
> > > thanks,
> > > Harish
> > >
> > >
> > > On 12/13/06, nagesh.kumar 
> <[EMAIL PROTECTED]> 
> > > wrote:
> > > >
> > > > Set the tomcat home flder in the system environment variables
> > > >
> > > > Then  tomcat  starts working fine from out side
> > > >
> > > > U can try this
> > > >
> > > > Thanks
> > > > Nagesh
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] 
> > > > [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, December 13, 2006 11:43 AM
> > > > To: user@struts.apache.org
> > > > Subject: RE: Hot deploying struts application
> > > >
> > > >
> > > > Hi
> > > >
> > > > I just strugled with this problem with MyEclipse, Tomcat 5.5
> > > > environment:
> > > >
> > > > 1. Install Tomcat as desired.
> > > >
> > > > 2. Configure your project to MyEclipse as "Exploded" project.
> > > >
> > > > 3. Start tomcat inside MyEclipse.  (Started outside don't work)
> > > >
> > > > 4. Changes to implementation should reflect immedeatly 
> to running 
> > > > tomcat-app. Tomcat log doesn't show this hot deployment but
> > > it seems
> > > > to work when you test.
> > > >
> > > > /S
> > > >
> > > > -Original Message-
> > > > From: Harish Kumar [mailto:[EMAIL PROTECTED]
> > > > Sent: 13. joulukuuta 2006 8:07
> > > > To: Struts Users Mailing List
> > > > Subject: Hot deploying struts application
> > > >
> > > > hi,
> > > >
> > > > I have a struts project, i want to know whether hot
> > > deployment of the
> > > > application is possible? I tried doing it but without 
> much luck, i 
> > > > need to restart my server everytime i do make changes 
> in the class 
> > > > files. My working environment is MyEclipse, weblogic 
> 8.1, in the 
> > > > application am using Tiles. Iam facing the exception 
> mainly from 
> > > > TilesRequestProcessor. Can anyone help me solving this issue.
> > > >
> > > >
> > > > thanks in advance,
> > > > Harish
> > > >
> > > > --
> > > > The grain of rice on your table does not tell the grim 
> tale of the 
> > > > toil that grew it.
> > > >
> > > >
> > > 
> 
> > > -
> > > > 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]
> > > >
> > > >
> > >
> > >
> > > --
> > > The grain of rice on your table does not tell the grim 
> tale of the 
> > > toil that grew it.
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> The grain of rice on your table does not tell the grim tale 
> of the toil that grew it.
> 

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

[OT] RE: log4j configurations?

2006-12-13 Thread George.Dinwiddie
Where do your class files go?

> -Original Message-
> From: Mallik [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 13, 2006 7:04 AM
> To: user@struts.apache.org
> Subject: log4j configurations?
> 
> 
> 
> Hi friends 
> i am working on struts in Exadel studio
> i am getting the error:
> --
> log4j:WARN No appenders could be found for logger 
> (org.apache.commons.beanutils.ConvertUtils).
> log4j:WARN Please initialize the log4j system properly.
> 
> --
> -
> i go through google and every where saying that add 
> log4j.properties to classpath but i don't know how to add to 
> classpath in exadel studio 
> please let me know how to overcome this problem

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



RE: Hot deploying struts application

2006-12-13 Thread George.Dinwiddie
I'm successfully hot-deploying war files to WebLogic 8.1

> -Original Message-
> From: Harish Kumar [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 13, 2006 1:54 AM
> To: Struts Users Mailing List
> Subject: Re: Hot deploying struts application
> 
> 
> hi,
> Thanks for the reply.But sorry to say my question is still 
> not answered. Am working with weblogic and am getting 
> NullPointer exception in TilesRequestProcessor.Is there 
> anyway to overcome this. The classes are getting deployed and 
> its carried on well i have no issues on that, but when the 
> action compiles and comes to the JSP, its searching for Tiles 
> or something and throwing the exception, i have also include 
> the reload/view functionality of Tiles advanced features.But 
> am still facing the problem.
> 
> thanks,
> Harish
> 
> 
> On 12/13/06, nagesh.kumar 
> <[EMAIL PROTECTED]> wrote:
> >
> > Set the tomcat home flder in the system environment variables
> >
> > Then  tomcat  starts working fine from out side
> >
> > U can try this
> >
> > Thanks
> > Nagesh
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 13, 2006 11:43 AM
> > To: user@struts.apache.org
> > Subject: RE: Hot deploying struts application
> >
> >
> > Hi
> >
> > I just strugled with this problem with MyEclipse, Tomcat 5.5
> > environment:
> >
> > 1. Install Tomcat as desired.
> >
> > 2. Configure your project to MyEclipse as "Exploded" project.
> >
> > 3. Start tomcat inside MyEclipse.  (Started outside don't work)
> >
> > 4. Changes to implementation should reflect immedeatly to running 
> > tomcat-app. Tomcat log doesn't show this hot deployment but 
> it seems 
> > to work when you test.
> >
> > /S
> >
> > -Original Message-
> > From: Harish Kumar [mailto:[EMAIL PROTECTED]
> > Sent: 13. joulukuuta 2006 8:07
> > To: Struts Users Mailing List
> > Subject: Hot deploying struts application
> >
> > hi,
> >
> > I have a struts project, i want to know whether hot 
> deployment of the 
> > application is possible? I tried doing it but without much luck, i 
> > need to restart my server everytime i do make changes in the class 
> > files. My working environment is MyEclipse, weblogic 8.1, in the 
> > application am using Tiles. Iam facing the exception mainly from 
> > TilesRequestProcessor. Can anyone help me solving this issue.
> >
> >
> > thanks in advance,
> > Harish
> >
> > --
> > The grain of rice on your table does not tell the grim tale of the 
> > toil that grew it.
> >
> > 
> -
> > 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]
> >
> >
> 
> 
> -- 
> The grain of rice on your table does not tell the grim tale 
> of the toil that grew it.
> 

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



RE: Query regarding file upload

2006-12-08 Thread George.Dinwiddie
You would have to control this on the client end, perhaps using
javascript to break the transaction into two HTTP requests.

> -Original Message-
> From: Rahul Joshi [mailto:[EMAIL PROTECTED] 
> Sent: Friday, December 08, 2006 8:50 AM
> To: user@struts.apache.org
> Subject: Query regarding file upload
> 
> 
>  Hi,
> 
> I have created a Struts action which accepts a file from 
> client, I used org.apache.struts.upload.FormFile as a member 
> inside the actionform that is associated with that Action. 
> Before saving that file uploaded by client, I first look for 
> a token string in the request's query part. That token is 
> first verified and the file is saved only it its valid.
> 
> The problem here is I cannot verify the token unless until 
> file is completely uploaded, so in case of a big file, server 
> has to wait till all the contents arrives, then only that 
> request/token is verified.
> 
> 
> Can there be any mechanism by which I can verify the 
> request/token first then only start uploading the content of the file.
> 
> 
> -Rahul
> 
> 
> -- 
> Thanks & Regards
> --RahulJoshi
> 
> -
> 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: Formatting numbers in text field

2006-12-07 Thread George.Dinwiddie
Have you tried the JSTL  tag?

> -Original Message-
> From: chamal desilva [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 07, 2006 3:35 AM
> To: Struts Users Mailing List
> Subject: RE: Formatting numbers in text field
> 
> 
> Thanks Richard
> 
> But if do it uing getter methods I will have to write
> a lot of getters since I have many properties.
> 
> Is n't there an another way. Can't we control the
> formatting through a common place in Struts.
> 
> Best Regards,
> Chamal.
> 
> 
> --- "Gundersen, Richard" 
> <[EMAIL PROTECTED]> wrote:
> 
> > If you are using an ActionForm, you could modify
> > your getter to do the
> > formatting. Or, have an additional getter method
> > e.g.
> > 
> > Double amount;
> > 
> > Double getAmount() {
> > // bog standard method
> > }
> > String getFormattedAmount() {
> > // do some formatting
> > }
> > 
> > Then, in the form, do something like  > property="formattedAmount"/>
> > 
> > You can manipulate the setters in a similar way to
> > accept the formatted
> > text submitted by the form.
> > 
> > There are probably other ways for dealing with the
> > same problem in
> > DynaActionForms that I don't know of.
> > 
> > Hope this helps
> > 
> > Richard
> > 
> > -Original Message-
> > From: chamal desilva [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, December 05, 2006 8:52 AM
> > To: user@struts.apache.org
> > Subject: Formatting numbers in text field
> > 
> > Hi,
> > 
> > Is there a way display numbers in a text field in a
> > formatted way.
> > 
> > For example I want to display 100 as 1,000 in a text
> > field.
> > 
> > My form field attribute type is Double.
> > 
> > 
> > Thanking You,
> > Chamal.
> > 
> > 
> >  
> >
> __
> __
> > 
> > Do you Yahoo!?
> > Everyone is raving about the all-new Yahoo! Mail
> > beta.
> > http://new.mail.yahoo.com
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> >
> __
> > This email has been scanned by the MessageLabs Email
> > Security System.
> > For more information please visit http://www.messagelabs.com/email
> >
> __
> > 
> > *** Disclaimer ***
> > 
> > This electronic communication is confidential and
> > for the exclusive use of the addressee. It may
> > contain private and confidential information. The information, 
> > attachments and opinions contained in this E-mail are those of its 
> > author only and do not necessarily represent those of 
> London Scottish 
> > Bank PLC or any other members of the London Scottish
> > Group. 
> > 
> > If you are not the intended addressee, you are
> > prohibited from any disclosure, distribution or
> > further copying or use of this communication or the 
> information in it 
> > or taking any action in reliance on it. If you have received this 
> > communication in error please notify the Information 
> Security Manager
> > at [EMAIL PROTECTED] as soon as possible and
> > delete the message from all places in your computer
> > where it is stored. 
> > 
> > We utilise virus scanning software but we cannot
> > guarantee the security of electronic communications
> > and you are advised to check any attachments for
> > viruses. We do not accept liability for any loss
> > resulting from any corruption or alteration of data
> > or importation of any virus as a result of receiving
> > this electronic communication.
> > 
> > Replies to this E-mail may be monitored for
> > operational or business reasons. London Scottish
> > Bank PLC is regulated by the Financial Services
> > Authority.
> >
> __
> > This email has been scanned by the MessageLabs Email
> > Security System.
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>  
> __
> __
> Cheap talk?
> Check out Yahoo! Messenger's low PC-to-Phone call rates. 
> http://voice.yahoo.com
> 
> -
> 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: file download without opening a window

2006-12-07 Thread George.Dinwiddie
You need to serve the XML file, itself--not forward to a JSP.  In your action 
class, one of the parameters is an HttpServletResponse instance.  Call 
addHeader() on that object.  Then copy the file contents to the OutputStream 
returned by getOutputStream() on that object.  Finally, the action class should 
return null, indicating that it has taken care of responding to the request.

 Hope that helps,
   George
   http://idiacomputing.com/

> -Original Message-
> From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 06, 2006 5:06 PM
> To: Struts Users Mailing List
> Subject: Re: file download without opening a window
> 
> 
> Thanks.
> 
> How can I add a header without opening a new window or redirect?
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, December 06, 2006 11:02 PM
> Subject: RE: file download without opening a window
> 
> 
> add a header "Content-Disposition attachment; 
> filename=myFile.xml" using
> response.addHeader()
> 
> > -Original Message-
> > From: Søren Blidorf [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 06, 2006 4:56 PM
> > To: Struts Users Mailing List
> > Subject: OT: file download without opening a window
> >
> >
> > Does anybody know how to make a form button, that starts 
> downloading 
> > myFile.xml
> >
> > What I want is to make an onclick = "Save target as"
> >
> >
> > Med venlig hilsen
> >
> > Søren Blidorf
> > Nolas Consulting
> > Web:  http://www.nolas.dk
> > Mobil: +45 61676513
> >
> 
> -
> 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: file download without opening a window

2006-12-06 Thread George.Dinwiddie
add a header "Content-Disposition attachment; filename=myFile.xml" using 
response.addHeader()

> -Original Message-
> From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 06, 2006 4:56 PM
> To: Struts Users Mailing List
> Subject: OT: file download without opening a window
> 
> 
> Does anybody know how to make a form button, that starts 
> downloading myFile.xml
> 
> What I want is to make an onclick = "Save target as"
> 
> 
> Med venlig hilsen
> 
> Søren Blidorf
> Nolas Consulting
> Web:  http://www.nolas.dk
> Mobil: +45 61676513
> 

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



RE: Filter problem

2006-12-05 Thread George.Dinwiddie
How are you inserting your XML/HTML into the JSP?

I don't think the filter method is causing your problem.  I think you're
not expressing that the output should not be filtered.  If you're using
 you might want to add 'escapeXml="false"', for example.

> -Original Message-
> From: Hehl, Thomas [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, December 05, 2006 12:08 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Filter problem
> 
> 
> Nope. This is a struts 2 thing and I'm on 1.2.x.
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 05, 2006 11:21 AM
> To: Struts Users Mailing List
> Subject: Re: Filter problem
> 
> 
> Hi Thomas-
> Perhaps an implementation where you register your own 
>  listener (example located at) 
> http://struts.apache.org/2.x/docs/can-we-access-an-actions-result.html
> 
> Anyone else?
> M-
> This e-mail communication and any attachments may contain 
> confidential and privileged information for the use of the 
> designated recipients named above. If you are not the 
> intended recipient, you are hereby notified that you have 
> received this communication in error and that any review, 
> disclosure, dissemination, distribution or copying of it or its 
> contents
> - Original Message - 
> From: "Hehl, Thomas" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, December 05, 2006 10:05 AM
> Subject: Filter problem
> 
> 
> > OK, I've collided with struts over an issue and would like 
> to know if
> people
> > have suggestions on how to solve.
> > 
> > I am reading stuff from an XML file and building parts of 
> my UI from 
> > for
> use
> > in a JSP. I thought it would be good for some of them to have HTML 
> > markup
> in
> > them, so I put <, etc in the html file. It goes all the way to 
> > struts
> as
> > "<" and then struts converts it at the last second so that 
> what gets 
> > displayed is .:(
> > 
> > So how do I stop struts from doing this? So far, I dunno. 
> Here's the 
> > code that causes the problem in ResourceUtils(1.3.5):
> > 
> > 
> >/**
> > * Filter the specified string for characters that are 
> senstive to HTML
> > * interpreters, returning the string with these 
> characters replaced by
> > * the corresponding character entities.
> > *
> > * @param value The string to be filtered and returned
> > */
> >public static String filter(String value) {
> >if ((value == null) || (value.length() == 0)) {
> >return value;
> >}
> > 
> >StringBuffer result = null;
> >String filtered = null;
> > 
> >for (int i = 0; i < value.length(); i++) {
> >filtered = null;
> > 
> >switch (value.charAt(i)) {
> >case '<':
> >filtered = "<";
> > 
> >break;
> > 
> >case '>':
> >filtered = ">";
> > 
> >break;
> > 
> >case '&':
> >filtered = "&";
> > 
> >break;
> > 
> >case '"':
> >filtered = """;
> > 
> >break;
> > 
> >case '\'':
> >filtered = "'";
> > 
> >break;
> >}
> > 
> >if (result == null) {
> >if (filtered != null) {
> >result = new StringBuffer(value.length() + 50);
> > 
> >if (i > 0) {
> >result.append(value.substring(0, i));
> >}
> > 
> >result.append(filtered);
> >}
> >} else {
> >if (filtered == null) {
> >result.append(value.charAt(i));
> >} else {
> >result.append(filtered);
> >}
> >}
> >}
> > 
> >return (result == null) ? value : result.toString();
> >}
> > 
> > I think it is uncharitable for struts to change these with 
> no option 
> > to prevent it. I am thinking about adding &open; and &close; and 
> > resolving
> them
> > here to turn them back into < and > respectively. Any other ideas,
> comments,
> > suggestions?
> > 
> > Thanks.
> > 
> > 
> >
> 

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



RE: Handling breadcrumbs with Struts

2006-09-21 Thread George.Dinwiddie
Creating a working sample would be quite a bit of work, and I don't have time 
at the moment.  In a nutshell, I would have a bean something like:

public class Breadcrumb {
public String getName() {...}
public String getUrl() {...}
}

The BreadcrumbTileController would do something like

List breadcrumbList = getBreadcrumbsFromSession(request);
Breadcrumb breadcrumb = makeBreadcrumbFromRequest(request);
breadcrumbList.add(breadcrumb);
request.setAttribute("breadcrumbslist", breadcrumbList);

The BreadcrumbTile.jsp might contain something like





The tile definition would associate the controller with the tile:




Then define your default page layout to include the BreadcrumbTile.

A thousand variations are possible, depending on the context of your 
application.  Adjust to suit.

 - George Dinwiddie
   http://www.idiacomputing.com/

> -Original Message-
> From: Marcello Savino [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 21, 2006 3:04 AM
> To: Struts Users Mailing List
> Subject: R: Handling breadcrumbs with Struts
> 
> 
> Could you post a little sample ?
> 
> -Messaggio originale-
> Da: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Inviato: mercoledì 20 settembre 2006 20.59
> A: user@struts.apache.org
> Oggetto: RE: Handling breadcrumbs with Struts
> 
> I would use a tile.  The tile controller can retrieve 
> information from the request and add it to a list kept in 
> session scope.  The tile, itself, can display that list as 
> breadcrumbs.
> 
> > -Original Message-
> > From: Darren Hall [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, September 20, 2006 12:24 PM
> > To: 'Struts Users Mailing List'
> > Subject: Handling breadcrumbs with Struts
> > 
> > 
> > My lack of Struts knowledge is showing here, but -
> > 
> > I need to move data from my action object to my jsp through
> > some sort of value object (probably a bean). For example, my 
> > web application will use breadcrumbs at the top of the body 
> > of nearly every page. This information will need to be 
> > updated on every request. I need to find a way to pass this 
> > information back and forth on each request. Does struts 
> > provide any built in mechanism for this (maybe though the 
> > Bean taglib) or is there a "preferred" way to handle my 
> > breadcrumbs through Struts?
> > 
> >  
> > 
> > Thanks
> > 
> > Darren
> > 
> > 
> 
> -
> 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: Handling breadcrumbs with Struts

2006-09-20 Thread George.Dinwiddie
I would use a tile.  The tile controller can retrieve information from
the request and add it to a list kept in session scope.  The tile,
itself, can display that list as breadcrumbs.

> -Original Message-
> From: Darren Hall [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 20, 2006 12:24 PM
> To: 'Struts Users Mailing List'
> Subject: Handling breadcrumbs with Struts
> 
> 
> My lack of Struts knowledge is showing here, but -
> 
> I need to move data from my action object to my jsp through 
> some sort of value object (probably a bean). For example, my 
> web application will use breadcrumbs at the top of the body 
> of nearly every page. This information will need to be 
> updated on every request. I need to find a way to pass this 
> information back and forth on each request. Does struts 
> provide any built in mechanism for this (maybe though the 
> Bean taglib) or is there a "preferred" way to handle my 
> breadcrumbs through Struts?
> 
>  
> 
> Thanks
> 
> Darren
> 
> 

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



RE: Struts2

2006-08-17 Thread George.Dinwiddie
It looks like you're requesting a page with suffix mapping ("helloWorld.do") 
but you've configured struts to use prefix mapping ("/*").  What happens if you 
change to "*.do"?

 - George
   http://www.idiacomputing.com/


> -Original Message-
> From: Peter Steil [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 17, 2006 2:01 PM
> To: user@struts.apache.org
> Subject: Struts2
> 
> 
> Hi, I am trying to get started on Struts2 using the nightly 
> build 'struts2-core-2.0.0-SNAPSHOT-20060816.jar'. I started 
> with the very basic example from 
> 'http://cwiki.apache.org/WW/hello-world.html' and I still get 
> the message 'The requested resource (/mystruts/helloWorld.do) 
> is not available.' in my browser. My web.xml looks like this:
> 
> 
>  Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
>   My Application
>   
> action2
> 
> org.apache.struts2.dispatcher.FilterDispatcher
>   
> 
>   
> action2
> /*
>   
>   
> 
> org.springframework.web.context.ContextLoaderL
> istener
>   
> 
> 
> 
> Can anybody help me?
> Thanks,
> Peter
> -- 
> 
> 
> Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze 
> Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
> 
> -
> 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: retrieve image from database

2006-08-17 Thread George.Dinwiddie
Your image is probably being cached in the browser.

> -Original Message-
> From: Gomathi [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 17, 2006 9:41 AM
> To: Struts Users Mailing List
> Subject: retrieve image from database
> 
> 
> hai,
> thanks in advance.
> when we edit image logo we are not getting newly uploaded 
> image.But it is perfectly stored in the database(the path of 
> the image). whenever we add new image to db.its perfectly 
> working. But when we go for edit its not working properly(ie) 
> we not getting the newly edited image logo in jsp(view).Once 
> we refresh  the jsp we are getting the newly added image.
> 

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



RE: Browser History by HTTP-REFERER

2006-08-09 Thread George.Dinwiddie
Monkeyden said:
> Sorry George, I misread one of the previous posts in my 
> response to yours. You're correct.  JSP is not the place for 
> this type of authentication/validation, although I don't know 
> that I would want everything to ActionServlet handles to 
> require a referer.  I dont suspect that spiders typically 
> pass a referer.  If true, a public Struts site would never 
> get indexed had a referer been required for all ActionServlet 
> requests.

No, I wouldn't use referer for anything other than returning to a page
after intercepting an request (for login, perhaps).

I'm just suggesting having a filter in front of the pages that require
login and have it check the user's session for the appropriate
credentials for the page.

 - George
   http://www.idiacomputing.com

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



RE: Browser History by HTTP-REFERER

2006-08-07 Thread George.Dinwiddie
I would suggest that a servlet filter is a better choice than depending
on the inclusion of a particular tile.

> -Original Message-
> From: Thomas Joseph [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 07, 2006 2:36 AM
> To: Struts Users Mailing List
> Subject: Re: Browser History by HTTP-REFERER
> 
> 
> Try this:
> 1. Include a common JSP page (say like the company logo) in 
> every other JSP page (using tiles is perfect) that will check 
> for a user object (say username or user credential or 
> something else) in session that is created only on Login. 2. 
> If the object is not found, redirect to the login page.
> 
> There can be more streamlined versions of the same logic.
> 
> Thanks and Regards,
> Thomas Joseph 
> 
> Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | 
> Cochin-682015 | India 
> www.kottsoftware.com 
> --
> --
> This email (including any attachments) is subject to 
> copyright, the information in it is confidential, and it is 
> legally privileged. Use of this email or of any information 
> in it other than by the addressee is unauthorized and 
> unlawful. If you are not the intended recipient of the mail, 
> kindly intimate the author of the mail and delete the same. 
> --
> --
> It doesn't matter how you were, but rather how you are that 
> decides your future. A right attitude will get you to Success. 
>   - Original Message - 
>   From: Raghuveer 
>   To: 'Thomas Joseph' 
>   Cc: user@struts.apache.org 
>   Sent: Monday, August 07, 2006 10:54 AM
>   Subject: RE: Browser History by HTTP-REFERER
> 
> 
>   Yes ,I am trying to restrict users only after login.
>   Like banking applications
> -Original Message-
> From: Thomas Joseph [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 05, 2006 9:53 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Browser History by HTTP-REFERER
> 
> 
> Can you please specify in more broad terms, what are you 
> trying to do
>   (especially with the referrer code)? Are you trying to 
> restrict user to
>   access pages only after login or something like that?
> 
> Thanks and Regards,
> Thomas Joseph
> 
> Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | 
> Cochin-682015 |
>   India
> www.kottsoftware.com
>   
> --
> --
>   --
> This email (including any attachments) is subject to 
> copyright, the
>   information in it is confidential, and it is legally 
> privileged. Use of this
>   email or of any information in it other than by the addressee is
>   unauthorized and unlawful. If you are not the intended 
> recipient of the
>   mail, kindly intimate the author of the mail and delete the same.
>   
> --
> --
>   --
> It doesn't matter how you were, but rather how you are 
> that decides your
>   future. A right attitude will get you to Success.
>   - Original Message -
>   From: Raghuveer
> 
> 
>   In my Struts Web application
>   i need to restict the user accessing pages from Browser History.
>   When i access any page from Browser History i get
>   http-referer=null
> 
>   So,
>   I am checking this by below code on Server side in All 
> my execute method
>   in
>   Struts Action File .
>   if(request.getHeader("REFERER")==null){
> 
>   throw new Exception("Invalid operation");
> }
> 
>   Is this Correct way of handling ?
> 
> 

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



RE: Browser History by HTTP-REFERER

2006-08-03 Thread George.Dinwiddie
Do you realize that browsers are not required to send a Referer header?
And that many proxies strip out such a header?

You will have far better success if you create a robust application that
can do the correct thing even if URLs are received out of the expected
order.  Trying to hamstring the browser is an exercise in futility.

> -Original Message-
> From: Raghuveer [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 03, 2006 9:37 AM
> To: user@struts.apache.org
> Subject: Browser History by HTTP-REFERER
> 
> 
> 
> In my Struts Web application
> i need to restict the user accessing pages from Browser 
> History. When i access any page from Browser History i get 
> http-referer=null
> 
> So,
> I am checking this by below code on Server side in All my 
> execute method in Struts Action File . 
> if(request.getHeader("REFERER")==null){
> 
> throw new Exception("Invalid operation");
>   }
> 
> Is this Correct way of handling ?
> 
> 
> 
> -
> 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: Error with c:for Each and c:out

2006-07-26 Thread George.Dinwiddie
It's the javabean specification.  Normally the methods "getFoo()" and 
"setFoo()" operate on the property "foo".  The code doesn't really care what 
the property is called internally (it could even be calculated on the fly), but 
it infers the property name from the method name.

Normally variables in java begin with a lowercase letter.  See Sun's java 
coding standard for more, or William Wake's "Java Coding Standard on One Page" 
http://www.xp123.com/xplor/xp0002f/index.shtml

The method "getCheckPart()" will refer to a property named "checkPart".

> -Original Message-
> From: Francisco Exposito Aguilera [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 26, 2006 2:15 PM
> To: user@struts.apache.org
> Subject: RE: Error with c:for Each and c:out
> 
> 
> Thanks a lot George It works. But I don´t understand 
> why... could you 
> tell me the reason, if there is a reason, for this lower-case 
> (in OTDEmpresa 
> the variable is Nombre, not nombre)?
> 
> Also, if I have a parameter defined in OTDEmpresa called 
> CheckPart, all must 
> be in lower case or only the first character?
> 
> PS: I am a beginner... you can see that :)
> 
> 
> 
> 
> >From: <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> >To: 
> >Subject: RE: Error with c:for Each and c:out
> >Date: Wed, 26 Jul 2006 12:42:23 -0500
> >
> >Assuming you have a method
> > public String getNombre()
> >in the class project.struts.OTD.OTDEmpresa, try
> > 
> >with a lower-case 'n'.
> >
> > > -Original Message-
> > > From: Francisco Exposito Aguilera [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 26, 2006 10:35 AM
> > > To: user@struts.apache.org
> > > Subject: Error with c:for Each and c:out
> > >
> > >
> > > Hi all,
> > >
> > > I am trying to show the results of a search from a 
> database into a 
> > > jsp page, but it doesn't work.
> > >
> > > If I add in the jsp file:
> > >
> > > 
> > >  
> > >
> > > where listarEmpresas is the parameter where is saved the 
> Collection 
> > > and Nombre is one of the fields from OTDEmpresas:
> > >session.setAttribute("listarEmpresas",leeCollection);
> > >
> > > then I get:
> > >
> > > javax.servlet.ServletException: An error occurred while 
> evaluating 
> > > custom action attribute "value" with value "${lee.Nombre}": Unable
> > > to find a value
> > > for "Nombre" in object of class 
> "project.struts.OTD.OTDEmpresa" using
> > > operator "." (null)
> > >
> > > If I add in the jsp file:
> > >
> > > 
> > >
> > > then I get in a row of the created table:
> > >
> > > [EMAIL PROTECTED]
> > >
> > > Could anyone help me?
> > >
> > > Thanks a lot!
> > >
> > > _
> > > Descubre la descarga digital con MSN Music. Más de un millón de 
> > > canciones. http://music.msn.es/
> > >
> > >
> > > 
> 
> > > -
> > > 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]
> >
> 
> _
> Acepta el reto MSN Premium: Protección para tus hijos en internet. 
> Descárgalo y pruébalo 2 meses gratis. 
> http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados
_proteccioninfantil


-
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: Error with c:for Each and c:out

2006-07-26 Thread George.Dinwiddie
Assuming you have a method
public String getNombre()
in the class project.struts.OTD.OTDEmpresa, try

with a lower-case 'n'.

> -Original Message-
> From: Francisco Exposito Aguilera [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 26, 2006 10:35 AM
> To: user@struts.apache.org
> Subject: Error with c:for Each and c:out
> 
> 
> Hi all,
> 
> I am trying to show the results of a search from a database 
> into a jsp page, 
> but it doesn't work.
> 
> If I add in the jsp file:
> 
> 
>  
> 
> where listarEmpresas is the parameter where is saved the 
> Collection and 
> Nombre is one of the fields from OTDEmpresas:
>session.setAttribute("listarEmpresas",leeCollection);
> 
> then I get:
> 
> javax.servlet.ServletException: An error occurred while 
> evaluating custom 
> action attribute "value" with value "${lee.Nombre}": Unable 
> to find a value 
> for "Nombre" in object of class "project.struts.OTD.OTDEmpresa" using 
> operator "." (null)
> 
> If I add in the jsp file:
> 
> 
> 
> then I get in a row of the created table:
> 
> [EMAIL PROTECTED]
> 
> Could anyone help me?
> 
> Thanks a lot!
> 
> _
> Descubre la descarga digital con MSN Music. Más de un millón 
> de canciones. 
> http://music.msn.es/
> 
> 
> -
> 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: Struts forward and redirect

2006-07-20 Thread George.Dinwiddie
Felix Khazin asked;
> Hi all,
> 
> I have a quick question:
> 
> My struts-config.xml has a forward line such as:
> 
> In my controller if I set an attribute such as:
> 
> Request.setAttribute("test", "test string");
> Return (mapping.findForward("show"));
> 
> This works fine and I am able to use test in the view.
> 
> But if I change the forward to "redirect=true" this 
> functionality disappears and I am no longer able to use the 
> attributes set in the controller.
> 
> Does anyone know why I can't do this with a redirect, and how 
> I may be able to still use a redirect and get the attributes 
> in the view?

A redirect is a message to the browser telling it to make a new request
for a different URL.  Since the browser is sending a new request, any
data you put into the old request goes away.  If you need to have data
available between browser requests, store it in the session, instead.

 - George
   http://www.idiacomputing.com/

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



RE: interface for constants

2006-07-18 Thread George.Dinwiddie
One (of many) problems with this approach is that it may fail to
initialize, but that won't happen until the class is loaded at first
use.  If an application is broken because the database is inaccessible,
it's better to know at deployment.  I use a servlet startup listener
(javax.servlet.ServletContextListener) to perform initialization.

 - George
   http://www.idiacomputing.com/

> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 18, 2006 6:13 AM
> To: user@struts.apache.org
> Subject: interface for constants
> 
> 
> I have is a constants interface with static final fields .
> Each field value is a call to DAO.
> 
> For example 
> interface IObjectTypeIds{
> public static final int APPLICATION =ObjectDAO.get("APPLICATION"); }
> 
> Is this is a good practice ?
> 
> 
> 
> 
>   
> -
> Do you Yahoo!?
>  Everyone is raving about the  all-new Yahoo! Mail Beta.
> 

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



SSLEXT on a per-session basis

2006-07-17 Thread George.Dinwiddie
We have a situation where certain appservers are behind a webserver
proxy, but also available to internal users directly.  This means that
the SSLEXT plugin must sometime rewrite the URLs based on ports 80 and
443, and sometimes between 7001 and 7002.  This will remain constant
throughout a particular user's session.

I've taken a brief look at the SSLEXT code, and it doesn't look very
extensible (without modifications).  The SecureRequestUtils.computeURL
method is static, and the SecurePlugInInterface to which it delegates
the selection of port numbers is shared throughout the app (in
ServletContext) with no access to the incoming request.

Has anyone else ever slayed this particular dragon?  I'd hate to
reinvent the wheel unnecessarily.

 - George

--
 George Dinwiddie
 410-884-6473
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies."  -- C. A. R. Hoare

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



RE: Junit tests on remote Struts application in Eclipse

2006-07-10 Thread George.Dinwiddie
Chris,

It sounds like you're trying to run the tests inside the container.  If
so, JUnit can't do that on it's own.  You can use Cactus to proxy from
the testrunner (outside the container) to the tests (inside the
container).

I've always found Cactus to be a bit of a PITA, however, and have
changed my testing strategy to avoid it.  My tests are split into three
groups:

 - POJO JUnit tests which test the java code and run very fast.  These
drive most of my development via TDD.
 - Tests that involve other systems, principally the database.  I
substitute a DAO factory that uses a local JDBC Connection instead of
getting a datasource from the container.  These tests check the
Persistence layer.  They're much slower than the ordinary JUnit tests
(particulary because they use DBUnit to set up test data), but they're
still faster and easier than in-container tests.
 - Acceptance or System tests that test the application as a whole,
running in the container, through the normal web interface (using
HttpUnit).  These don't have to test the edge conditions, because those
are tested in the other tests, above.

Hope that helps.

 - George
   http://www.idiacomputing.com/

> -Original Message-
> From: Chris Loschen [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 10, 2006 1:25 PM
> To: Struts Users Mailing List
> Subject: Junit tests on remote Struts application in Eclipse
> 
> 
> Hi all,
> 
> This is admittedly tangential to our topic, but some other 
> questions on Eclipse came up last week, and people here seem 
> knowledgeable on all sorts of subjects... If you know of a 
> better list on which I could ask this question, please let me 
> know: I should probably be on it.
> 
> I have a struts application deployed on a localhost app 
> server (the stack is Windows/Oracle/WebLogic), and I'm using 
> the new Eclipse 3.2 IDE (downloaded last week, at least 
> partly to try to solve the current problem). I've set up the 
> project as a regular Java project, which I did before WTP 
> came out. I haven't yet been able to figure out how to use 
> the WTP tools, or if there's something I need to do with my 
> project to enable those, but that's another issue. I've been 
> able to debug the application in Eclipse just fine for 
> several months by connecting to my localhost app and setting 
> breakpoints in my source code etc. 
> 
> Now I'm trying to get some Junit tests running. The tests 
> themselves already exist, though eventually I'll be writing 
> some new ones to test some new functionality I'm working on. 
> But I haven't been able to run the tests at all yet. I keep 
> getting a null pointer exception on the tests which try to 
> actually connect to the DB. All the DB connections are 
> handled in my app server setup, so I think the difficulty is 
> that I'm just connecting to the code but not to the running 
> application.
> 
> I've got TPTP in this new version of Eclipse but haven't 
> totally figured it out yet. Does anyone have any suggestions 
> to get me started or for some references on how to make this work?
> 
> Thanks for your help!
> 
> Chris
> 
> 
> -
> 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: Reload Problem with IE

2006-07-06 Thread George.Dinwiddie
Use the pattern of redirecting to a GET after POST.  In other words, use
the POST to perform the action, and then redirect to a GET to show the
current status after performing the action.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 06, 2006 9:59 AM
> To: user@struts.apache.org
> Subject: Reload Problem with IE
> 
> 
> 
> 
> 
> 
>  Hi All,
> 
> I am using struts 1.2.8 , the problem is after adding a 
> record in my web page(Internet Explorer), when i right click 
> and refresh the page it's
> giving duplicate record exception , i am usingmethod="POST" >
> in my JSP , if i put GET in place of POST i am not getting 
> the problem. But i want to use POST method in my jsp , so 
> there is any other way to handle this with struts 
> configuration file (ie redirect = true) .
> 
> Thanks in advance.
> Srinivas.
> 
> 
> -
> 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: Tiles W/JSP Sans Struts

2006-07-06 Thread George.Dinwiddie
Standalone Tiles (as opposed to Struts Tiles) seems to be a nomad, at
the moment.  It seems to be currently residing at
http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles/

While waiting for a more official status report, you might want to read
these messages:
 * http://forums.opensymphony.com/thread.jspa?messageID=53290퀪
 * http://forums.opensymphony.com/thread.jspa?messageID=55562�
 * http://forums.opensymphony.com/thread.jspa?threadID=23093

I'm sure Greg Reddin would appreciate any feedback from your example.
I'll add the above to http://wiki.apache.org/struts/StandaloneTiles as
interim pointers.

 - George

> -Original Message-
> From: Jeff Conrad [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, July 06, 2006 8:22 AM
> To: user@struts.apache.org
> Subject: Tiles W/JSP Sans Struts
> 
> 
> My goal was to form a complete example of a
> working Tiles/JSP example  independently of Struts. However
> the links
> are dead in the current version. Also, I believe some of
> the
> documentation is dated, and some of what comes back from a
> GIS are
> leftover descriptions from an older version of Tiles. I
> have created a fixed example that fits with some of the 
> previous documentation, but actually will work in the case of 
> using Tiles definitions.
> 
> Tiles Background
> 1. The  href="http://struts.apache.org/1.x/struts-tiles/installation.h
> tml">Tiles
> installation document states that in order
> to use Tiles independently, you would use the TilesServlet, 
> located in the struts-tiles-VERSION.jar. There is not a 
> TilesServlet, nor a struts-tiles-VERSION.jar, in the 
> struts-1.2.9-src, -lib, or -bin deliveries. The  href="http://struts.apache.org/1.x/struts-tiles/installation.h
> tml">Tiles
> installation document has a dead link to 
> http://struts.apache.org/1.x/struts-tiles/cvs-usage.html.
> 2.  The  href="http://struts.apache.org/1.x/struts-tiles/faq.html";>Tiles
> FAQ page has a dead link to 
> http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/ti
> les-core/.
> 3.  The example in the  href="http://struts.apache.org/1.x/struts-tiles/apidocs/org/ap
> ache/struts/tiles/package-summary.html">API
> from 1.x Struts has some extra escaping
> of > characters.
> 4.  The
> http://struts.apache.org/1.x/struts-tiles/examples.html
> (Examples from 1.x Struts) page is incomplete.
> 5.  The http://struts.apache.org/1.x/struts-tiles/tagreference.html
> definition tag does not mention name. Name is a required 
> attribute for definition.
> 
> Solutions
> 1.  To use the Tiles in the current version of Struts, you
> will need to
> use the Struts servlet.  I have uploaded a working example
> with all of the necessary components (minus the libraries)
> at 
> http://www.guesttime.com/members/ledlogic/stru>
ts/TilesTest-0.1-src.jar
> 
> If you build this and deploy the war to a webserver, there
> are 3 examples in the line of the original struts examples,
> one for pure JSP (/jsp/jspExample.jsp), one with JSP +
> tiles (/jsp/tilesExample.jsp), and the last is 
> (/jsp/tilesXMLExample.jsp).
> 
> 2.  I am not sure if there are nightly builds
> somewhere for tiles.  Who manages these for Struts?
> 3.  The javadoc needs to be fixed in the java
> source for the tiles package.
> 4.  Perhaps some of the information here could be
> incorporated. Do you need someone to finish the
> documentation for
> Tiles? If so I can help.
> 5.  See the above example source package for an
> example.  I used name, not id.  Here is the sample code:
> 
>template="/jsp/layout.jsp">
>/>
>   
>   
>   
> 
> 
> Jeff Conrad
> [EMAIL PROTECTED]
> dmitri2060 on ebay / half.com
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> 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: The content of element type "web-app" must match

2006-07-05 Thread George.Dinwiddie
A. Lotfi asked:
> Hi, I have a web.xml , I am using Netbeans, I got this error :
>   The content of element type "web-app" must match
>
>   Here is my web.xml , I will appreciate if you can help me :
>
>   

[snip]

Generally that means that something is out of order or misspelled.  It's
a painstaking process to check the order of all the elements, but if
that's all the error message gives you, that's what you'll have to do.
I remember dealing with that with WebLogic 5.1, but it gave the line
number where the XML parser failed.

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



RE: Ejb

2006-06-29 Thread George.Dinwiddie
If you do a good job of separating your business logic from your
presentation, then it's quite easy to put that business logic into an
EJB behind a BusinessDelegate that implements the same API.  This ease
means that you can defer going to an EJB solution until you actually
need the advantages (principally transaction management, IMO) that EJB's
provide.

In pictures, I suggest going from

-- Presentation Layer --
-- Business Layer --

to

-- Presentation Layer --
-- Business Delegate --
-- EJB Remote Interface & Service Locator --
-- EJB Session Facade --
-- Business Layer --

You can even do this for only part of your Business API.  I've done that
where only part of the API needed the transaction services.

I'm not fond of Entity beans, but if you use a DAO interface, you can do
the same thing between the Business Layer and the Persistence Layer to
substitute Entity beans instead of some other DAO such as JDBC.

  Hope this helps,
George Dinwiddie
http://www.idiacomputing.com/

> -Original Message-
> From: Tejas Bavishi [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 6:09 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Ejb
> 
> 
> Hello
> 
> There are some standard advantages mentioned in favour of 
> EJBs like transaction management, application scalability, 
> security, database connection pools, etc. You can read 
> through the advantages by browsing through the EJB specification.
> 
> However, recently there have been loads of talks of not using 
> EJBs and instead using different approaches. There is a book 
> called "J2EE without EJBs" by Rod Johnson that talks a lot 
> about building applications without using EJBs.
> 
> Thanks & regards
> Tejas
> 
> 
> -Original Message-
> From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 29, 2006 3:08 PM
> To: Struts Mailing list
> Subject: Ejb
> 
> 
> hi!
> Why do we use ejbs in our application particularly entity and 
> sessions. can't we write java classes to do the same and use 
> java beans as data carriers. what are the true benefits of 
> using ejbs with struts.
> 
> 
> Regards,
> Abhimanyu Koul
> FinEng Solutions (P)  Ltd.
> Mobile : +91 9819510090
> 
> 
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to whom
this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_


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



RE: ejb

2006-06-28 Thread George.Dinwiddie
EJB Design Patterns: Advanced Patterns, Processes, and Idioms
(http://www.amazon.com/exec/obidos/ASIN/0471208310/alberg30-20) by Floyd
Marinescu

Core J2EE Patterns: Best Practices and Design Strategies
(http://www.amazon.com/exec/obidos/ISBN=0131422464/alberg30-20) by
Deepak Alur, John Crupi, Dan Malks

Patterns of Enterprise Application Architecture
(http://www.amazon.com/exec/obidos/ASIN/0321127420/alberg30-20) by
Martin Fowler

> -Original Message-
> From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 28, 2006 2:49 AM
> To: Struts Mailing list
> Subject: ejb
> 
> 
> hi all!
> does anybody here have some good ejb books. i need to use ejb 
> in struts but don't know how. please help
> 
> Regards,
> Abhimanyu Koul
> FinEng Solutions (P)  Ltd.
> Mobile : +91 9819510090
> 

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



RE: [ANN] Hoople 1.0

2006-06-28 Thread George.Dinwiddie
That sounds good.  I like to use a tile as the outer skin of the onion
so that it can extend a layout tile declaratively, and substitute the
inner tiles as needed.

> -Original Message-
> From: Nathan Voxland [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 27, 2006 6:05 PM
> To: Struts Users Mailing List
> Subject: RE: [ANN] Hoople 1.0
> 
> 
> Good point.  We tend to wrap our tiles usage into the JSPs 
> using  tags.  
> 
> You forward to tiles using path="tile.definition.name" 
> without the beginning "/", correct?
> 
> I think I'll add an additional attribute of "tile" that can 
> be used in place of "path" that would not do the absolute 
> path resolution.  Would that solve the problem?
> 
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 
> 27, 2006 3:24 PM
> To: user@struts.apache.org
> Subject: RE: [ANN] Hoople 1.0
> 
> Nathan Voxland announced:
> > Hoople has worked well for us by allowing us to configure the
> > action mappings in separate XML config files that are stored 
> > where the URL would be on the filesystem if Struts wasn't 
> > there.  There are also several other features that make 
> > working with the action mappings easier, like being able to 
> > use relative paths and assuming that forwards have a path 
> > that is the same as the request URL but with a .jsp extension 
> > if the path is not specified.
> 
> Hmmm...  What about tiles?  I tend to forward to a tile 
> rather than a JSP.
> 
> -
> 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: [ANN] Hoople 1.0

2006-06-27 Thread George.Dinwiddie
Nathan Voxland announced:
> Hoople has worked well for us by allowing us to configure the 
> action mappings in separate XML config files that are stored 
> where the URL would be on the filesystem if Struts wasn't 
> there.  There are also several other features that make 
> working with the action mappings easier, like being able to 
> use relative paths and assuming that forwards have a path 
> that is the same as the request URL but with a .jsp extension 
> if the path is not specified.

Hmmm...  What about tiles?  I tend to forward to a tile rather than a
JSP.

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



RE: upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread George.Dinwiddie
Adding the Commons Collections jar
(http://jakarta.apache.org/commons/collections/) to your war file isn't
working for you?

> -Original Message-
> From: Picha, Gayatri [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 27, 2006 1:09 PM
> To: Struts Users Mailing List
> Subject: RE: upgrading from struts version 1.2.6 to 1.2.9
> 
> 
> Thanks for the quick reply I looked on that and updated the 
> struts.jar and all the commons.jar files but my code is 
> looking for iterators which is part of 
> Commons Collections jar and in struts version 1.2.9 it no 
> longer has a dependency on Commons Collections. Since my 
> current version is 1.2.6 I was reading 
> http://wiki.apache.org/struts/StrutsUpgradeNotes124to127
> upgrading it from 1.2.4 to 1.2.7 and there it says "Struts no 
> longer has a dependency on Commons Collections or Commons 
> Lang, so unless you have other requirements for them, they no 
> longer need to be deployed. " so how can I deploy Commons 
> Collections additionally since my code is looking for that.
> 
> Any help on this will be truly appriciated.
> 
> Thanks,
> -Gayatri.
> 
> 
> -Original Message-
> From: Mark Shifman [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 27, 2006 9:54 AM
> To: Struts Users Mailing List
> Subject: Re: upgrading from struts version 1.2.6 to 1.2.9
> 
> there is a wiki page: http://wiki.apache.org/struts/StrutsUpgrade
> 
> Picha, Gayatri wrote:
> > Hi,
> > I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are
> > the steps that needs to be done in order to do this.
> >  
> > Thanks in advance,
> > -Gayatri.
> >
> >   
> 
> 
> --
>  Mark Shifman MD. Ph.D.
>  Yale Center for Medical Informatics
>  Phone (203)737-5219
>  [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]
> 
> 

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



RE: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread George.Dinwiddie
Wendy Smoak said:
> 
> On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote:
> 
> > You can make the Action Servlet servlet-mapping anything you want.  
> > Rather than use /MyAction.do, I have used /do/MyAction for 
> years. In 
> > fact, I usually have two servlet-mapping patterns for the Action 
> > servlet: "/do/*" and "logout".
> 
> There is a warning against having multiple servlet mappings 
> at the bottom of section 5.4.2.
>  * 
>
http://struts.apache.org/struts-action/userGuide/configuration.html#dd_c
onfig_mapping
> 
> I guess we should change that to "_may_ not work correctly," because
> you're not the first person to mention doing this. :)

Even better would be to document _what_ may not work correctly.  (Or to
fix those parts. :-)

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



[OT] RE: Dynamic log names

2006-06-15 Thread George.Dinwiddie
You could generate files named like event.log.2006-05-03 using the
DailyRollingFileAppender.  See
http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFi
leAppender.html  Or you could write your own appender.

> -Original Message-
> From: Darren Hall [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 15, 2006 8:53 AM
> To: 'Struts Users Mailing List'
> Subject: Dynamic log names
> 
> 
> Hello again all,
> 
> I'm using Log4j 1.2.13 with Struts 1.2.9 on Tomcat 5.5.
> I have the logging with Log4j now working properly and 
> outputting log messages properly.
> 
> I have a question about naming log files for my web application. 
> I'd like to append the date into the name of my log files. Is 
> there a way that I can generate daily logs with a filename 
> along the lines of "event.2006-05-03.log" and "error.2006-05-03.log"?
> 
> Thanks,
> 
> Darren
> 
> 
> 
> -
> 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: [newb question] Turning on DEBUG level logging

2006-06-14 Thread George.Dinwiddie
I'm not sure about using 'DEBUG' as the name of an appender.  Why not
try something like 'logfile'?

I'm not very familiar with configuring Log4j using XML.  A simple
.properties file has always done everything I need.

> -Original Message-
> From: Darren Hall [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 14, 2006 2:24 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [newb question] Turning on DEBUG level logging
> 
> 
> I tried that. There is no output from log4j to the daily 
> catalina.log files.
> 
> However, taking another path, I created a new (and much 
> simpler) log4j.xml file. Using this new file, I now see the 
> following log file created 'C:\Program Files\Apache 
> Group\Tomcat 5.5\logs\uwaf-debug.log'. So... progress!
> 
> However, the log file contains nothing. None of my info or 
> debug statements were printed to the file. It's blank. What 
> did I do wrong now? Any ideas??
> 
> Thanks,
> 
> Darren
> 
> (log4j.xml)
> 
> 
> 
> 
> http://jakarta.apache.org/log4j/";>
> 
>   
> 
> 
> 
>   
> 
>   
> 
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 14, 2006 11:19 AM
> To: Struts Users Mailing List
> Subject: Re: [newb question] Turning on DEBUG level logging
> 
> Darren Hall wrote:
> > I'm not starting it from the command line any longer. Therefore, I 
> > can't
> see
> > any console output from Tomcat.
> >   
> 
> Try using a ConsoleAppender and tail -f the log file in the 
> tomcat log directory.
> 
> Dave
> 
> 
> 
> -
> 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: [newb question] Turning on DEBUG level logging

2006-06-14 Thread George.Dinwiddie
Darren Hall asked:
> I've included the log4j.jar in my WEB-INF/lib directory and 
> created a log4j.xml file based on an example I found online 
> (rather then a log4j.properties file). The application 
> deploys error free and executes - however my log files are 
> not created.
> 
> I can think of two reasons this could be happening:
> 1) Log4j is not creating the "log" directory, thus it can't 
> create the log file; or

The directory needs to exist.  Log4j won't create it for you.

Do you see your log output on the console?


> Below is the log4j.xml properties file. I'm using a relative 
> path to specify a directory for the log files (i.e. 
> "log/uwaf-event.log"). Given that I'm using Tomcat 5.5 as my 
> app server - where will it try to create my log files? In my 
> webapps/ folder, or in the /bin directory?

It will probably be relative to the current working directory where you
start Tomcat.

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



RE: [newb question] Turning on DEBUG level logging

2006-06-13 Thread George.Dinwiddie
Commons-logging is most often used as a wrapper around Log4J, but it can
wrap other logging frameworks, too.  Maybe check what Tomcat uses
natively.

> -Original Message-
> From: Darren Hall [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 13, 2006 12:39 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [newb question] Turning on DEBUG level logging
> 
> 
> Thanks George.
> 
> I looked at the link you provided and it seems to pertain to 
> Log4J information. I just did a quick search and I don't see 
> any Log4J files (either properties or xml). Furthermore, I 
> can see that the default install of Struts includes 
> commons-logging.jar, but I don't see anything to do with 
> Log4J jar files.
> 
> Is commons-logging using Log4J under the covers? If so, are 
> the Log4J jar files hidden in commons-logging somewhere or do 
> I need to download the Log4J jar and put it in my classpath 
> and create a Log4J.xml file? (Also how is logging working now 
> if I'm only using commons-logging and I don't have Log4J in 
> place yet?)
> 
> Darren
> 
> 
>  
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 
> 13, 2006 11:38 AM
> To: user@struts.apache.org
> Subject: RE: [newb question] Turning on DEBUG level logging
> 
> Darren Hall asked:
> > Essentially I'm looking for a setting that I'm missing in
> > some config file (possibly the web.xml file, or the 
> > struts-config.xml file).
> 
> It's missing from log4j.properties (or xml).  See 
> http://idiacomputing.com/moin/Log4jDotProperti> es for some 
> links.  When you find it in your setup, add
> 
> 
> log4j.logger.org.apache=DEBUG
> 
> and you'll get a bunch of logging.
> 
>  - George
>http://www.idiacomputing.com/
> 
> -
> 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: [newb question] Turning on DEBUG level logging

2006-06-13 Thread George.Dinwiddie
Darren Hall asked:
> Essentially I'm looking for a setting that I'm missing in 
> some config file (possibly the web.xml file, or the 
> struts-config.xml file).

It's missing from log4j.properties (or xml).  See
http://idiacomputing.com/moin/Log4jDotProperties for some links.  When
you find it in your setup, add

log4j.logger.org.apache=DEBUG

and you'll get a bunch of logging.

 - George
   http://www.idiacomputing.com/

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



RE: Poll: What part of a Struts will be the most important to support for migration?

2006-06-13 Thread George.Dinwiddie
Frank W. Zammetti said:
> I suppose we could recommend people use ContextListeners 
> instead, which 
> I've come to prefer frankly, but if we're talking about 
> upgrading/compatibility, that's maybe not the best answer.

A ContextListener that calls all the plugins shouldn't be too hard.

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



RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread George.Dinwiddie
Scott Van Wart moaned
> Wish Eclipse had a Search/Replace in Files...

Search | File... | Replace...

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



RE: Multiple checkboxs in jsp using struts tags.

2006-05-25 Thread George.Dinwiddie
Albert L. Sapp asked:
> This is my first post so I will try to make it short.  I am trying to 
> use the logic:iterate and html:multibox.  I found what I 
> thought was a 
> good example through a google search, but I just can't get it to work.
> 
> Here is the exception I get:  javax.servlet.ServletException: Cannot 
> find bean unit in any scopeI understand the error, but don't know 
> how to fix it.
> 
> The example I am following said to setup the tags as follows:
> 
> 
> 
>
> 
> 

 [snip]

I think you may need a  tag after the  to
make the value available.  See
http://struts.apache.org/struts-action/struts-taglib/tlddoc/bean/define.
html

I've blocked out much of this from my memory because JSTL is so much
easier.

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



RE: Struts with Eclipse 3.1

2006-05-25 Thread George.Dinwiddie
My point is that Eclipse does not, in the base IDE, have the knowledge to build 
and deploy a web-app.  You can get that capability with ANT, which gives you 
all the flexibility in the world about how you arrange your project, or with a 
plugin, which requires you to arrange your project in a particular way.

> -Original Message-
> From: Martin Kindler [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 12:59 PM
> To: 'Struts Users Mailing List'
> Subject: AW: Struts with Eclipse 3.1
> 
> 
> I have not really followed this stream, but just to develop a 
> Struts (action
> 1.x) based app with Eclipse 3.x
> does not require something special. Just create the project, 
> add the Struts jars to it (do not forget the build path) and go.
> 
> If you want to have integrated debugging with Tomcat you can 
> use the Sysdeo plugin.
> 
> 
> Martin
> 
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> > Gesendet: Donnerstag, 25. Mai 2006 18:48
> > An: user@struts.apache.org
> > Betreff: RE: Struts with Eclipse 3.1
> > 
> > 
> > If you don't want to build with ANT (or equivalent) then I
> > think you must use one of the plugins with webapplication 
> > support.  These, in my experience (mostly with MyEclipse), 
> > require particular layouts of the source for it to work.
> > 
> > It seems to be your choice which work you want to do.
> > 
> > > -Original Message-
> > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 25, 2006 12:33 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Struts with Eclipse 3.1
> > > 
> > > 
> > > But I donnot have an ANT build file. for my project, we 
> donot have 
> > > an ANT build file yet..
> > > 
> > > Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the 
> record, I use 
> > > a plain Java project, with an appropriate ANT build file 
> that builds 
> > > and deploys teh struts system for me.
> > > 
> > > It works fine.
> > > 
> > > Miguel
> > > 
> > > On 5/25/06, Maya menon wrote:
> > > >
> > > > No. It wont work. when I do that, it asks for a folder to
> > > import to.
> > > > When I type a new name in says, specified project 
> doesnt exist and 
> > > > stops there...
> > > >
> > > > "Chaudhary, Harsh" wrote: Sounds like something
> > > > wrong with the import you did. Why don't you do a fresh
> > > import without
> > > > creating a project first. Then when you import, it would
> > > prompt you to
> > > > specify a project at which point, you can create a new project. 
> > > > Hopefully this will merge the two and generate a singular file 
> > > > structure.
> > > >
> > > > Harsh.
> > > >
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 10:54 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Struts with Eclipse 3.1
> > > >
> > > >
> > > > Yes, I was trying that.
> > > >
> > > > I created an empty "Web project" in eclipse and imported 
> > > > struts-sample.war. But this created two WEB-INF 
> directories and 2 
> > > > web.xml files. Looks like when a web project is first 
> created, it 
> > > > already creates the web.xml and web-inf directory,a nd
> > when the war
> > > > file gets imported, it creates it again.
> > > >
> > > > So, I created a simple Java project and imported the 
> war file. But 
> > > > functionally, will it work. What other suggestions ?
> > > >
> > > > "Chaudhary, Harsh" wrote:
> > > > A sample web project is bundeled with the struts
> > > distribution at like:
> > > > \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> > > > Its called struts-examples.war. Get that running and 
> then you can 
> > > > reuse that code to get started. Harsh.
> > > >
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 10:31 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Struts with Eclipse 3.1
> > > >
> > > >
> > > > Thanks Harsh. I also dont care about ide support.
> > > >
> > > > But think you have an existing web project and you want to
> > > use struts
> > > > files. How do you do that ?
> > > >
> > > > In my case, I have a web project in eclipse [created using
> > > eclipse 3.1
> > > > and eclipse web tools platofrm]. Now to this project I have
> > > added the
> > > > struts zip file. How do I make use of the struts config
> > > files, action
> > > > classes etc ?
> > > >
> > > >
> > > >
> > > > "Chaudhary, Harsh" wrote:
> > > > Sure you can do that. But you would not have any IDE support. 
> > > > Personally I don't care much for IDE support as all you need is 
> > > > entries in struts-cofig.xml, an Action class, a Struts
> > form and an
> > > > HTML or JSP page.
> > > >
> > > > Harsh.
> > > >
> > > > -Original Message-
> > > > From: Maya menon [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, May 25, 2006 10:17 AM
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Struts with Eclipse 3.1
> > > >

RE: Struts with Eclipse 3.1

2006-05-25 Thread George.Dinwiddie
If you don't want to build with ANT (or equivalent) then I think you must use 
one of the plugins with webapplication support.  These, in my experience 
(mostly with MyEclipse), require particular layouts of the source for it to 
work.

It seems to be your choice which work you want to do.

> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 25, 2006 12:33 PM
> To: Struts Users Mailing List
> Subject: Re: Struts with Eclipse 3.1
> 
> 
> But I donnot have an ANT build file. for my project, we donot 
> have an ANT build file yet..
> 
> Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the 
> record, I use a plain Java project, with an appropriate ANT 
> build file that builds and deploys teh struts system for me.
> 
> It works fine.
> 
> Miguel
> 
> On 5/25/06, Maya menon wrote:
> >
> > No. It wont work. when I do that, it asks for a folder to 
> import to. 
> > When I type a new name in says, specified project doesnt exist and 
> > stops there...
> >
> > "Chaudhary, Harsh" wrote: Sounds like something
> > wrong with the import you did. Why don't you do a fresh 
> import without 
> > creating a project first. Then when you import, it would 
> prompt you to 
> > specify a project at which point, you can create a new project. 
> > Hopefully this will merge the two and generate a singular file 
> > structure.
> >
> > Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:54 AM
> > To: Struts Users Mailing List
> > Subject: RE: Struts with Eclipse 3.1
> >
> >
> > Yes, I was trying that.
> >
> > I created an empty "Web project" in eclipse and imported 
> > struts-sample.war. But this created two WEB-INF directories and 2 
> > web.xml files. Looks like when a web project is first created, it 
> > already creates the web.xml and web-inf directory,a nd when the war 
> > file gets imported, it creates it again.
> >
> > So, I created a simple Java project and imported the war file. But 
> > functionally, will it work. What other suggestions ?
> >
> > "Chaudhary, Harsh" wrote:
> > A sample web project is bundeled with the struts 
> distribution at like: 
> > \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> > Its called struts-examples.war. Get that running and then you can 
> > reuse that code to get started. Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:31 AM
> > To: Struts Users Mailing List
> > Subject: RE: Struts with Eclipse 3.1
> >
> >
> > Thanks Harsh. I also dont care about ide support.
> >
> > But think you have an existing web project and you want to 
> use struts 
> > files. How do you do that ?
> >
> > In my case, I have a web project in eclipse [created using 
> eclipse 3.1 
> > and eclipse web tools platofrm]. Now to this project I have 
> added the 
> > struts zip file. How do I make use of the struts config 
> files, action 
> > classes etc ?
> >
> >
> >
> > "Chaudhary, Harsh" wrote:
> > Sure you can do that. But you would not have any IDE support. 
> > Personally I don't care much for IDE support as all you need is 
> > entries in struts-cofig.xml, an Action class, a Struts form and an 
> > HTML or JSP page.
> >
> > Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:17 AM
> > To: Struts Users Mailing List
> > Subject: RE: Struts with Eclipse 3.1
> >
> >
> > Ok Thanks. Can I just import the zip file to my project and start 
> > using it ?
> >
> > Maya
> >
> > "Chaudhary, Harsh" wrote:
> > Sure you can. Just include the Struts lib files in your project. If 
> > you are talking about IDE support for Struts, then I would suggest:
> > http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
> > This is a tested plug-in for Struts on eclipse. It costs about $30 -
> > $40.
> >
> > There is another Struts plug-in for eclipse available at: 
> > http://download.eclipse.org/webtools/downloads/
> >
> > This one is free. I have used it myself and its pretty good too.
> >
> > Harsh.
> >
> > -Original Message-
> > From: Maya menon [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 25, 2006 10:06 AM
> > To: user@struts.apache.org
> > Subject: Struts with Eclipse 3.1
> >
> >
> > All,
> >
> > Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can 
> > anyone please help.
> >
> > Thanks.
> >
> >
> > -
> > Feel free to call! Free PC-to-PC calls. Low rates on 
> PC-to-Phone. Get 
> > Yahoo! Messenger with Voice
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com
> >
> > 
> ---

RE: How do I remove myself from this mailing list?

2006-05-24 Thread George.Dinwiddie
from the message headers:

List-Unsubscribe: 
List-Help: 

> -Original Message-
> From: Pradeep Shekade [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 24, 2006 2:12 PM
> To: user@struts.apache.org
> Subject: How do I remove myself from this mailing list?
> 
> 
> Hello,
> 
> I want to be removed from this list. Does any one know how it 
> could be done?
> 
> Thanks,
> 
> Pradeep Shekade
> 

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



RE: Browser Back Button

2006-05-12 Thread George.Dinwiddie
I strongly recommend AGAINST that technique.

1. It's very narrow and easily circumvented (by turning off javascript, by 
opening an new window or tab instead of leaving the page you might want to come 
back to).

2. It's very user un-friendly.  It's against W3C recommendations.  It breaks 
the web paradigm.

In my opinion, it's better to learn to create web-apps that don't have an issue 
with the back button than to patch bad apps with bad bandaids such as that.

 - George Dinwiddie
   http://www.idiacomputing.com/

> -Original Message-
> From: Rauf Khan [mailto:[EMAIL PROTECTED] 
> Sent: Friday, May 12, 2006 9:31 AM
> To: Struts Users Mailing List
> Subject: Re: Browser Back Button
> 
> 
> Hi,
> 
>For browser back button solution through javascript, 
> please see this link.
> 
>  http://www.webdeveloper.com/forum/showthread.php?t=93935
> 
> Regards
> Rauf Khan
> 
> 
> On 5/12/06, temp temp <[EMAIL PROTECTED]> wrote:
> >
> > I am not clear using tokens How to use tokens to determine 
> that user 
> > clicked on browser back button ? Thanks & Regards
> >
> > Rob Manthey <[EMAIL PROTECTED]> wrote:  And I'll be 
> > contrary and toss in a "Yes, but ..." (apol: Eric Berne) (as usual, 
> > corrections to my notes are welcome) Yes, but you have to do it 
> > programmatically.  I don't think there's anything in j2ee (or any 
> > other web app) interfaces or implementations that handles this, as 
> > Phil said, so you have to make it happen by using
> > tokens and hand-written code etc etc.   Unless you are progamming a
> > bank's online faciliity or a www air traffic controller, 
> try not to go 
> > this way (I've done one - it was fairly easy in retrospect 
> but adds a 
> > moderately painful comprehensibility and navigation burden 
> to the app, 
> > so I'm not advising it as a first choice).  Safer to abide by 
> > available technologies and their proper application, as Phil was 
> > saying. The Back button and serverside webapps *naturally* clash if 
> > you provide no specific code to handle it - *you* have to 
> anticipate 
> > that and program around that reality, from as early as 
> possible in the 
> > dev cycle.  Worse is that the implementation of behaviour 
> of "Back" by 
> > different browsers is quite different, some taking the "purely 
> > snapshot" view, others taking the "resubmit the url" policy ... so 
> > there is great variation in outcomes! Unfortunately a lot of 
> > developers coming from passive web page development (where 
> Back works 
> > perfectly every time) don't realise that there's a problem until 
> > they've completed their first decent size active serverside web app 
> > and someone (usually the customer) says "but it breaks if I click 
> > *Back*". This question was popped here a week ago ... 
> perhaps we need 
> > an auto-responder!
> > Rob
> >
> > Philihp Busby wrote:
> >
> > > No.
> > >
> > > When people have a problem with back buttons, 95% of the 
> time they 
> > > are either doing one of the following:
> > > - Confusing the GET and POST methods and their intended 
> purpose with 
> > > forms.
> > > - Abusing client-side browser scripting for forwarding users.
> > >
> > > On 5/11/06, temp temp  wrote:
> > >
> > >> Is there  any way I can  realize  using java 
> that the user
> > >> clicked on browsers back button  ?
> > >>   Thanks & Regards
> > >>
> > >>
> > >>
> > >> -
> > >> Yahoo! Mail goes everywhere you do.  Get it on your phone.
> > >>
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the 
> US (and 30+
> > countries) for 2¢/min or less.
> >
> > -
> > New Yahoo! Messenger with Voice. Call regular phones from 
> your PC and 
> > save big.
> >
> 

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



RE: [OT] Problem in saving file content in DB using BLOB

2006-05-12 Thread George.Dinwiddie
Srinivas,

>From the error, it sounds like you're not doing the OutputStream write
in the context of an open database connection.  You don't show enough
code to know, however.

You might find http://idiacomputing.com/moin/OracleLobs of interest.

 - George Dinwiddie

> -Original Message-
> From: Srinivas Vakkalanka [mailto:[EMAIL PROTECTED] 
> Sent: Friday, May 12, 2006 8:49 AM
> To: 'Struts Users Mailing List'
> Subject: Problem in saving file content in DB using BLOB
> 
> 
> Hi,
> 
> I am using BLOB object through LOB package to save file 
> content in oracle 9.2.0.1 I have created the blob object. But 
> when I am writing data in to the blob it is giving the 
> following error. Kindly help in this regard 
> 
>  
> 
> It gives the following Error:
> 
>  
> 
> java.sql.SQLException: Must be logged on to server 
> 
> at 
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:13
> 4)   
> 
> at 
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:17
> 9)   
> 
> at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)   
> 
> at 
> oracle.jdbc.ttc7.TTC7Protocol.assertLoggedIn(TTC7Protocol.java
> :2196)   
> 
> at 
> oracle.jdbc.ttc7.TTC7Protocol.getLobChunkSize(TTC7Protocol.java:2972)
> 
> 
> at oracle.sql.LobDBAccessImpl.getChunkSize(LobDBAccessImpl.java:322)
> 
> 
> at oracle.sql.BLOB.getChunkSize(BLOB.java:478)
> 
> at oracle.sql.BLOB.getBufferSize(BLOB.java:515) 
> 
> at oracle.sql.BLOB.getBinaryOutputStream(BLOB.java:413)  
> 
> at 
> com.vertex.png.myidea.model.SubmitIdea.InsertIdea(SubmitIdea.java:250)
> 
> 
> at 
> com.vertex.png.myidea.model.submitidea.SubmitMyIdeaAction.exec
> ute(SubmitMyId
> eaAction.java:59)  
> 
> at 
> org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProces
> sor.java:419)   
> 
> at
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:224)
> 
> 
> at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1196)
> 
> 
> at 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.ja
> va:432)
> 
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:807)  
> 
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:908)  
> 
> at 
> org.apache.catalina.core.StandardWrapperValve.invokeServletSer
> vice(StandardW
> rapperValve.java:771) 
> 
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:322) 
> 
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:509)
> 
> 
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:212)   
> 
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:509)
> 
> 
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:209
> )
> 
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:509)
> 
> 
> at 
> com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSA
> PIProcessor.ja
> va:161)  
> 
> at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578)
> 
>  
> 
>  
> 
>  
> 
> Application CODE:
> 
>  
> 
> Writing File content in blob
> 
>  
> 
> BLOB byteFile1Content = dmlObj.blbCreation();//temporary lob 
> creation in Dml class
> 
> OutputStreamos1 = byteFile1Content.getBinaryOutputStream();
> 
> os1.write(byteFile1Content.getBytes());
> 
> os1.flush();
> 
>  }
> 
>  
> 
>  
> 
> Getting data Source from struts config
> 
> ServletContext context = request.getSession().getServletContext();
> 
> ModuleConfig moduleConfig = 
> ModuleUtils.getInstance().getModuleConfig(request,context);
> 
> dataSource = 
> (DataSource)context.getAttribute("org.apache.struts.action.DAT
> A_SOURCE"+modu
> leConfig.getPrefix());
> 
>  
> 
> Struts-config
> 
>  
> 
> 
> 
>  
> 
>   
> 
>   
> 
>   
> 
>  value="oracle.jdbc.driver.OracleDriver"
> />
> 
>  value="jdbc:oracle:thin:@remotehost:1521:SID"
> />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
>
> 
>  
> 
>   
> 
>  
> 
> Please help 
> 
>  
> 
> Thank You
> 
> Srinivas Vakkalanka
> 
> 

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



RE: Tiles without Struts

2006-05-08 Thread George.Dinwiddie
Hmmm...  You're right that http://struts.apache.org/ doesn't list any
1.3 versions in the menu.  If you go to the 1.2.x page and "download"
"development releases" you can find
http://svn.apache.org/dist/struts/action/ with later builds.

Standalone tiles may be downloaded at
http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles-core/
per the short FAQ at
http://struts.apache.org/struts-action/struts-tiles/faq.html  See
http://wiki.apache.org/struts/StandaloneTiles for the status on this
project.

Hope this helps.

 - George Dinwiddie
   http://www.idiacomputing.com/

> -Original Message-
> From: Klaus O K [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, May 06, 2006 2:53 PM
> To: user@struts.apache.org
> Subject: Tiles without Struts
> 
> 
> Hi I am an experienced user of Struts and Tiles. Now I am 
> trying to run Tiles without Struts, and I can not get it to 
> work at all. The installation instructions say: "First, 
> download a binary distribution of Tiles, currently 
> distributed with the Struts Framework" I have not been able 
> to find this. There is no struts-tiles-VERSION.jar in the 
> Struts download. I Google search turns up a notice that 1.3.2 
> contains no jar for tiles. Use 1.3.3 instead. But the Struts 
> site has no version higher than 1.2.9. Klaus O K

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



RE: Are layers 'that evil'?

2006-05-04 Thread George.Dinwiddie
It seems to me that the problem Paul Reedman describes isn't that of
building layers on top of frameworks, but of building frameworks on top
of frameworks.

I find that I often build an adapter layer around third-party subsystems
to create an interface written specifically in the terms of my
application.  That gives me a natural abstraction to use within my
application.  As a side benefit, I get a seam (to use Michael Feather's
term) for testing--I can test that my application uses the adapter the
way I expect and I can test that the third-party subsystem behaves in
the manner I expect.

Such an adapter is not a general purpose framework, however.  It's very
specific to the application.

I can't think of any time I've wrapped an MVC framework in this fashion,
however.  Instead, I wrap my application in an API that forms a
convenient Model for the framework.

Either way, I find it a good technique for keeping my business logic
distinct from, and not directly dependent on, the framework.

 - George Dinwiddie
   http://www.idiacomputing.com/

Rob Manthey wrote
> I found this recent par on a local JUG resonated for me and 
> had some theme parallels to Rick's current thread ... how 
> much do we over-code in ignorance of the natural mechanisms 
> available?  (Sure, the uber-coders among us can code better 
> frameworks and deserve the fruits, but not we lesser-lings, 
> who usually tangle things more by trying on that caper.) Rob
> 
> Paul Reedman wrote:
> 
> >
> >I still run into Java projects that build their own 
> frameworks !!! Yes 
> >Struts or hibernate is not good enough, we need our own 
> framework, so 
> >lets spend precious several weeks (or months) of the project time 
> >recasting a new web framework.
> >
> >Another thing I have noticed is that Java people love 
> building layers. 
> >So a particular developer doesn't like the interface into 
> hibernate or 
> >struts (or whatever framework) so they build another layer on top of 
> >the framework.
> >
> >This layer then becomes complicated and so a whole bunch of other 
> >people add to the layer in an attempt to make it "easier". (which 
> >doesn't happen because all they have done is to make it more 
> >complicated)
> >
> >Of course this new layer hides everything and soon you have no idea 
> >what you are doing. Importantly no one documents this new layer, so 
> >when new people join the project, they ask "I don't understand this 
> >framework..". Of course they don't know that underneath all of this 
> >software is plain old struts which has disappeared from view. 

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



RE: Session Id for the HTTP Session in Struts application

2006-05-01 Thread George.Dinwiddie
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.htm
l#getId()

> -Original Message-
> From: Raghuveer [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 01, 2006 3:16 AM
> To: user@struts.apache.org
> Subject: FW: Session Id for the HTTP Session in Struts application
> 
> 
> 
> 
> -Original Message-
> From: Raghuveer [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 01, 2006 12:40 PM
> To: 'Struts Users Mailing List'
> Subject: Session Id for the HTTP Session in Struts application
> 
> 
>  In my web application when accessing few pages i need to get 
> session id. I need to store this session id in Database 
> during the user navigation as per my requirement. For my 
> stored procedures i need to send this session id as IN parameter.
> 
> I am using struts application ?
> 
> What is the best way to handle this ?
> 
> 
> -
> 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: date picker (tried javawebparts but facing problem)

2006-04-21 Thread George.Dinwiddie
http://cvs.sourceforge.net/viewcvs.py/javawebparts/javawebparts/WEB-INF/
src/javawebparts/taglib/uiwidgets/CalendarTag.java?rev=1.3&view=log

or http://tinyurl.com/efdrt

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 21, 2006 3:11 PM
> To: Struts Users Mailing List
> Subject: Re: date picker (tried javawebparts but facing problem)
> 
> 
> Frank,
> 
> You mention CalendarTag. Is that some third-party tag that 
> extends struts tags? I can't find any info on it.
> 
> Could you send me a link to example(s) or documentation about it?
> 
> Thanks!
> 
> 
> David
> 
> 
> 
>   
>  
>  "Frank W.
>  
>  Zammetti"
>  
>  <[EMAIL PROTECTED]
>   To 
>  com>  user@struts.apache.org 
>  
>   
>   cc 
>  04/21/2006 12:17 
>  
>  AM   
>  Subject 
>Re: date picker (tried 
> javawebparts 
>but facing problem)
>  
>  Please respond to
>  
>"Struts Users  
>  
>Mailing List"  
>  
>  <[EMAIL PROTECTED]
>  
>   he.org> 
>  
>   
>  
>   
>  
> 
> 
> 
> 
> Hi Vijay,
> 
> Sorry, didn't see this earlier...
> 
> > From: *vijay r* <[EMAIL PROTECTED] >
> > Date: Apr 20, 2006 3:21 PM
> > Subject: date picker (tried javawebparts but facing problem)
> > To: Struts Users Mailing List  > >
> >
> > Hello,
> >
> > I need to use a data picker. I tried javawebparts but I am 
> getting the 
> > problem of class version incompatibility for class 
> 'CalendarTag'. I am 
> > using WAS 5.0 which is based on JDK 1.3.
> >
> > Is there a version of javawebparts for JDK 1.3 which I can 
> use. Or is 
> > there any other free date picker available.
> 
> Unfortunately we have standardized JWP on JDK 1.4 (for the 
> time being... I'm sure we'll bump to 5 at some point).  
> However, I do not believe there is anything 1.4-specific in 
> the CalendarTag... so, you could certainly pull out the tag 
> class and compile it with 1.3, it should work just fine.
> 
> Also, since that tag is really just rendering a big chunk of 
> Javascript, if you have a machine with 1.4 laying around, you 
> could just run the sample app and then grab the rendered 
> Javascript and markup.  Remove any version concerns 
> altogether :)  Of course, the tag makes things a bit nicer, 
> but you do have the option.
> 
> > regards,
> > vijay.
> 
> HTH,
> Frank
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Java Web Parts -
> http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> The information contained in this message is intended only 
> for the personal and confidential use of the recipient(s) 
> named above. If the reader of this message is not the 
> intended recipient or an agent responsible for delivering it 
> to the intended recipient, you are hereby notified that you 
> have received this document in error and that any review, 
> dissemination, distribution, or copying of this message is 
> strictly prohibited. If you have received this communication 
> in error, please notify us immediately, and delete the 
> original message.
> 
> 
> -
> 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: log4j and Struts v1.2.9

2006-04-18 Thread George.Dinwiddie
What does your log4j.properties file look like and where is it in the
.war file?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Alan Treece
> Sent: Tuesday, April 18, 2006 2:27 PM
> To: Struts Users Mailing List
> Subject: log4j and Struts v1.2.9
> 
> 
> I'm in the process of migrating a Struts v1.1 app to Struts v1.2.9  
> and having problems with log4j. After pulling the the Struts jar  
> files I've got all of the compile errors/warnings fixed, but when I  
> stop and start the web server I get:
> 
> warning: CORE3283: stderr: log4j:WARN No appenders could be 
> found for  
> logger (org.apache.struts.util.PropertyMessageResources).
> warning: CORE3283: stderr: log4j:WARN Please initialize the log4j  
> system properly.
> failure: WEB2798: [] ServletContext.log(): action: null 
> java.lang.InstantiationException
>  at  
> sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance 
> (InstantiationExceptionConstructorAccessorImpl.java:30)
>  at java.lang.reflect.Constructor.newInstance 
> (Constructor.java:274)
>  at java.lang.Class.newInstance0(Class.java:308)
>  at java.lang.Class.newInstance(Class.java:261)
> 
> 
> Log4j worked as expected for v1.1... Is there a change required for  
> Struts v1.2.x to allow log4j? The only thing that has changed (that  
> I'm aware of) concerning log4j is the 1.2.9 release of Struts. Do I  
> need to change some properties or xml files to allow log4j to work  
> with v1.2.x?
> 
> 
> Thanks, ajTreece
> 
> -
> 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: Efficient session object and cookie checks in struts

2006-04-17 Thread George.Dinwiddie
Jeff Thorne wrote:
> I have been reading that it May be more 
> efficient to just pass the resultset back to the view rather 
> Than deal with the overhead of several transfer objects. Does 
> this make sense?

I don't thinks so.
 1. Object creation time is trivial compared with database access time.
 2. Keeping the resultset open hogs database connection resources.
 3. The gui and database should be independent, and free to evolve in
different ways.  There's hardly any point in using an MVC framework if
all you're going to do is make it a direct face of database tables.

You might want to consider using a single DTO at a time, based on the
needs of the GUI screen/process.  When running the GUI and Business
tiers in the same VM, I would skip the DTO altogether and use an
Interface, instead, for the Business API as seen by the GUI.  This can
be implemented by full-fledged domain objects.

 - George

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



RE: How to make work Log4j with Struts?

2006-04-12 Thread George.Dinwiddie
I don't see anything wrong, right off the bat, with your
log4j.properties file.  Where in the startup log are you seeing the "No
appenders" warning?  Could it be that something else is starting up
log4j prior to your application being loaded, and there's not
log4j.properties on the classpath at that time?

 - George
   http://www.idiacomputing.com/

> -Original Message-
> From: starki78 [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 12, 2006 3:49 AM
> To: user
> Subject: How to make work Log4j with Struts?
> 
> 
> Hi I'm programming Struts 
> by using JDeveloper.
> When I start the
> web-application I always get:
> 
> 06/04/12 09:36:37 log4j:WARN No appenders could be found for 
> logger (org.apache.struts.util.PropertyMessageResources).
> 
> 06/04/12 09:36:37 log4j:WARN Please initialize the log4j 
> system properly.
> 
> The reason why I try to improve logging are internal server 
> errors that occur sometimes. When I put the same web-project 
> to tomcat I get nearly always more meaningful error messages:
> 
> 
> In the classes folder I've this log4j.properties file 
> log4j.defaultInitOverride = false
> 
> log4j.rootLogger=debug, stdout, R
> 
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> 
> # Pattern to output the caller's file name and line number. 
> log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
> 
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=${catalina.home}/logs/err.log
> 
> log4j.appender.R.MaxFileSize=100KB
> # Keep one backup file
> log4j.appender.R.MaxBackupIndex=1
> 
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
> 
> 
> Can someone help me? The best case would be to have the ability 
> to log also internal Struts-messages
> 
> Thanks Starki 
>  
> 
> 
> -
> 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: Proxy rewrites

2006-04-10 Thread George.Dinwiddie
If you put

https://machine1/proxy/machine2//application/index.jsp";>

into the head of your index.jsp, what is the redirect URL?

> -Original Message-
> From: Anil Arora [mailto:[EMAIL PROTECTED] 
> Sent: Friday, April 07, 2006 6:42 PM
> To: Struts Users Mailing List
> Subject: RE: Proxy rewrites
> 
> 
> I don't think that the base tag helps me.  For example, I 
> have an index.jsp file that looks like...
> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> 
> 
> 
> The HTTP header Location is being returned...
> 
> HTTP/1.1 302 Moved Temporarily
> Set-Cookie: JSESSIONID=1F664A9B4B0612843864A5B817DE0AE8; 
> Path=/interlace
> Location: 
> http://machine2:/context/application/main.do;jsessionid=1F
> 664A9B4B06
> 12843864A5B817DE0AE8
> Content-Type: text/html;charset=ISO-8859-1
> Content-Length: 0
> Date: Fri, 07 Apr 2006 22:38:38 GMT
> Server: Apache-Coyote/1.1
> 
> And this is an absolute URL instead of a relative url.  I 
> need Location to say 
> https://machine1/proxy/machine2//
> application/main.do;jsessionid=1F664A9B4B0612843864A5B817DE0AE8
> 
> 
> Thanks,
> Anil
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 07, 2006 1:49 PM
> > To: user@struts.apache.org
> > Subject: RE: Proxy rewrites
> > 
> > Anil,
> > 
> > Have you tried using a  tag? 
> > http://www.htmlhelp.com/reference/html40/head/base.html
> > 
> > > -Original Message-
> > > From: Anil Arora [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, April 06, 2006 2:35 PM
> > > To: user@struts.apache.org
> > > Subject: Proxy rewrites
> > >
> > >
> > > Didn't see this go through...resending...sorry for the 
> duplicates...
> > >
> > >
> > >
> > > 
> > >
> > > Hello,
> > >
> > >
> > >
> > > I'm fairly new to struts development (actually a non-UI developer 
> > > trying to do some UI development)  I'm trying to find an 
> answer to a 
> > > problem that I am having with Struts 1.2.9 and proxy webservers.
> > >
> > >
> > >
> > > I'm trying to set up a configuration as follows:
> > >
> > >
> > >
> > > 1.machine1: Apache WebServer with SSL using URL 
> rewrite and proxy
> > > redirect
> > >   Maps the following pattern:
> > > https://machine1/proxy/machine2//*   ->
> > > http://machine2:/context/*
> > > 2.machine2: Apache Tomcat 5.0 with Struts 1.2.9
> > >
> > >
> > >
> > > The incoming requests are working fine.  But my problem is that 
> > > outgoing URLs are not correct.
> > >
> > >
> > >
> > > First problem is with URL redirects.  I have an index.jsp in the 
> > > root,
> > >
> > >
> > >
> > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
> > >
> > > 
> > >
> > >
> > >
> > > The URL in the Location HTTP header looks like 
> > > http://machine2:/context/application/main.> do.
> > >
> > >
> > >
> > >
> > > Second, sometimes URLs are relative
> > >
> > >
> > >
> > > So, in the
> > > login.jsp page, we have a form element
> > >
> > >
> > >
> > >   
> > >
> > >  > > value="<%=cookieUsername%>"/>
> > >
> > >  > > value="<%=cookiePassword%>"/>
> > >
> > >   
> > >
> > >
> > >
> > > What I see generated is the following...
> > >
> > >
> > >
> > > 
> > >
> > > ...
> > >
> > > 
> > >
> > >
> > >
> > > In my configuration, I can specify the url prefix for the proxy 
> > > webserver, so I do have that information somewhere.  Is 
> there a way 
> > > to make struts rewrite the URL so that a) It is always 
> absolute and 
> > > b) It uses my external url prefix.  Can I build a plugin to do
> > > this?   I tried
> > > writing a filter to rewrite the URLs but then I ran into the
> > > relative URL issue.
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Anil
> > >
> > >
> > >
> > >
> > 
> > 
> -
> > 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: Proxy rewrites

2006-04-07 Thread George.Dinwiddie
Anil,

Have you tried using a  tag?
http://www.htmlhelp.com/reference/html40/head/base.html

> -Original Message-
> From: Anil Arora [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 06, 2006 2:35 PM
> To: user@struts.apache.org
> Subject: Proxy rewrites
> 
> 
> Didn't see this go through...resending...sorry for the duplicates...
> 
>  
> 
> 
> 
> Hello,
> 
>  
> 
> I'm fairly new to struts development (actually a non-UI 
> developer trying to do some UI development)  I'm trying to 
> find an answer to a problem that I am having with Struts 
> 1.2.9 and proxy webservers.
> 
>  
> 
> I'm trying to set up a configuration as follows:
> 
>  
> 
> 1.machine1: Apache WebServer with SSL using URL rewrite and proxy
> redirect
>   Maps the following pattern:
> https://machine1/proxy/machine2//*   ->
> http://machine2:/context/*
> 2.machine2: Apache Tomcat 5.0 with Struts 1.2.9
> 
>  
> 
> The incoming requests are working fine.  But my problem is 
> that outgoing URLs are not correct.
> 
>  
> 
> First problem is with URL redirects.  I have an index.jsp in 
> the root, 
> 
>  
> 
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
> 
> 
> 
>  
> 
> The URL in the Location HTTP header looks like 
> http://machine2:/context/application/main.> do. 
> 
>  
> 
> 
> Second, sometimes URLs are relative
> 
>  
> 
> So, in the 
> login.jsp page, we have a form element
> 
>  
> 
>   
> 
>  value="<%=cookieUsername%>"/>
> 
>  value="<%=cookiePassword%>"/>
> 
>   
> 
>  
> 
> What I see generated is the following...
> 
>  
> 
> 
> 
> ...
> 
>   
> 
>  
> 
> In my configuration, I can specify the url prefix for the 
> proxy webserver, so I do have that information somewhere.  Is 
> there a way to make struts rewrite the URL so that a) It is 
> always absolute and b) It
> uses my external url prefix.  Can I build a plugin to do 
> this?   I tried
> writing a filter to rewrite the URLs but then I ran into the 
> relative URL issue.
> 
>  
> 
> Thanks,
> 
> Anil
> 
>  
> 
> 

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



RE: White page flashing between request and response.

2006-04-06 Thread George.Dinwiddie
I would suggest sniffing the network traffic to see what's going on
between the browser and server.  This will give clues as to where you
might look further.

> -Original Message-
> From: Haim Raman [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 06, 2006 10:55 AM
> To: user@struts.apache.org
> Subject: White page flashing between request and response.
> 
> 
> Hi All
> I am having an issue I am trying to solve and I do not have a 
> clue how to.
> 
> The configuration used is jboss 4.01-sp1 running inside an 
> apache 2.0 web server on a Linux based machine with Struts 
> version 1.2.4.
> 
> When clicking on a link or submitting a form -  after few 
> seconds a white page is flashing  for few seconds and only 
> then new page starts loading.
> 
> This effect emphasizes performance issues we have and we are 
> trying to avid it. 
> The expected behavior was that the first page will be 
> displayed for few seconds while the request is processed and 
> then the new page will be loaded. 
> 
> I suspected filers issue here but did not found anything 
> wrong, a different option is a jboss/tomcat /apache  
> configuration issue.
> 
> Does any one has any idea how to tackle this issue.
> 
> Thanks 
> Haim 
> 
> 
> 
> -
> 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: Some questions

2006-04-05 Thread George.Dinwiddie
Mário Lopes asked:
> 3) Is MyEclipse worth it?

If you're using Eclipse for J2EE development, MyEclipse is worth it even if you 
only use the JSP validation.  It's not perfect, but it's well worth the price.

As for the rest, I see you've already gotten some good answers and some 
irrelevant noise.  I can't understand why anyone would hang around a user list 
just to harrass the users of a framework they don't like.

 - George

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



RE: Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-23 Thread George.Dinwiddie
Jonathan Revusky wrote:
> George Dinwiddie wrote:
> > There are many companies using Struts for far 
> > more important things than simple websites.  I believe that many of 
> > these companies would be unwilling to trust Struts for 
> > these uses if 
> > the project were to greatly open up the commit privileges.
> 
> You really believe that, huh? I don't know. I am very skeptical about 
> this because I just find it hard to believe that... well... certain 
> kinds of pointy-head managers who insist on using Struts or 
> some other 
> well known thing have very clear ideas about the processes by which 
> these software products were actually developed. I see a lot 
> of it is a 
> herd mentality, essentially. "Everybody else is using this 
> thing so it's 
> the 'safe choice'." (i.e. "Nobody can fire my ass for recommending 
> Oracle, say, because everybody else is using Oracle, but if I 
> recommend 
> that we use Acme RDBMS, that nobody has heard of, my ass is on the 
> line")
> 
> OTOH, maybe what you say is true. I can only speculate about 
> the basis 
> on which other people make decisions.

I presume that you've never worked in a corporate environment.
Proceeding on that assumption, let me explain a little to you.

Scott Adams has made his fortune displaying the cynical view of managers
that you describe.  Indeed, from the point of view of the technical
staff or others with limited access to those managers, it often looks
like decisions are being made very arbitrarily.  In some cases, they
actually are.  Incompetent managers are probably as common as
incompetent developers.

In reality, most managers do have a brain and use it.  Most managers are
not merely trying to avoid drawing attention to themselves so they can
draw a salary for doing no work.  Believe it or not, most managers take
their jobs seriously and make the best decisions they can given the
knowledge they have and the circumstances in which they make them.  By
"knowledge they have" I don't mean technical ignorance.  Sure, some are
quite ignorant technically and most do not have the detailed technical
knowledge of a developer, but they also have knowledge of non-technical
issues of which most developers are rather ignorant.

> Anyway, supposing for the sake of argument that what you believe is 
> true, then this leads to another basic question.
> 
> Would such a belief be well founded? (I mean the belief that it would 
> somehow become riskier to use Struts, say, if the barriers to 
> becoming a 
> committer were drastically lowered.)

Now we're leaving empiricism for speculation.
 
> This is actually the question that interests me. If people 
> believe this 
> but it's not true, then well... you know, should one 
> condition one's 
> behavior based on other people's misguided beliefs? Or 
> actually, in this 
> case, the misguided beliefs you are speculating that certain other 
> people may hold...

You've extrapolated several suppositions, here.  Who says their beliefs
are misguided?  I presume from these statements that you're rather
young.  In my youth, I tended to believe that those who didn't agree
with my beliefs were misguided.  And I was not shy of telling them so.

But even supposing that I am right and they are wrong (and I no longer
believe that these are boolean values), I am unlikely to convince them
by announcing that they're all wrong.  They will naturally think, "On
the one hand, I have this kid without the experience to understand the
issues which I'm balancing telling me that I'm wrong.  On the other
hand, my view of the world and the way it works has done pretty well for
me so far."  Do you doubt everything you've learned when someone walks
up and says you're wrong?

I thought not.

Is your lack of success in convincing someone that they're wrong their
problem or yours?  Do you want to do something about that lack of
success?  Or do you like that status quo?

If you like futile arguments, then you seem to be doing a fine job on
your own.  But if you want to argue more effectively, then I can suggest
the AYE Conference (http://www.ayeconference.com/conference.html).  And
if you can't find the time or money to attend, there's still lots of
good information in the blogs and articles of the people who put on that
conference--more than you could assimilate in a lifetime.

> Well, what I see is that there are people here (not just me) 
> seriously 
> questioning whether the so-called "Apache Way" is really all it's 
> cracked up to be. In response, you have people saying: "This 
> is how the 
> Apache Way works" or simply pointing to some document 
> somewhere in the 
> same way that a religious fundamentalist would quote scripture.

Do you want to contribute to Struts and feel excluded?  Or are you
morally indignant based on higher principles?  I can't figure this out.

As for the technology, and the rules of running the project, in both
cases I'm glad that the wide world provides more than one choice.  I'm
glad t

RE: Re: Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-22 Thread George.Dinwiddie
Jonathan Revusky wrote:
> First of all, pPeople seem to be addressing things I never said. For 
> example, I don't think I ever said that people should be allowed to 
> commit _anonymously_. I simply said that I believed you could 
> be quite 
> liberal about granting commit privileges to people and the 
> sky would not 
> fall in.
> 
> Now, here you seem to be suggesting that I see no need for 
> code review 
> on new code that is committed.
> 
> No, I certainly don't believe that. Of course, code that is committed 
> should be reviewed carefully. However, I don't know if this is such a 
> problem as regards this kind of situation. If you imagine a 
> situationin 
> which a new guy is given commit access, I think it's totally 
> normal that 
> the established developers will be quite carefully reviewing 
> the things 
> this guy does.
> 
> So basically, I don't think your above point 3 is such an objection.

I never said that the sky would fall in.  I just said that committing
code from a wide range of producers prior to review by a small group of
people deeply immersed in the project would reduce the trust in the
project.  You may have no objection to this, but you cannot make that
decision for others.  There are many companies using Struts for far more
important things than simple websites.  I believe that many of these
companies would be unwilling to trust Struts for these uses if the
project were to greatly open up the commit privileges.

> Also, there is a countervailing point here: in terms of subtle errors 
> and so on, simply getting more people involved may well reduce the 
> number of such subtle errors for the basic principle of more 
> eyeballs. 
> So this works both ways.

Effectiveness of code review depends on the depth of that code review,
not merely the number of people who have reviewed it.  While broad
review, which any open-source project may have, can bring a benefit in
reducing errors, I have generally found it better for catching coding
errors than design errors.  In many cases, it weakens the review because
it dilutes the sense of responsibility.

> > Consider the C2 Wiki and Wikipedia as analogies.  Yes, it's easy to 
> > delete obviously false information.  It's just as easy to 
> reintroduce 
> > it.  Keeping the worst of the cruft out is pretty much a 
> full-time job 
> > for volunteers who take on the task, and there's not even agreement 
> > between them which is the cruft.  Subtle or infrequently viewed 
> > incorrect information can, and does, remain for long 
> periods of time. 
> > Spectacular failures occur that make headlines in the mass 
> news media.
> 
> Just to be clear: are you speculating in the above, or are 
> you speaking 
> from direct experience maintaining such resources?

I was using this as an example, and don't wish to debate the question of
open Wikis.  For the record, I have given up on maintaining the C2 Wiki
(after many years of contributing) because the cruft is added faster
than it can be cleaned, and it's no longer worth my time to work on it.
I rarely refer to it for reference, either, for the same reason.

> > I, for one, would never recommend to any business 
> enterprise that they 
> > use Struts for important applications if the source was not 
> vetted and 
> > controlled by a small, trusted committee.  Your needs may not have 
> > such requirements for trustworthiness.
> 
> Do you have objective proof that Struts is more "trustworthy" -- i.e. 
> lack of subtle security holes and so on -- than other 
> comparable projects?

You have an objective measurement of trustworthiness?  I thought that
trust was a human (or perhaps animate) value.

> George, I'm rather unconvinced by your arguments.

That's OK with me.  I'm rather unconvinced by your arguments.  I'm just
stating the case that, as it is, Struts is rather widely trusted for
enterprise systems.  I believe that much of that trust is due to the
empirical track record of the small team controlling changes to the
code.  I believe that much of that trust by those businesses would be
lost were this model of control to be radically altered.

> But I reiterate: the idea that a more open collaborative 
> model is going 
> to produce software with more bugs or more security holes is an 
> empirical question that cannot be resolved by a priori reasoning.

I'm not saying that it would have more bugs.  I'm saying it would be
less trusted.  It's harder for me to trust a large group than a small
one.

> But to summarize: the basic idea that you need to closely guard commit

> privileges should not be a dogma. It is a hypothesis that should stand

> and fall based on empirical evidence. All I see here is people arguing

> that this is a bad idea based on a priori reasoning. Has anybody
jumped 
> up and said something like: "Oh, we tried that and it was a disaster. 
> This happened and the other thing happened and we had to revert to a 
> less open approach."
> 
> With my kind of empirical mind-set, this

Consequences of open commit privileges (was: has struts reached the saturation)

2006-03-21 Thread George.Dinwiddie
Jonathan Revusky wrote:
> I revert to my statement that a version repository makes it 
> quite easy 
> to restore the code to any point it was at in the past.
> 
> In any case, consider some potential bad consequence of letting just 
> about anybody commit:
> 
> 1. On occasion, people start committing all kinds of bad code 
> and it's a 
> lot of work for you to start sorting it out. (This very 
> rarely happens 
> because new people are typically very timid in their initial commits, 
> and don't do drastic things, their cokmmits are small and 
> localized and 
> could be rolled back easily.)
> 
> 2. Once in a very long while, let's say 10 or 20 years, somebody with 
> sociopathic tendencies comes along and... I dunno... starts 
> introducing 
> bugs deliberately. (But c'mon, this just about never happens.)
> 
> Now, let's consider the consequences of making it very hard, nigh 
> impossible, for new people to get involved.
> 
> A talented, energetic person who has a fire in his belly to do some 
> stuff is given the runaround. You drive that person away. You 
> lose all 
> the contributions he would have made. Moreover, that energy gets 
> invested in the competing project (in our conceptual 
> experiment above) 
> with low barriers to entry.
> 
> Which is going to be the bigger negative for a project, the 
> above point, 
> or points 1 and 2 above?

There are other potential bad consequences than the two listed above.
Consider

3. Subtle errors and exploitable security holes get introduced, either
inadvertantly or intentionally.

While a revision control system allows backing out changes, each change
must be carefully considered.  A security hole or other error may not be
the result of a single change, but of multiple changes made in multiple
locations and, perhaps, at multiple times.

While open source allows a large number of eyes to see the code, it's
not that easy to review code in depth and spot such problems.  Much
trust is placed on the skill, attention, and thoroughness of the
committers.

Consider the C2 Wiki and Wikipedia as analogies.  Yes, it's easy to
delete obviously false information.  It's just as easy to reintroduce
it.  Keeping the worst of the cruft out is pretty much a full-time job
for volunteers who take on the task, and there's not even agreement
between them which is the cruft.  Subtle or infrequently viewed
incorrect information can, and does, remain for long periods of time.
Spectacular failures occur that make headlines in the mass news media.

I, for one, would never recommend to any business enterprise that they
use Struts for important applications if the source was not vetted and
controlled by a small, trusted committee.  Your needs may not have such
requirements for trustworthiness.

But if businesses were to abandon use of Struts for important
applications, would that be a reasonable trade-off for the contributions
of your talented, energetic person?  Or would the loss of talented,
careful people, who needed a framework for business use where large sums
of money are at risk, be a larger negative for the project?

 - George Dinwiddie
   http://www.idiacomputing.com/

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



RE: Struts-el and Weblogic 9.1

2006-03-14 Thread George.Dinwiddie
Wendy Smoak 
> My guess is that you've switched from Servlet 2.3 to 2.4, the 
> same as if you'd moved from Tomcat 4.x to 5.x.  Hard to tell, 
> though, without more information.

Yep, see http://e-docs.bea.com/wls/docs81/notes/new.html#1184292
and http://e-docs.bea.com/wls/docs90/notes/new.html#1199788

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



RE: problems with enclosed by a

2006-03-13 Thread George.Dinwiddie
per http://struts.apache.org/struts-taglib/tagreference-struts-html.html

#  Render an input tag of type "image" Renders an HTML
 tag of type "image"
#  Render an HTML img tag Renders an HTML  element with
the image at the specified URL

> -Original Message-
> From: Markus Demetz [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 13, 2006 11:38 AM
> To: Struts Users Mailing List
> Subject: AW: problems with  enclosed by a 
> 
> 
> 
> > What does the raw html look like?
> 
> 
>   
> 
> 
> 
> produces:
> 
>  name="" src="/images/mf.jpg">
> 
> it works in mozilla but not in IE.
> 
> markus
> 
> >
> > >>> [EMAIL PROTECTED] 3/13/2006 9:38:48 AM >>>
> > Hi,
> >
> > I'm trying to do a link over an image like this:
> >
> > 
> > 
> > 
> >
> > But it doesn't work. It leads to a strange behaviour in Internet 
> > Explorer... The browser shows the link (in the statusbar) when the 
> > mouse is over the
> > image, but the link doesn't work. When rightclicking->open in new
> > window..
> > it works.
> > In Mozilla it seems to work correctly...
> >
> > When replacing  everything 
> works fine, 
> > but i need the image to be context-root relative.
> >
> > Whats wrong?
> >
> > Thank you very much,
> > Markus
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > __
> >
> > Confidentiality Statement:
> > This email/fax, including attachments, may include 
> confidential and/or 
> > proprietary information and may be used only by the person 
> or entity 
> > to which it is addressed. If the reader of this email/fax 
> is not the 
> > intended recipient or his or her agent, the reader is 
> hereby notified 
> > that any dissemination, distribution or copying of this 
> email/fax is 
> > prohibited. If you have received this email/fax in error, please 
> > notify the sender by replying to this message and deleting 
> this email 
> > or destroying this facsimile immediately.
> >
> > 
> -
> > 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: Autosumbit before Action

2006-03-10 Thread George.Dinwiddie
Do you have a separate form for each detail record?  If so, I'd suggest
not doing that and putting the entire thing in a single form with
multiple submits.

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Danny Lee
> Sent: Friday, March 10, 2006 6:39 AM
> To: user@struts.apache.org
> Subject: Autosumbit before Action 
> 
> 
> Hi guys!
> 
> I'm writing an admin webinterface for a web store at the 
> moment, the "put-new-product" part.
> 
> SITUATION: I have some product attributes like "Information 
> Blocks" and 
> "Product Details", which are 0..n, so I'm able to delete these, or 
> create new.
> 
> PROBLEM: The problem is, every time I delete or create a new detail I 
> have to call something an action. When I redirect back to the 
> refreshed form, all the stuff admin typed in before is away :(
> 
> 
> QUESTION: how can I autosubmit the whole form, every time 
> bevore the STORE-DETAIL, DELETE-DETAIL action is called? I 
> tried a JavaScript Sumbit on Click, but it doesn't seem to 
> work... My temporary solution is a warning near every 
> critical button, but it sux :(
> 
> Maybe you guys had a similar problem... Please help!
> 
> 
> Cheers,
> 
> Danny
> 
> P.S. I use StutsDialogs for this one... (Hi, Michael!)
> 
> 
> -
> 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: about Junit

2006-03-10 Thread George.Dinwiddie
Test Driven Development: By Example ([ISBN]0321146530) by Kent Beck.
Test Driven Development: A Practical Guide ([ISBN]0131016490) by David
Astels

You can find these on Amazon:
http://www.amazon.com/exec/obidos/ISBN=0321146530/alberg30-20
http://www.amazon.com/exec/obidos/ISBN=0321146530/alberg30-20

> -Original Message-
> From: gomathi [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 09, 2006 11:21 PM
> To: user@struts.apache.org
> Subject: about Junit
> 
> 
> 
> 
> Hi
> how to test java application in junit.Is there is any example 
> for test.how to 
> give each class into junit for testing
> 
> kindly regrads
> gomes
> 
> -
> 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: can anyone tell me how 2 use this mailing forum

2006-03-08 Thread George.Dinwiddie
I advise taking out the disclaimer.  The addressee is a bot, and if you
want people to read your message, it may be helpful if you don't tell
them it's forbidden.  Messages sent to the list are automatically
archived in a number of places, and it's not likely that someone will go
through deleting your emails from those archives.

> -Original Message-
> From: Vaneet Sharma [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 08, 2006 11:19 AM
> To: user@struts.apache.org
> Subject: can anyone tell me how 2 use this mailing forum
> 
> 
> Regards
> Vaneet. Sharma 
> CRISIL. 
> Office- (91)-22-56913095 
> M- (91)-93223 39127
> Disclaimer : 
> This message and any attachments (hereinafter referred to as 
> the Said Information) are  intended solely for the addressee. 
> The Said Information is confidential and may be privileged 
> and is also prohibited from disclosure. Access, use, copying, 
> distribution or e-use of the Said Information by anyone 
> except the addressee is unauthorized. If you are not the 
> intended addressee, please destroy all copies of  the Said 
> Information in your possession and also delete the same from 
> your computer. Any views expressed in the Said Information 
> are those of the individual sender except where the sender, 
> with due authority of CRISIL Ltd./CRISIL MarketWire 
> Ltd./Global Data Services of India Ltd. specifically states 
> them to be the views of CRISIL Ltd./CRISIL MarketWire 
> Ltd./Global Data Services of India Ltd. Nothing contained in 
> the Said Information is capable or intended to create any 
> legally binding obligations on the sender  CRISIL Ltd./CRISIL 
> MarketWire Ltd./Global Data Services of India L  td. who 
> accept no responsibility, whatsoever, for loss or damage from 
> the use of  the Said Information including damage from viruses.
> 

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



RE: Struts validation and XML Constants

2006-03-08 Thread George.Dinwiddie
Krishna, Mattam (M.) asked:
> > What is the meaning of "^\(?(\d{3})\)?[-| ]?(\d{3})[-| 
> ]?(\d{4})$" in
> > the above code.?

It's the regular expression for a US-style phone number.

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



[OT] RE: JavaT Application Verification Kit (AVK) : test results

2006-03-07 Thread George.Dinwiddie
http://developers.sun.com/prodtech/javatools/jsenterprise/reference/pres
entations/jse8/jse8_avk.html

> -Original Message-
> From: Raghuveer [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 07, 2006 1:44 AM
> To: user@struts.apache.org
> Subject: JavaT Application Verification Kit (AVK) : test results
> 
> 
> 
> I am new to Using AVK for my JSP web Application.
> 
> My Environment:
> 
> jdk1.4
> Struts 1.2
> hibernate3
> OC4J 10g (9.0.4)
> SQL server2000
> LDAP
> Plum tree portal.
> 
> 
> I am new to using AVK.
> I need to generate AVK test results for my Customer 
> requirement. Where Can i get information ? Struts Experts 
> please share your experiences on using this
> 
> Raghu
> 
> 
> -
> 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: Why global error handling doesn't work with struts?

2006-03-02 Thread George.Dinwiddie
In Internet Explorer, under Advanced Internet Options, uncheck "Show
friendly HTTP error messages."  You may have to log out of your computer
and back in for this to take affect.

> -Original Message-
> From: Dinwiddie, George 
> Sent: Thursday, March 02, 2006 10:03 AM
> To: user@struts.apache.org
> Subject: RE: Why global error handling doesn't work with struts?
> 
> 
> You'll have to ask Microsoft why it works that way.
> 
> In the meantime, I would advise checking your site with 
> Firefox so that you can see your custom 404 page.
> 
>  - George
> 
> > -Original Message-
> > From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 02, 2006 3:41 AM
> > To: Struts Users Mailing List
> > Subject: RE: Why global error handling doesn't work with struts?
> > 
> > 
> > But then why is it behaving that way. It shouldn't. Isn't it?
> > I am using IE 6.0 
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, March 01, 2006 7:49 PM
> > To: user@struts.apache.org
> > Subject: RE: Why global error handling doesn't work with struts?
> > 
> > What browser are you using?  Note that a custom 404 page is
> > still a 404 page, and Internet Explorer will insist on 
> > showing you its own 404 page instead of the one sent by the server.
> > 
> > > -Original Message-
> > > From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 28, 2006 11:39 PM
> > > To: Struts Users Mailing List
> > > Subject: Why global error handling doesn't work with struts?
> > > 
> > > 
> > > Hi All
> > > 
> > > I am running Tomcat 4.x and have tried to set global 
> error handling 
> > > using the following entry in the web.xml file. But there is no 
> > > redirection and I always end up with 404 page not found 
> error in the 
> > > browser. I am using struts 1.2 as the MVC framework for the 
> > > application.
> > >  
> > > One more strange thing that I have noticed is that although the 
> > > error page doesn't show up but it prints the SOP 
> statements on the 
> > > console. That means that it is getting redirected to the 
> error page 
> > > but why is it not showing up then?
> > > 
> > > Does anyone have a solution to this problem?
> > > 
> > > 
> > > 404 /weberror.jsp
> > > 
> > > 
> > > 
> > > Thanks & Regards
> > > 
> > > Partha
> > > 
> > >  
> > > 
> > 
> > 
> -
> > 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]
> 
> 

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



RE: Why global error handling doesn't work with struts?

2006-03-02 Thread George.Dinwiddie
You'll have to ask Microsoft why it works that way.

In the meantime, I would advise checking your site with Firefox so that
you can see your custom 404 page.

 - George

> -Original Message-
> From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 02, 2006 3:41 AM
> To: Struts Users Mailing List
> Subject: RE: Why global error handling doesn't work with struts?
> 
> 
> But then why is it behaving that way. It shouldn't. Isn't it? 
> I am using IE 6.0 
> 
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 01, 2006 7:49 PM
> To: user@struts.apache.org
> Subject: RE: Why global error handling doesn't work with struts?
> 
> What browser are you using?  Note that a custom 404 page is 
> still a 404 page, and Internet Explorer will insist on 
> showing you its own 404 page instead of the one sent by the server.
> 
> > -Original Message-
> > From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 28, 2006 11:39 PM
> > To: Struts Users Mailing List
> > Subject: Why global error handling doesn't work with struts?
> > 
> > 
> > Hi All
> > 
> > I am running Tomcat 4.x and have tried to set global error
> > handling using the following entry in the web.xml file. But 
> > there is no redirection and I always end up with 404 page not 
> > found error in the browser. I am using struts 1.2 as the MVC 
> > framework for the application.
> >  
> > One more strange thing that I have noticed is that although
> > the error page doesn't show up but it prints the SOP 
> > statements on the console. That means that it is getting 
> > redirected to the error page but why is it not showing up then?
> > 
> > Does anyone have a solution to this problem?
> > 
> > 
> > 404 /weberror.jsp
> > 
> > 
> > 
> > Thanks & Regards
> > 
> > Partha
> > 
> >  
> > 
> 
> -
> 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: Why global error handling doesn't work with struts?

2006-03-01 Thread George.Dinwiddie
What browser are you using?  Note that a custom 404 page is still a 404
page, and Internet Explorer will insist on showing you its own 404 page
instead of the one sent by the server.

> -Original Message-
> From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 28, 2006 11:39 PM
> To: Struts Users Mailing List
> Subject: Why global error handling doesn't work with struts?
> 
> 
> Hi All
> 
> I am running Tomcat 4.x and have tried to set global error 
> handling using the following entry in the web.xml file. But 
> there is no redirection and I always end up with 404 page not 
> found error in the browser. I am using struts 1.2 as the MVC 
> framework for the application.
>  
> One more strange thing that I have noticed is that although 
> the error page doesn't show up but it prints the SOP 
> statements on the console. That means that it is getting 
> redirected to the error page but why is it not showing up then?
> 
> Does anyone have a solution to this problem?
> 
> 
> 404
> /weberror.jsp
> 
> 
> 
> Thanks & Regards
> 
> Partha 
> 
>  
> 

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



RE: html:link, etc, looking for full url, not just context name

2006-02-27 Thread George.Dinwiddie
Jim,

If you don't want advice, don't ask.  If you ask, don't get snippy about
the answers you receive.

Google and other indexing robots are perfectly capable of inferring the
full URL from a relative URL.  I may be wrong, but I think it's
significantly harder to "game" your Google placement than turning all of
your relative URLs into absolute ones.  No doubt you can find articles
and hire consultants who will recommend this, and other dodgy tactics,
that may have worked for a week or two in the distant past.

If you still want to tell me that I'm being a jerk for not giving you
the answer to the question as you phrased it, you might want to read
http://www.regdeveloper.co.uk/2006/02/27/perpetual_motion_apache/
starting with the part: 'why we may seem unhelpful when a question comes
across as "help me shoot myself in the foot".'

 - George

> -Original Message-
> From: Jim Reynolds [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 27, 2006 5:12 PM
> To: Struts Users Mailing List
> Subject: Re: html:link, etc, looking for full url, not just 
> context name
> 
> 
> Its not my day 
> 
> No I do not believe I ever mentioned robots reading the site. 
> Please stay on the topic. I want to use full URL's not 
> relative. Google and other indexing "robots" will use the 
> data in the link to index. I have a bucket full of links, and 
> if I could easily put in the full url, it will help with my 
> rating. It would be simple to update the tag myself and add 
> the url, but I thought there would be a pre-built in hook for this.
> 
> All I have been asking is the following: Is there a easy way 
> using the html:# tags to get the full url printed.
> 
> 
> 
> 
> On 2/27/06, [EMAIL PROTECTED] 
> <[EMAIL PROTECTED]> wrote:
> > FWIW, I've never had any trouble getting robots to index relative 
> > URLs. In fact, it would seem pretty silly to me if all URLs 
> on a site 
> > had to be absolute.
> >
> > The inclusion of query parameters in your URL is more 
> likely to cause 
> > it to be ignored than the use of relative URLs.
> >
> >  - George
> >
> > > -Original Message-
> > > From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, February 27, 2006 4:20 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: html:link, etc, looking for full url, not 
> just context 
> > > name
> > >
> > >
> > > Not exactly the answer I was looking for. I don't believe I ever 
> > > mentioned anything about iterating  or params, or
> > >
> > > Anyway, when I use html:link, etc, I get the following in my
> > > source: 
> > >
> > > I want
> > >  > > href="http://www.mywebapphere/app/exceptionMain.do?userID=290441";>
> > >
> > > That way when the robots index the site, it includes that 
> portion, 
> > > which is good.
> > >
> > > That is all I am trying to achive.
> > >
> > >
> > >
> > >
> > >
> > > On 2/27/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote:
> > > > Yes,
> > > >
> > > 
> http://struts.apache.org/struts-taglib/tagreference-struts-html.html
> > > #h
> > > > tml:link
> > > >
> > > > If you will use html:link inside an iteration use the properties
> > > > (indexed,indexId)
> > > > If you want to compose a URL like
> > > > Action1.do?ID=2
> > > > use
> > > >
> > > >  > > paramName="theFormBeanName"
> > > > paramProperty="thePropertyInTheForm">link
> > > >
> > > > Ahmed Hashim
> > > >
> > > > On 2/27/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I have created a ecommerce site using struts, and 
> using the full 
> > > > > array of html:# tags.
> > > > >
> > > > > I am at the point of trying to index the site better, and
> > > one thing
> > > > > I have noticed with most sites that index well, and 
> according to 
> > > > > what I hear from google. The href links, which I 
> currently use 
> > > > > html:link with are candidates for indexing.
> > > > >
> > > > > The problem I have, is that I would like the full url to
> > > show up in
> > > > > the links, as that is a good index line. It is the url of
> > > the site.
> > > > > Without it, the link is only a .do or whatever.
> > > > >
> > > > > Question: Is there a 'clean' way to get the full url to
> > > show up in
> > > > > the links. In my mind clean means, I get the full url 
> + context
> > > > > name:
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > Thanks,
> > > > >
> > > > >
> > > 
> 
> > > > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > http://del.icio.us/ahashim
> > > >
> > >
> > > 
> 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-m

RE: html:link, etc, looking for full url, not just context name

2006-02-27 Thread George.Dinwiddie
FWIW, I've never had any trouble getting robots to index relative URLs.
In fact, it would seem pretty silly to me if all URLs on a site had to
be absolute.

The inclusion of query parameters in your URL is more likely to cause it
to be ignored than the use of relative URLs.

 - George

> -Original Message-
> From: Jim Reynolds [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 27, 2006 4:20 PM
> To: Struts Users Mailing List
> Subject: Re: html:link, etc, looking for full url, not just 
> context name
> 
> 
> Not exactly the answer I was looking for. I don't believe I 
> ever mentioned anything about iterating  or params, or
> 
> Anyway, when I use html:link, etc, I get the following in my 
> source: 
> 
> I want
> http://www.mywebapphere/app/exceptionMain.do?userID=290441";>
> 
> That way when the robots index the site, it includes that 
> portion, which is good.
> 
> That is all I am trying to achive.
> 
> 
> 
> 
> 
> On 2/27/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote:
> > Yes, 
> > 
> http://struts.apache.org/struts-taglib/tagreference-struts-html.html#h
> > tml:link
> >
> > If you will use html:link inside an iteration use the properties
> > (indexed,indexId)
> > If you want to compose a URL like
> > Action1.do?ID=2
> > use
> >
> >  paramName="theFormBeanName" 
> > paramProperty="thePropertyInTheForm">link
> >
> > Ahmed Hashim
> >
> > On 2/27/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:
> > >
> > > I have created a ecommerce site using struts, and using the full 
> > > array of html:# tags.
> > >
> > > I am at the point of trying to index the site better, and 
> one thing 
> > > I have noticed with most sites that index well, and according to 
> > > what I hear from google. The href links, which I currently use 
> > > html:link with are candidates for indexing.
> > >
> > > The problem I have, is that I would like the full url to 
> show up in 
> > > the links, as that is a good index line. It is the url of 
> the site. 
> > > Without it, the link is only a .do or whatever.
> > >
> > > Question: Is there a 'clean' way to get the full url to 
> show up in 
> > > the links. In my mind clean means, I get the full url + context 
> > > name:
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > 
> 
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > http://del.icio.us/ahashim
> >
> 
> -
> 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: [FRIDAY] Truthiness is ..

2006-02-24 Thread George.Dinwiddie
> * http://en.wikipedia.org/wiki/Truthiness

http://www.testing.com/cgi-bin/blog/2006/02/20#truthish-mocks

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



RE: AW: Disabling Back Button in IE

2006-02-23 Thread George.Dinwiddie
But it *is* a good way to lose customers. ;-)  I, for one, tend not to do 
business with sites like that.

> -Original Message-
> From: Josh McDonald [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 22, 2006 5:45 PM
> To: user@struts.apache.org
> Subject: Re: AW: Disabling Back Button in IE
> 
> 
> Disabling keys in the browser is a bad idea for regular 
> users, a disabling idea for the vision-impaired, and for many 
> organisations technically against the law since you're 
> deliberately doing something out of the norm which makes it 
> inaccesible to disabled people.
>  
> -- 
>  
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>  
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
> 
> 
> >>> [EMAIL PROTECTED] 23/02/2006 2:09:28 am >>>
> 
> Just add
> 
> document.onkeydown   = function(e) {
> if (document.all) {
> if (event.srcElement.type=="text" || 
> event.srcElement.type=="textarea") return true;
> else return false;
> }
> else {
> if (e.target.type=="text" || 
> e.target.type=="textarea") return true;
> else return false;
> }
> }
> document.onkeypress   = function(e) {
> if (document.all) {
> if (event.srcElement.type=="text" || 
> event.srcElement.type=="textarea") return true;
> else return false;
> }
> else {
> if (e.target.type=="text" || 
> e.target.type=="textarea") return true;
> else return false;
> }
> }  
> 
> to your page and all keys pressing has no effect, except for 
> text and textarea fields. So the only way 
> still to get back ist pressing ALT-Leftarrow within a text or 
> text area. You might catch this as well but exactly catching 
> a specific key is more complicated especially as firefox and 
> ie behaviour differs in that case.
> 
> Bjoern 
> 
> > -Ursprüngliche Nachricht-
> > Von: Josh McDonald [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 22. Februar 2006 06:42
> > An: user@struts.apache.org
> > Betreff: Re: Disabling Back Button in IE
> > 
> > Can't (and shouldn't) be done. The closest you're likely to
> > get it open your app in a popup window with no menu, though 
> > the user can still hit backspace. A better idea is to fix the 
> > (assumed) re-post issues in your application.
> >  
> > -Josh
> >  
> > --
> >  
> > "His comrades fought beside him, Van Owen and the rest...
> >But of all the thompson gunners- Roland was the best."
> >  
> > Josh McDonald
> > Analyst Programmer
> > Information Technology
> > Ph: 61 7 3006 6460
> > Email: [EMAIL PROTECTED]
> > 
> > 
> > >>> [EMAIL PROTECTED] 22/02/2006 3:19:22 pm >>>
> > 
> > 
> > 
> > Hi
> > Anyone can tell how to disable the "Back" button in IE
> > through our Code.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > **
> > *
> > Messages included in this e-mail and any of its attachments
> > are those of the author unless specifically stated to 
> > represent WorkCover Queensland. The contents of this message 
> > are to be used for the intended purpose only and are to be 
> > kept confidential at all times.
> > This message may contain privileged information directed only 
> > to the intended addressee/s. Accidental receipt of this 
> > information should be deleted promptly and the sender notified.
> > This e-mail has been scanned by Sophos for known viruses.
> > However, no warranty nor liability is implied in this respect.
> > **
> > **
> > 
> > 
> 
> Diese E-Mail enthält vertrauliche und/oder rechtlich 
> geschützte Informationen. Wenn Sie nicht der richtige 
> Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
> informieren Sie bitte sofort den Absender und vernichten Sie 
> diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail bzw. Inhalte hieraus ist nicht gestattet.
> 
> 
> 
> -
> 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: BusinessObject and DataTransferObject

2006-02-23 Thread George.Dinwiddie
A Business Object is generally a part of the Domain Model (see
http://martinfowler.com/eaaCatalog/domainModel.html).  A Data Transfer
Object is a data "object" used to transfer information to/from a remote
system (see http://martinfowler.com/eaaCatalog/dataTransferObject.html).
I highly recommend Martin Fowler's book, "Patterns of Enterprise
Application Architecture."

> -Original Message-
> From: Shasirekha Engala [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 23, 2006 5:30 AM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: BusinessObject and DataTransferObject
> 
> 
> Hi
> 
>   What is the difference between a BusinessObject and 
> DataTransferObject. Can the DTO be serialized.
> 
> 
> Thanks and Regards
> Shasi
> 
> 

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



RE: extension-mapping path-mapping

2006-02-17 Thread George.Dinwiddie
Jim Reynolds asked:
> For whatever reason, I have alwasy called the application 
> with /test/welcome.do or something like that.
> 
> Question1) Does the name in the servlet-name, have to be the 
> same name as the context? Or did it just work because of that.

I don't know Tomcat configuration, but with Weblogic, you can change the
context of the application with

/

in weblogic.xml.  I'd imagine that Tomcat has a similar setting.

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



RE: [OT] Hiding methods

2006-02-17 Thread George.Dinwiddie
LOL!  Wunnerful!  And I agree.

> -Original Message-
> From: Josh McDonald [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 16, 2006 7:04 PM
> To: user@struts.apache.org
> Subject: Re: [OT] Hiding methods
> 
> 
> Strewth! I just went back and read this thread... Throw an 
> exception and check to see if you like the caller That 
> makes baby jesus cry.
>  
> If you have public methods you don't want people to call, ask 
> them not to. If doing what you ask them not to causes 
> exceptions and their program not to work, then the problem 
> seems to be solved already.
>  
> And if you insist on keeping a list of classes that can call 
> your api and checking it santa-style, then don't do it on 
> every method call, that's just plain horrible. Make those 
> methods "package", and add a proxy class in that package with 
> public a API that can only be instantiated by your "manager" 
> classes. And it's you're still going to go to programmer hell 
> if you do that.
> 
> -Josh
>  
> -- 
>  
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>  
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
> 
> 
> >>> [EMAIL PROTECTED] 17/02/2006 9:29:18 am >>>
> 
> Frank W. Zammetti wrote:
> > I saw a very similar question asked a few months back in a general
> Java
> > forum, and I suggested an answer that I've never had the chance to 
> > actually try out... the theory is interesting though...
> > 
> > In the method you want to "protect", immediately throw an exception
> and
> > catch it.  Then, parse the stack trace and see who the caller was.
> If
> > it's not a class you want to have access to the method, throw an 
> > IllegalAccessException.
> > 
> > Again, it's one of those things that sounds good in your 
> head, I have
> no
> > idea if it translates to anything workable :)
> 
> E! If you're going to reinvent the wheel, at least don't make it 
> square ;-)
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> **
> *
> Messages included in this e-mail and any of its attachments 
> are those of the author unless specifically stated to 
> represent WorkCover Queensland. The contents of this message 
> are to be used for the intended purpose only and are to be 
> kept confidential at all times. This message may contain 
> privileged information directed only to the intended 
> addressee/s. Accidental receipt of this information should be 
> deleted promptly and the sender notified. This e-mail has 
> been scanned by Sophos for known viruses. However, no 
> warranty nor liability is implied in this respect.
> **
> **
> 
> 

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



RE: Re: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
I'm just telling you what I find easier.

> -Original Message-
> From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 16, 2006 4:51 PM
> To: Struts Users Mailing List
> Subject: RE: Re: [SHALE] Using the Test Framework
> 
> 
> Although those are interesting comments, they don't address 
> my basic point about the amount of effort required to mock up 
> all those calls.
> ;-)
> 
> - Brendan
> 
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 16, 2006 3:41 PM
> To: user@struts.apache.org
> Subject: RE: Re: [SHALE] Using the Test Framework
> 
> 
> CONNER, BRENDAN wrote:
> > I understand the concept; I'm just worried about the amount
> > of effort required to mock up all those calls, relative to 
> > the complexity of my Action methods themselves.  One nice 
> > thing about using JSF is that our Action methods themselves 
> > are almost ridiculously simple (since the business logic is 
> > in the Session Beans and JSF takes care of data conversion to 
> > and from the managed beans); we no longer do anything 
> > explicitly with the Servlet classes (e.g., request or 
> > session), so we're basically just packaging up data into 
> > DTOs, calling Session Bean methods (via the delegates), 
> > catching exceptions, and optionally queueing messages.
> 
> Good!  I also recommend having the Session Bean methods call 
> like-named methods in a Business Logic class, doing similar 
> catching of exceptions. Then you can test your Business Logic 
> without the container.  The Session Bean is just a facade on 
> the Business Logic, the same as the Business Delegate is a 
> facade on the Session Bean.  In fact, if I'm not using EJBs, 
> I'm likely to use the Business Delegate facade directly on 
> the Business Logic.  Then, if the transactional support of 
> EJBs becomes desirable, I just insert an extra facade layer 
> in the code.
> 
> > We
> > just want to do quick checks at the Action level to make sure 
> > we're not doing something stupid.
> 
> Of course, but that can be done through the UI itself, rather 
> than inside the web container at the Action level.  It's more 
> work in some ways, but less in others.  And it gives you a 
> warm fuzzy about the whole application.
> 
>  - George
> 
> -
> 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: Re: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN wrote:
> I understand the concept; I'm just worried about the amount 
> of effort required to mock up all those calls, relative to 
> the complexity of my Action methods themselves.  One nice 
> thing about using JSF is that our Action methods themselves 
> are almost ridiculously simple (since the business logic is 
> in the Session Beans and JSF takes care of data conversion to 
> and from the managed beans); we no longer do anything 
> explicitly with the Servlet classes (e.g., request or 
> session), so we're basically just packaging up data into 
> DTOs, calling Session Bean methods (via the delegates), 
> catching exceptions, and optionally queueing messages.

Good!  I also recommend having the Session Bean methods call like-named
methods in a Business Logic class, doing similar catching of exceptions.
Then you can test your Business Logic without the container.  The
Session Bean is just a facade on the Business Logic, the same as the
Business Delegate is a facade on the Session Bean.  In fact, if I'm not
using EJBs, I'm likely to use the Business Delegate facade directly on
the Business Logic.  Then, if the transactional support of EJBs becomes
desirable, I just insert an extra facade layer in the code.

> We 
> just want to do quick checks at the Action level to make sure 
> we're not doing something stupid.

Of course, but that can be done through the UI itself, rather than
inside the web container at the Action level.  It's more work in some
ways, but less in others.  And it gives you a warm fuzzy about the whole
application.

 - George

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



RE: [OT] Hiding methods

2006-02-16 Thread George.Dinwiddie
Michael Jouravlev replied
> On 2/16/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > In the method you want to "protect", immediately throw an exception 
> > and catch it.  Then, parse the stack trace and see who the 
> caller was.  
> > If it's not a class you want to have access to the method, throw an 
> > IllegalAccessException.
> 
> I guess it can be costly if the callers are mostly the ones 
> that you want to allow access to. On the other hand, I don't 
> know the metrics on how costly is to create and throw an exception.

I don't think you'd have to throw and catch it.  I think it's sufficient
to create an instance of Throwable to check the stack trace.

 - George
   http://www.idiacomputing.com

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



RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN (SBCSI) asked:
> Sent: Thursday, February 16, 2006 1:08 PM
> To: Struts Users Mailing List
> Subject: RE: [SHALE] Using the Test Framework
> 
> 
> OK, so maybe I have to learn more about the injection 
> process.  For all this talk about simplifying the process, 
> it's starting to get complicated, but, hey, I'm flexible. ;-)
> 
> Can someone point me to a resource that would explain this in 
> more detail?  It sounds like I have to create a bunch of 
> alternate delegates (that return different test values) to 
> swap into place when testing my JSF Action method.  Is that the idea?

Pretty much.  If your delegate API is defined as an interface, then it's
easy to create a mock or stub that implements that interface.  There are
even packages that will do it on the fly (EasyMock, for example).  You
can also do things like subclass your delegate and override certain
methods that might require container services.

Then you just need to have a way to insert these in place of the
production delegates.  If you're using dependency injection (a.k.a.
inversion of control) then you can inject them by that method.  If
you're using an abstract factory pattern, you can substitute a test
factory for the production factory.

 - George

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



RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
CONNER, BRENDAN replied:
> So are you agreeing that there is currently no framework that 
> can currently do round-trip testing as I've described it?  Or 
> am I missing something?

No, but I'm saying that you'll likely find it messy and difficult to
mock out part of a big environment but include other parts.
 
> Just trying to get a practical answer. ;-)

I agree with Laurie that it's more practical to unit test in isolation,
and then system test the entire system.  If you cover all the boundary
conditions with your unit tests, then the system testing is a lot more
tractable.
 
> - Brendan
> 
> P.S. We *are* using delegates, DAO factories, etc.  It just 
> would be nice to be able to test our code from the Action 
> method once those delegates have been filled in and are no 
> longer stubs.

Stubs, fakes and mocks are subtly different things.  For unit testing, I
think you'll still want to inject a fake or a mock that behaves (and in
the case of a mock, verifies the usage) the same as the real thing.  Not
only does this free you from difficult test setups, but it allows you to
create conditions that may be impossible to create using the real thing.

 - George
 
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 16, 2006 8:57 AM
> To: user@struts.apache.org
> Subject: RE: [SHALE] Using the Test Framework
> 
> 
> What Cactus does is allow your test code to run from within 
> the container, controlled by the same test code outside the 
> container.  It connects the two with a proxy arrangement.  It 
> can call anything in your code or available to your code.
> 
> Cactus *is* a PITA to work with, and complicated to think 
> about, IMHO. I've gotten away from using it in recent years 
> by abstracting interfaces that might need to do things like 
> JNDI lookups and providing mock versions for out-of-container 
> testing.  In my experience, it things are hard to test, it 
> generally indicates design issues.  Usually the dependency 
> chains are long and concrete.  Constructs like a Business 
> Delegate or Abstract DAO Factory help break up the dependencies.
> 
> Recommended reading:
> 
> "The Dependency Inversion Principle" by Robert C. Martin
> (http://www.objectmentor.com/resources/articles/dip.pdf)
> 
> "Patterns of Enterprise Application Architecture" by Martin Fowler
> (http://www.amazon.com/exec/obidos/ASIN/0321127420/alberg30-20)
> 
>  - George Dinwiddie
>http://idiacomputing.com/moin/FavoriteBooks
> 
> 
> 
> > -Original Message-
> > From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 15, 2006 5:55 PM
> > To: Struts Users Mailing List
> > Subject: RE: [SHALE] Using the Test Framework
> > 
> > 
> > I think Cactus works OK with JNDI lookups, etc., since it's
> > just a Servlet.  However, I think it falls apart when trying 
> > to reference stuff like FacesContext.getInstance(), since 
> > we're not in the middle of an actual JSF life cycle event.
> > 
> > So my quandary seems to be that, for round trip testing
> > starting at an Action method:
> > 
> > 1. I can't use the Shale Test Framework, because it would
> > fail when doing EJB calls. 2. I can't use Cactus, because it 
> > would fail when trying to do FacesContext.getInstance(). 3. 
> > Because of the above, there is no standard testing framework 
> > to use for this type of testing.
> > 
> > Is that a fair assessment?  I'm not complaining; I'm just
> > trying to verify my understanding.
> > 
> > - Brendan
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> > Behalf Of Craig McClanahan
> > Sent: Wednesday, February 15, 2006 4:49 PM
> > To: Struts Users Mailing List
> > Subject: Re: [SHALE] Using the Test Framework
> > 
> > 
> > On 2/15/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote:
> > >
> > > But let's say my test executes an action method on my 
> application's
> > > managed bean.  That method uses the mock objects and then tries to
> > call
> > > a Session Bean to do a lookup, but it appears that the 
> lookup fails
> > > because the action method is not really running in a Web 
> Container, 
> > > correct?  Is this all happening in stand-alone application 
> > mode?  How
> > > can I set up my test to run in a Web Container so that it 
> has access
> > to
> > > JNDI lookups, etc.?  Do I have to use Cactus for that?
> > 
> > 
> > It should be possible to use Cactus for that kind of testing,
> > but I've never looked how Cactus deals with JNDI lookups or 
> > session beans.
> > 
> > - Brendan
> > 
> > 
> > Craig
> > 
> > -Original Message-
> > > From: Gary VanMatre [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 14, 2006 2:22 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: [SHALE] Using the Test Framework
> > >
> > >
> > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]>
> > > >
> > > > OK, sorry for being a little dense about this, but, if,
> > for example,
> > > 

RE: [SHALE] Using the Test Framework

2006-02-16 Thread George.Dinwiddie
What Cactus does is allow your test code to run from within the
container, controlled by the same test code outside the container.  It
connects the two with a proxy arrangement.  It can call anything in your
code or available to your code.

Cactus *is* a PITA to work with, and complicated to think about, IMHO.
I've gotten away from using it in recent years by abstracting interfaces
that might need to do things like JNDI lookups and providing mock
versions for out-of-container testing.  In my experience, it things are
hard to test, it generally indicates design issues.  Usually the
dependency chains are long and concrete.  Constructs like a Business
Delegate or Abstract DAO Factory help break up the dependencies.

Recommended reading:

"The Dependency Inversion Principle" by Robert C. Martin
(http://www.objectmentor.com/resources/articles/dip.pdf)

"Patterns of Enterprise Application Architecture" by Martin Fowler
(http://www.amazon.com/exec/obidos/ASIN/0321127420/alberg30-20)

 - George Dinwiddie
   http://idiacomputing.com/moin/FavoriteBooks



> -Original Message-
> From: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 15, 2006 5:55 PM
> To: Struts Users Mailing List
> Subject: RE: [SHALE] Using the Test Framework
> 
> 
> I think Cactus works OK with JNDI lookups, etc., since it's 
> just a Servlet.  However, I think it falls apart when trying 
> to reference stuff like FacesContext.getInstance(), since 
> we're not in the middle of an actual JSF life cycle event.
> 
> So my quandary seems to be that, for round trip testing 
> starting at an Action method:
> 
> 1. I can't use the Shale Test Framework, because it would 
> fail when doing EJB calls. 2. I can't use Cactus, because it 
> would fail when trying to do FacesContext.getInstance(). 3. 
> Because of the above, there is no standard testing framework 
> to use for this type of testing.
> 
> Is that a fair assessment?  I'm not complaining; I'm just 
> trying to verify my understanding.
> 
> - Brendan
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Craig McClanahan
> Sent: Wednesday, February 15, 2006 4:49 PM
> To: Struts Users Mailing List
> Subject: Re: [SHALE] Using the Test Framework
> 
> 
> On 2/15/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote:
> >
> > But let's say my test executes an action method on my application's 
> > managed bean.  That method uses the mock objects and then tries to
> call
> > a Session Bean to do a lookup, but it appears that the lookup fails 
> > because the action method is not really running in a Web Container, 
> > correct?  Is this all happening in stand-alone application 
> mode?  How 
> > can I set up my test to run in a Web Container so that it has access
> to
> > JNDI lookups, etc.?  Do I have to use Cactus for that?
> 
> 
> It should be possible to use Cactus for that kind of testing, 
> but I've never looked how Cactus deals with JNDI lookups or 
> session beans.
> 
> - Brendan
> 
> 
> Craig
> 
> -Original Message-
> > From: Gary VanMatre [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 14, 2006 2:22 PM
> > To: Struts Users Mailing List
> > Subject: RE: [SHALE] Using the Test Framework
> >
> >
> > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]>
> > >
> > > OK, sorry for being a little dense about this, but, if, 
> for example,
> > my
> > > application code is referencing a FacesContext object, and my Test
> > code
> > > initializes MockFacesContext, what is the mechanism that makes my 
> > > application use the values that are in MockFacesContext? I
> understand
> > > that MockFacesContext is a subclass of FacesContext, but I don't 
> > > understand how my application ends up using the values in the 
> > > MockFacesContext instance instead that were initialized 
> by the test 
> > > case.
> > >
> >
> > The idea is that you extend a base test case that sets up the mock 
> > objects.  They are scoped so that they can be referenced from test 
> > methods in a subclass.
> >
> > Take a look at the AbstractJsfTestCase
> >
> (http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/test-fra
mework/src
> /java/org/apache/shale/test/base/AbstractJsfTestCase.java?view=markup)
>
>
>
>
> > - Brendan
> >
>
> Gary
>
> -
> 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: Re: Multiple File Upload using Struts (number of files dynamic)

2006-02-15 Thread George.Dinwiddie
The way I do it is skip using the form for the files and retrieve them
from the request.

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of shubu
> Sent: Tuesday, February 14, 2006 9:23 AM
> To: user@struts.apache.org
> Subject: Re: Multiple File Upload using Struts (number of 
> files dynamic)
> 
> 
> 
> Prasad, Kamakshya  capitalservicing.co.jp> writes:
> 
> > 
> > Hi,
> > 
> > In the form bean keep an array list of FormFile and use it 
> similarly 
> > as dynamic list control.
> > 
> > KP
> > 
> > -Original Message-
> > From: Viral_Thakkar [mailto:Viral_Thakkar  infosys.com]
> > Sent: Thursday, July 08, 2004 3:01 PM
> > To: Struts Users Mailing List
> > Cc: Ketan_Bhat
> > Subject: Multiple File Upload using Struts (number of files dynamic)
> > 
> > Hi,
> > 
> > We are trying to implement uploading file via struts 
> framework using 
> > form bean. According to our requirement we have two scenarios' in 
> > which we require uploading of our file.
> > 1)   Uploading single file (single html:file control 
> and a single
> > upload button in jsp page)
> > 2)  Uploading multiple files (Multiple html:file controls on the
> > screen on the same form).
> > The problem is that these number of html:file controls on 
> the screen is
> > not fixed, it is dynamic. The user can click on an "Add 
> More" button to
> > increase dynamically the number of files he/she wants to upload.
> > 
> > We have implemented the first scenario by using html:file 
> tag on the 
> > JSP and keeping a form bean with html control as one of its member 
> > variables. In the action class we extract the value from 
> the bean and 
> > then upload the file using I/O streams.
> > 
> > Now, for the second scenario we need to upload an indeterminate 
> > (determined at run time) number of files but at the same time the 
> > number of members in the bean class cannot be changed dynamically.
> > 
> > So we either need a way to add members to a form bean 
> dynamically or 
> > some other mechanism which will handle this multiple upload 
> > requirement.
> > 
> > With Regards,
> > Viral
> > 
> 
> how can I mak the list of FormFile in the form bean I tried 
> implementing it but 
> got an exception of type mismatch
> I did somthin lik this
> 
> 
>   private FormFile theFiles[];
>   public FormFile[] getTheFiles() {
> return theFiles;
>   }
>   /**
>* @param theFiles The FormFile to set.
>*/
>   public void setTheFiles(FormFile[] theFiles) {
> this.theFiles = theFiles;
>   }
> 
> how can I do it
> plz reply soon, waiting..
> 
> 
> 
> 
> -
> 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: Struts application WAR file creation.

2006-02-09 Thread George.Dinwiddie
[EMAIL PROTECTED] asked:
> 
> How do I add war task in Ant build file from eclipse ?

There is an ant buildfile editor in Eclipse and the ant manual describes
the war task.

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



RE: [OT] Upgrading existing applications so they're maintainable--who pays?

2006-02-09 Thread George.Dinwiddie
Dave Newton wrote:
> My question is really targeted at the politics, ethics, and 
> finances of the switch: being a refactor-early, 
> refactor-often kind of guy I'm already quite adept at the mechanics.

You'll probably still find Michael Feather's book worthwhile.  I
certainly did, even though I'd read some pre-publication excerpts.  For
dealing with the politics, I recommend the works of Gerald M. Weinberg.
 
> The problem is that there are probably 50 apps with 
> essentially identical (but not exactly; base code was copied 
> into an app then modified to handle specifics rather than 
> using a sub-class, interface, or other reasonable mechanisms. 
> We're talking hundreds of thousands of lines.
> 
> "You are in a maze of twisty passages..."

  Duplication may not be the root of all evil, but it's close.

> > Ward Cunningham calls this situation "Design Debt."  By not keeping 
> > the code clean as you go along, you build up a balance of 
> design debt.
> >   
> Ah, good phrase: I like that.
> 
> We have entered design bankruptcy.
> > Personally, I think it's irresponsible to hand the client a system 
> > that's wallowing in design debt.
> YES!
> 
> Thank you!!!
> 
> May I quote you, anonymously if you prefer?

Certainly.  And, as it's already posted on a public mailing list, it's
hardly necessary to make it anonymous.  The opinions expressed are those
of me and iDIA Computing, LLC (http://www.idiacomputing.com), not Wells
Fargo.

> > Who bears that cost depends on how it's presented to the 
> client.  If 
> > the estimator didn't take this situation into account when they 
> > negotiated the job with the client, it can be very difficult to 
> > convince them later.  And since they've probably already 
> dealt with a 
> > development team that delivered less than was purchased (i.e. the 
> > messy system), they'll already be predisposed to distrusting 
> > development teams.  Gaining that trust is the key, but it's 
> not easy.
> >   
> Yeah... plus my estimates for fixing the broken system aren't 
> exactly low.

I can imagine.  I think the key is to try to make progress on cleaning
up the system, without biting off more than you can chew.  Even the best
client with such a system is unlikely to find fixing everything
affordable.  The only strategy that can work, in my opinion, is to
attack the issues that cause the most problems for the enhancements that
you need to make, and wall off other areas to tackle later.  It can be
tricky to pull off.  Sometimes a "deprecation refactor" works for this:
create a new way for part of the system, and later migrate other parts
over to it.  This is a messy process, of course, and in the interim
leaves the system even a bit more confusing.  Again, this is stuff that
Michael Feathers has covered well.  You may want to check the yahoogroup
on the topic (dormant now, I believe) and other resources on the web.  I
still find the book a good reference, however.

Keep in mind that the goal is to deliver business value to the client,
while paying down the current debt.  There is no silver bullet to make
the problem go away--it takes discipline and effort.  The client
currently owns the problem.  Successful development teams rarely
propose, "If you pay us fairly for this bit of work, we'll do anything
else you need for free."  I wouldn't accept such a proposition, either.
But I would propose to work in the client's interest, and preferably in
close communication, to accomplish the client's goals in the most
economical means possible.  And "most economical" doesn't mean "quick
hack" because that quickly leads to higher costs as the code becomes
harder to work with.

 - George
   http://www.idiacomputing.com

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



RE: [OT off topic] Oracle Database Performace Issue

2006-02-09 Thread George.Dinwiddie
sumithra devi asked:
> We have sql query that is generated dynamically(this is what 
> is causing teh problem)

I'm no expert in tuning database access, but even for a one-time use,
Oracle can do a better job if you use a PreparedStatement rather than a
Statement.  Of course, if you can re-use that PreparedStatement SQL,
Oracle can gain a lot more from its optimizations.

 - George

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



RE: [OT] Upgrading existing applications so they're maintainable--who pays?

2006-02-09 Thread George.Dinwiddie
Dave Newton asked:
> 
> Assume a large body of existing work used across multiple websites:
> - No documentation
> - Buggy home-grown libraries (DB, connection pooling, 
> strings, everything)
> - Home-grown "custom tag" system (parse the file on each page load)
> - Essentially un-maintainable and un-extensible
> 
> So... How do you deal with this situation?

I recommend the book Working Effectively with Legacy Code, by Michael
Feathers.  And the book Refactoring, by Martin Fowler.  These two will
sharpen your tools for working on this system.  They'll also help you
concentrate on what you need to clean up for the work you're doing, and
leave aside cleaning up other parts until it's necessary.
 
> It takes too long to work on the existing codebase (I'd 
> guesstimate a minimum 2-4x longer than a reasonable 
> implementation, plus immeasurable developer irritation & 
> frustration) for even the most minor of changes. Can you 
> legitimately bill clients for work that should have already 
> been done? Do you have to justify to every client the extra 
> hours put in because of the current state of the app? _Can_ 
> it be justified? Does it have to be an internal cost, and if 
> so how can you generate momentum to get it done?

Ward Cunningham calls this situation "Design Debt."  By not keeping the
code clean as you go along, you build up a balance of design debt.
Every thing you do becomes a little harder to do.  This is like paying
interest on the debt.  For short periods, this can be a reasonable
tradeoff, but many teams only make the minimum payment, letting the
mess, and resultant difficulty, grow over time.

Personally, I think it's irresponsible to hand the client a system
that's wallowing in design debt.  And many clients are not able to judge
this for themselves (as they might look at the balance carried on a
credit card).  Whether they paid less for the messy system than they
might have for a clean one is a moot point, after the fact.  (And
generally I think the answer is "no.")  The face is that they own a
system that's going to be harder, and therefore more expensive, to
maintain.

Who bears that cost depends on how it's presented to the client.  If the
estimator didn't take this situation into account when they negotiated
the job with the client, it can be very difficult to convince them
later.  And since they've probably already dealt with a development team
that delivered less than was purchased (i.e. the messy system), they'll
already be predisposed to distrusting development teams.  Gaining that
trust is the key, but it's not easy.

 - George
   http://www.idiacomputing.com/moin/FavoriteBooks

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



RE: Struts application WAR file creation.

2006-02-09 Thread George.Dinwiddie
[EMAIL PROTECTED] asked:
> What's other manual way to create WAR file, which is 
> deployable on 
> any Tomcat instance ?

Look at the 'war' task in ant.

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



RE: looking for struts,ejb,jboss,ant demo

2006-02-09 Thread George.Dinwiddie
Or use the struts,ejb,jboss,eclipse demo and then learn how to set up
the ant build.  I use eclipse for day-to-day work and ant for the
reference builds.

 - George

Nick Sophinos wrote:
> 
> An alternative would be to find an EJB example that you are 
> comfortable with and then find a Struts example that you 
> could lay over it.  There are plenty of each out there, but 
> not so much all together.  Maybe JBoss's site?
> 
> - Nick
> 
> On 2/9/06, Joey Watson <[EMAIL PROTECTED]> wrote:
> > Hello everyone.
> >
> > I am looking for a demo using struts,ejb,jboss, ant. I searched by 
> > google. but only found struts,ejb,jboss demo by eclipse. 
> but I don't 
> > depend on IDE tools. I want to learn more. So hope anybody 
> can help me 
> > find a demo using struts,ejb,jboss with ant.
> >
> > Thanks so much.
> >
> > Joey
> >
> >
> 
> -
> 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: show single html:error message for multiple fields validation

2006-02-08 Thread George.Dinwiddie
Maybe something like:



> -Original Message-
> From: fea jabi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 08, 2006 3:24 PM
> To: user@struts.apache.org
> Subject: RE: show single html:error message for multiple 
> fields validation
> 
> 
> yes, I've seen this. but not really sure how to check is 
> there are any 
> errors and then display the message.
> 
>  --- displays all the errors.
> 
> How to display a single message when errors are there?
> 
> How to check if there are any html:errors? I don't see any 
> "size" kind of 
> thing in it.
> 
> Thanks.
> 
> >From: <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> >To: 
> >Subject: RE: show single html:error message for multiple fields 
> >validation
> >Date: Wed, 8 Feb 2006 10:58:03 -0600
> >
> >http://struts.apache.org/struts-taglib/tagreference-struts-ht
> ml.html#ht
> >m
> >l:messages
> >
> > > -Original Message-
> > > From: fea jabi [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 08, 2006 10:14 AM
> > > To: user@struts.apache.org
> > > Subject: RE: show single html:error message for multiple fields 
> > > validation
> > >
> > >
> > > can someone help me with this please?  Thanks.
> > >
> > >
> > > >From: "fea jabi" <[EMAIL PROTECTED]>
> > > >Reply-To: "Struts Users Mailing List" 
> > > >To: user@struts.apache.org
> > > >Subject: show single html:error message for multiple fields
> > > validation
> > > >Date: Tue, 07 Feb 2006 11:07:03 -0500
> > > >
> > > >I have a table. Have editors in it. and when the user
> > > doesn't enter I
> > > >am
> > > >displaying the editors with different border color. hence
> > > would like to
> > > >display only one message of below above the table.
> > > >
> > > >In message resources I have defined a key lbl.errormsg=Enter all 
> > > >required fields.
> > > >
> > > >validation.xml
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >In jsp, I gave
> > > >
> > > >
> > > >Which is displaying all the errors. But would like to
> > > display only one
> > > >defined earlier.
> > > >How to display only one message?
> > > >
> > > >Thanks.
> > > >
> > > >_
> > > >Is your PC infected? Get a FREE online computer virus scan
> > > from McAfee(r)
> > > >Security. 
> > > >http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > > >
> > > >
> > > 
> >---
> > > >--
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > > _
> > > Express yourself instantly with MSN Messenger! Download today
> > > - it's FREE! 
> > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > >
> > >
> > > 
> 
> > > -
> > > 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]
> >
> 
> _
> Don't just search. Find. Check out the new MSN Search! 
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> 
> 
> -
> 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: Accessing static methods from Struts/JSTL

2006-02-08 Thread George.Dinwiddie
Keith Fetterman asked:
> Is there is a direct way to access the static method without 
> fetching it 
> from request scoped variable or object? 

Why not use an application-scoped object (and non-static method)?

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



RE: show single html:error message for multiple fields validation

2006-02-08 Thread George.Dinwiddie
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#htm
l:messages

> -Original Message-
> From: fea jabi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 08, 2006 10:14 AM
> To: user@struts.apache.org
> Subject: RE: show single html:error message for multiple 
> fields validation
> 
> 
> can someone help me with this please?  Thanks.
> 
> 
> >From: "fea jabi" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> >To: user@struts.apache.org
> >Subject: show single html:error message for multiple fields 
> validation
> >Date: Tue, 07 Feb 2006 11:07:03 -0500
> >
> >I have a table. Have editors in it. and when the user 
> doesn't enter I 
> >am
> >displaying the editors with different border color. hence 
> would like to 
> >display only one message of below above the table.
> >
> >In message resources I have defined a key
> >lbl.errormsg=Enter all required fields.
> >
> >validation.xml
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >In jsp, I gave
> >
> >
> >Which is displaying all the errors. But would like to 
> display only one
> >defined earlier.
> >How to display only one message?
> >
> >Thanks.
> >
> >_
> >Is your PC infected? Get a FREE online computer virus scan 
> from McAfee(r)
> >Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _
> Express yourself instantly with MSN Messenger! Download today 
> - it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> -
> 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: help for file upload

2006-02-08 Thread George.Dinwiddie
Debendra Barik 
> Now the matter is how do i store uploaded file into company 
> bean logo filed and send it to the database by calling 
> nsertCompany(Company company) method. And again how do i 
> retrive it and store in the CompanyAction form logo field to 
> show in the GUI. Anybody can suggest me about if any better 
> way have to do it. Thanks, Debendra.

This is a question for your persistence layer, not Struts.  (Though you
will need to convert the image from a byte[] to an image.)

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



RE: Writing Filters

2006-02-08 Thread George.Dinwiddie
chuanjiang lo asked:
> 
> Is it the correct way to implement session management using 
> filters? I'm rather new to structs and i would like to know 
> is there any good sites or tutorials i can refer on writing filters?

> what does the url-pattern do?
> 
> and in the codes
> filterChain.doFilter(request, response);
> what does this actually do?

It sounds like you've not done any basic homework on filters.  You might
want to start with
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets8.html#103101

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



RE: Populate action

2006-02-07 Thread George.Dinwiddie
I would use a UserCredentials interface that gets passed down to the DAO.  My 
action would be more like:

public void execute(...) {
// marshall the input 
UserCredentials userCredentials = new 
PresentationLayerUserCredentials(request);
// invoke the business layer
PapersList list = PapersList.find(userCredentials);
// save the results
request.setAttribute("PapersList", list);
// redirect
return mapping.findForward("success");
}

Note that
 1. The PresentationLayerUserCredentials knows how to extract the proper 
information from the request, encapsulating that knowledge.
 2. The business layer just uses the generic UserCredentials interface.
 3. The list to be displayed is encapsulated in an object, not a naked 
collection.
 4. The action doesn't call directly to the DAO.
 5. The UserCredentials interface has a method that returns a value useful for 
the DAO to use in a SQL WHERE clause.

The business layer class might PapersList include something like:

static PapersList find(UserCredentials userCredentials) {
PapersList results = new PapersList();  // create an empty list
dao.find(results, userCredentials); // fill the list from 
the dao
return results;
}


> -Original Message-
> From: Joel Alejandro Espinosa Carra 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 07, 2006 5:22 PM
> To: user@struts.apache.org
> Subject: Populate action
> 
> 
> Hi all,
> 
> I think this is more a design question than a struts question, but I 
> want to know who is the struts-way to do this.
> I have a requeriment of listing some items (in my case, scientific 
> papers) in a html table view.
> Another requirement is that users can see diferent listing of data 
> depending of theirs permissions, and the administrator can see 
> everything (like always)
> I want to know how much code I'm able to save if I design ONLY ONE 
> action for hadle the prepopulation of the items list that will be 
> displayed latter in a jsp page, or if its better to do more than one 
> single action for the prepopulation of data.
> 
> My action would be like this:
> 
> public void execute(...) {
> List list = new LinkedList();
>
> if("admin".equals(request.getUserRole().toString())) {
>//go to the DAO Layer and get the list of beans for 
> the admin role
>list = dao.getPapersForAdmin();
> }
> //and so on for the others roles
> .
> .
> .
>
> } //note that I wrote this little code in my email client not 
> in my IDE
> 
> But what can I do in the case of one user could have more than one 
> option for display items, like the administrator are be able 
> to see only 
> the rejected papers but also can see all the papers.
> 
> Any ideas?
> 
> Best regards.
> 
> -- 
> Ing. Joel Alejandro Espinosa Carra
> CINVESTAV CTS - Centro de Tecnología de Semiconductores
> Tel. +52 (33) 3770-3700 ext. 1049
> http://www.cts-design.com 
> 
> 
> -- 
> Este mensaje ha sido analizado por MailScanner
> en busca de virus y otros contenidos peligrosos,
> y se considera que está limpio.
> MailScanner agradece a transtec Computers por su apoyo.
> 
> 
> -
> 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: modules and url

2006-02-03 Thread George.Dinwiddie
see 
http://struts.apache.org/struts-action/userGuide/configuration.html#5_4_2_Configure_the_ActionServlet_Mapping

"WARNING - If you are using the new module support since Struts 1.1, you should 
be aware that only extension mapping is supported."

> -Original Message-
> From: Raúl Eduardo Plata [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 03, 2006 3:10 PM
> To: user@struts.apache.org
> Subject: modules and url
> 
> 
> Hi, i am using two modules on my web.xml
> 
> action
> 
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   config/test
>   /WEB-INF/struts-test.xml
> 
> 
> But my mapping instead of use *.do is using /do/*
> 
> 
> action
> /do/*
>   
> 
> 
> How can i call an action in module test?
> 
> using the default .do mapping i can do it with:
> url : http://localhost:8081/context/test/mytest.do
> action: 
> http://localhost:8081/context/switch.do?> prefix=/test&page=/mytest.do
> 
> but using "my mandatory" /do/* is not working with
> url : http://localhost:8081/context/test/do/mytest
> action: 
> http://localhost:8081/context/do/switch?> prefix=/test&page=/do/mytest
> 
> Please help
> 
> 
> -
> 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: Stress Load AJAX web application

2006-02-03 Thread George.Dinwiddie
Stas Ostapenko wrote:
> After I decided to test our application i'm was looking 
> something like http client with js support (and AJAX 
> features). I had a look at HttpUnit - as i saw it's have a 
> limited js support (am i wrong ?). Starting from srcratch I 
> have considered commons-httpclient... but how about 
> JavaScript ? I have found Rhino - an open-source 
> implementation of JavaScript written entirely in Java. So, 
> it's probably can work for me. At other side I can try to 
> write firefox extension (i have a little experience in this 
> field) for forcing browser to walk around my web-application 
> and POST-ing test data. Also i have found The AJAX Toolkit 
> Framework (ATF) Project at 
> http://www.eclipse.org/proposals/atf/. But > it's only proposal 
> now.

HttpUnit uses Rhino for its javascript support.  The problem is
principally that Rhino tries to implement the EcmaScript spec, which is
not at all what Internet Explorer does.  There are significant
differences, especially in the Document Object Model.  You'll run into
the same issue when testing with Firefox.

Since you're running on Linux, IE is not an option, and Watir is not yet
an option.  Perhaps Selenium (http://www.openqa.org/selenium/) would
help.

 - George
   http://wwwidiacomputing.com/

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



RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
Could there be something outside your app that's using commons logging,
and therefore needs log4j once it's installed?  Try putting the
log4j.jar in your server classpath, e.g., weblogic81/server/lib, and see
if that helps.  I'm really grasping at straws, here.

Alternatively, could there be another log4j.jar in the server classpath?
See http://forums.bea.com/bea/message.jspa?messageID=200071715&tstart=0
and http://forums.bea.com/bea/message.jspa?messageID=200071922&tstart=0

Is your jar named "log4j.jar" and not something else?  I turned up a
this
(http://forums.bea.com/bea/message.jspa?messageID=200060394&tstart=0)
related to WLS 7.0.

Have you tried flushing out the .wlnotdelete directory?  We've had
numerous issues with WLS deciding that it didn't need to deploy the new
code because it thought the previously deployed version was good enough.

Have you looked in the server log (either in the console that starts the
server or through the management console), to see if there are any
clues?

Are you deploying this as a .war file or .ear file?

 - George


> -Original Message-
> From: J T [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 01, 2006 4:40 PM
> To: Struts Users Mailing List
> Subject: Re: Just adding log4j.jar to struts 1.2.7 project 
> under weblogic causes stack trace
> 
> 
> yes using
> 
> /opt/bea/wls_sp2/jdk141_05
> 
> 
> 
> 
> On 2/1/06, [EMAIL PROTECTED] 
> <[EMAIL PROTECTED]>
> wrote:
> >
> > Are you using the jdk that comes with WebLogic?  Under 
> WebLogic 8.1.2, 
> > that was in C:\bea\jdk141_05 for my installation.  WebLogic 
> plays some 
> > intricate games with the ClassLoader.
> >
> > > -Original Message-
> > > From: J T [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 01, 2006 4:27 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Just adding log4j.jar to struts 1.2.7 project under 
> > > weblogic causes stack trace
> > >
> > >
> > > I agree that it is weird. We have log4j.jar in other applications 
> > > deployed on the server (not struts based
> > > applications) and they work ok. We are using jdk14_05.
> > >
> > > All I need is a logger that will write to a file. I don't think 
> > > SimpleLog will do that so I guess log4j is the only other option.
> > >
> > >
> > > On 2/1/06, [EMAIL PROTECTED] 
> > > <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > None that are related to log4j.
> > > >
> > > > It's curious that your stack trace doesn't name the class
> > > that can't
> > > > be instantiated.  What version of Java are you using?  This
> > > might be a
> > > > question for BEA.
> > > >
> > > > - George
> > > >
> > > > > -Original Message-
> > > > > From: J T [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, February 01, 2006 3:55 PM
> > > > > To: Struts Users Mailing List
> > > > > Subject: Re: Just adding log4j.jar to struts 1.2.7 
> project under 
> > > > > weblogic causes stack trace
> > > > >
> > > > >
> > > > > The jguru link you provided did not work for me. I 
> was using the 
> > > > > file appender so I don't think that I need anything else.
> > > What libs
> > > > > are in your WEB-INF/lib directory?
> > > > >
> > > > > On 2/1/06, [EMAIL PROTECTED] 
> > > > > <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > >
> > > > > > I've used log4j 1.2.9 with struts 1.2.7 and Weblogic 8.1.2
> > > > > without any
> > > > > > problems.  Do you have any indication of what class is
> > > not being
> > > > > > found? Are you missing a dependency for an appender that
> > > > > you're using?
> > > > > > (See http://www.jguru.com/faq/view.jsp?EID=1007095, though
> > > > > this may be
> > > > > > out-of-date.)
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: J T [mailto:[EMAIL PROTECTED]
> > > > > > > Sent: Wednesday, February 01, 2006 9:57 AM
> > > > > > > To: user@struts.apache.org
> > > > > > > Subject: Just adding log4j.jar to struts 1.2.7 
> project under 
> > > > > > > weblogic causes stack trace
> > > > > > >
> > > > > > >
> > > > > > > I would like to use log4j for logging under struts. As
> > > > > soon as I add
> > > > > > > the log4j.jar to my WEB-INF/lib directory (I tried
> > > > > 1.2-13, 1.2-12,
> > > > > > > 1.2-8, etc) and try to access the application I get a 500
> > > > > internal
> > > > > > > error (below). When I remove it my app runs normally. I
> > > > > have tried
> > > > > > > using log4j.properties & commons-logging.properties both 
> > > > > > > with and without the jar present and no logs were produced
> > > in any of
> > > > > > > the cases.
> > > > > > >
> > > > > > > Any thoughts on why this is happening? Is there a
> > > log4j version
> > > > > > > recommended for struts 1.2.7? I only want a logging
> > > > > framework that
> > > > > > > can write to a file and I don't think SimpleLog 
> can do that.
> > > > > > >
> > > > > > > Versions
> > > > > > > Struts 1.2.7
> > > > > > > lo4j - various
> > > > > > > weblogic - 8.1.2.0
> > > > > > >
> > > > > > > Error 500--Internal Server Error

RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
Are you using the jdk that comes with WebLogic?  Under WebLogic 8.1.2,
that was in C:\bea\jdk141_05 for my installation.  WebLogic plays some
intricate games with the ClassLoader.

> -Original Message-
> From: J T [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 01, 2006 4:27 PM
> To: Struts Users Mailing List
> Subject: Re: Just adding log4j.jar to struts 1.2.7 project 
> under weblogic causes stack trace
> 
> 
> I agree that it is weird. We have log4j.jar in other 
> applications deployed on the server (not struts based 
> applications) and they work ok. We are using jdk14_05.
> 
> All I need is a logger that will write to a file. I don't 
> think SimpleLog will do that so I guess log4j is the only 
> other option.
> 
> 
> On 2/1/06, [EMAIL PROTECTED] 
> <[EMAIL PROTECTED]>
> wrote:
> >
> > None that are related to log4j.
> >
> > It's curious that your stack trace doesn't name the class 
> that can't 
> > be instantiated.  What version of Java are you using?  This 
> might be a 
> > question for BEA.
> >
> > - George
> >
> > > -Original Message-
> > > From: J T [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 01, 2006 3:55 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Just adding log4j.jar to struts 1.2.7 project under 
> > > weblogic causes stack trace
> > >
> > >
> > > The jguru link you provided did not work for me. I was using the 
> > > file appender so I don't think that I need anything else. 
> What libs 
> > > are in your WEB-INF/lib directory?
> > >
> > > On 2/1/06, [EMAIL PROTECTED] 
> > > <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > I've used log4j 1.2.9 with struts 1.2.7 and Weblogic 8.1.2
> > > without any
> > > > problems.  Do you have any indication of what class is 
> not being 
> > > > found? Are you missing a dependency for an appender that
> > > you're using?
> > > > (See http://www.jguru.com/faq/view.jsp?EID=1007095, though
> > > this may be
> > > > out-of-date.)
> > > >
> > > > > -Original Message-
> > > > > From: J T [mailto:[EMAIL PROTECTED]
> > > > > Sent: Wednesday, February 01, 2006 9:57 AM
> > > > > To: user@struts.apache.org
> > > > > Subject: Just adding log4j.jar to struts 1.2.7 project under 
> > > > > weblogic causes stack trace
> > > > >
> > > > >
> > > > > I would like to use log4j for logging under struts. As
> > > soon as I add
> > > > > the log4j.jar to my WEB-INF/lib directory (I tried
> > > 1.2-13, 1.2-12,
> > > > > 1.2-8, etc) and try to access the application I get a 500
> > > internal
> > > > > error (below). When I remove it my app runs normally. I
> > > have tried
> > > > > using log4j.properties & commons-logging.properties both with 
> > > > > and without the jar present and no logs were produced 
> in any of 
> > > > > the cases.
> > > > >
> > > > > Any thoughts on why this is happening? Is there a 
> log4j version 
> > > > > recommended for struts 1.2.7? I only want a logging
> > > framework that
> > > > > can write to a file and I don't think SimpleLog can do that.
> > > > >
> > > > > Versions
> > > > > Struts 1.2.7
> > > > > lo4j - various
> > > > > weblogic - 8.1.2.0
> > > > >
> > > > > Error 500--Internal Server Error
> > > > >
> > > > > java.lang.NoClassDefFoundError
> > > > > at sun.reflect.GeneratedConstructo 
> > > > > rAccessor191.newInstance(Unknown
> > > > > Source)
> > > > > at 
> > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> > > > > DelegatingConstructorAccessorImpl.java:27)
> > > > > at
> > > java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> > > > > at java.lang.Class.newInstance0(Class.java :306)
> > > > > at java.lang.Class.newInstance(Class.java:259)
> > > > > at 
> > > > > 
> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(
> > > > > ServletStubImpl.java:991)
> > > > > at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs 
> > > > > (
> > > > > AuthenticatedSubject.java:317)
> > > > > at
> > > > >
> > > 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java
> > > > > :118)
> > > > > at 
> weblogic.servlet.internal.ServletStubImpl.createServlet(
> > > > > ServletStubImpl.java:869)
> > > > > at 
> weblogic.servlet.internal.ServletStubImpl.createInstances 
> > > > > (
> > > > > ServletStubImpl.java:848)
> > > > > at 
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(
> > > > > ServletStubImpl.java:787)
> > > > > at weblogic.servlet.internal.ServletStubImpl.getServlet(
> > > > > ServletStubImpl.java:518)
> > > > > at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet (
> > > > > ServletStubImpl.java:362)
> > > > > at 
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(
> > > > > ServletStubImpl.java:305)
> > > > > at
> > > > > weblogic.servlet.internal.WebAppServletContext$ServletInvocati
> > > > > onAction.run(
> > > > > WebAppServletContext.java :6350)
> > > > > at 
> weblogic.security.acl.internal.AuthenticatedSubject.do

RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
None that are related to log4j.

It's curious that your stack trace doesn't name the class that can't be
instantiated.  What version of Java are you using?  This might be a
question for BEA.

 - George

> -Original Message-
> From: J T [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 01, 2006 3:55 PM
> To: Struts Users Mailing List
> Subject: Re: Just adding log4j.jar to struts 1.2.7 project 
> under weblogic causes stack trace
> 
> 
> The jguru link you provided did not work for me. I was using 
> the file appender so I don't think that I need anything else. 
> What libs are in your WEB-INF/lib directory?
> 
> On 2/1/06, [EMAIL PROTECTED] 
> <[EMAIL PROTECTED]>
> wrote:
> >
> > I've used log4j 1.2.9 with struts 1.2.7 and Weblogic 8.1.2 
> without any 
> > problems.  Do you have any indication of what class is not being 
> > found? Are you missing a dependency for an appender that 
> you're using?  
> > (See http://www.jguru.com/faq/view.jsp?EID=1007095, though 
> this may be
> > out-of-date.)
> >
> > > -Original Message-
> > > From: J T [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 01, 2006 9:57 AM
> > > To: user@struts.apache.org
> > > Subject: Just adding log4j.jar to struts 1.2.7 project under 
> > > weblogic causes stack trace
> > >
> > >
> > > I would like to use log4j for logging under struts. As 
> soon as I add 
> > > the log4j.jar to my WEB-INF/lib directory (I tried 
> 1.2-13, 1.2-12, 
> > > 1.2-8, etc) and try to access the application I get a 500 
> internal 
> > > error (below). When I remove it my app runs normally. I 
> have tried 
> > > using log4j.properties & commons-logging.properties both with and 
> > > without the jar present and no logs were produced in any of the 
> > > cases.
> > >
> > > Any thoughts on why this is happening? Is there a log4j version 
> > > recommended for struts 1.2.7? I only want a logging 
> framework that 
> > > can write to a file and I don't think SimpleLog can do that.
> > >
> > > Versions
> > > Struts 1.2.7
> > > lo4j - various
> > > weblogic - 8.1.2.0
> > >
> > > Error 500--Internal Server Error
> > >
> > > java.lang.NoClassDefFoundError
> > > at sun.reflect.GeneratedConstructo 
> > > rAccessor191.newInstance(Unknown
> > > Source)
> > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> > > DelegatingConstructorAccessorImpl.java:27)
> > > at 
> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> > > at java.lang.Class.newInstance0(Class.java :306)
> > > at java.lang.Class.newInstance(Class.java:259)
> > > at 
> > > weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(
> > > ServletStubImpl.java:991)
> > > at weblogic.security.acl.internal.AuthenticatedSubject.doAs (
> > > AuthenticatedSubject.java:317)
> > > at 
> > > 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java
> > > :118)
> > > at weblogic.servlet.internal.ServletStubImpl.createServlet(
> > > ServletStubImpl.java:869)
> > > at weblogic.servlet.internal.ServletStubImpl.createInstances (
> > > ServletStubImpl.java:848)
> > > at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
> > > ServletStubImpl.java:787)
> > > at weblogic.servlet.internal.ServletStubImpl.getServlet(
> > > ServletStubImpl.java:518)
> > > at weblogic.servlet.internal.ServletStubImpl.invokeServlet (
> > > ServletStubImpl.java:362)
> > > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
> > > ServletStubImpl.java:305)
> > > at 
> > > weblogic.servlet.internal.WebAppServletContext$ServletInvocati
> > > onAction.run(
> > > WebAppServletContext.java :6350)
> > > at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
> > > AuthenticatedSubject.java:317)
> > > at 
> > > 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java
> > > :118)
> > > at 
> weblogic.servlet.internal.WebAppServletContext.invokeServlet 
> > > (
> > > WebAppServletContext.java:3635)
> > > at weblogic.servlet.internal.ServletRequestImpl.execute(
> > > ServletRequestImpl.java:2585)
> > > at 
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> > > at weblogic.kernel.ExecuteThread.run (ExecuteThread.java:170)
> > >
> >
> > 
> -
> > 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: [OT] Serving an pdf file in a struts action

2006-02-01 Thread George.Dinwiddie
No, but I would recommend response.getOutputStream() in case the PDF
contains any binary data.

Garner, Shawn asked:
> Is there any trick in sending the user a pdf by setting the 
> content type to application/pdf and then using the 
> response.getWriter() to write out the data?

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



RE: Just adding log4j.jar to struts 1.2.7 project under weblogic causes stack trace

2006-02-01 Thread George.Dinwiddie
I've used log4j 1.2.9 with struts 1.2.7 and Weblogic 8.1.2 without any
problems.  Do you have any indication of what class is not being found?
Are you missing a dependency for an appender that you're using?  (See
http://www.jguru.com/faq/view.jsp?EID=1007095, though this may be
out-of-date.)

> -Original Message-
> From: J T [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 01, 2006 9:57 AM
> To: user@struts.apache.org
> Subject: Just adding log4j.jar to struts 1.2.7 project under 
> weblogic causes stack trace
> 
> 
> I would like to use log4j for logging under struts. As soon 
> as I add the log4j.jar to my WEB-INF/lib directory (I tried 
> 1.2-13, 1.2-12, 1.2-8, etc) and try to access the application 
> I get a 500 internal error (below). When I remove it my app 
> runs normally. I have tried using log4j.properties & 
> commons-logging.properties both with and without the jar 
> present and no logs were produced in any of the cases.
> 
> Any thoughts on why this is happening? Is there a log4j 
> version recommended for struts 1.2.7? I only want a logging 
> framework that can write to a file and I don't think 
> SimpleLog can do that.
> 
> Versions
> Struts 1.2.7
> lo4j - various
> weblogic - 8.1.2.0
> 
> Error 500--Internal Server Error
> 
> java.lang.NoClassDefFoundError
> at sun.reflect.GeneratedConstructo 
> rAccessor191.newInstance(Unknown
> Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> at java.lang.Class.newInstance0(Class.java :306)
> at java.lang.Class.newInstance(Class.java:259)
> at 
> weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(
> ServletStubImpl.java:991)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs (
> AuthenticatedSubject.java:317)
> at 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java
> :118)
> at weblogic.servlet.internal.ServletStubImpl.createServlet(
> ServletStubImpl.java:869)
> at weblogic.servlet.internal.ServletStubImpl.createInstances (
> ServletStubImpl.java:848)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
> ServletStubImpl.java:787)
> at weblogic.servlet.internal.ServletStubImpl.getServlet(
> ServletStubImpl.java:518)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet (
> ServletStubImpl.java:362)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
> ServletStubImpl.java:305)
> at 
> weblogic.servlet.internal.WebAppServletContext$ServletInvocati
> onAction.run(
> WebAppServletContext.java :6350)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
> AuthenticatedSubject.java:317)
> at 
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java
> :118)
> at weblogic.servlet.internal.WebAppServletContext.invokeServlet (
> WebAppServletContext.java:3635)
> at weblogic.servlet.internal.ServletRequestImpl.execute(
> ServletRequestImpl.java:2585)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
> at weblogic.kernel.ExecuteThread.run (ExecuteThread.java:170)
> 

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



  1   2   >