Re: Hibernate problem with OGNL

2013-03-27 Thread Steve Higham

On 27/03/2013 10:42, Markus Demetz wrote:

Hi,


I have situations, where the getId() method of my model class returns 
null

when navigating through OGNL e.g. when
calling .


Have you tried  or 

No luck :-(
I also tried with JSTL now without success.
It's very strange, since sometimes it works and then it reappears again.
I'll ask at the hibernate forum.

Regards,
Markus

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


I've seen this behavior on newly created instances. Hibernate doesn't 
know the ID until the object is persisted to the DB. Hibernate tries to 
delay this as long as possible to minimise DB writes. You would have 
thought a request for the ID would force a DB write but Hibernate 
doesn't seem to implement this behavior. If you want the ID you need to 
force the DB write first.


Steve

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: How to pretty print HTML from Struts

2012-09-30 Thread Steve Higham
Yes - I've got some complex tags and the resultant HTML has loads of
redundant whitespace in all the wrong places. Trying to compare with
original mock-ups takes for ever.

I like doing this with a filter because it's easy to remove if I'm having
problems later. I've just got it working and it's doing what I want. I
appreciate it may cause problems later...

The correct config is: -


  JTidyFilter
  *.action

 

  StrutsFilter
  /*


It was just the ordering of the filters that was causing problems.

Is there a better way of tidying up the HTML being emitted from a Struts
View?

Kind Regards,

Steve


-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com] 
Sent: 30 September 2012 18:05
To: Struts Users Mailing List
Subject: Re: How to pretty print HTML from Struts

Ugh. IMO relying on textual representation of a DOM is fragile and broken,
especially if you're unable to ignore whitespace-is there a reason you're
doing it like this?

Dave

(pardon brevity, typos, and top-quoting; on cell) On Sep 30, 2012 12:22 PM,
"Steve Higham"  wrote:

> My Struts Views are made up of JSP and Tiles and the resulting HTML is 
> untidy to say the least. This causes problems when I try to compare it 
> with HTML mock-ups. To solve this I'm trying to use the JTidy library 
> to pretty print the HTML output to the browser.
>
>
>
> I'm using the JTidyFilter configured as follows: -
>
>
>
>  
>
>StrutsFilter
>
>/*
>
>  
>
>
>
>  
>
>JTidyFilter
>
>/*
>
>  
>
>
>
> This seems to be failing because the Struts Filter Dispatchers only 
> pass the request down the Filter Chain if it is not a Struts Request 
> (e.g.
> *.action).
> Therefore this config will try to pretty-print *.css, *.js, *.img etc. 
> but completely ignores the outputs of my actions.
>
>
>
> Does anyone know a sensible way of pretty printing the Struts HTML 
> output to the browser?
>
>
>
> Many Thanks,
>
>
>
> Steve
>
>
>
> Steve Higham
>
>
>
>


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



How to pretty print HTML from Struts

2012-09-30 Thread Steve Higham
My Struts Views are made up of JSP and Tiles and the resulting HTML is
untidy to say the least. This causes problems when I try to compare it with
HTML mock-ups. To solve this I'm trying to use the JTidy library to pretty
print the HTML output to the browser.

 

I'm using the JTidyFilter configured as follows: -

 

 

   StrutsFilter

   /*

 

  

 

   JTidyFilter

   /*

 

 

This seems to be failing because the Struts Filter Dispatchers only pass the
request down the Filter Chain if it is not a Struts Request (e.g. *.action).
Therefore this config will try to pretty-print *.css, *.js, *.img etc. but
completely ignores the outputs of my actions.

 

Does anyone know a sensible way of pretty printing the Struts HTML output to
the browser?

 

Many Thanks,

 

Steve

 

Steve Higham

 



RE: Struts2 : XML based View

2012-07-09 Thread Steve Higham
Hi,

I have projects that include JS (and jquery) in the HTML pages they output.
It's then up to you to construct your jquery widgets when the document
loads. Is this what you are looking for...

Cheers,

Steve

-Original Message-
From: Anupam Bakshi [mailto:baks...@yahoo.com] 
Sent: 09 July 2012 09:02
To: user@struts.apache.org
Subject: Struts2 : XML based View

Hello,
  In my Struts2 action, I have a database returning XML data as a stream
that is transformed using XSLT2.
  This is fine, but I need the result to also have jquery tabs and submit
buttons.
 
  Is there any way to achieve this on-the-fly generation and insertion of
these struts2 and struts2-jquery tags?

Thanks,
Anupam


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Does the StrutsTestCase test filters defined in web.xml?

2012-05-14 Thread Steve Higham
Hi Miguel,

I haven't used the StrutsSpringTestCase however I have made use of the 
StrutsTestCase.

This only tests the interceptor stack / Action / Result. There is no web server 
involved and no attempt to render the resulting page. Therefore I would be 
surprised if anything from web.xml is called.

You could try looking at Apache Cactus or Apache HttpClient to test this 
behaviour? Alternatively if you generate the file within Struts then the 
StrutsTestCase will suffice. I've generated exports from Struts this way.

Cheers,

Steve

-Original Message-
From: Miguel Almeida [mailto:mig...@almeida.at] 
Sent: 14 May 2012 10:16
To: user@struts.apache.org
Subject: Does the StrutsTestCase test filters defined in web.xml?

Dear all,

I am using StrutsSpringTestCase (which extends StrutsTestCase) to perform some 
acceptance tests (under the skin). I am also using Displaytag 
(www.displaytag.org/1.2/ ) to build some tables in the view.
This tag supports excel/pdf export, which uses a filter you configure in 
web.xml [1]

The way the filter works is, in short: a (odd looking, numerical) parameter is 
added to the request. The filter checks for the existence of that parameter 
and, if it exists, creates the pdf/excel. 

I want to test the creation of this file (and its contents). However, when I 
debug the StrutsSpringTestCase test with a breakpoint on that filter it does 
not stop there, so my questions are:

1) Does the StrutsTestCase not pass through other filters in your web.xml, and 
only goes through the struts filter?
2) If so, is there anything else in the struts tests that could help me out? 
How do you suggest I perform this test?
 
Thank you,

Miguel Almeida



[1]- see http://www.displaytag.org/1.2/export_filter.html 


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts 2 Rest Showcase Example : Issue in understanding code

2012-05-01 Thread Steve Higham
Hi Srineel,

I would recommend purchasing a copy of Struts 2 In Action published by
Manning. You're not going to pick Struts up by browsing through a couple of
examples.

Cheers,

Steve

-Original Message-
From: Srineel Mazumdar [mailto:smaz19...@gmail.com] 
Sent: 01 May 2012 09:34
To: Struts Users Mailing List
Subject: Struts 2 Rest Showcase Example : Issue in understanding code

Hi,

I am new to Struts 2 and hence I am downloading the the samples from Apache
site. Struts 2 Rest Showcase Example is the one I am refering to.

I have the follwoing questions :

1) What is meant by :
@Results({
@Result(name="success", type="redirectAction", params = {"actionName" ,
"orders"})
})

in OrdersController.java ?

2) Meaning of the entries in struts.xml:










3) a) How the code "understands and decides" which method to call in
OrdersController.java  ?
b) We have *"return "editNew";" *etc return types . Where exactly are
these being used and how does the applciation decide which page to navigate
based on the return types ?

Regards

Srrineel Mazumdar


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: StrutsTestCase, jUnit and file upload

2012-04-26 Thread Steve Higham
Thanks to Chris, Gabriel for your comments.

I finally got this to work yesterday. A neat solution probably requires
refactoring StrutsTestCase and deriving a new class
(StrutsMultipartTestCase) from it. In the meantime the following changes
will work subject to a couple of limitations: -

This only supports upload of a single file - although fairly simple to
extend for multiple files.
I've use Mockito for a couple of mocks
It's not very clean :-(

First you need spring-web-x.y.z.jar on your classpath. This comes with the
junit plugin.

Your test class needs the following override. This is a cut & paste job from
StrutsTestCase except for the request creation line.

/**
 * We need to override this method so we can use class 
 * MockMultipartHttpServletRequest for the request.
 */
@Override
protected void initServletMockObjects() 
{
  servletContext = new MockServletContext(resourceLoader);
  response = new MockHttpServletResponse();
  request = new MockMultipartHttpServletRequest();
  pageContext = new MockPageContext(servletContext, request, response);
}

We now need a new version of getActionProxy with additional parameters as
follows: -

/**
 * We need our own version to handle the file uploading
 * @param uri  struts action uri
 * @param contentType  mime content type
 * @param filename  name reported to action
 * @param file  uploaded file
 * @return  ActionProxy
 */
protected ActionProxy 
getActionProxy (String uri, String contentType, String filename, File file)
{
// Create the proxy
ActionProxy result = super.getActionProxy (uri);

// Not part of upload but I think required for SessionAware
ActionContext context = result.getInvocation ().getInvocationContext
();
if (context.getSession () == null)
{
context.setSession (new HashMap ());
}

// Wrap the request in a MultiPartRequestWrapper
MultiPartRequest mpr = 
createMultiPartRequest (contentType, filename,
file);
MultiPartRequestWrapper wrapper = 
new MultiPartRequestWrapper (mpr, request, null);
ServletActionContext.setRequest (wrapper);

return result;
}

protected MultiPartRequest 
createMultiPartRequest (String contentType, String fileName, File file)
{
MultiPartRequest result = Mockito.mock (MultiPartRequest.class);
Vector fileParameterNames = new Vector ();
fileParameterNames.add (PROP_NAME);
Enumeration enumFpn = fileParameterNames.elements ();
Mockito.when (result.getFileParameterNames ()).thenReturn (enumFpn);
String [] contentTypes = new String [1];
contentTypes [0] = contentType;
Mockito.when (result.getContentType (PROP_NAME)).thenReturn
(contentTypes);
String [] fileNames = new String [1];
fileNames [0] = fileName;
Mockito.when (result.getFileNames (PROP_NAME)).thenReturn
(fileNames);
File [] files = new File [1];
files [0] = file;
Mockito.when (result.getFile (PROP_NAME)).thenReturn (files);

return result;
}

private static final String PROP_NAME = "propertyName";

This assumes that your upload action has methods setPropertyName (File),
setPropertyNameContentType (String), setPropertyNameFileName (String).

The @Test methods now include the following: -

File uploadedFile = new File ("path to test file");
ActionProxy proxy = getActionProxy ("uri", "content type e.g. text/csv",
file.getName (), file);
assertTrue (proxy.execute ().equals ("expected action result");

Note that the calls to the action are generated internally. You don't need
any request.setParameter (...) calls.

Cheers,

Steve

-Original Message-
From: Steve Higham [mailto:st...@sjlt.co.uk] 
Sent: 25 April 2012 11:08
To: 'Struts Users Mailing List'
Subject: StrutsTestCase, jUnit and file upload

I'm currently using StrutsTestCase and jUnit to component test my Actions
within the Struts context using a Mockito mock as my Model.

 

This is working fine. I can call request.setParamater ("paramName",
"paramValue") from the test class and, when executed, Struts will call the
corresponding setParamName ("paramValue") on my Action.

 

However I now wish to test "file upload" Actions. In normal use the
FileUploadInterceptor will call setUploadedFile (java.io.File file) on the
action. However I can't see any methods on the StrutsTestCase request object
which will prepare the request with an uploaded file. Has anyone got this to
work?

 

Steve Higham

 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



StrutsTestCase, jUnit and file upload

2012-04-25 Thread Steve Higham
I'm currently using StrutsTestCase and jUnit to component test my Actions
within the Struts context using a Mockito mock as my Model.

 

This is working fine. I can call request.setParamater ("paramName",
"paramValue") from the test class and, when executed, Struts will call the
corresponding setParamName ("paramValue") on my Action.

 

However I now wish to test "file upload" Actions. In normal use the
FileUploadInterceptor will call setUploadedFile (java.io.File file) on the
action. However I can't see any methods on the StrutsTestCase request object
which will prepare the request with an uploaded file. Has anyone got this to
work?

 

Steve Higham

 



RE: event On struts

2012-04-22 Thread Steve Higham
Hi,

Struts is very different to .NET. The underlying technologies are used in a
very open fashion. The good thing is that this means you can do pretty much
anything you like. The downside is that you need to understand the
underlying technologies and do some legwork.

As suggested you can use embed JavaScript in the HTML generated by Struts
from JSP or a similar technology. You need to create this JavaScript.
However you can use whatever your favourite JS library is to simplify
things. I've got some code using JQuery that parses the HTML and adds
JavaScript extensions to standard HTML controls. This provides the basic
mechanism to react to user selection etc.

If you want to, you could then make something like a JSON call back to the
Server. Struts can react to this using appropriate Result types. I think
there's a plug-in somewhere that helps this process but I haven't used it.

Enjoy...

Steve

-Original Message-
From: loinheart [mailto:shah_khan_1...@hotmail.com] 
Sent: 21 April 2012 17:43
To: user@struts.apache.org
Subject: event On struts

Hey h

Im a new in struts so please kindly tell me how to create event on struts
control like a dot net Control ?

I want to perform a  selected index action on dropedown so please any tell
me how to perform to this ..?

--
View this message in context:
http://struts.1045723.n5.nabble.com/event-On-struts-tp5656488p5656488.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: [Struts2] Upgrading a Struts2 Application that uses Tiles2.

2012-01-24 Thread Steve Higham
Hi Hernán,

I'm running Tiles 2.2.2 on Struts 2.2.3 and it's working fine. I get a bunch
of warnings when the app loads including 

WARN  [TilesContainerFactory] DEPRECATION WARNING! You are using
parameter-based initialization, that is no longer supported! Please see
docs: http://tiles.apache.org/framework/tutorial/configuration.html

Therefore I'm not sure this will be supported going forward. I guess this
will continue until the Struts2-tiles-plugin gets updated. However it seems
to work fine for Tiles 2.2.2

Kind Regards,

Steve

-Original Message-
From: Hernán [mailto:heam...@gmail.com] 
Sent: 23 January 2012 21:00
To: Struts Users Mailing List
Subject: [Struts2] Upgrading a Struts2 Application that uses Tiles2.

I have developed a web application that uses tiles2, the question is: the
last version of struts2 (2.3.1.2) is compatible with newer versions of
tiles? I mean not only Tiles 2.0.6 but higher versions, for example Tiles
2.2.2. Thank you very much

--
Hernán


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Re: Struts 2 Annotation Tutorial (additional info)

2011-10-03 Thread Steve
Hello,

I started up JBoss again and did a find across the log for "at " (that's at 
with a space at the end) but did not see any stack trace.  I have log level 
debug turned on and I double checked that nothing rolled off my log file (it 
starts with "22:43:43,828 INFO  [ServerImpl] Starting JBoss 
(Microcontainer)...").

Looking at the links you sent me, it could be the second one: WW-3662, where 
they are getting no stack trace.  I have JBoss 6 and am running Struts-2.2.3 
and that issue is with JBoss 7 and Struts_2_2_1_1 but it could be.  It looks 
like Jason Pyeron is still working on it though.

Steve

-Original Message-
From: Lwen.ma [mailto:mlw5...@gmail.com] 
Sent: Saturday, October 01, 2011 6:14 PM
To: Struts Users Mailing List
Subject: Re: Re: Struts 2 Annotation Tutorial (additional info)

With jboss 6 and 7 use 'Convention plugin', See 
'https://issues.apache.org/jira/browse/WW-3558'  and 
'https://issues.apache.org/jira/browse/WW-3662' plz.


2011-10-02 



Lwen.ma 



???: Lukasz_Lenart
: 2011-10-01  22:44:26
???: Struts Users Mailing List
??: 
??: Re: Struts 2 Annotation Tutorial (additional info) 
 
2011/10/1 Steve :
> Hello Lukasz,
>
> I'm using JBoss 5.1 via Eclipse and JBoss Tools.  When I switched to Tomcat 6 
> and changed my logger's package it started to work.  Makes you wonder what's 
> up with JBoss?
Do you see any errors in the log ? Could double check ?
Struts 2 has some problems to run properly on JBoss 6/7, so maybe it's the same 
case.
Thanks in advance
--
Lukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts 2 Annotation Tutorial (additional info)

2011-09-30 Thread Steve
Hello Lukasz,

I'm using JBoss 5.1 via Eclipse and JBoss Tools.  When I switched to Tomcat 6 
and changed my logger's package it started to work.  Makes you wonder what's up 
with JBoss?

Thank you for your assistance.
Steve

-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: Friday, September 30, 2011 12:42 AM
To: Struts Users Mailing List
Subject: Re: Struts 2 Annotation Tutorial (additional info)

2011/9/30 Steve :
> Remember, my app server is JBoss.

Which version ? Could you try on Tomcat ?


Regards
-- 
Lukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts 2 Annotation Tutorial (additional info)

2011-09-29 Thread Steve
ceptionOnFailure   false
struts.serve.static.browserCachetrue
struts.freemarker.wrapper.altMaptrue
struts.convention.actionConfigBuilder   convention
struts.convention.resultMapBuilder  convention



Remember, my app server is JBoss.

Thank you,
Steve

-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: Thursday, September 29, 2011 12:10 AM
To: Struts Users Mailing List
Subject: Re: Struts 2 Annotation Tutorial (additional info)

Did you base on [1] ? If so, please remove struts.xml

[1] 
http://code.google.com/p/struts2-examples/downloads/detail?name=Struts_Annotations_Ant_2_2_1.zip&can=2&q=


Regards
-- 
Lukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts 2 Annotation Tutorial (additional info)

2011-09-28 Thread Steve
Thank you both for your responses.  

Since I had " " listed in my struts.xml file, I tried renaming my
HelloAction class to "HelloController" or "HelloActionController" and tried
various urls to match but no luck.  I even tried removing the
"struts.convention.action.suffix" element but it didn't seem to make any
difference.

I've reverted back and below is what I've currently got.

The URL I use is:
http://localhost:8080/Struts2_Annotations_Ant/hello.action



My HelloAction class is as follows (sorry for forgetting to send it in the
first place):
package org.apache.struts.struts2annotations.action;

import org.jboss.xnio.log.Logger;

import com.opensymphony.xwork2.ActionSupport;

public class HelloAction extends ActionSupport {

private static final long serialVersionUID = 1L;
private static final Logger logger =
Logger.getLogger(HelloAction.class.getName());

private String message;

public String execute() throws Exception {
logger.info("In execute method of class Hello");
message = "Hello from Struts 2 with no XML configurtaion";
return SUCCESS;
}

public void setMessage(String message) {
this.message = message;
}

public String getMessage() {
return message;
}

}

-Original Message-
From: M. Rakowski [mailto:matth...@rakowski.biz] 
Sent: Wednesday, September 28, 2011 10:49 AM
To: user@struts.apache.org
Subject: Re: Struts 2 Annotation Tutorial (additional info)

I wrote:

 > make sure your Hallo-Action is in class HalloController in package  >
foo.actions.bar (foo and bar are random names)

which is not quite correct:
the prefix of the actions-package can be random.
The sub-packages names defines the url namespace.
For example, you can access the foo.actions.HalloController with
/context-path/hallo and the foo.actions.bar.BazController action with
/context-path/bar/baz

Regards, Matthias

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts 2 Annotation Tutorial

2011-09-27 Thread Steve Brierton
Hello,

I'm going through the Struts 2 Annotation tutorial and I'm having problems
with the first part of it, the "hello" convention plugin part.  I'm getting
"There is no Action mapped for namespace / and action name hello."  Along
with the following stack trace (partial):
There is no Action mapped for namespace / and action name hello. - [unknown
location] 
 
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:1
89)
 
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
 
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsAct
ionProxyFactory.java:39)
 
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultA
ctionProxyFactory.java:58)



My index.jsp has the following link:
" >Get your hello.

I have a WebContent/WEB-INF/content/hello-success.jsp that is the following:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %> http://www.w3.org/TR/html4/loose.dtd";>



Hello   

Return to home page.





I've searched the web and I've seen places mention about setting the
package.locator and action.suffix in the struts.xml so I've set my
struts.xml to this (it resides in my src folder):

http://struts.apache.org/dtds/struts-2.0.dtd";>


  
  
  
  
  
  


My jar files (I got them out of the tutorial) are located in WEB-INF/lib and
are:
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
freemarker-2.3.16.jar
javassist-3.7.ga.jar
log4j-1.2.14.jar
ognl-3.0.jar
struts2-config-browser-plugin-2.1.8.1.jar
struts2-convention-plugin-2.2.1.jar
struts2-core-2.2.1.jar
xwork-core-2.2.1.jar



I'm using Eclipse and jre6.

Thank you for your assistance,
Steve



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Getting unexpected ActionInvocation

2009-12-29 Thread Steve Mitchell
After a little more debugging I see that I am not hitting
the RedirectMessageInterceptor from that action. I'm messing around with
@Namespace and @InterceptorRefs to see if I can achieve the desired
behavior. I must have been seeing a ServletDispatcherResult  that was
further downstream.

On Tue, Dec 29, 2009 at 9:17 AM, Wes Wannemacher  wrote:

> Do you have a wildcard configuration in the XML that might be
> overriding your @Result? I can't remember the exact order of
> evaluation, but I think Conventions (assuming you're using
> Conventions, but we'll need version numbers and plugins to know
> better) is sort of the last-guy-on-the-totem-pole.
>
> You might try to take a look at the config-browser plugin so that you
> can see your effective configuration on the action in question.
>
> -Wes
>
> On Tue, Dec 29, 2009 at 10:10 AM, Steve Mitchell
>  wrote:
> > I’m doing a redirect with annotations: @Result(name = “success”,
> > type=”redirect”, location=”home.action”), however, the resulting
> > ActionInvocation is a ServletDispatcherResult instead of
> > ServletRedirectResult. This is an issue because I'm attempting to use the
> > RedirectMessageInterceptor  which expects a ServletRedirectResult. Why
> would
> > @Result type "redirect" result in a ServletDispatcherResult ?
> >
> > Steve Mitchell
> > http://www.ByteworksInc.com
> >
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Getting unexpected ActionInvocation

2009-12-29 Thread Steve Mitchell
I’m doing a redirect with annotations: @Result(name = “success”,
type=”redirect”, location=”home.action”), however, the resulting
ActionInvocation is a ServletDispatcherResult instead of
ServletRedirectResult. This is an issue because I'm attempting to use the
RedirectMessageInterceptor  which expects a ServletRedirectResult. Why would
@Result type "redirect" result in a ServletDispatcherResult ?

Steve Mitchell
http://www.ByteworksInc.com


RE: Struts 1.3.8 and WAS 7.0.0.5

2009-11-05 Thread Warsa, Steve
Now the developer removed all the struts jars except for the Struts 1.3.8 and 
is getting this error:

java.lang.ClassNotFoundException: org.apache.struts.taglib.template.PutTag

Here are the jars that are now included in the WAR:

antlr-2.7.2.jar   commons-validator-1.3.1.jar
slf4j-log4j12-1.4.2.jar  struts-core-1.3.8.jar
bsf-2.3.0.jar displaytag-1.2.jar spring-agent.jar   
  struts-el-1.3.8.jar
commons-beanutils-1.8.0.jar   displaytag-export-poi-1.2.jar  spring-aop.jar 
  struts-extras-1.3.8.jar
commons-chain-1.2.jar DisplayTagPatch.jarspring-beans.jar   
  struts-faces-1.3.8.jar
commons-codec-1.3.jar itext-1.3.jar  spring-context.jar 
  struts-mailreader-dao-1.3.8.jar
commons-collections-3.2.jar   jcl104-over-slf4j-1.4.2.jarspring-core.jar
  struts-scripting-1.3.8.jar
commons-digester-1.8.jar  jstl-1.1.2.jar spring-dao.jar 
  struts-taglib-1.3.8.jar
commons-fileupload-1.1.1.jar  log4j-1.2.15.jar   spring.jar 
  struts-tiles-1.3.8.jar
commons-io-1.1.jaroro-2.0.8.jar  spring-jdbc.jar
commons-lang-2.3.jar  poi-3.2-FINAL.jar  spring-jdo.jar
commons-logging-1.1.1.jar slf4j-api-1.4.2.jarstandard-1.0.6.jar

Thanks,
Steve Warsa
Avnet GIS
work: 480-794-7920
cell: 602-692-1562
 
"Everything should be made as simple as possible ...but no simpler."

--Albert Einstein


-Original Message-
From: Warsa, Steve [mailto:steve.wa...@avnet.com] 
Sent: Thursday, November 05, 2009 2:06 PM
To: 'user@struts.apache.org'
Subject: Struts 1.3.8 and WAS 7.0.0.5

Hi All,

I am a WAS admin and I have a developer who migrated his EAR to JEE 5 and 
servlet 2.5.  His EAR uses Struts 1.3.8  Apparently, it works fine (without 
error) running on his local environment (RAD 7.5) on the WAS 7.0.0.3 embedded 
test environment.  However, when deploying to WAS 7.0.0.5 (our Linux based WAS 
ND environment), he gets this error when hitting the first page:


[11/5/09 11:26:36:825 MST] 0024 servlet E 
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught 
exception created in one of the service methods of the servlet /jsp/Login.jsp 
in application aats. Exception created : 
com.ibm.websphere.servlet.error.ServletErrorReport: 
java.lang.NoSuchMethodError: 
org/apache/struts/util/RequestUtils.message(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:695)
at com.ibm._jsp._Login._jspService(_Login.java:209)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)

Any ideas?  Is struts 1.3.8 compatible with WAS 7.0.0.5?  Here is a list of 
jars he has in his WEB-INF/lib under the WAR:

antlr-2.7.2.jar
bsf-2.3.0.jar
commons-beanutils-1.7.0.jar
commons-beanutils-1.8.0.jar
commons-chain-1.1.jar
commons-chain-1.2.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-fileupload-1.1.1.jar
commons-io-1.1.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-1.1.1.jar
commons-validator-1.3.1.jar
displaytag-1.2.jar
displaytag-export-poi-1.2.jar
DisplayTagPatch.jar
itext-1.3.jar
jcl104-over-slf4j-1.4.2.jar
jstl-1.0.2.jar
jstl-1.1.2.jar
log4j-1.2.13.jar
log4j-1.2.15.jar
oro-2.0.8.jar
poi-3.2-FINAL.jar
slf4j-api-1.4.2.jar
slf4j-log4j12-1.4.2.jar
spring-agent.jar
spring-aop.jar
spring-beans.jar
spring-context.jar
spring-core.jar
spring-dao.jar
spring-hibernate3.jar
spring-ibatis.jar
spring.jar
spring-jdbc.jar
spring-jdo.jar
standard-1.0.2.jar
standard-1.0.6.jar
struts-core-1.3.10.jar
struts-core-1.3.8.jar
struts-el-1.3.10.jar
struts-el-1.3.8.jar
struts-extras-1.3.10.jar
struts-extras-1.3.8.jar
struts-faces-1.3.10.jar
struts-faces-1.3.8.jar
struts.jar
struts-mailreader-dao-1.3.10.jar
struts-mailreader-dao-1.3.8.jar
struts-scripting-1.3.10.jar
struts-scripting-1.3.8.jar
struts-taglib-1.3.10.jar
struts-taglib-1.3.8.jar
struts-tiles-1.3.10.jar
struts-tiles-1.3.8.jar

I know he has 2 versions of several jars, but he said this:

"It is expected to use Struts 1.3.8. But WAS looks for some API which is only 
available in Struts 1.1. So, I added Struts 1.1 to application classpath to 
remove the error caused by some classes in WAS."

So, it sounds like he was having problems with 1.3.8 and WAS 7.0.0.3 initially. 
 Does anyone know if they are compatible?

Thanks,
Steve


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts 1.3.8 and WAS 7.0.0.5

2009-11-05 Thread Warsa, Steve
Hi All,

I am a WAS admin and I have a developer who migrated his EAR to JEE 5 and 
servlet 2.5.  His EAR uses Struts 1.3.8  Apparently, it works fine (without 
error) running on his local environment (RAD 7.5) on the WAS 7.0.0.3 embedded 
test environment.  However, when deploying to WAS 7.0.0.5 (our Linux based WAS 
ND environment), he gets this error when hitting the first page:


[11/5/09 11:26:36:825 MST] 0024 servlet E 
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught 
exception created in one of the service methods of the servlet /jsp/Login.jsp 
in application aats. Exception created : 
com.ibm.websphere.servlet.error.ServletErrorReport: 
java.lang.NoSuchMethodError: 
org/apache/struts/util/RequestUtils.message(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:695)
at com.ibm._jsp._Login._jspService(_Login.java:209)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)

Any ideas?  Is struts 1.3.8 compatible with WAS 7.0.0.5?  Here is a list of 
jars he has in his WEB-INF/lib under the WAR:

antlr-2.7.2.jar
bsf-2.3.0.jar
commons-beanutils-1.7.0.jar
commons-beanutils-1.8.0.jar
commons-chain-1.1.jar
commons-chain-1.2.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-collections-3.2.jar
commons-digester-1.8.jar
commons-fileupload-1.1.1.jar
commons-io-1.1.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
commons-logging-1.1.1.jar
commons-validator-1.3.1.jar
displaytag-1.2.jar
displaytag-export-poi-1.2.jar
DisplayTagPatch.jar
itext-1.3.jar
jcl104-over-slf4j-1.4.2.jar
jstl-1.0.2.jar
jstl-1.1.2.jar
log4j-1.2.13.jar
log4j-1.2.15.jar
oro-2.0.8.jar
poi-3.2-FINAL.jar
slf4j-api-1.4.2.jar
slf4j-log4j12-1.4.2.jar
spring-agent.jar
spring-aop.jar
spring-beans.jar
spring-context.jar
spring-core.jar
spring-dao.jar
spring-hibernate3.jar
spring-ibatis.jar
spring.jar
spring-jdbc.jar
spring-jdo.jar
standard-1.0.2.jar
standard-1.0.6.jar
struts-core-1.3.10.jar
struts-core-1.3.8.jar
struts-el-1.3.10.jar
struts-el-1.3.8.jar
struts-extras-1.3.10.jar
struts-extras-1.3.8.jar
struts-faces-1.3.10.jar
struts-faces-1.3.8.jar
struts.jar
struts-mailreader-dao-1.3.10.jar
struts-mailreader-dao-1.3.8.jar
struts-scripting-1.3.10.jar
struts-scripting-1.3.8.jar
struts-taglib-1.3.10.jar
struts-taglib-1.3.8.jar
struts-tiles-1.3.10.jar
struts-tiles-1.3.8.jar

I know he has 2 versions of several jars, but he said this:

"It is expected to use Struts 1.3.8. But WAS looks for some API which is only 
available in Struts 1.1. So, I added Struts 1.1 to application classpath to 
remove the error caused by some classes in WAS."

So, it sounds like he was having problems with 1.3.8 and WAS 7.0.0.3 initially. 
 Does anyone know if they are compatible?

Thanks,
Steve



RE: Iterating over a List of Lists

2009-06-02 Thread Steve
Hi David,

My code doesn't include an editing capability so I don't have any working
code that I can cut and paste. Also I have not tried sending a List back
from a JSP page.

Are you getting any sub-lists back or are they all null?

Cheers,

Steve

-Original Message-
From: DavidCAIT [mailto:dzaze...@cait.org] 
Sent: 02 June 2009 14:13
To: user@struts.apache.org
Subject: RE: Iterating over a List of Lists


Thanks for the reply.

I am able to display the contents of the nested list (as indicated in your
example). However, I want to make the list contents editable and return them
to the Struts action. For example, something similar to:









Displaying the contents of the nested list is not the problem. I'm
experiencing problems indexing the textfields when returning the list to the
Struts Action. Perhaps the following order of events will clarify my
problem:

1. First Struts Action retrieves records from the database and populates the
List>.
2. JSP page correctly displays all of the List>.
3. (broken step) Second Struts Action would like to receive the
List> and save them back to the database.

The problem seems to be that my JSP page does not properly index the
textfield elements. Struts is then unable to parse the results back into the
List> for the Second Action. So what names should I give the
different textfields to allow Struts to parse them into a
List>?


Steve H. wrote:
> 
> This works for me
> 
> 
> 
> 
> 
> 
> 
> 
> 
> My inner list is a list of Strings.
> 
> This code gives me one innerList list per line
> 
> Hope this helps,
> 
> Steve
> 
> -Original Message-
> From: DavidCAIT [mailto:dzaze...@cait.org] 
> Sent: 02 June 2009 02:14
> To: user@struts.apache.org
> Subject: Iterating over a List of Lists
> 
> 
> Hello,
> 
> I am trying to use a nested List> with a Struts 2 Action
> and
> a JSP page. I would like to iterate through the JSP page to display the
> existing data, allow the user to edit the data, and post the form to a
> second Action. However, my second Struts Action always receives back a
> null
> list. I think that my indexing in the JSP page is incorrect. Does anyone
> have any suggestion about the correct way to index a nested list on the
> JSP
> page?
> 
> This is how I am currently setting my indices:
> 
> myList[0][0].property
> myList[0][1].property
> 
> myList[1][0].property
> ...
> 
> My JSP code looks like:
> 
> 
>
> name="myList[%{#outerStat.index}][%{#innerStat.index}].property"
> value="%{property}" />
> 
> 
> 
> Inside my second Struts action, I have the following code (the first
> action
> merely retrieves the list from the database and it works correctly since
> the
> JSP does populate correctly with all of the db records):
> 
> private List> myList = new ArrayList>();
> 
> public List> getMyList() { return myList; }
> 
> public void setMyList(List> numbers) { myList = numbers; }
> 
> // this execute method is called when posting the form and always returns
> null
> // when the user is done updating the information
> // even though the first action correctly populated the JSP page
> public String execute() {
>   for (List theList : myList) {
>   if (theList == null) {
>  System.out.println("received a null list");
>   }
>}
> }
> 
> Thanks!
> -- 
> View this message in context:
>
http://www.nabble.com/Iterating-over-a-List-of-Lists-tp23824944p23824944.htm
> l
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Iterating-over-a-List-of-Lists-tp23824944p23832301.htm
l
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Iterating over a List of Lists

2009-06-02 Thread Steve
This works for me









My inner list is a list of Strings.

This code gives me one innerList list per line

Hope this helps,

Steve

-Original Message-
From: DavidCAIT [mailto:dzaze...@cait.org] 
Sent: 02 June 2009 02:14
To: user@struts.apache.org
Subject: Iterating over a List of Lists


Hello,

I am trying to use a nested List> with a Struts 2 Action and
a JSP page. I would like to iterate through the JSP page to display the
existing data, allow the user to edit the data, and post the form to a
second Action. However, my second Struts Action always receives back a null
list. I think that my indexing in the JSP page is incorrect. Does anyone
have any suggestion about the correct way to index a nested list on the JSP
page?

This is how I am currently setting my indices:

myList[0][0].property
myList[0][1].property

myList[1][0].property
...

My JSP code looks like:


   
   



Inside my second Struts action, I have the following code (the first action
merely retrieves the list from the database and it works correctly since the
JSP does populate correctly with all of the db records):

private List> myList = new ArrayList>();

public List> getMyList() { return myList; }

public void setMyList(List> numbers) { myList = numbers; }

// this execute method is called when posting the form and always returns
null
// when the user is done updating the information
// even though the first action correctly populated the JSP page
public String execute() {
  for (List theList : myList) {
  if (theList == null) {
 System.out.println("received a null list");
  }
   }
}

Thanks!
-- 
View this message in context:
http://www.nabble.com/Iterating-over-a-List-of-Lists-tp23824944p23824944.htm
l
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Struts2 Interceptor

2009-05-27 Thread Steve
Hi Stefano,

This looks like an awkward design as you would go through half the
interceptor stack expecting to call one action, and half the stack expecting
to call a second action.

As an alternative could you do something like the following:-

Create class (or Interface) ReceivingAction with sub classes as the
"actions" you want to assign dynamically.

Create a true action class ForwardingAction with a property ReceivingAction.

The interceptor can now dynamically create the class required (derived from
/ implementing ReceivingAction) and set it on the current action
(ForwardingAction). It could also place the ReceivingAction instance on the
ValueStack.

The main action methods you are interested in (e.g. execute) could simply
forward to the ReceivingAction instance. You will need to be careful about
interceptor order if you want to do things like set your parameter values on
your ReceivingAction.

I haven't implemented this myself, although I have implemented all the
techniques I have described. I'm fairly confident that this will achieve
what you want.

Cheers,

Steve

-Original Message-
From: Stefano Corallo [mailto:stefan...@gmail.com] 
Sent: 27 May 2009 07:54
To: user@struts.apache.org
Subject: Struts2 Interceptor

Hi all,

can an interceptor call an arbitraty action different from the action
requested by the client?

Suppose i've the interceptor "interceptor-router" placed in the stack and
the client call MyAction.action, when the interceptor intercept the call is
possible to 'redirect' the call to MyDifferentAction.action from the
interceptor?

I've seen that there is action chaining but this require to know at build
time the name of the actions i want to redirect to, but i know the name only
at runtime and


I hope i was clear :) sorry for my english.


--
Stefano Corallo


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Accessing protected resources via a login page

2009-05-21 Thread Steve
Hi Stuart,

You're quite right. I'm not sure how I missed this as I actually logged the
output from getQueryString! Still, this has certainly simplified my code.

My interceptor calls setUrl on the action. This URL is then passed through a
 tag on the login form via a getUrl call. 

If the interceptor finds that the user is not logged in it aborts returning
"login". This is handled as follows: -


  

/goLoginPage.action?url=${encodedUrl}




Here I specifically encode the URL. My base action has the following getter
in addition to the normal getUrl and setUrl

public String getEncodedUrl () throws java.io.UnsupportedEncodingException 
{ 
return java.net.URLEncoder.encode (url, "UTF-8"); 
}

Struts automatically decodes the parameters so no decoding method is
required.

Cheers,

Steve

-Original Message-
From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com] 
Sent: 20 May 2009 17:11
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page

Hi Steve,

Glad to hear you got it working - just as an observation (and I really
haven't tested this to check, so it is a question), but would
HttpServletRequest.getQueryString() not have provided you with the original
parameters? So a combination of both getRequestURL and getQueryString could
have provided you with the complete request string.

Anyway, the real reason for responding is that I'm not sure what you mean
with when you mention the single parameter issue. At some stage soon I'll
probably be adding query string (parameter) support into our interceptor and
if you could post an example, I can file it away for future reference.

Thanks
Stuart


On 20/05/2009 17:00, "Steve"  wrote:

Thanks to Stuart, Lukasz and Wes for your advice.

I decided to stick with a home-grown solution because I'm only interested in
GET's right now and I don't want the complexity of adding Spring into the
mix with EJB3, Struts and JPA already working well together. This is because
I haven't used Spring before.

It's all working now but Spring may have been a better option!

Stuart's code worked fine until I bought parameters into the mix.
Unfortunately getRequestURL () doesn't return the parameters and I couldn't
find any other method that did. Therefore I had to iterate through the
parameters map and rebuild the parameters part of the request URL.

This worked fine with a single parameter but failed with two or more
parameters. This turned out to be a known issue with the redirect result
when used with ${url}. In this case the returned string is not URL encoded
so the single url parameter gets split on the embedded &. I added an extra
method to the action (getEncodedURL ()) and then used ${encodedUrl}. This
worked fine as the parameters interceptor automatically decodes parameters.

Cheers,

Steve

-Original Message-
From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com]
Sent: 19 May 2009 16:56
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page

Hi Steve,

What you are asking is relatively simple really - we implemented an
interceptor to capture the current request URL and store it in the current
value stack. We can subsequently reference it in our JSPs and use it in
forms in several places to enable us to redirect to the original page after
certain events occur. Here is the intercept method:

  public String intercept(ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
StringBuffer returnUrl = new StringBuffer(request.getRequestURL());
invocation.getStack().set("returnURL", returnUrl);return
invocation.invoke();  }

In your example, you would add setUrl and getUrl methods to the login action
class and then use the ${returnURL} in your JSP to create the request
parameter / hidden input.

Also, don't forget about the ability to use OGNL within your results... so
your result could be of type "redirect" sending to a location of ${url}
(that being the parameter name in your example below, and resolving to
LoginAction.getUrl().

Regards
Stuart

p.s. the reason for using the interceptor, rather than just accessing the
request URL directly in the JSP is that by the time the JSP is rendered,
that URL points to the JSP itself, rather than the action.



On 19/05/2009 16:44, "Steve"  wrote:

I would rather avoid using Acegi as I'm not using Spring. I'm using Struts 2
and EJB3.

I appreciate the Acegi can be used without Spring. But it still seems like
overkill to solve this one issue.

I was hoping to generate a call to login.action like
".../login.action?url=". I guess storing the
request string in the session would work just as well. Do you know the
easiest way to access the request string from an interceptor or action?

Many 

RE: Accessing protected resources via a login page

2009-05-20 Thread Steve
Thanks to Stuart, Lukasz and Wes for your advice.

I decided to stick with a home-grown solution because I'm only interested in
GET's right now and I don't want the complexity of adding Spring into the
mix with EJB3, Struts and JPA already working well together. This is because
I haven't used Spring before.

It's all working now but Spring may have been a better option!

Stuart's code worked fine until I bought parameters into the mix.
Unfortunately getRequestURL () doesn't return the parameters and I couldn't
find any other method that did. Therefore I had to iterate through the
parameters map and rebuild the parameters part of the request URL.

This worked fine with a single parameter but failed with two or more
parameters. This turned out to be a known issue with the redirect result
when used with ${url}. In this case the returned string is not URL encoded
so the single url parameter gets split on the embedded &. I added an extra
method to the action (getEncodedURL ()) and then used ${encodedUrl}. This
worked fine as the parameters interceptor automatically decodes parameters.

Cheers,

Steve

-Original Message-
From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com] 
Sent: 19 May 2009 16:56
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page

Hi Steve,

What you are asking is relatively simple really - we implemented an
interceptor to capture the current request URL and store it in the current
value stack. We can subsequently reference it in our JSPs and use it in
forms in several places to enable us to redirect to the original page after
certain events occur. Here is the intercept method:

  public String intercept(ActionInvocation invocation) throws Exception {
HttpServletRequest request = ServletActionContext.getRequest();
StringBuffer returnUrl = new StringBuffer(request.getRequestURL());
invocation.getStack().set("returnURL", returnUrl);return
invocation.invoke();  }

In your example, you would add setUrl and getUrl methods to the login action
class and then use the ${returnURL} in your JSP to create the request
parameter / hidden input.

Also, don't forget about the ability to use OGNL within your results... so
your result could be of type "redirect" sending to a location of ${url}
(that being the parameter name in your example below, and resolving to
LoginAction.getUrl().

Regards
Stuart

p.s. the reason for using the interceptor, rather than just accessing the
request URL directly in the JSP is that by the time the JSP is rendered,
that URL points to the JSP itself, rather than the action.



On 19/05/2009 16:44, "Steve"  wrote:

I would rather avoid using Acegi as I'm not using Spring. I'm using Struts 2
and EJB3.

I appreciate the Acegi can be used without Spring. But it still seems like
overkill to solve this one issue.

I was hoping to generate a call to login.action like
".../login.action?url=". I guess storing the
request string in the session would work just as well. Do you know the
easiest way to access the request string from an interceptor or action?

Many Thanks,

Steve

-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Sent: 19 May 2009 15:26
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page

2009/5/19 Steve :
> Can anyone advise on the best way to do this?

Use Acegi, it has such functionality built-in or store request path in
session when redirecting to login page and after successful login,
read it from session and redirect to it. It should be achievable with
the same interceptor you created.


Regards
--
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Accessing protected resources via a login page

2009-05-19 Thread Steve
I would rather avoid using Acegi as I'm not using Spring. I'm using Struts 2
and EJB3.

I appreciate the Acegi can be used without Spring. But it still seems like
overkill to solve this one issue.

I was hoping to generate a call to login.action like
".../login.action?url=". I guess storing the
request string in the session would work just as well. Do you know the
easiest way to access the request string from an interceptor or action?

Many Thanks,

Steve

-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: 19 May 2009 15:26
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page

2009/5/19 Steve :
> Can anyone advise on the best way to do this?

Use Acegi, it has such functionality built-in or store request path in
session when redirecting to login page and after successful login,
read it from session and redirect to it. It should be achievable with
the same interceptor you created.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Accessing protected resources via a login page

2009-05-19 Thread Steve
Hi everyone,

 

I have an application that insists on a user being logged in before they can
access specific resources.

 

Currently, if a user who is not logged in, attempts to access these
resources, they are simply redirected to the login page. This works fine and
is implemented using an interceptor.

 

I now want to enhance this behaviour so that, on successful login, they are
forwarded to the original page requested. This means I need to save the
original URL requested, including arbitrary parameters, and forward to this
URL from the login page.

 

Can anyone advise on the best way to do this?

 

Cheers,

 

Steve



RE: Struts newbie - Advice on file downloading

2009-05-17 Thread Steve
Hi,

Thanks to Richard, Mike and Dale for your help.

I've now got this working. The XML is downloading fine in my development
environment. I'll worry about other browsers and formats further downstream.

I've used contentType "text/xml" and contentDisposition
attachment;filename="myfile.xml" as suggested by Dale.

Cheers,

Steve

-Original Message-
From: Richard Sayre [mailto:richardsa...@gmail.com] 
Sent: 13 May 2009 12:41
To: Struts Users Mailing List
Subject: Re: Struts newbie - Advice on file downloading

Hi,

I have the following defined:

 

application/pdf
fileStream
filename="Report.pdf"
1024


My action lookks like this

public String generateReport() {

//use api to build PDF
//the api takes an output stream
//so at the end of my method i have an output stream containg the file...

//bout is my output stream
//file stream is a member of my Action (referenced in the  fileStream param)
//fileStream is an InputStream
 fileStream = new ByteArrayInputStream(bout.toByteArray());

return SUCCESS;
}

You will have to parameterize the XML to handle multiple file types:

 ${mimeType}

Which you will set in your action.  Same goes for the other parameters.

I'm not sure how to get the browser to display a save dialog, I think
it has to do with the mime type.  I think application/octet-stream
will work.

-Rich

On Wed, May 13, 2009 at 8:55 AM, Steve  wrote:
> Hi,
>
>
>
> I'm a Struts 2 newbie and I need to write some code to download
dynamically
> created files in various formats (csv, txt and xml). I want the user to be
> presented with a "Save As" dialog regardless of file type.
>
>
>
> Does anyone have any advice / URL's for example code? I have found the
> "Result Stream" documentation on the Struts site and various code
snippets.
> But I can't find any good complete examples.
>
>
>
> Many Thanks,
>
>
>
> Steve
>
> Steve Higham
>
>
>
>
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Problem dispatching in /content dir

2009-05-15 Thread Steve
There is. Create a simple action in your struts xml file and map it to the
framework class ActionSupport (com.opensymphony.xwork2.ActionSupport).

I haven't done this myself (although I have derived my actions from
ActionSupport). But I believe it will do what you want.

Cheers,

Steve

-Original Message-
From: Jim Collings [mailto:jlistn...@gmail.com] 
Sent: 15 May 2009 12:41
To: Struts Users Mailing List
Subject: Re: Problem dispatching in /content dir

Here's a bit of clarification:

page-one.jsp which is in /content
 |
 \-page-two  <--Have to use this to access page two because
it, also is in "/content". This means calling an empty "execute()".
  |
  \-page-two.jsp
   |
   \page-two  <--Page two action "page-two!dosomething"

Now I could put in a dummy action that just forwards to "page-two.jsp"
but why? It seems like there should be a better way.


Jim C.

On Fri, May 15, 2009 at 7:16 AM, Jim Collings  wrote:
>
> So I have a jsp that needs to submit to another jsp. Both are in /content.
When I use file-name.jsp I get 404. When I use file-name, I get the action
that file-name.jsp submits to.
>
> Any ideas on how I can work around this?
>
> Jim C.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Problem dispatching in /content dir

2009-05-15 Thread Steve
Jim,

The normal process is to call the action e.g. 

Struts will then (eventually) call the actions execute () method. This
returns a string that is mapped to the correct jsp page using a file like
my-struts.xml. The mapping will look something like: -


/content/EverythingOK.jsp
/content/ErrorPage.jsp


If you don't follow this paradigm then the framework will not be able to
perform the actions processing work or make any data available to the JSP
page. In other words you won't be using the framework.

Of course you can link directly to an html page. However I don't see the
reason to link to a jsp page unless it can pull some dynamic content out
from the framework.

Does this help?

Kind Regards,

Steve

-Original Message-
From: Jim Collings [mailto:jlistn...@gmail.com] 
Sent: 15 May 2009 12:16
To: Struts Users Mailing List
Subject: Problem dispatching in /content dir

So I have a jsp that needs to submit to another jsp. Both are in /content.
When I use file-name.jsp I get 404. When I use file-name, I get the action
that file-name.jsp submits to.

Any ideas on how I can work around this?

Jim C.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts newbie - Advice on file downloading

2009-05-13 Thread Steve
Hi,

 

I'm a Struts 2 newbie and I need to write some code to download dynamically
created files in various formats (csv, txt and xml). I want the user to be
presented with a "Save As" dialog regardless of file type.

 

Does anyone have any advice / URL's for example code? I have found the
"Result Stream" documentation on the Struts site and various code snippets.
But I can't find any good complete examples.

 

Many Thanks,

 

Steve

Steve Higham

  

 



Re: Cannot download struts 1.2.9 binary

2009-04-23 Thread Steve Bosman
> I just checked them both on Kubuntu Jaunty RC and both the tar and the
> zip are intact for me... Maybe you pulled them from a bad mirror or
> there is a firewall giving you troubles?


I've tried a few times now, with no luck, but I'll try again from home in
case it is the work firewall.

-- 
http://www.stevebosman.co.uk/
"I hear and I forget. I see and I remember. I do and I understand." -
Confucius


Cannot download struts 1.2.9 binary

2009-04-23 Thread Steve Bosman
Hi,

I want to download struts 1.2.9 from the binaries site:
http://archive.apache.org/dist/struts/binaries/ , but both the zip and
tarball refuse to open for me (I'm on Ubuntu 8.10). Is there somewhere else
I can obtain clean binaries from?
A colleague has managed a partial extract using WinZip, but that gave up
part way through the extract.

thanks

Steve


Re: Can you set parameters in using in the tag body?

2008-05-08 Thread Steve Akins
Are these parameters static?  If they are you could set them up in
struts config and get the submit button to direct to a specific action
mapping with these parameters defined.

Cheers,
Steve


On Thu, May 8, 2008 at 9:24 PM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
> Eduardo Dela Rosa wrote:
> > Hi,
> >
> > I was trying to use the  and invoke it with *some *parameters
> > using .
> >
> > i.e.,
> >
> > *
> >  
> >  
> >  
> > *
> >
> > However, the parameters don't seem to be getting through to the
> > HttpServletRequest object
> > when interrogated inside the Action.
> >
> > I know I can use the  instead, but I preferred the .
> >
> > I'm implementing ServletRequestAware interface, by the way.
> >
> > Thanks.
> >
> >
> >
>
> No, that's not supported.  It would have to append the parameters to the
> query string or create post parameters after the specific submit button is
> pressed. That would need to be implemented using a javascript listener
> attached to the click or submit event.  It's a nice idea though.
> -
> 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] params and staticParams

2008-04-28 Thread Steve Sether
I can't seem to find any indication where this ever wound up from 
several months ago, but I found the same issue independently after 
making the (poor) assumption that a statically assigned parameter 
wouldn't be overridden by a request parameter.  I did some searching and 
found this thread.


Like Dale, I've made the same fix in my default interceptor stack and 
fixed this.


To me, this is a potential security issue.  It's very handy to define a 
parameter passed into the action via the action configuration.  It's 
easy to make the assumption that these parameters can't be overwritten 
by the user.  It seems to me the framework should by default be 
configured with security in mind.


So, can anyone tell me where this wound up?  I'd just like to add my 
voice requesting the default order be changed.


Dale Newfield wrote:

Dale Newfield wrote:

Jeromy Evans wrote:
Wouldn't it be the case for most people that specify params in the 
action definition that they wouldn't want those overridden by

request params?

I don't know the history but I think you make a good point.


It a couple more people agree I'll create a JIRA issue and post a patch.


Clearly that should have started "If a couple..."

-Dale

-
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: Passing a List through a hidden field

2008-04-23 Thread Steve Akins
Thanks Gabriel and Jeromy,

I had thought of iterating through the List but was trying to avoid
generating a mass of HTML hidden fields.

I like it how the hidden tag translates the List into a meaningful
String, it's just a shame that Struts/XWork doesn't handle it when the
form is submitted.

I have raised an Improvement request on the JIRA
(https://issues.apache.org/struts/browse/WW-2612) and will continue to
investigate a way around this.  If anyone else has some bright ideas
it would be more than welcome.

Regards,
Steve

On Wed, Apr 23, 2008 at 10:57 PM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
>
> Steve Akins wrote:
>
> > I have a List called "ids" which contains 4 Strings "22030", "6496",
> > "6457", "6448"
> >
> > When the following tag is used:
> > 
> >
> > It produces the following HTML:
> >
> > 
> >
> >
> > When the form is submitted the "ids" List is populated with one String
> > "[22030, 6496, 6457, 6448]" instead of 4 Strings "22030", "6496",
> > "6457", "6448".
> >
> >
> > This looks like a problem with how the XWorkBasicConverter is working
> > or I have just not figured out how to do this yet.
> >
> > I would have thought that there's support for passing a List through a
> > form without the need for creating a custom converter for this.
> >
> > Does anyone have any ideas on how to overcome this problem?
> >
> >
> > Regards,
> > Steve
> >
> >
> >
>  Hi Steve,
>
>  I've seen this before but didn't have time to investigate.  I just split
> the string into an array in my action.
>  I agree it should work as you've described without a custom converter. But
> doesn't. Or doesn't always. Or doesn't give enough feedback about why it
> didn't.  If you have time, it would be helpful if you can see if an issue
> exists in JIRA and if not create one.
>
>  regards,
>  Jeromy Evans
>
>
>
>
>  -
>  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]



Passing a List through a hidden field

2008-04-22 Thread Steve Akins
I have a List called "ids" which contains 4 Strings "22030", "6496",
"6457", "6448"

When the following tag is used:


It produces the following HTML:




When the form is submitted the "ids" List is populated with one String
"[22030, 6496, 6457, 6448]" instead of 4 Strings "22030", "6496",
"6457", "6448".


This looks like a problem with how the XWorkBasicConverter is working
or I have just not figured out how to do this yet.

I would have thought that there's support for passing a List through a
form without the need for creating a custom converter for this.

Does anyone have any ideas on how to overcome this problem?


Regards,
Steve

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



Re: Why do parameters get applied to all hyperlinks generated by & even after the request is processes?

2008-04-22 Thread Steve Akins
You need to code includeParams="none" in the s:url tags

or

   ...
   
   ...


in your configuration.

Have a look here: http://struts.apache.org/2.x/docs/url.html

I'm pretty certain that will sort you out.


On 4/23/08, Eduardo Dela Rosa <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the following code in my JSP:
>
> *
>  
> 
> View Customer Details*
>
> Assuming that the value of the email is [EMAIL PROTECTED]
>
> After clicking the link generated by the ** & **, all hyperlinks
> in next page will have the [EMAIL PROTECTED] encoded in the URL,
> i.e.:
>
> *http://host:8080/mydomain/[EMAIL PROTECTED]
>
> This is apparent even when I don't set params in my *logout.action* link.
>
> Can someone explain this behavior?
>
> Thanks.
> --
> Eduardo Dela Rosa
> "Make things simple, but not simpler - E=mc2"
>

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



S2 Textfield tag date formatting

2008-04-09 Thread Steve Akins
I'm trying to use a textfield tag for date input.  I need to format this in
the form dd/MM/ HH:mm:ss

The teaxtfield tag formats the date to a Locale based format
DateFormat.SHORT  via XWorkBasicConverter.  For my locale this turns out to
be dd/MM/yy. This is not the format I want.



DateTimePicker wont allow you to apply a style class to the input field so
it wont format.  Bug has been reported in Struts JIRA (WW-1778) and a fix
made.  Need to wait for Struts 2.1 before this will work so I can't use
this.

Using the value parameter and a date tag won't work because this overwrites
the value entered.  If the user enters a value that can't be converted to a
date it isn't re-displayed, the field is displayed empty.


  

  


In the S2 guide for Type Conversion (
http://struts.apache.org/2.x/docs/type-conversion.html) it has a note saying
not to use Type Conversion for dates.

Does anyone know of a way to do this?


Thanks in advance.


Re: [S2] (action on form outside of struts2)

2007-08-17 Thread Steve Sether
To anyone who's interested in a workaround to my issue, I wound up 
creating an action that does a redirect to a URL passed into the action, 
and re-constructing the query string from the passed in parameters. 
It's not an elegant solution, but it does work.


Steve Sether wrote:
If I specify the entire URL with http:// (etc) it works fine, but that 
causes other problems for testing and whatnot that I'd like to avoid by 
using relative URLs.  I haven't tried ../notation, but I'll try it as a 
workaround.


It just seems like there should be a way to specify a URL in the action 
parameter and not have it be modified by Struts.


yitzle wrote:

On 8/16/07, Steve Sether <[EMAIL PROTECTED]> wrote:

I'm using struts 2 to create a form whose action links outside of struts
2. The problem is when I set the action parameter in the 
...


will create a 
instead of
 like I want.

I've tried to use a literal like:  tag of html.
  It seems like it should be possible to use the Struts 2 tag here and
be able to gain it's benefits (though obviously not server side 
validations)




Can you specify the entire URL? Or try doing
"../myProject/processForm" or "../../myProject/processForm" or
whatever.

-
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: [S2][Tabbed panel] posting data from one tab

2007-08-17 Thread Clement, Steve

You should be able to set the listenTopic attribute on the div for that
panel, and then notify the topic (I think this is on the s:submit tag,
but I could be mistaken). See
http://struts.apache.org/2.0.9/docs/tag-reference.html for more details.

This works if your theme "ajax". 

One thing I have found, however, is that if you use the rich text editor
for a textarea, the content of that textarea does not submit for some
reason. Other form controls submit fine.

Steve Clement
-Original Message-
From: Eugen Stoianovici [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 17, 2007 8:24 AM
To: Struts Users Mailing List
Subject: [S2][Tabbed panel] posting data from one tab

i have a tabbedpanel which displays several tabs one of which contains a

form. How do i turn back to that tab after i've pressed the submit 
button on that form?

-
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: [S2] (action on form outside of struts2)

2007-08-17 Thread Steve Sether
If I specify the entire URL with http:// (etc) it works fine, but that 
causes other problems for testing and whatnot that I'd like to avoid by 
using relative URLs.  I haven't tried ../notation, but I'll try it as a 
workaround.


It just seems like there should be a way to specify a URL in the action 
parameter and not have it be modified by Struts.


yitzle wrote:

On 8/16/07, Steve Sether <[EMAIL PROTECTED]> wrote:

I'm using struts 2 to create a form whose action links outside of struts
2. The problem is when I set the action parameter in the 
...


will create a 
instead of
 like I want.

I've tried to use a literal like:  tag of html.
  It seems like it should be possible to use the Struts 2 tag here and
be able to gain it's benefits (though obviously not server side validations)



Can you specify the entire URL? Or try doing
"../myProject/processForm" or "../../myProject/processForm" or
whatever.

-
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]



[S2]

2007-08-16 Thread Steve Sether
I'm using struts 2 to create a form whose action links outside of struts 
2. The problem is when I set the action parameter in the the framework is putting the Struts2 context in the URL. For instance:
say I have a struts 2 project called struts2.war, and another project 
called myProject.war.



...


will create a 
instead of
 like I want.

I've tried to use a literal like: action="'/myProject/processForm'", and even the "recommended" syntax of 
%{'/myProject/processForm'}.


"'/myProject/processForm'" results in action="'myProject/processForm'"

while
%{'/myProject/processForm'}

results in
action="/struts2/myProject/processForm"

One way around this is of course to just use the raw  tag of html. 
 It seems like it should be possible to use the Struts 2 tag here and 
be able to gain it's benefits (though obviously not server side validations)


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



params in model driven action

2007-08-16 Thread Clement, Steve
Is there an easy way to suppress the parameter exceptions when I use a
model driven action? I know I can add them as exclusions in the
interceptor stack config, but this seems a bit cumbersome and adds
additional maintenance if the form and model change.

Currently, I am using the paramsPrepareParamsStack. I do not want to put
the setters for the params in my action (that's the whole point of using
model-driven, right?), but the logs complain because the params are
looking for the setters in the action even though they are set on the
model.

Thanks in advance for any help.

Steve Clement




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



struts2 ajax theme and textarea

2007-08-14 Thread Clement, Steve
I am working with Struts2 within a tabbed panel in an ajax theme. In one
of the divs, I am using the  in a form that uses the ajax
theme. The problem is that the content of the textarea does not submit
the new content if I have the notifyTopics attribute set in the submit
tag.

This problem only occurs in IE. In Firefox, the submit action changes
the textarea WYSIWYG text area (provided by Dojo in Struts 2) into a
regular html  textarea right before submitting. The changed (or new)
content is then sent to the action.

In IE7, however, only the originally populated content is sent, not the
changes.

If I don't turn on the notifyTopics property, then the textarea content
is submitted, but the div does not refresh, so there is no way the user
can be sure that the submission has completed.

Here are the relevant code snippets:

Main Index Page:

   


${user.firstName}
${user.lastName}


   
   
   


Edit Page:




 





All changes to the checkbox and textfield tags are properly sent to the
releaseSave action. Only the textarea tag refuses to send the modified
content in IE7.

So either I lose the WYSIWYG editor widget that I get when the form is
in ajax theme, I lose the user experience of refreshing the "emergency"
div, or I lose the changes made to the content textarea. None of these
options sits well.

Any suggestions?

Steve Clement




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



[S2] read only textbox on DateTimePicker.

2007-08-14 Thread Steve Sether
Is there a way to make the textbox on the DateTimePicker able to be 
modified by the calendar only?  (i.e. the user can't type in their own 
value).


I've looked through the documentation and haven't been able to find any 
property to set this.


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



Re: Struts 2 interceptor and spring problem

2007-06-27 Thread Steve C

BTW, I did see this:

https://issues.apache.org/struts/browse/WW-1576

but i'm using struts 2.0.8 and the xwork version is 2.0.3.  Is this
still an xwork problem that I should ask about on opensymphony?

On 6/27/07, Steve C <[EMAIL PROTECTED]> wrote:

Hello.  I am in the process of migrating my application from webwork
2.2.x to Struts 2 and have encountered a problem.  I have a custom
interceptor which has a member variable injected by Spring.  This
object is a request scoped bean which is contructed using a factory
method from another bean which is a singleton.  So, it looks like
something like this:


MyInterceptor
-->private RequestBasedBean rbb
--> @required
void setRequestBasedBean


in applicationContext.xml:

 
   
 

 

 


This worked fine in webwork, but in struts 2, it looks like it is
trying to construct MyInterceptor at startup time and failing because
when it injects the requestBaseBean, there is no request context and
it fails (Stack trace below).  Note that I am using a request-scoped
bean and it is sort of referred to by a singleton, but I don't think I
need to use a scoped-proxy (which fails anyways, I tried it).  Again,
this worked fine in the WebWork implementation.  So, I'm trying to see

a) what changed with struts 2 interceptor intialization.
b) if it isn't technically a struts 2 problem, what workaround exist
in Spring (I may take this to the spring forums if this is not an
issue around struts 2).

Thanks!  And there is a reason why there are all the singletons and
factory stuff.  Related to legacy support and non-spring aware code.

-Steve


Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'requestBasedBean': Scope 'request' is not active
for the current thread; consider defining a scoped proxy for this bean
if you intend to refer to it from a singleton; nested exception is
java.lang.IllegalStateException: No thre
ad-bound request found: Are you referring to request attributes outside of an ac
tual web request? If you are actually operating within a web request and still r
eceive this message,your code is probably running outside of DispatcherServlet/D
ispatcherPortlet: In this case, use RequestContextListener or RequestContextFilt
er to expose the current request.
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:304)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:273)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(Sprin
gObjectFactory.java:167)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:154)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:128)
   at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:14
3)
   at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.
java:184)
   ... 52 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are y
ou referring to request attributes outside of an actual web request? If you are
actually operating within a web request and still receive this message,your code
 is probably running outside of DispatcherServlet/DispatcherPortlet: In this cas
e, use RequestContextListener or RequestContextFilter to expose the current requ
est.
   at org.springframework.web.context.request.RequestContextHolder.currentR
equestAttributes(RequestContextHolder.java:102)
   at org.springframework.web.context.request.AbstractRequestAttributesScop
e.get(AbstractRequestAttributesScope.java:40)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:285)
   ... 61 more



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



Struts 2 interceptor and spring problem

2007-06-27 Thread Steve C

Hello.  I am in the process of migrating my application from webwork
2.2.x to Struts 2 and have encountered a problem.  I have a custom
interceptor which has a member variable injected by Spring.  This
object is a request scoped bean which is contructed using a factory
method from another bean which is a singleton.  So, it looks like
something like this:


MyInterceptor
-->private RequestBasedBean rbb
--> @required
void setRequestBasedBean


in applicationContext.xml:

 
   
 

 

 


This worked fine in webwork, but in struts 2, it looks like it is
trying to construct MyInterceptor at startup time and failing because
when it injects the requestBaseBean, there is no request context and
it fails (Stack trace below).  Note that I am using a request-scoped
bean and it is sort of referred to by a singleton, but I don't think I
need to use a scoped-proxy (which fails anyways, I tried it).  Again,
this worked fine in the WebWork implementation.  So, I'm trying to see

a) what changed with struts 2 interceptor intialization.
b) if it isn't technically a struts 2 problem, what workaround exist
in Spring (I may take this to the spring forums if this is not an
issue around struts 2).

Thanks!  And there is a reason why there are all the singletons and
factory stuff.  Related to legacy support and non-spring aware code.

-Steve


Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'requestBasedBean': Scope 'request' is not active
for the current thread; consider defining a scoped proxy for this bean
if you intend to refer to it from a singleton; nested exception is
java.lang.IllegalStateException: No thre
ad-bound request found: Are you referring to request attributes outside of an ac
tual web request? If you are actually operating within a web request and still r
eceive this message,your code is probably running outside of DispatcherServlet/D
ispatcherPortlet: In this case, use RequestContextListener or RequestContextFilt
er to expose the current request.
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:304)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireByName(AbstractAutowireCapableBeanFactory.java:880)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:828)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:273)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.autoWireBean(Sprin
gObjectFactory.java:167)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:154)
   at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringOb
jectFactory.java:128)
   at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:14
3)
   at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.
java:184)
   ... 52 more
Caused by: java.lang.IllegalStateException: No thread-bound request found: Are y
ou referring to request attributes outside of an actual web request? If you are
actually operating within a web request and still receive this message,your code
is probably running outside of DispatcherServlet/DispatcherPortlet: In this cas
e, use RequestContextListener or RequestContextFilter to expose the current requ
est.
   at org.springframework.web.context.request.RequestContextHolder.currentR
equestAttributes(RequestContextHolder.java:102)
   at org.springframework.web.context.request.AbstractRequestAttributesScop
e.get(AbstractRequestAttributesScope.java:40)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:285)
   ... 61 more

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



RE: struts 1.3.5 tiles question

2006-11-16 Thread Steve Duran


  This worked.  

  Thanks much.

  Steve

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 16, 2006 12:58 AM
To: Steve Duran
Subject: Re: struts 1.3.5 tiles question


Steve Duran ha scritto:
> "bar.jsp" contains only the string "testing" - no XML, JSP, HTML.
>
>   The reason I did not put  in the JSP 
> is because on this page:
>
> http://struts.apache.org/1.3.5/struts-tiles/examples.html
>
>   it recommends that the definitions be put in tiles-defs.xml, not in 
> the JSP, which is what I did in Struts 1.2.9
>   

You are confusing  with 
. The first insert a configured 
definition (or a definition defined with ) in the 
page, the second defines the definition itself. It's the latter that the

page you mentioned refers to.
If you define a definition inside tiles-defs.xml, you HAVE TO insert it 
with , or forward to the definition itself.

Ciao
Antonio
**
CONFIDENTALITY NOTICE: This e-mail communication and any attachments may 
contain confidential and 
privileged information protected from disclosure by law. It is intended only 
for the use of the specified 
recipients.  Any unauthorized review, use, disclosure, distribution or any 
action based on this material is 
prohibited.  If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all 
copies of the original message.
**


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



RE: struts 1.3.5 tiles question

2006-11-15 Thread Steve Duran

>There are some missing details. But here I am supposing that "bar.jsp" 
>is your test JSP page and "parent.jsp" is the page where you put 
>. If this is not the case please let
me 
>know.
>Well, in this case, you forgot to fillup the "foo" attribute in
"bar.jsp"
 
  "parent.jsp" is a test page where I want to import the content of
"bar.jsp".
 
  "bar.jsp" contains only the string "testing" - no XML, JSP, HTML.

  The reason I did not put  in the JSP is
because on this page:

http://struts.apache.org/1.3.5/struts-tiles/examples.html

  it recommends that the definitions be put in tiles-defs.xml, not in
the JSP, which is what I did in Struts 1.2.9

  Steve

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 15, 2006 12:52 AM
To: Struts Users Mailing List
Subject: Re: struts 1.3.5 tiles question


Steve Duran ha scritto:
><%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles"

> %>
>  
> 
>   
> FooBar
>   
>   
> 
>   
> 
>  
>  
>   Here's my tiles-defs.xml:
>  
> 
> 
> "-//Apache Software Foundation//DTD Tiles Configuration
1.3//EN"
>"http://struts.apache.org/dtds/tiles-config_1_3.dtd";>
>  
> 
> 
> 
> 
> ...
>
> root cause
>
> java.lang.NullPointerException
>   
> org.apache.struts.tiles.taglib.InsertTag.processAttribute(InsertTag.ja
> va
> :687)
>   


There are some missing details. But here I am supposing that "bar.jsp" 
is your test JSP page and "parent.jsp" is the page where you put 
. If this is not the case please let me

know.
Well, in this case, you forgot to fillup the "foo" attribute in
"bar.jsp"

HTH
Antonio
**
CONFIDENTALITY NOTICE: This e-mail communication and any attachments may 
contain confidential and 
privileged information protected from disclosure by law. It is intended only 
for the use of the specified 
recipients.  Any unauthorized review, use, disclosure, distribution or any 
action based on this material is 
prohibited.  If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all 
copies of the original message.
**


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



struts 1.3.5 tiles question

2006-11-14 Thread Steve Duran
 
  I have been unable to get Tiles to work under Struts 1.3.5.  I also
noticed that none of the Struts 1.3.5 examples use Tiles.   Below is a
summary of the problem.  The only place where my implementation deviates
from the documentation is in the tiles-defs.xml file.  If anyone know
what I need to do to get it to work, it would be appreciated.  Thanks.
 
==
 
  I installed Tomcat 5.5.20 onto a Red Hat Linux 4.0 box.  I opened up
the "blank.war" app that comes with Struts 1.3.5.  I modified web.xml
and struts-config.xml as specified in the Struts 1.3.5 Tiles
documentation.
 
  Here's my test JSP:
 
  <%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles" %>
 

  
FooBar
  
  

  

 
 
  Here's my tiles-defs.xml:
 


http://struts.apache.org/dtds/tiles-config_1_3.dtd";>  
 




 
 
  I get this error:
 
org.apache.jasper.JasperException: Exception in JSP: /parent.jsp:8

5: FooBar
6:   
7:   
8: 
9:   
10: 


Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:506)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:395)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

java.lang.NullPointerException

org.apache.struts.tiles.taglib.InsertTag.processAttribute(InsertTag.java
:687)

org.apache.struts.tiles.taglib.InsertTag.createTagHandler(InsertTag.java
:478)

org.apache.struts.tiles.taglib.InsertTag.doStartTag(InsertTag.java:438)

org.apache.jsp.parent_jsp._jspx_meth_tiles_insert_0(parent_jsp.java:85)
org.apache.jsp.parent_jsp._jspService(parent_jsp.java:59)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:334)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

**
CONFIDENTALITY NOTICE: This e-mail communication and any attachments may 
contain confidential and 
privileged information protected from disclosure by law. It is intended only 
for the use of the specified 
recipients.  Any unauthorized review, use, disclosure, distribution or any 
action based on this material is 
prohibited.  If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all 
copies of the original message.
**

FormFile for uploading, via SSL

2006-06-28 Thread Steve Bement
We are using FormFile to do file uploads.  Everything has been working 
fine with the app for months now.  Yesterday we put the application 
behind SSL, and now file upload no longer works.  In the action class, 
when we get the FormFile out of the form, it is null.  Is there 
something we have to change, in order for this to work with SSL?


--
Steve Bement
www.rampgroup.com


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



Re: How can I transfer a file to a struts based web application from a java application

2006-06-22 Thread Steve Bosman

Thanks, but I don't see how JFileChooser will help - my application
can already obtain a File what I don't get is how to transfer the file
via http to be processed by the struts application.

Steve

On 6/19/06, Mukta <[EMAIL PROTECTED]> wrote:

Try using JFileChooser


-Original Message-
From: Steve Bosman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 2:58 PM
To: Struts User Mailing List
Subject: How can I transfer a file to a struts based web application from a
java application

Hi,

I have a struts 1.1 application with an Action that processes a file
obtained using an ActionForm containing a
org.apache.struts.upload.FormFile parameter, I want to use this action
from a java application and would be really grateful if someone could
give me pointers on how to do this using URLConnection. I've used
URLConnection before, it's just the file transfer that has me stumped.



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



How can I transfer a file to a struts based web application from a java application

2006-06-14 Thread Steve Bosman

Hi,

I have a struts 1.1 application with an Action that processes a file
obtained using an ActionForm containing a
org.apache.struts.upload.FormFile parameter, I want to use this action
from a java application and would be really grateful if someone could
give me pointers on how to do this using URLConnection. I've used
URLConnection before, it's just the file transfer that has me stumped.

Thanks in advance

Steve

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



RE: [OT] Verifying Image Generator?

2006-04-24 Thread Steve Widmar
> Does anyone know where I can find one of those "image code generators"
> that verifies that a person is submitting a form and not a computer?
Not me.

> I'd rather not stop to recreate the wheel.
Sensible enough, but if you find you have to, here's one pseudoapproach
I've never tried that could work:

. programmatically generate the xml text for an SVG image
  (the images themselves don't look all that complex, and the key text
overlaid is just text at this point)

. convert the svg to some binary web image format like png (e.g., via
cocoon)

Cheers, 
Steve

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



Re: [FRIDAY] Re: has struts reached the saturation

2006-03-25 Thread Steve Raeburn
I normally ignore your crap and I'm sorry for prolonging this agony for 
everyone. This really will be my last word.


Michael, why do you continue to waste your time on such a "big pile of 
crap" as Struts? What kind of a fool must you be for using the world's 
worst web framework, run by a bunch on idiotic dictators? If you really 
believe that, then you are as big a loser as you appear to be. If you 
think you can do better, then fine, go do it. But please, quit whining 
and doing nothing about it. Or do you just enjoy whining?


Please. Get a life.

Steve

p.s. Don't bother addressing any reply to me. You'll just be pissing in 
the wind.


Dakota Jack wrote:

The fact is that there will not be an explanation for this failure.  While
sitting in the biggest pile of crap code one could imagine, they continue to
extoll their virtues as if they were about to be mentioned for an honorarium
in computer history.


On 3/24/06, Jonathan Revusky <[EMAIL PROTECTED]> wrote:
  

Steve Raeburn wrote:


Bottom line is that this is the way Apache works and it's not going to
change.
  

In any case, it is not a subject of legitimate debate at this point that
progress on the Struts framework stagnated. If you guys were doing
everything right, then what is your explanation for that?

Jonathan Revusky








--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

  



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



Re: [FRIDAY] Re: has struts reached the saturation

2006-03-24 Thread Steve Raeburn
Bottom line is that this is the way Apache works and it's not going to 
change.


I guess you *could* continue to argue that this method has been a 
failure for both Struts and Apache (and most other significant open 
source projects), but I think the evidence suggests otherwise.


Steve

Jonathan Revusky wrote:

Steve Raeburn wrote:
I have an idea. Why don't we publish the source code to Struts so 
that absolutely anyone can contribute to the project. You are right 
that we'll need a review process for all those contributions. So why 
don't we require all incoming code to be reviewed by at least one 
experienced developer before it is added to the code base. After a 
while, developers will earn a level of trust and we can relax the 
review requirement to only happen after the code is updated.


The problem with that proposal is that it sounds like your current 
practice. The current practice has already been tested and not 
produced good results. You have fallen further and further behind 
other competing projects and that is why it became necessary to bring 
in Webwork (heretofore a competitor) so that you could have something 
reasonably up-to-date to offer people.


To continue with the same practices and expect radically different 
results does not seem rational. It is encouraging that you seem to see 
that there is a problem and are making a proposal. However, I think 
your proposal would have to actually involve a change of some sort.


The one I suggested was drastically lowering the barriers to letting 
people directly commit code to the repository. To many people, this 
sounds very radical. People have suggested that this would lead to all 
kinds of problems. However, that can be put to an empirical test. 
Given the failure of your current policies, it is not as if you have 
so much to lose.




Thanks for the advice. We should implement this new process right away.


Tell me, does the same old wine in a new bottle taste any different?

Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/
FreeMarker group blog, http://freemarker.blogspot.com/



Steve

Jonathan Revusky wrote:


Dave Newton wrote:


Dakota Jack wrote:


I flat don't believe this.  Who, what, where, when, etc?
 




This isn't me (although I did fix an essentially identical bug in an
internal webapp at Morgan Stanley (who), an Action instance variable
(what), in Morristown (where), spring 2004 (when), because they 
paid me

(why), by putting the data into a synchronized map (how) although I
believe eventually they changed the structure of the app to eliminate
the need for that (it was a quick fix for an emergency problem: "this
works almost all the time, but under load we occasionally get 
corrupted

data"-a-thon).

http://www.thedailywtf.com/

Today's is "the cost of static."




I just visited the above link and read the article and I don't see 
how this can be presented as evidence against a more open 
collaborative model. Basically it's the story of a bug. Somebody 
made a mistake. People will make mistakes regardless. Also, the bug 
occurred, as far as I can see, in a closed source commercial 
codebase, so it's not clear to me how this is relevant at all.


I have said repeatedly at this point that I assume that code 
committed by newbie committers would be reviewed. In principle, a 
bug like the one described in that article would be caught at that 
point. But another point about this is that having more people in 
the code could decrease the mean life expectancy of such bugs 
because of the phenomenon of more eyeballs.


Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/



Anybody who thinks anyone should have commit access... feel free to 
walk
around tdwtf, marvel, and pat yourself on the back for being better 
than

some of the stories there (I hope :)

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: [FRIDAY] Re: has struts reached the saturation

2006-03-24 Thread Steve Raeburn
I have an idea. Why don't we publish the source code to Struts so that 
absolutely anyone can contribute to the project. You are right that 
we'll need a review process for all those contributions. So why don't we 
require all incoming code to be reviewed by at least one experienced 
developer before it is added to the code base. After a while, developers 
will earn a level of trust and we can relax the review requirement to 
only happen after the code is updated.


Thanks for the advice. We should implement this new process right away.

Steve

Jonathan Revusky wrote:

Dave Newton wrote:

Dakota Jack wrote:


I flat don't believe this.  Who, what, where, when, etc?
 



This isn't me (although I did fix an essentially identical bug in an
internal webapp at Morgan Stanley (who), an Action instance variable
(what), in Morristown (where), spring 2004 (when), because they paid me
(why), by putting the data into a synchronized map (how) although I
believe eventually they changed the structure of the app to eliminate
the need for that (it was a quick fix for an emergency problem: "this
works almost all the time, but under load we occasionally get corrupted
data"-a-thon).

http://www.thedailywtf.com/

Today's is "the cost of static."



I just visited the above link and read the article and I don't see how 
this can be presented as evidence against a more open collaborative 
model. Basically it's the story of a bug. Somebody made a mistake. 
People will make mistakes regardless. Also, the bug occurred, as far 
as I can see, in a closed source commercial codebase, so it's not 
clear to me how this is relevant at all.


I have said repeatedly at this point that I assume that code committed 
by newbie committers would be reviewed. In principle, a bug like the 
one described in that article would be caught at that point. But 
another point about this is that having more people in the code could 
decrease the mean life expectancy of such bugs because of the 
phenomenon of more eyeballs.


Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/



Anybody who thinks anyone should have commit access... feel free to walk
around tdwtf, marvel, and pat yourself on the back for being better than
some of the stories there (I hope :)

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]



Re: [FRIDAY] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn
I think the flaw in my analogy is that nobody will starve if they choose 
not to eat at the Struts shelter :-)


Steve

Frank W. Zammetti wrote:

Steve Raeburn wrote:
Let me try another analogy. Let's say you go down to volunteer at a 
homeless shelter. You serve a few meals and wipe a few tables a 
couple of times a month. Do you become bound by any responsibility 
other than to show up and help? Do you become responsible for solving 
the homeless problem? Should you feel obligated to give someone a 
bed? Some people may feel they do have such a responsibility. Others 
won't. It's not my place to criticize a volunteer for not taking on 
those additional responsibilities. I am just grateful that you've 
just done a little bit to help out.


That's a good analogy, it took me a while to figure out why it wasn't 
right for me with my position in mind (you had me doubting myself for 
a few hours before it hit me!)...


If the volunteer does as you say, then I would agree, there isn't any 
added/assumed responsibility.  One would hope they have their own 
sense of responsibility and treat the homeless people kindly, but 
that's about it.


However... if the volunteer does good work and is consequently asked 
to become a permanent volunteer by an existing group of permanent 
volunteers, and as a result is given some degree of authority to make 
decisions that will affect those that come to the shelter, then I 
think there is definitely a higher level of responsibility to that 
"community" of homeless, as well of course to the other permanent 
volunteers. Again, as I've said all along, the degree of extra 
responsibility I think is debatable.


In your original analogy, the volunteer would be someone like me.  In 
my modified version, they would be a committer.  At least in my eyes, 
there is a difference.


Excellent analogy though, you definitely made me think and evaluate my 
position, I appreciate that! :)



Steve


Frank

-
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] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn

Frank W. Zammetti wrote:
That's certainly one interpretation.  For me, the responsibility comes 
with the position by default.

...
What responsibilities do I have to my elected officials? 
This might be getting to the heart of why we see the responsibilities 
differently. The committers are not elected officials. They represent 
only themselves, and sometimes their companies. Therefore the only 
responsibility they have is to themselves. That doesn't mean they don't 
care about what other people want or think, just that they are not bound 
by any duty other than their own personal code of ethics.


Let me try another analogy. Let's say you go down to volunteer at a 
homeless shelter. You serve a few meals and wipe a few tables a couple 
of times a month. Do you become bound by any responsibility other than 
to show up and help? Do you become responsible for solving the homeless 
problem? Should you feel obligated to give someone a bed? Some people 
may feel they do have such a responsibility. Others won't. It's not my 
place to criticize a volunteer for not taking on those additional 
responsibilities. I am just grateful that you've just done a little bit 
to help out.


As for your response to my last question, I very much agree with you. I 
do not believe blind allegiance is *ever* a good thing. I question 
everything. I can be a real pain, believe me. But at some point you have 
to accept that your way might not be accepted by others. They key thing 
you said is respect. You have to give respect to earn it. The thing that 
pisses me off most on this list (and I'm certainly not talking about you 
here BTW) is people who have done nothing of value but who make personal 
attacks on others who have contributed a lot of time and effort to help 
them. Those people shouldn't be surprised that they don't get listened 
to. You know who you are.


Steve

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



Re: [FRIDAY] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn

Michael,

You have really got to learn to read. Anyway, here's another idea 
that'll put you in a tizzy 
http://weblogs.java.net/blog/jhook/archive/2006/03/the_new_servlet_1.html


Steve

Dakota Jack wrote:

Good god, Steve.  You think that the very idea that a JSF
implementation could become Struts 2.0 is not a huge proof that
everything you just said is not goofy?  Maybe we could suggest that
Java become C?

On 3/17/06, Steve Raeburn <[EMAIL PROTECTED]> wrote:
  

Frank W. Zammetti wrote:


I was *going* to say that the difference is that when the project
started it was me and me alone, and that isn't the case any more.
There are two other committers, and we have project bylaws that
effectively gives them the ability to do things even if I 100%
disagree.  I started out with complete control, and right now I
essentially have none, and I must follow the will of the leadership.
Ultimately, we are accountable to the community insofar as if we do a
bad job, there will be *no* community :)
  

And that's *exactly* how the Struts project works. It was started by one
person, then a few more joined and now they collectively make decisions.
Even if the founder of the project disagrees.

Some people seem to look at Shale being part of the Struts project as a
sign that one person controls the project and always gets his own way.
In fact, that is the complete opposite of the truth. That Shale is now a
Struts sub-project was a result of a disagreement between committers
over the future of Struts and what should become Struts 2.0. IMHO that
disagreement was handled in a very mature, thoughtful way which resulted
in Shale becoming a subproject and a peer to Struts Action, rather than
replacing it. The jury's still out on which will become more widely
used, but that's not really the point. Both can happily co-exist here
and one does not have to fail for the other to succeed.

So, there *is* healthy disagreement, non-committers *are* listened to
during the discussion and then a decision is made and we move on.
Sometimes ;-)

Steve


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






--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

-
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] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn

Frank W. Zammetti wrote:
I was *going* to say that the difference is that when the project 
started it was me and me alone, and that isn't the case any more.  
There are two other committers, and we have project bylaws that 
effectively gives them the ability to do things even if I 100% 
disagree.  I started out with complete control, and right now I 
essentially have none, and I must follow the will of the leadership.  
Ultimately, we are accountable to the community insofar as if we do a 
bad job, there will be *no* community :)
And that's *exactly* how the Struts project works. It was started by one 
person, then a few more joined and now they collectively make decisions. 
Even if the founder of the project disagrees.


Some people seem to look at Shale being part of the Struts project as a 
sign that one person controls the project and always gets his own way. 
In fact, that is the complete opposite of the truth. That Shale is now a 
Struts sub-project was a result of a disagreement between committers 
over the future of Struts and what should become Struts 2.0. IMHO that 
disagreement was handled in a very mature, thoughtful way which resulted 
in Shale becoming a subproject and a peer to Struts Action, rather than 
replacing it. The jury's still out on which will become more widely 
used, but that's not really the point. Both can happily co-exist here 
and one does not have to fail for the other to succeed.


So, there *is* healthy disagreement, non-committers *are* listened to 
during the discussion and then a decision is made and we move on. 
Sometimes ;-)


Steve


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



Re: [FRIDAY] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn
I guess I should have put some  tags in :-) No, Ajax is cool. 
Possibly over-hyped and I have doubts about maintainability and 
accessibility, but very cool.


Rather than people volunteering to be community leaders, I think you are 
trying to *give* people leadership responsibility, which I don't think 
is fair -- unless there is a large cheque attached ;-)


Although under no obligation to do so, the Struts committers have shown 
a great deal of responsibility to the community. Many have actively 
participated on the mailing lists to help people learn and use Struts 
(and often non-Struts too). There has been great emphasis on backwards 
compatibility, to ensure your investment in Struts is not wasted. There 
has been a great deal of effort put into ease of use and documentation - 
more than is required for the committers' own use. Committers (and other 
contributors) have voluntarily accepted those responsibilities and spent 
the time necessary to fulfil them.


The responsibility that has been shown is more than I have any right to 
expect. I'm grateful for it and I'm sure it has contributed to the 
success of Struts, but I have no automatic right to expect it.


Bottom line is that the only *rights* you have are those granted by the 
license. Craig was generous enough to initially contribute Struts under 
a permissive license, which means that if you really feel the Struts 
project (code + community) is not serving your needs, that you won't be 
prevented from using and modifying it as you see fit. Even starting a 
new project if that's what you want.


One final thought. If the committers have a responsibility to the 
community, what is the community responsibility to the committers?


Steve

Frank W. Zammetti wrote:

On Fri, March 17, 2006 2:23 pm, Steve Raeburn said:
  

Frank, I don't think Java Web Parts should provide support for Ajax.
After all, this is *Java* Web Parts and Ajax has nothing to do with
Java. Anyway, Ajax is just a fad and I don't like it. If you want to do
Ajax, you should split it off into a separate project.



I've been thinking about that actually, but for a different reason...
AjaxTags is by far the most popular part of JWP, and it might do well to
develop on its own.  I haven't raised this with the other team members
though, so it's just my mussings in this one thread :)

You really think it's a fad?  I can't say I agree... although it's not new
for many of us, I think it is for more.  It's a different way of
approaching web development in essence... forget the nitty gritty of this
library vs. that library or XMLHttpRequest objects, etc...  I don't think
it's a fad, in fact I think its quite the opposite: a paradim shift.

Well, I think we can probably agree at least that it's one tool in the
toolbox.  Whether you like it or choose to use it or not is completely up
to you :)

  

Give me commit rights and I'll just delete it myself. Ok?



Sure, no problem :)

  

Regarding responsibility accepted by the committers, let me refer you to
the Apache License:

7. Disclaimer of Warranty. Unless required by applicable law or agreed
to in writing, Licensor provides the Work (and each Contributor provides
its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied, including, without limitation,
any warranties or conditions of TITLE, NON-INFRINGEMENT,
MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
responsible for determining the appropriateness of using or
redistributing the Work and assume any risks associated with Your
exercise of permissions under this License.

If you get value from the code, use it. If not, don't. End of
responsibility.



I think we're talking about two different forms of responsibility.  I'm in
no way, shape or form saying or implying that a committer is ever liable
for code.  Absolutely they are not.  I think they have a responsibility to
do the best work they can, but that's about it, and I've never had any
doubt about that part of it, I think each committer does the best they
can.  I don't think anyone is purposely committing substandard code or
anything like that, not in the least do I think that.

I'm talking about the responsibility of being a leader.  My view, and
that's all it is in the end is my view of things, is that being a
committer means you have accepted some extra degree of responsibility to
be a leader and consider the community when you make decisions.  I do not
believe that you are simply a technician doing technical work any longer
at that point.  Espcially when you have something that has grown to the
degree Struts has, and has so many people invested in it in various ways,
I don't think you are simply a "gaggle of engineers" as longer.  That may
have been how it started, but evolution has so

Re: [FRIDAY] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn
Frank, I don't think Java Web Parts should provide support for Ajax. 
After all, this is *Java* Web Parts and Ajax has nothing to do with 
Java. Anyway, Ajax is just a fad and I don't like it. If you want to do 
Ajax, you should split it off into a separate project.


Give me commit rights and I'll just delete it myself. Ok?

Regarding responsibility accepted by the committers, let me refer you to 
the Apache License:


7. Disclaimer of Warranty. Unless required by applicable law or agreed 
to in writing, Licensor provides the Work (and each Contributor provides 
its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
OF ANY KIND, either express or implied, including, without limitation, 
any warranties or conditions of TITLE, NON-INFRINGEMENT, 
MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely 
responsible for determining the appropriateness of using or 
redistributing the Work and assume any risks associated with Your 
exercise of permissions under this License.


If you get value from the code, use it. If not, don't. End of 
responsibility.


BTW I do respect you as a contributor to the Struts community and do 
accept your right to comment on how the community is run and where the 
code is going. I just don't agree that you have a right to question 
people's motives or tell them how to spend their time.


Steve

Frank W. Zammetti wrote:

*YOUR* trying to share *YOUR* solutions.  But if someone else wants to
share their solutions, they have to go *through* you.  And you don't see
why there's frustration?

Oh, I think I know what you'd say to that... there are alternatives.  And
your right!  That's how Java Web Parts got started.  I wanted to share my
solutions too, let people decide if they liked them or not, use them if
they want or not, and I wasn't allowed to do it here.  So, I went
elsewhere.  And you know, it worked out for the best, so I suppose in the
end I should thank you!


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



Re: [FRIDAY] Re: has struts reached the saturation

2006-03-17 Thread Steve Raeburn
Simon, I think you've nicely illustrated the problem. Rather than 
interpret what people have said as their honest,educated opinion, 
certain people choose to interpret it as bullshit. Some people can live 
in a world that has many "right" answers, others see only in black and 
white.


The irony here is that Dakota, despite his many personalities, can only 
see one point of view ;-)


Anyway, we all know Java's dead. We should all be working on Struts on 
Rails.


Steve

p.s. You do Frank a great dis-service by lumping him in with DJ.

Simon Chappell wrote:

As one who appreciates Struts very much, I would like to thank the
team of committers for their work and dedication.

I would also like to thank the rest of the mailing list for being
willing to voice concerns and call out bullshit ("spin" if you don't
like the word bullshit). This is an important part of the
responsibilities of the members of a software community.

So, Ted and Craig et al., thank you and please keep up the good work.
Frank and Dakota et al., thanks and please keep up the good work.

Viva Struts! :-)

I have no dog in the fight, my management won't let me move past
Struts 1.1, so the future of Struts is outside of my pervue to worry
about. :-)

Simon

On 3/17/06, James Reynolds <[EMAIL PROTECTED]> wrote:
  

Ted, Craig and everyone else,

Thanks so much for your dedication and support to these projects.  The
advice I've received on this list has been a life-saver and has helped
me immensely in my career.  Your contributions are greatly appreciated.

Sincerely,

The silent majority


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






--
www.simonpeter.org

-
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 finding tiles-defs.xml

2006-03-10 Thread Hilton, Steve
Oshima, thank you VERY VERY much!  That fixed it.  I had looked on
so many web site, and at so many examples, and in so many books, and not
one single resource I looked at EVER said to add that code to web.xml.
Thanks again.  I really appreciate it!

Steve

-Original Message-
From: Oshima Tlholoe [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 4:58 AM
To: Struts Users Mailing List
Subject: Re: Error finding tiles-defs.xml


hi Steve

did you include the your tiles-defs.xml in the web.xml so that its
loaded
when your ActionServlet starts up. asn the following

   definitions-config
   /WEB-INF/tiles-defs.xml



On 3/10/06, Oshima Tlholoe <[EMAIL PROTECTED]> wrote:
>
> hi Steve,
> I had a look at your code snipets and they seem right, this can be
stupid
> to mention but just check on your war file to see if the
tiles-defs.xml is
> copied under the WEB-INF/ directory,sometimes this are little mistakes
that
> we make.
>
>
> On 3/9/06, Hilton, Steve <[EMAIL PROTECTED]> wrote:
> >
> > If you look at the last 3 lines below (at the very bottom of this
> > e-mail)...
> > It says it can't find file '/WEB-INF/tiles- defs.xml'.  I've listed
my
> > tiles-def and struts-config files in here as well.  Both of those
files
> > reside under /WEB-INF.  I have set this up similar to every example
I
> > have been able to find, and always the same result.  Any reference
from
> > the struts-config file to a tiles definition also produces a warning
-
> > "Target page.default cannot be resolved in the context of the
following
> > modules: /".  Any ideas?  I cannot see what I have set up wrong
here?
> > Thanks.
> >
> >
> > == TILES-DEFS.XML ===
> > 
> >  >"-//Apache Software Foundation//DTD Tiles Configuration//EN"
> >"http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>
> >
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> >
> > 
> >
> >
> >
> > == STRUTS-CONFIG.XML ===
> > 
> >  > Struts Configuration 1.1//EN"
> >
> > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd ">
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> >
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> >   
> >
> >  
> >
> >  > processorClass="org.apache.struts.tiles.TilesRequestProcessor"
> > bufferSize="4096" debug="0"/>
> >
> > 
> >  > parameter="com.aegon.learntiles.resources.ApplicationResources"/>
> >
> > 
> > > value="/WEB-INF/tiles-defs.xml" />
> >   
> >> />
> >> value="true" />
> >
> > 
> >
> > 
> >
> >
> >
> > *** Starting the server ***
> >  Start Display Current Environment 
> > WebSphere Platform 5.0 [BASE 5.0.2 ptf2M0325.01]  running with
process
> > name localhost\localhost\server1 and process id 2348
> > Host Operating System is Windows XP, version 5.1
> > Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT
> > enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
> > was.install.root = C:\WSAD51\runtimes\base_v5
> > user.install.root = C:\WSAD51\runtimes\base_v5
> > Java Home = C:\WSAD51\runtimes\base_v5\java\jre
> > ws.ext.dirs =
> >
C:\WSAD51\runtimes\base_v5/java/lib;C:\WSAD51\runtimes\base_v5/classes;C
> >
:\WSAD51\runtimes\base_v5/classes;C:\WSAD51\runtimes\base_v5/lib;C:\WSAD
> >
51\runtimes\base_v5/lib/ext;C:\WSAD51\runtimes\base_v5/web/help;C:\WSAD5
> >
> >
1\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runti
> >
me;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.0/run
> > time/worf.jar
> > Classpath =
> >
C:\WSAD51\runtimes\base_v5/properties;C:\WSAD51\runtimes\base_v5/propert
> >
> >
ies;C:\WSAD51\runtimes\base_v5/lib/bootstrap.jar;C:\WSAD51\runtimes\base
> >
_v5/lib/j2ee.jar;C:\WSAD51\runtimes\base_v5/lib/lmproxy.jar;C:/WSAD51/ws
> >
tools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.0/runtim
> >
> >
e/wteServers.jar;C:/WSAD51/wstools/eclipse/plu

Error finding tiles-defs.xml

2006-03-09 Thread Hilton, Steve
If you look at the last 3 lines below (at the very bottom of this
e-mail)...
It says it can't find file '/WEB-INF/tiles-defs.xml'.  I've listed my
tiles-def and struts-config files in here as well.  Both of those files
reside under /WEB-INF.  I have set this up similar to every example I
have been able to find, and always the same result.  Any reference from
the struts-config file to a tiles definition also produces a warning -
"Target page.default cannot be resolved in the context of the following
modules: /".  Any ideas?  I cannot see what I have set up wrong here?
Thanks.


== TILES-DEFS.XML ===

http://jakarta.apache.org/struts/dtds/tiles-config.dtd";>



  
  
  
  
  
   




== STRUTS-CONFIG.XML ===

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>





















  

 







   
   
   
   
   






*** Starting the server ***
 Start Display Current Environment 
WebSphere Platform 5.0 [BASE 5.0.2 ptf2M0325.01]  running with process
name localhost\localhost\server1 and process id 2348
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT
enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\WSAD51\runtimes\base_v5
user.install.root = C:\WSAD51\runtimes\base_v5
Java Home = C:\WSAD51\runtimes\base_v5\java\jre
ws.ext.dirs =
C:\WSAD51\runtimes\base_v5/java/lib;C:\WSAD51\runtimes\base_v5/classes;C
:\WSAD51\runtimes\base_v5/classes;C:\WSAD51\runtimes\base_v5/lib;C:\WSAD
51\runtimes\base_v5/lib/ext;C:\WSAD51\runtimes\base_v5/web/help;C:\WSAD5
1\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runti
me;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.0/run
time/worf.jar
Classpath =
C:\WSAD51\runtimes\base_v5/properties;C:\WSAD51\runtimes\base_v5/propert
ies;C:\WSAD51\runtimes\base_v5/lib/bootstrap.jar;C:\WSAD51\runtimes\base
_v5/lib/j2ee.jar;C:\WSAD51\runtimes\base_v5/lib/lmproxy.jar;C:/WSAD51/ws
tools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.0/runtim
e/wteServers.jar;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.websph
ere.tools.common_5.1.0/runtime/wasToolsCommon.jar
Java Library path =
C:\WSAD51\runtimes\base_v5/bin;C:\WSAD51\runtimes\base_v5/java/bin;C:\WS
AD51\runtimes\base_v5/java/jre/bin;C:\wsad51\eclipse\jre\bin;.;C:\j2sdk1
.4.2_03\bin;C:\j2sdk1.4.2_03\bin;C:\WSAD51\runtimes\base_v5\java;C:\PVSW
\BIN;C:\PVSW\Bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe
m;C:\Program Files\cvsnt;p:\lnrmmisc\lus\dll;C:\Program
Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere
MQ\tools\c\samples\bin;C:\SNA\system;C:\Program
Files\Oracle\ora81\bin\;C:\Program Files\oracle\bin;C:\Program
Files\oracle\jre\1.1.7\bin;C:\Program Files\Microsoft SQL
Server\80\Tools\BINN;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT\;C:\Program Files\Microsoft Visual
Studio\Common\Tools\;C:\Program Files\Microsoft Visual
Studio\VC98\Bin\;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin
* End Display Current Environment *
[3/8/06 10:51:45:657 CST] 4c8ff6a5 ManagerAdmin  I TRAS0017I: The
startup trace state is *=all=disabled.
[3/8/06 10:51:46:157 CST] 4c8ff6a5 AdminInitiali A ADMN0015I:
AdminService initialized
[3/8/06 10:51:47:142 CST] 4c8ff6a5 Configuration A SECJ0215I:
Successfully set JAAS login provider configuration class to
com.ibm.ws.security.auth.login.Configuration.
[3/8/06 10:51:47:189 CST] 4c8ff6a5 SecurityDMI SECJ0231I: The
Security component's FFDC Diagnostic Module
com.ibm.ws.security.core.SecurityDM registered successfully: true.
[3/8/06 10:51:47:298 CST] 4c8ff6a5 SecurityCompo I SECJ0309I: Java 2
Security is disabled.
[3/8/06 10:51:47:298 CST] 4c8ff6a5 SecurityCompo I SECJ0212I: WCCM JAAS
configuration information successfully pushed to login provider class.
[3/8/06 10:51:47:314 CST] 4c8ff6a5 SecurityCompo I SECJ0240I: Security
service initialization completed successfully
[3/8/06 10:51:47:314 CST] 4c8ff6a5 JMSRegistrati A MSGS0602I: WebSphere
Embedded Messaging Client only has been installed
[3/8/06 10:51:50:282 CST] 4c8ff6a5 CacheServiceI I DYNA0048I: WebSphere
Dynamic Cache initialized successfully.
[3/8/06 10:51:52:142 CST] 4c8ff6a5 JMXSoapAdapte A ADMC0013I: SOAP
connector available at port 8880
[3/8/06 10:51:52:157 CST] 4c8ff6a5 SecurityCompo I SECJ0243I: Security
service started successfully
[3/8/06 10:51:52:157 CST] 4c8ff6a5 SecurityCompo I SECJ0210I: Security
enabled false
[3/8/06 10:51:53:126 CST] 4c8ff6a5 ApplicationMg A WSVR0200I: Starting
application: IBMUTC
[3/8/06 10:51:53:673 CST] 4c8ff6a5 WebContainer  A SRVE0161I: IBM
WebSphere Application Server - Web Container.  Copyright IBM Corp.

RE: Help Needed: Struts-Tiles Configuration and/or Definition Error

2006-03-08 Thread Hilton, Steve
I think maybe we are getting warm here.  Look at the last 3 lines below
(at the very bottom of this e-mail)...
It says it can't find file '/WEB-INF/tiles-defs.xml'

I don't understand because the struts-config file has (by the way, same
error with or without the pathname property being set below)- 


 
  
  


*** Starting the server ***
 Start Display Current Environment 
WebSphere Platform 5.0 [BASE 5.0.2 ptf2M0325.01]  running with process
name localhost\localhost\server1 and process id 2348
Host Operating System is Windows XP, version 5.1
Java version = J2RE 1.3.1 IBM Windows 32 build cn131-20030711a (JIT
enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
was.install.root = C:\WSAD51\runtimes\base_v5
user.install.root = C:\WSAD51\runtimes\base_v5
Java Home = C:\WSAD51\runtimes\base_v5\java\jre
ws.ext.dirs =
C:\WSAD51\runtimes\base_v5/java/lib;C:\WSAD51\runtimes\base_v5/classes;C
:\WSAD51\runtimes\base_v5/classes;C:\WSAD51\runtimes\base_v5/lib;C:\WSAD
51\runtimes\base_v5/lib/ext;C:\WSAD51\runtimes\base_v5/web/help;C:\WSAD5
1\runtimes\base_v5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runti
me;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.0/run
time/worf.jar
Classpath =
C:\WSAD51\runtimes\base_v5/properties;C:\WSAD51\runtimes\base_v5/propert
ies;C:\WSAD51\runtimes\base_v5/lib/bootstrap.jar;C:\WSAD51\runtimes\base
_v5/lib/j2ee.jar;C:\WSAD51\runtimes\base_v5/lib/lmproxy.jar;C:/WSAD51/ws
tools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.0/runtim
e/wteServers.jar;C:/WSAD51/wstools/eclipse/plugins/com.ibm.etools.websph
ere.tools.common_5.1.0/runtime/wasToolsCommon.jar
Java Library path =
C:\WSAD51\runtimes\base_v5/bin;C:\WSAD51\runtimes\base_v5/java/bin;C:\WS
AD51\runtimes\base_v5/java/jre/bin;C:\wsad51\eclipse\jre\bin;.;C:\j2sdk1
.4.2_03\bin;C:\j2sdk1.4.2_03\bin;C:\WSAD51\runtimes\base_v5\java;C:\PVSW
\BIN;C:\PVSW\Bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbe
m;C:\Program Files\cvsnt;p:\lnrmmisc\lus\dll;C:\Program
Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere
MQ\tools\c\samples\bin;C:\SNA\system;C:\Program
Files\Oracle\ora81\bin\;C:\Program Files\oracle\bin;C:\Program
Files\oracle\jre\1.1.7\bin;C:\Program Files\Microsoft SQL
Server\80\Tools\BINN;C:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT\;C:\Program Files\Microsoft Visual
Studio\Common\Tools\;C:\Program Files\Microsoft Visual
Studio\VC98\Bin\;C:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin
* End Display Current Environment *
[3/8/06 10:51:45:657 CST] 4c8ff6a5 ManagerAdmin  I TRAS0017I: The
startup trace state is *=all=disabled.
[3/8/06 10:51:46:157 CST] 4c8ff6a5 AdminInitiali A ADMN0015I:
AdminService initialized
[3/8/06 10:51:47:142 CST] 4c8ff6a5 Configuration A SECJ0215I:
Successfully set JAAS login provider configuration class to
com.ibm.ws.security.auth.login.Configuration.
[3/8/06 10:51:47:189 CST] 4c8ff6a5 SecurityDMI SECJ0231I: The
Security component's FFDC Diagnostic Module
com.ibm.ws.security.core.SecurityDM registered successfully: true.
[3/8/06 10:51:47:298 CST] 4c8ff6a5 SecurityCompo I SECJ0309I: Java 2
Security is disabled.
[3/8/06 10:51:47:298 CST] 4c8ff6a5 SecurityCompo I SECJ0212I: WCCM JAAS
configuration information successfully pushed to login provider class.
[3/8/06 10:51:47:314 CST] 4c8ff6a5 SecurityCompo I SECJ0240I: Security
service initialization completed successfully
[3/8/06 10:51:47:314 CST] 4c8ff6a5 JMSRegistrati A MSGS0602I: WebSphere
Embedded Messaging Client only has been installed
[3/8/06 10:51:50:282 CST] 4c8ff6a5 CacheServiceI I DYNA0048I: WebSphere
Dynamic Cache initialized successfully.
[3/8/06 10:51:52:142 CST] 4c8ff6a5 JMXSoapAdapte A ADMC0013I: SOAP
connector available at port 8880
[3/8/06 10:51:52:157 CST] 4c8ff6a5 SecurityCompo I SECJ0243I: Security
service started successfully
[3/8/06 10:51:52:157 CST] 4c8ff6a5 SecurityCompo I SECJ0210I: Security
enabled false
[3/8/06 10:51:53:126 CST] 4c8ff6a5 ApplicationMg A WSVR0200I: Starting
application: IBMUTC
[3/8/06 10:51:53:673 CST] 4c8ff6a5 WebContainer  A SRVE0161I: IBM
WebSphere Application Server - Web Container.  Copyright IBM Corp.
1998-2002
[3/8/06 10:51:53:704 CST] 4c8ff6a5 WebContainer  A SRVE0162I: Servlet
Specification Level: 2.3
[3/8/06 10:51:53:704 CST] 4c8ff6a5 WebContainer  A SRVE0163I: Supported
JSP Specification Level: 1.2
[3/8/06 10:51:53:767 CST] 4c8ff6a5 WebContainer  A SRVE0169I: Loading
Web Module: IBM Universal Test Client.
[3/8/06 10:51:54:048 CST] 4c8ff6a5 WebGroup  I SRVE0180I: [IBM
Universal Test Client] [/UTC] [Servlet.LOG]: JSP 1.2 Processor: init
[3/8/06 10:51:54:157 CST] 4c8ff6a5 WebGroup  I SRVE0180I: [IBM
Universal Test Client] [/UTC] [Servlet.LOG]: SimpleFileServlet: init
[3/8/06 10:51:54:236 CST] 4c8ff6a5 ApplicationMg A WSVR0221I:
Application started: IBMUTC
[3/8/06 10:51:54:251 CST] 4c8ff6a5 ApplicationMg A WSVR0200I: Starting
applica

RE: Help Needed: Struts-Tiles Configuration and/or Definition Error

2006-03-08 Thread Hilton, Steve
Sorry, I should have shown that.  I just stripped down the struts-config
file that I pasted in the e-mail.  I do have the following code in the
struts-config file...





-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 10:33 AM
To: Struts Users Mailing List
Subject: Re: Help Needed: Struts-Tiles Configuration and/or Definition
Error



On Mar 8, 2006, at 10:06 AM, Hilton, Steve wrote:

> First of all, I am using Websphere 5.1.0.  The problem is this
> Any time I try to reference a definition name in the tiles-defs.xml
> file, any reference to that definition in the struts-config file  
> always
> produces a warning which states "Target page.default cannot be  
> resolved
> in the context of the following modules: /"



> To make this even more frustrating, I can create a welcome page  
> like the
> index.jsp listed below and that works fine.

Looks like you need to specify the TilesRequestProcessor in your  
struts-config.xml.

Greg


-
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]



Help Needed: Struts-Tiles Configuration and/or Definition Error

2006-03-08 Thread Hilton, Steve
Hello every.  I am new to this e-mail forum, so hopefully I am posting
this question correctly.  I have been pulling my hair out over this
problem.  I have looked in many books and at many examples on websites
and cannot see where I am doing anything wrong.  I have listed the tiles
and struts configuration files for a simple example below.  I can pull
examples, verbatim, off off websites and they get the exact same error
as sample programs I set up myself.

First of all, I am using Websphere 5.1.0.  The problem is this
Any time I try to reference a definition name in the tiles-defs.xml
file, any reference to that definition in the struts-config file always
produces a warning which states "Target page.default cannot be resolved
in the context of the following modules: /"

I have tried everything and cannot figure out why this will not work.
This really doesn't seem like it should be that hard.  It just seems
like the  struts-config file can never find anything in the tiles-defs
file.

To make this even more frustrating, I can create a welcome page like the
index.jsp listed below and that works fine.
index.jsp
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


Any help would be greatly appreciated.  Thanks!  -- Steve


Here's the files for the sample application

tiles-defs.xml


  
  
  
  
   


struts-config.xml




















 
  







 
  
  





-
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: Acessing TagHandlerPool for TagSupport

2006-02-20 Thread Steve Vanspall

ok thanks,

that will solve my problem

Steve

Craig McClanahan wrote:


On 2/20/06, Steve Vanspall <[EMAIL PROTECTED]> wrote:
 


Thanks will have a look,

yeah I figured reevaluation isn't the go.

as I said I know the action I want is already going to be configure din
the struts-config file, so basically I need to look it up, then create a
form for it.

I can fudge it by codig the HTML roughly as teh struts tage would do it,
if only I could look up struts-config from a TagSupport extension.
   




I should have been a bit more clear.  You *do* have access to the
configuration information that Struts read from the
struts-config.xmlfiles.  They are stored (if you only have one module)
under a servlet
context attribute named by symbolic constant Globals.MODULE_KEY (in a tag
handler you can call PageContext.getAttribute() to acquire it).

It's the "create a JSP page dynamically and get it compiled" part of the
problem that isn't going to work well.

Craig

 






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



Re: Acessing TagHandlerPool for TagSupport

2006-02-20 Thread Steve Vanspall

Thanks will have a look,

yeah I figured reevaluation isn't the go.

as I said I know the action I want is already going to be configure din 
the struts-config file, so basically I need to look it up, then create a 
form for it.


I can fudge it by codig the HTML roughly as teh struts tage would do it, 
if only I could look up struts-config from a TagSupport extension.




Craig McClanahan wrote:


On 2/19/06, Steve Vanspall <[EMAIL PROTECTED]> wrote:
 


I know this isn't specifically struts realted, but am having trouble
finding a jasper mailing list.

Basically was wondering if I can have a custom tagsupport tag's
doStartTag() method acess the taghandlerpool.
   




There is no API for this.  Indeed, in JSP 2.0 if you use simple tags there
is no pooling of tag instances either.

Basically i want ot be able to create a form, where neccesary, with a
 


start tag.

but, like struts does, only know the action and parameters adn be able
to look up what form I should be using.

Also it would help if I knew how many form were laready in use, and if a
form tag was open, and hence can throw an error.

So basically, I could create a html:form within some code that this tag
creates.

Alternatively, although not the most desirable option, is the a way to
output




What you need to build forms like this dynamically is a component model like
the one provided by JavaServer Faces or Tapestry.  The Shale framework[1]
(also part of the Struts community), built on top of JSF, has an example of
building views dynamically that is somewhat different than your use case (it
lets you do SQL Browser queries, and dynamically decides what columns to
show in the output table based on which database columns were returned in
response to executing the query), but illustrates the principle.  It would
be straightforward, for example, to dynamically generate a set of field
labels and input fields based on the columns in a database, or the
properties of a JavaBean.

Trying to dynamically construct JSP code and then "re-evaluate it" is not
the right approach to this kind of problem.

Thanks
 


Steve
   




Craig

[1] http://struts.apache.org/struts-shale/


-
 


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]



Acessing TagHandlerPool for TagSupport

2006-02-19 Thread Steve Vanspall
I know this isn't specifically struts realted, but am having trouble 
finding a jasper mailing list.


Basically was wondering if I can have a custom tagsupport tag's 
doStartTag() method acess the taghandlerpool.


Basically i want ot be able to create a form, where neccesary, with a 
start tag.


but, like struts does, only know the action and parameters adn be able 
to look up what form I should be using.


Also it would help if I knew how many form were laready in use, and if a 
form tag was open, and hence can throw an error.


So basically, I could create a html:form within some code that this tag 
creates.


Alternatively, although not the most desirable option, is the a way to 
output evaluated it again.


Theres' probably a simple, duh!, solution coming my way, just can't seem 
to find the answer.


Thanks

Steve



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



Re: Tomcat issues

2006-01-14 Thread Steve Ratay
I've noticed the same behavior in Tomcat as well.  Try
this:
- Place your .war file in webapps directory
- Start Tomcat and wait for the .war to be completely
expanded
- Restart Tomcat and then try to access the
application

I'm not positive about the specifics, but I do know
that Tomcat loads a default application context as it
expands and deploys a war when a context.xml file is
not provided in the war file.  However, when you
restart Tomcat and the application is already expanded
(i.e. the war doesn't have to be deployed) it loads
the application context as you would expect.

-Steve

--- Bogdan Paduraru <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm trying to run a Struts application built with
> Ant. Ant makes me the
> war file, I copy it under application directory in
> webapps of Tomcat
> server. When I try to run something from my browser
> it tells me the
> resource I call is unavailable. When I deploy the
> application unpacked
> from the war file , it runs nicely, no problems. Can
> you tell me what
> should I do on Tomcat configuration to run war
> correctly?
> Another thing : I want to use an
> application.properties file for my
> Struts app in Tomcat, for example I have 
> 
> and bla.foo I define in such file. How do I tell
> Tomcat to use it?
> 
> Thanx,
> Bogdan
> 
> 
> 
>
-
> 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 

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



Re: [OT] If you hate positioning with css raise your hand... actually some help:)

2006-01-03 Thread Steve Raeburn

Here's *one* way to achieve what you're after:


   [left]
   [right]

link1
link2

Courtesy of Eric Meyer 
http://www.complexspiral.com/publications/containing-floats/


All that's different to your first example is the addition of an 
additional 'float' on the outer div. This causes it to expand to contain 
the inner (floated) divs. Depending on what else you want to add to this 
layout  this might be all you need.


Note that if the outer div is itself contained by another block element, 
it may stick out of its container. Read the above article for the 
explanation and other options. Also check out http://www.meyerweb.com/ - 
Eric is your CSS best friend :-).


Steve

Rick Reumann wrote:

I always end up with nothing but trouble trying to position divs with 
css that is a BREEZE to do with tables. css positioning is supposed to 
be the layout savior yet my experience with it always ends up with 
headaches - try something, see if it works, try something else, set if 
it works. Oh and then make sure it's ok in all browsers.. and make 
sure it works with html strict, bla bla. Anyone else have these 
frustrations as well or is it just me?


Anyway, since I started down this stupid path, maybe someone can help. 
yea, I know wrong list, but I'm being lazy..


What I just want as a test is a div with a border around it and then 
two divs inside that div with text = One set of text aligned in a div 
to the left, the other in a div text-aligned to the right. Then below 
the main div some text:


---
| [left]  [right] |
---
link1
link2


My first shot was:



[left]
[right]


link1
link2


The above ends up with the next set of links aligning up next to the 
right div and only a top border on the enclosing div.


Now this one sort of works. I still get only a top border on the 
enclosing div. And I don't see why I need to use  tags to get 
this to work.




[left]
[right]




link1
link2


Any ideas how to get what I want?

I just really stink at this css stuff and the web sites all seem to 
use different techniques and none of them intuitive. This site has 
some nice samples http://tutorials.alsacreations.com/modeles/ but 
often the way it's implemented seems crazy to me (ie having to add 
huge margins and have other divs fill into those margins, etc).


If divs are the answer why are they so annoying to position?

-
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]



Strutsbox

2005-10-10 Thread Steve Beaver
Does any one have any experience with Strutsbox and eclipse 3.1?



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



BEA Weblogic vs. Eclipse

2005-09-29 Thread Steve Beaver
Does anyone have a preference between BEA Weblogic Workshop and
Eclipse 3.1 using TomCat

Thanks



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



RE: Struts Development Tool

2005-09-14 Thread Steve Beaver
Rich,

That is the main reason I ZIP down my complete eclipse Directory just prior
to Installing anything
NEW into my eclipse enviroment.  Just in case I don't like the plug-in or
the plug-in has UPDATE
problems..

Steve


-Original Message-
From: R. Markham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 14, 2005 10:59 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: AW: Struts Development Tool

Hallo

I just tried Exadel. I don't like because I don't see what I am doing. I
tried the tutorial. It has a graphic display to configure the
struts-config.xml. Editing the struts-config.xml is only a minimum effort in
a web application. The main part is creating and developing the JSP File and
the Action Files.

I want to to uninstall Exadel out of eclipse environment. Has anybody an
idea how I can do this.

Regards

Richard Markham


-Ursprüngliche Nachricht-
Von: david van [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 13. September 2005 20:39
An: Struts Users Mailing List
Betreff: Re: Struts Development Tool

try this http://www.exadel.com,

2005/9/14, Steve Beaver <[EMAIL PROTECTED]>:
>
> Raj.
>
> You can also download WWW.STRUTSBOX.DE <http://WWW.STRUTSBOX.DE> for
> eclipse 3.1
>
> Regards
>
> Steve
> -Original Message-
> From: R Rajendran [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 13, 2005 12:09 AM
> To: Struts Users Mailing List
> Subject: RE: Struts Development Tool
>
> Thank you.
>
> 
>
> From: Murray Collingwood [mailto:[EMAIL PROTECTED]
> Sent: Mon 9/12/2005 10:49 PM
> To: Struts Users Mailing List
> Subject: Re: Struts Development Tool
>
>
>
> Hi Raj
>
> The main one seems to be Eclipse.
> I'm using NetBeans which is a little behind what Eclipse is providing
> through plugins.
> Following somewhere is JBuilder.
>
> I know Eclipse and NetBeans are both free.
> Eclipse supports a plugin system and there are a number of plugins you can
> purchase
> to provide additional functionality (eg Struts support).
> NetBeans is implementing better Struts support in the next (imminent)
> release.
>
> I haven't heard much about JBuilder, I bought a copy and used it many
> years
> ago when
> I first started on Java. It wasn't that great back then but may well have
> improved.
>
> If you want to really fit in you should probably use Eclipse - it seems to
> be the most
> popular on this Struts list.
>
> Kind regards
> mc
>
>
> On 12 Sep 2005 at 22:17, R Rajendran wrote:
>
> > Hi everyone,
> >
> > Could anyone of you let me know the available Struts Development tools
> (IDE) for
> Windows environment.
> >
> > Thanks
> > Raj
> >
> >
>
>
>
> FOCUS Computing
> Mob: 0415 24 26 24
> [EMAIL PROTECTED]
> http://www.focus-computing.com.au
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.23/99 - Release Date: 12/09/2005
>
>
> -
> 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]
>
>


--
fancy ^_^


-
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 Development Tool

2005-09-13 Thread Steve Beaver
Raj.

You can also download WWW.STRUTSBOX.DE for eclipse 3.1

Regards

Steve
-Original Message-
From: R Rajendran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 12:09 AM
To: Struts Users Mailing List
Subject: RE: Struts Development Tool

Thank you.



From: Murray Collingwood [mailto:[EMAIL PROTECTED]
Sent: Mon 9/12/2005 10:49 PM
To: Struts Users Mailing List
Subject: Re: Struts Development Tool



Hi Raj

The main one seems to be Eclipse.
I'm using NetBeans which is a little behind what Eclipse is providing
through plugins.
Following somewhere is JBuilder.

I know Eclipse and NetBeans are both free.
Eclipse supports a plugin system and there are a number of plugins you can
purchase
to provide additional functionality (eg Struts support).
NetBeans is implementing better Struts support in the next (imminent)
release.

I haven't heard much about JBuilder, I bought a copy and used it many years
ago when
I first started on Java.  It wasn't that great back then but may well have
improved.

If you want to really fit in you should probably use Eclipse - it seems to
be the most
popular on this Struts list.

Kind regards
mc


On 12 Sep 2005 at 22:17, R Rajendran wrote:

> Hi everyone,
>
> Could anyone of you let me know the available Struts Development tools
(IDE) for
Windows environment.
>
> Thanks
> Raj
>
>



FOCUS Computing
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.23/99 - Release Date: 12/09/2005


-
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: Who decides?

2005-09-12 Thread Steve Beaver
Let me give everyone a major hint.  What most "programmers" are doing today
is NOT
even close to Innovative.  The guys that did the real work, started in this
IT business back
in the 1960' and 1970's, when his business WAS "Rocket Science"

Steve


-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Monday, September 12, 2005 12:07 PM
To: Struts Users Mailing List
Subject: Re: Who decides?

netsql wrote the following on 9/12/2005 1:54 PM:
> I disagree. SQL SELECT command writen by somone w/ 6 years, or 9 years
> of 12 years expereince, etc. is a huge difference IMO.

Well SQL/DB stuff is definitely an exception and that's another pet-peve
of mine:) The DBA guys always seem like they are the "big dogs."  I'm
not diminishing their skills and what they have to learn, but it's
mostly all geared around the same concept - the database and SQL.
Compare that to someone developing a J2EE application and all the varied
technologies that are involved other than just SQL.

--
Rick

-
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: Win XP, Eclipse, and Struts

2005-09-02 Thread Steve Beaver
Thank you



Steve


"Live as if you were to die tomorrow, Learn as if you were to live forever"



-Original Message-
From: R. Markham [mailto:[EMAIL PROTECTED]
Sent: Friday, September 02, 2005 3:15 PM
To: 'Struts Users Mailing List'
Subject: AW: Win XP, Eclipse, and Struts

Hi Steve,

In fact you need only

Tomcat
Eclipse
JDK

As I started with Struts I deliberately didn't use any design Tool, maybe
you need more time at the beginning but you know at least what you are doing
later when your project get more complicated you get the payoff.

Regards

Richard


-Ursprüngliche Nachricht-
Von: Steve1226 [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 2. September 2005 22:46
An: user@struts.apache.org
Betreff: Win XP, Eclipse, and Struts

I have download www.strutsbox.de into
eclipse 3.1.

Is there anything else I need to download to
begin developing Strtuts Applications.

Thanjs



---
Broadband interface (RIA) + mail box saftey = http://Struts_User_List.roomity.com";>Roomity.com
*Your* clubs, no sign up to read, ad supported; try broadband internet.
~~1125693930947~~

---


-
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: JSF is the beginning of the end of Struts !!!

2005-07-28 Thread Steve Raeburn

Michael / Jack / Thingamabob,

Struts is licensed in such a way that if you are unhappy with the way it 
is being managed, you are quite free to fork the code and continue to 
develop it in whatever way *you* see fit.


I suspect you'd make a lot of people very happy if you went away and did 
that.


Steve

Dakota Jack wrote:


Struts could live by improving in ways unlikely with the present
management.  The people in charge of Struts these days are really
interested in something else.  Unless the baton passes to those
actively building something, Struts likely will either die from be
non-competitive with like products or from being turned into something
it is not, like JSF, Shale, Clay, Dirt.

On 7/26/05, Greg Reddin <[EMAIL PROTECTED]> wrote:
 


Interesting this discussion would come up now.  I've been in and out of
Struts for about 5 years.  I'm now coming back in and taking interest in
JSF/Shale, etc.  A few of points to think about:

1.  Struts will someday die.  If it doesn't, then we've seen the end of
technology advancement.  If those of us who love Struts and what it
provides want to continue to have influence going forward, we have to be
 ready to embrace the next thing that's better than Struts and add
value there.  Staying with something because of familiarity is typically
the road to becoming a dinosaur in technology.

2.  I only started studying JSF seriously about 2 weeks ago. From what
I've seen it takes the best things Struts offers and brings them into a
somewhat cleaner package.  Those things are:

*  Nice HTML tag library.
*  Auto-populating of form beans.
*  Simple controller interface.

It also expands on these things by making the view easier to develop,
less restriction on how form beans and controllers are developed, and
some other really interesting services that I've only begun to play
with.  To sum it up, using JSF out of the box I can do most of what I
can with Struts, only quicker and with less code.  I see JSF as the next
step of Struts.  But it's still not complete.  I'm only beginning to see
what Shale adds to JSF and am following Shale with great interest.

3.  PHP.  I've done some PHP over the last couple years.  I'm by no
means an expert, but I do know my way around somewhat.  The whole time
I've caught myself thinking if I was in Java I'd have a better way to do
just about everything.  But most of the "better way" is because of the
J2EE APIs, Struts, and Tiles.  The language is a bit more cumbersome
than Java and it's much more difficult to modularize.  I find PHP is
easier (to me) if I don't try to make things elegant, but just "spew
code" to some extent.  I finally found a CMS to use as a Struts-like
framework, but I still find Java/Struts and now JSF to be better,
cleaner, and more modular.  I am now trying to figure out a way to do my
future "on-the-side" consulting in Java instead of PHP.

I think another of PHPs success factors has to do with its acceptance
from the open source community.  Somehow Java has had a somewhat tainted
reputation due to the lack of a truly open complete implementation --
and probably some are just bitter that Sun hasn't opened the whole thing
up.  I don't personally have anything to contribute to that debate, but
I suspect it's a factor in why PHP has been so widely embraced on the
web compared to Java.

So all in all, it doesn't much matter to me if JSF supercedes Struts.
If it's better, then it should.  If we get behind Shale it think we can
have our cake and eat it too.

BTW, for JSF info, try MyFaces.  Their Getting Started section points to
some pretty good tutorials.  In short testing I've found the myfaces
implementation to be pretty stable.  I'm actually surprised Craig is not
listed as a contributor to that project.

That's my 50 cents.
Greg

Daniel Perry wrote:
   


Sorry for the OT postings.

My point was that you cant compare usage of PHP with Struts.

The number of Struts sites (or even java sites) will never overtake the
number of PHP sites for the reasons i pointed out (although... zend are
doing their best to kill off php by trying to move it into the enterprise
arena and tying it with java).  But for those same reasons, comparing the
two is useless.

As for JSF... It seems like a nice idea, but i havnt fully got my head round
it.  I cant see it killing off struts in the short term (just look at daily
rate of postings on this list!!!) I do like the idea of replacing struts
html tags with JSF.  I certainly think JSTL/EL are nicer than the logic
tags.

I now have a dilema... I'm just about to start on another project.  What
technologies do i use?

I guess i'll probably stick with struts.  Though i may dabble with JSF a
bit.

Can anyone recommend any good resources? Sure a google search provides tons
of information... but which is any good?

Daniel.

Re: TextArea

2005-07-20 Thread Steve Bosman
On 7/20/05, Larry Meadors <[EMAIL PROTECTED]> wrote:
> Yep, not an option in HTML, gotta javascript it, or catch it on the server.
> 
> On 7/20/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
> > Sadly, JavaScript I am afraid.
> > From: Vijay K Anand [mailto:[EMAIL PROTECTED]
> > How to control char maxlength in  ?

I'd say both, javascript for a nice user experience and server side
for safety. One because as a matter of good practice you should never
trust anything to have been properly validated on the browser and two
because testing the number of characters in textareas can be error
prone. I forget which one but either Mozilla or IE has given me length
counts in javascript which differ from the String length by the time
the value is one the server - basically a CR versus CR/LF issue.

Steve
-- 
"A witty saying proves nothing."  -- Voltaire

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



Re: Generic template

2005-07-14 Thread Steve Bosman
On 7/13/05, Vijay K Anand <[EMAIL PROTECTED]> wrote:
> Hi All
> 
> Any blueprint how can we write genric code for manipulating data in a
> table ,
> 

Can you expand your question please? If you are interested in
displaying tabular data in your JSPs have a look at the DisplayTag
http://displaytag.sourceforge.net/ - with a bit of extension this can
also be used for outputting form inputs. Where I work we then have a
ActionForm (representing the table) which contains a list of
ActionForms (representing each row).

Steve

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



Re: Struts-config.xml Digester endElement problem

2005-07-08 Thread Steve Bosman
On 7/7/05, Sher, Allen - BLS CTR <[EMAIL PROTECTED]> wrote:
> Got this stack trace while deploying my struts 1.2.7 app into WebLogic
> 8.1.4.
> It seems to relate to Digester complaining something about
> struts-config.xml.
> Adding Xerces 2.5 into the WAR file does not help.
> Can someone point a direction of where to look?
> Thanks.
> 
> 
> Jul 7, 2005 9:11:26 AM org.apache.commons.digester.Digester endElement
> SEVERE: End event threw exception
> java.lang.IllegalArgumentException: argument type mismatch
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
> at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208)
> at org.apache.commons.digester.Rule.end(Rule.java:228)
> at

This sounds familiar, I know you've already posted your config file
(which BTW my setup seemed to think was valid) but what do you have on
your classpath? I seem to remember running into dependency issues
between xalan, xerces and commons-digester, i.e. I was using the wrong
version of one of the libraries.

Steve
-- 
"A witty saying proves nothing."  -- Voltaire

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



Re: Struts-config.xml Digester endElement problem

2005-07-08 Thread Steve Bosman
On 7/7/05, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> Hello,
> Haven't used struts 1.2, just 1.1 & 1.3(in dev), but as far as I
> know
> You should have a 'type' attribute associated with each 
> element...
> 
> And I bet that hasn't been changed between different versions of
> struts...

For actions using the forward attribute you don't need the type
attribute (I use 1.1 and the struts config files I edit have lots of
these), personally for readability I'd use the form



rather than




but the latter won't cause any problems

Steve
-- 
"A witty saying proves nothing."  -- Voltaire

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



Re: How can we send parameter's value to javascript function ??

2005-05-24 Thread Steve Bosman
On 5/21/05, Saul Qunming Yuan <[EMAIL PROTECTED]> wrote:
> Try build the whole javascript function part in scriplet as follows:
> 
> onclick="<%='javascript:whichAuctionType(' + rId + ');'%>">
> 
> in your 

I think you mean
onclick='<%="javascript:whichAuctionType(" + rId + ");"%>'>
in my experience containers can get very fussy about the use of
scriptlets inside tags and in particular about the types of quotes.

Steve

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



Re: [HELP] How to restrict access to certain mapping action ???

2005-05-19 Thread Steve Bosman
On 5/19/05, Catalin Croitoru <[EMAIL PROTECTED]> wrote:
> Steve,
>
> the solution you provide doesn't solve the problem with typing the
> link in the adress bar. user can copy from the html source of the page
> the hidden atribute org.apache.struts.taglib.html.TOKEN and provide to
> the adres with the value. somethig like this:
> http://www.domain./user/action.do?org.apache.struts.taglib.html.TOKEN=b3011824c268c91cceb23606515b7887
>
> from the point of view of the problem:
> >the second is I mean that, I don't want User do my action by typing my
> >action path directly on address bar
>

Up to a point I agree, but there is a big difference between just
opening your browser and typing http://www.domain./user/action.do and
navigating through a web app to a page with a link with a token and
pasting that into the browser's address field. I suspect that if a
user has sufficient privileges to get to a page displaying a link with
a valid token then it probably doesn't matter too much whether they
type it in directly or not, but of course that would need to be
confirmed. Of course there has to be sufficient validation of any
parameters. Possibly the generateToken() method could be used to
create a token just for this one particular link - the token would
then need to be manually stored in the session in the creating action
and removed from the session in the receiving action.

Steve

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



Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-19 Thread Steve Bosman
> the second is I mean that, I don't want User do my action by typing my
> action path directly on address bar, such as
> http://www.myweb/user/useraction.do, but I allow User do my action by
> clicking on certain link on webpage, such as  page="/user/useraction.do">do
> 
> any solution :(
You could try using tokens, the relevant methods are in the Action
class. From memory you need to use saveToken in the action that prior
to your webpage with the link
and isTokenValid in the receiving action to validate you have been
given a valid token and resetToken to make sure it doesn't get used
again.
I know it gets included automatically when you use html:form and
believe you can have it included when using html:link (by setting an
attribute).

Steve

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



Re: Problem with URL encoding/decoding of UTF-8 characters

2005-04-05 Thread Steve Bosman
On Apr 5, 2005 9:38 AM, Steve Bosman <[EMAIL PROTECTED]> wrote:
> The application I am working on has some frameset stuff (which I
> personally hate, but some things you are forced to live with),
> occasionally frames within the frameset are set with parameters in the
> URL which is output using html:rewrite (normally as the result of
> failed actions). If a parameter has UTF-8 characters, e.g. 5-ÐÐÑ-2005
> this is encoded as this:
> 
> /webimpact/progress/obtainCopyTuFund.do?authorisedDate=5-%D0%B0%D0%BF%D1%80-2005
> 
> By the time the date arrives in my ActionForm the value is now 
> 5-ÃÂÃÂÃ?-2005.
> This application is running on tomcat 5.0.28 and what I would like to
> know is: is this a struts problem, a tomcat problem or (possibly the
> most likely) my problem and if so what should I be doing to fix it?
> 

just realised I forgot to say we are using Struts 1.1

again thanks for any help,
 
Steve Bosman

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



Problem with URL encoding/decoding of UTF-8 characters

2005-04-05 Thread Steve Bosman
The application I am working on has some frameset stuff (which I
personally hate, but some things you are forced to live with),
occasionally frames within the frameset are set with parameters in the
URL which is output using html:rewrite (normally as the result of
failed actions). If a parameter has UTF-8 characters, e.g. 5-ÐÐÑ-2005
this is encoded as this:

/webimpact/progress/obtainCopyTuFund.do?authorisedDate=5-%D0%B0%D0%BF%D1%80-2005

By the time the date arrives in my ActionForm the value is now 
5-ÃÂÃÂÃ?-2005. 
This application is running on tomcat 5.0.28 and what I would like to
know is: is this a struts problem, a tomcat problem or (possibly the
most likely) my problem and if so what should I be doing to fix it?

thanks for any help,

Steve Bosman

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



Wanted: Volunteers for a Project

2004-11-20 Thread Steve Jovanovic
Want to help us build this?

http://skribe.noumenaut.com:8080

We're looking for a couple of talented and hardworking Struts developers to
join our team. Our aim is to build a high-end journaling system and portal. 

If you'd like more info, please see:

http://www.noumenaut.com/join/index.htm

Thanks!

Steve




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



RE: [HOW TO? ImageButtonBeanManager Extension]

2004-09-24 Thread Steve Raeburn
Michael,

Could you expand on your performance tests? What kind of response time
improvements (seconds, milliseconds?) were you seeing?

In my experience, the performance impact of the existing dispatch actions is
not readily visible so I'm not sure how optimizing them would help in a
real-world situation. For example, if my action requires a database call,
then the response time due to the action is a relatively small part of the
overall user visible response time.

Can you support your assertions with some figures and (ideally) the test
code so that others could try it out for themselves?

Steve

> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: September 24, 2004 12:44 PM
> To: Struts Users Mailing List
> Subject: Re: [HOW TO? ImageButtonBeanManager Extension]
>
>
> My tests indicate a five fold performance increase.  My tests were
> hurried and are not reliable.  But, visually they were obvious.  I am
> looking forward to your assistance.  I could use it.
>
> Michael McGrady
>
> P.S.  Carlos, please just call me "Mike".  We all come from the same
> eggshell.
>
> Carlos Cajina - Hotmail wrote:
>
> >I think I got it Mr. McGrady! I went for the DispatchUtil approach and as
> >far as I've tested it with a simple-no-validations-yet-three-step wizard
> >things look promising. I can even "feel" a boost in the page navigation
> >performance using your solution instead of the ones the Struts Framework
> >offers (LookupDispatchAction, for instance) I'll move to my
> "real" project
> >and post any interesting finds in the next days.
> >
> >Regarding the page polishing, I could craft a step-by-step tutorial with
> >sample code (at least for the first two solutions) to add it to
> the page if
> >that seems OK with you, I could also look for typos in the
> current docs to
> >correct them... as a starting point this is...
> >
> >I set eyes on your email address and I took the liberty to visit your web
> >site... Good cat pictures you got there ;^)  I like cats too...
> >
> >Thanks a lot Mr. McGrady. I really appreciate your help.
> >
> >I'll keep in touch.
> >
> >Carlos
> >
> >- Original Message -
> >From: "Michael McGrady" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, September 24, 2004 12:34 PM
> >Subject: Re: [HOW TO? ImageButtonBeanManager Extension]
> >
> >
> >
> >
> >>Thanks, Carlos,
> >>
> >>The difficulty in getting the page up had rather overshadowed any
> >>discussion of what they say.  I have quite a lot yet to add to the
> >>page.  I would indeed appreciate any efforts to assist.  Be my guest.
> >>
> >>Michael McGrady
> >>
> >>Carlos Cajina - Hotmail wrote:
> >>
> >>
> >>
> >>>I'll sure be waiting for them Mr. McGrady :^)  Thanks for your time! By
> >>>
> >>>
> >the
> >
> >
> >>>way, I'll be glad to help out with "polishing" the page, if there's
> >>>
> >>>
> >anything
> >
> >
> >>>I can do please let me know; the solutions proposed are worth
> the effort
> >>>
> >>>
> >of
> >
> >
> >>>a good documentation...
> >>>
> >>>- Original Message -
> >>>From: "Michael McGrady" <[EMAIL PROTECTED]>
> >>>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >>>Sent: Friday, September 24, 2004 12:17 PM
> >>>Subject: Re: [HOW TO? ImageButtonBeanManager Extension]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Answers to your other questions to follow in a bit, Carlos.
> >>>>
> >>>>Carlos Cajina - Hotmail wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Good morning.
> >>>>>
> >>>>>Thanks to Mr. McGrady for his suggestion. I think the
> persistent nature
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>of
> >>>
> >>>
> >>>
> >>>
> >>>>>the need to handle multiple (image) buttons in web applications is
> >>>>>
> >>>>>
> >>>>>
> >>>&g

Working with hashmaps in my Jsp

2004-09-15 Thread Steve Lianoglou
How do I use a dynamicaly generated "key" to pick off something in my hashmap?
The story is that I am iterating over a collection of keys into a hashmap.
In my iteration, and after doing some present/notPresent logic, I am pulling an object 
out of my HashMap, so here is a reduced example of what is happening.
Lets call my HashMap hash
and my Collection of keys, "keys" .. both of these are put into my request scope through my action
so at the end of the action, imagine a 
request.setAttribute("hash", hash);
request.setAttribute("keys", keys);

Ok .. now in my jsp i am iterating over my keys collection, if the key in my 
Collection passes some type of logic, then i want to pull the object associated w/ 
that key in my hashmap out and use it, so a very simple example is this:

<%-- now "hashKey" has the string of the key into my hashmap that I do some 
testing with --%>
<%-- do some logic, if i like what I see, I want to pull the object at location 
"hashKey" out of my HashMap --%>

<%-- do some other with hashObject --%>

That's all I want .. all I want is for the property attribute in my  tag to be recognized as 
a dynamic varialble, and not look up in my "hash" HashTable for a literal key "hashKey" but 
no matter what I'm doing, no way no how can I get it to work.
I feel like I'm trying to reach over my shoulder to scratch my ass here, because I 
*know* there must be a mind-nummingly easy way to do this which I'm missing.
Any help is appreciated. 

Thanks,
-steve

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


ANN: New Struts/OracleADF-based Toy Store Demo

2004-07-12 Thread Steve Muench
Oracle announces the availability of the Struts-based ADF Toy Store Demo
sample application. 

http://otn.oracle.com/products/jdev/collateral/papers/10g/adftoystore.html

It is accompanied by a detailed technical whitepaper that explains
all of the interesting details of the Struts and Oracle ADF
framework features used in its implementation.

http://otn.oracle.com/products/jdev/collateral/papers/10g/adftoystore/readme.html

The ADF Toy Store Demo is an MVC-based web storefront application,
implemented using best-practices J2EE design patterns, that fully
leverages the developer-productivity boost that frameworks and
framework-savvy visual tools can provide. It uses:

 -> Apache Struts for the controller layer
 -> JSP/JSTL for the view layer
 -> Oracle Application Development Framework (ADF) for the model layer

As part of explaining the implementation details, the whitepaper
illustrates the rich set of features provided by the Oracle
JDeveloper 10g IDE for working with the Struts and ADF frameworks
using productive visual, declarative, and code-level tools.

The demo can be deployed to Tomcat, Oracle Application Server,
Oracle OC4J Standalone, or other J2EE-compliant application server.

The Oracle ADF framework's capabilities for simplifying end-to-end
J2EE application development are used daily by over 2000 developers
in the Oracle E-Business Suite team, as well as by hundreds of
external customers. ADF's data binding layer is an implementation
of the declarative data binding facilities proposed in JSR-227.

Steve Muench - Technical Evangelist, Product Mgr, Developer, Author - Oracle
http://radio.weblogs.com/0118231/


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



RE: struts automation

2004-07-08 Thread Steve Raeburn
Only for those with deep pockets, but WebSphere Studio's struts-config
editor will automatically create an Action class from an action-mapping
definition at the click of a button.


Steve

> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
> Sent: July 8, 2004 3:06 PM
> To: Struts Users Mailing List
> Subject: RE: struts automation
>
>
> I think they mean to automatically create a starter class,
> based on a template, to which you would then add the specific
> functionality.
>
> IDEA does this for classes you reference in your code. If it
> doesn't exist, it will offer to create the (stub) class for
> you. A great feature when you are doing test-first development.
>
> It doesn't sound like much, but this is the sort of brainless
> nonsense that nickels and dimes you all day.
>
> -Ted.
>
> On Thu, 08 Jul 2004 14:41:34 -0700, Michael McGrady wrote:
> > My question is how can an editor of any kind create a class when it
> > has no idea what the internals of the class are?  I clearly do not
> > see what you guys are talking about because this clearly cannot be
> > done and you seem to be saying that this is just a piece of cake.
> >
> > At 02:10 PM 7/8/2004, you wrote:
> >
> >
> >>> -Original Message-
> >>> From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent:
> >>> Thursday, July 08, 2004 2:05 PM To: Struts Users Mailing List
> >>> Subject: RE: struts automation
> >>>
> >>>
> >>> At 02:00 PM 7/8/2004, you wrote:
> >>>>> Is there a struts tool out there that will create the class
> >>>>> files you name in a struts-config file automatically?  It
> >>>>> seems to me that would be really useful?
> >>>>>
> >>>>
> >>>> Yes there is, several of them..
> >>>
> >>>
> >>> I have the following class file named in my struts-config.xml
> >>> file.  Are
> >>> you saying this will be created automatically?  That does not
> >>> make sense to
> >>> me.  How would the xml file have a clue what was in this class
> >>> file?
> >>>
> >>
> >> Well WSAD allows you to click edit from it's struts-config
> >> editor, and if the class exists it will
> >> pop it up in the editor, and if not it will create the class,
> >> fill in some basics from a template and then
> >> pop tat up in an editor for you.  I think this is what he was
> >> asking. MyEclipse does the same thing for Eclipse, along with
> >> probably 1/2 dozen other OS struts-config editors.
> >>
> >> --
> >> --- 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: how to handle special characters like "®"

2004-06-30 Thread Steve Raeburn
This article http://www.joelonsoftware.com/articles/Unicode.html
provides a good introduction to character encodings. It may help.

Steve

> -Original Message-
> From: Christina Siena [mailto:[EMAIL PROTECTED]
> Sent: June 29, 2004 5:07 PM
> To: [EMAIL PROTECTED]
> Subject: how to handle special characters like "®"
>
>
> I am trying to figure how to handle special characters like "®".
>
> When the form is posted, the form attribute contains "®"
> instead of "®".
>



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



RE: Source for Jakarta JSTL 1.0.2

2004-06-29 Thread Steve Raeburn
http://archive.apache.org/dist/jakarta/taglibs/standard-1.0/source/


The link to the Archives is available from the bottom of the Jakarta
download page (http://jakarta.apache.org/site/sourceindex.cgi). Look for
"The Apache Archives".

Steve


> -Original Message-
> From: Derek Richardson [mailto:[EMAIL PROTECTED]
> Sent: June 28, 2004 8:13 AM
> To: Struts Users Mailing List
> Subject: OT: Source for Jakarta JSTL 1.0.2
>
>
> I'm looking for the source distribution for the Jakarta
> Standard taglib
> v1.0.2. I am unable to find it archived on the Jakarta website. Can
> anyone point me to a copy?
>
> Thanks,
>
> Derek Richardson
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



Can I specify DynaFormProperties at Run Time

2004-04-30 Thread Steve Lewis
Given that the Dynaform is dynamic I am wondering why I need to declare a 
dynaform and list its properties in struts-config. I would prefer to have 
my action populate a form adding properties that it knows without having to 
declare the form in struts-config.
1) Is this possible
2) If so how do you do that?
3) Is anyone doing this?

Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell) 

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


RE: Struts Development seems slow, info?

2004-04-24 Thread Steve Raeburn
Don't worry, I didn't take your comments in a negative way.

It is worth listening to what's happening on the dev list, then you'll
know as much as anyone what's happening. There are no offline
discussions, everything happens in public, via the dev-list.

Steve

> -Original Message-
> From: Riyad Kalla [mailto:[EMAIL PROTECTED]
> Sent: April 24, 2004 2:26 PM
> To: Struts Users Mailing List
> Subject: Re: Struts Development seems slow, info?
>
>
> Steve,
> Thanks so much for the reply. I wanted to clarify that I READ
> day-in and
> day-out those typical "whats going on with this project? I HATE YOU"
> emails, and I really didn't intend mine to sound that way. I
> was really
> just curious about what was going on because I was new to the list
> (thanks for the tip abou subscribing to dev, I'll do that today!)
>
...
>
>
> Best wishes,
> Riyad
>
>
> -
> 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: Differences Between Struts1.1 and Struts1.2

2004-04-24 Thread Steve Raeburn
There's some info on post-1.1 changes here:

http://struts.apache.org/userGuide/release-notes.html#New

Steve

> -Original Message-
> From: ganesh g [mailto:[EMAIL PROTECTED]
> Sent: April 23, 2004 11:18 PM
> To: user
> Subject: Differences Between Struts1.1 and Struts1.2
> 
> 
> Hi List,
> Will u pls tell me Differences Between Struts 1.1 and Struts 1.2
>  
> Regards & Thanks
> Ganesh
> 
>   
> -
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25"


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



  1   2   >