RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-05 Thread Rajagopal_Yendluri
There is no problem in the web.xml, There may be some problem on warring the file ( means creating .war file). Try to deploy it on other server ,,, say tomcat or any other. If you get the same error message am sure the problem is with WAR. Check out if you can share the war I will try

question on 2.1.0 ...

2007-10-05 Thread Giovanni Azua
hi all, It is not clearly stated anywhere ... but seems that version 2.1.0 beta is a maintenance release and does not include any new features, is that true? Most of the JIRA entries are bug fix requests. Meaning we users building from repository should get a more fixed and stable version

Re: question on 2.1.0 ...

2007-10-05 Thread Wes Wannemacher
Struts 2.1.x does have some new features one of the most notable being that he dojo/ajax functionality is moved into it's own plugin. There are a number of tags that have changed and a few added in the dojo-plugin. There is more information in the this wiki -

Trouble with using struts tags in freemarker files

2007-10-05 Thread anine.louise.medhus-dale
Hi, I hope someone can help me with this problem. I have a freemarker file where I need to use struts tags to create url. My problem is that I don't know what's the correct way to reference the struts taglib. My code: #assign s=JspTaglibs[/META-INF/struts-tags.tld] a href=@s.url

Re: Struts 2.0.10 jars please

2007-10-05 Thread Ted Husted
Struts 2.0.10 never made it past a test build. There is a vote pending on dev@ for Struts 2.0.11, which is positive so far. * http://www.nabble.com/-VOTE--Struts-2.0.11-Quality-tf4511024.html -- HTH, Ted Attend Migrating to Ajax at ApacheCon US 2007: *

Re: question on 2.1.0 ...

2007-10-05 Thread Ted Husted
On 10/5/07, Giovanni Azua [EMAIL PROTECTED] wrote: Meaning we users building from repository should get a more fixed and stable version each time. In general, we do not recommend building from the repository unless you are following the discussions on [EMAIL PROTECTED] There is no guarantee

Defining a controller for Tiles?.. and shouldn't we include a Tiles example app in the release?

2007-10-05 Thread Rick Reumann
I'm working on using IDEA for a Struts1.3 project and IDEA was complaining about my Tiles definition that I had declared: plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-definitions.xml / set-property

Re: Defining a controller for Tiles?.. and shouldn't we include a Tiles example app in the release?

2007-10-05 Thread Ted Husted
I believe the Tiles example we had migrated to tiles.apache.org with the rest of the Tiles code, and no one has come up with another. The same holds true for the documentation. What we had was migrated, and no one has replaced it. As always, it's just a matter of someone volunteering to do the

RE: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread chengas123
Converting the tags to use the new library wasn't very hard except that I can't seem to get the new tags to work. I turned the debugging on in the head tag and the only debug message I got was DEBUG: please consider using a mimetype of text/json-comment-filtered to avoid potential security

Re: Defining a controller for Tiles?.. and shouldn't we include a Tiles example app in the release?

2007-10-05 Thread Antonio Petrelli
2007/10/5, Ted Husted [EMAIL PROTECTED]: I believe the Tiles example we had migrated to tiles.apache.org with the rest of the Tiles code, and no one has come up with another. This is not true, the original Tiles code resides under Struts. Antonio As always, it's just a matter of someone

RE: [ActionServlet] /WEB-INF/web.xml was not found

2007-10-05 Thread ROWLAND, CLAY, ATTSI
i'm not sure.. i'm not intentionally specifying one. i'm assuming that it would be jboss-web_4_0.dtd since i'm using jboss 4.2.1 and am using the servlet 2.4 spec in j2ee 1.4. is it possible that i'm missing elements in the jboss-web.xml file? i was under the impression that it was not

Where is the source?

2007-10-05 Thread stanlick
I can't find the source for the struts2-tiles-plugin-2.0.9.jar??? -- Scott [EMAIL PROTECTED]

Re: Defining a controller for Tiles?.. and shouldn't we include a Tiles example app in the release?

2007-10-05 Thread Rick Reumann
On 10/5/07, Antonio Petrelli [EMAIL PROTECTED] wrote: Volunteering to do something that is already outdated, and that will be removed in favour of Tiles 2? I think it's a waste of time IMHO, also because in Struts 1.4 there will be support for Tiles 2. Cool. I didn't even know there was

Re: Where is the source?

2007-10-05 Thread Antonio Petrelli
http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_0_9/plugins/tiles/ Antonio 2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: I can't find the source for the struts2-tiles-plugin-2.0.9.jar??? -- Scott [EMAIL PROTECTED]

Re: Defining a controller for Tiles?.. and shouldn't we include a Tiles example app in the release?

2007-10-05 Thread Ted Husted
Good point. What has actually happened is that there was never a Tiles example for WebWork, and no one has volunteered to add an extensive example for Struts 2 yet. Though, we do have a small Tiles example in the ShowCase * http://www.planetstruts.org/struts2-showcase/tiles/index.action If

Re: [OT] Ajax recommendations for use with Struts1.1

2007-10-05 Thread Ted Husted
Has anyone here tried Prize Tags with Struts 1 for Ajax and other features? * http://www.jenkov.dk/prizetags/introduction.tmpl -Ted. On 9/19/07, Rick Reumann [EMAIL PROTECTED] wrote: Hey all, unfortunately I'm going to be stuck on a new project has to use Struts1.1 - not that I'm against

Re: combining Struts-2 with Struts-1 application.

2007-10-05 Thread Leena Borle
Thanks a lot, This article looks promising. Leena On 10/4/07, Wes Wannemacher [EMAIL PROTECTED] wrote: I would start here - http://struts.apache.org/2.0.9/docs/struts-1-plugin.html -W On 10/4/07, Leena Borle [EMAIL PROTECTED] wrote: Hi , I have started developing my application

Re: Where is the source?

2007-10-05 Thread stanlick
Thanks. I am adding S2 components to a S1 application and for some reason I am getting a NPE in TilesResult at 104. Looks like this line is TilesContainer container = TilesAccess.getContainer(servletContext); coughing up a null container! Any clues? I am running both versions of Tiles in the

Re: Struts debug mode

2007-10-05 Thread Viplav Kallepu
but I am not able debug my action classes(I atleast understood that i cant debug my jsp's). thats what is the problem. If anybody has any good material for knowing how to debug in eclipse(WTP) suggesting me would be a great help. On 10/4/07, Dave Newton [EMAIL PROTECTED] wrote: --- Viplav

Re: Struts debug mode

2007-10-05 Thread Wes Wannemacher
right-click on your server (Tomcat) and choose 'Debug' ? You can put breakpoints in your action, etc. -Wes On 10/5/07, Viplav Kallepu [EMAIL PROTECTED] wrote: but I am not able debug my action classes(I atleast understood that i cant debug my jsp's). thats what is the problem. If anybody has

Re: Struts debug mode

2007-10-05 Thread Dave Newton
You should be able to debug your JSPs, too, although I haven't tried that with Europa (Europa, so far, is kind of kicking my butt; can't even re-format a JSP page :/ But as Wes said, unless something is really wrong in your setup debugging your actions should be really easy. --- Wes Wannemacher

Re: Where is the source?

2007-10-05 Thread Antonio Petrelli
2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks. I am adding S2 components to a S1 application and for some reason I am getting a NPE in TilesResult at 104. Looks like this TilesContainer container = TilesAccess.getContainer(servletContext); coughing up a null container! Any clues?

Re: Where is the source?

2007-10-05 Thread stanlick
There is nothing in the log at startup. I have two rather large applications I am experimenting with combining together in the same web context root. Don't ask! Attempt is to have them call into one another. Ultimately, it will evolve to S2 if need be. It is working fine right now with both

Re: combining Struts-2 with Struts-1 application.

2007-10-05 Thread Ted Husted
Technically, it's still one application. The Struts 1 framework is exposed by a servlet, and the Struts 2 framework is exposed by a filter. But, the Java Web framework is designed so that you can use as many servlets and filters as you need, and provides a useful layer between the two. The

Re: Where is the source?

2007-10-05 Thread Antonio Petrelli
2007/10/5, [EMAIL PROTECTED] [EMAIL PROTECTED]: Are both versions of Tiles supported in the same app? It is hard to say, since I did not even try it. But I think you have some problems with configuring Tiles 2 startup. How do you bootstrap Tiles 2? Antonio

RE: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread chengas123
Turns out the problem is that the autocompleter is broken for maps. Using the map example given in the documentation (http://struts.apache.org/2.x/docs/autocompleter.html) does not work: sx:autocompleter name=test label=test list={'Alabama':'AL', 'Alaska':'AK'} autoComplete=false/ However,

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread Wes Wannemacher
OGNL's anonymous map creation uses the '#' character - http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction But, if your servlet container uses the Unified EL, then you'll have to escape the '#', So, in short try this - sx:autocompleter

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread chengas123
Adding the pound sign did work for me in the hardcoded example sx:autocompleter name=test label=test list=#{'Alabama':'AL', 'Alaska':'AK'} autoComplete=false/ Will my action need to add a pound sign as well or is that only because I was using list instead of href? Right now my action is

Re: [s2] Struts head tag KILLS ( 10s) page load time

2007-10-05 Thread Musachy Barroso
I double check this, and it seems to be working fine, as Wes mentioned you need to escape # or use something like: sx:autocompleter name=state list=[EMAIL PROTECTED]@{'AL':'Alabama'}/ One think to keep in mind is, when you build the json, the key and the values are in the wrong order. So it

Re: Where is the source?

2007-10-05 Thread stanlick
Thanks Antonio -- You mean you have to boot it? :) That was the S2 piece I failed to add to the S1 web.xml. It seems to be working fine now with S1 and S2 plus T1 and T2 all in the same web context! This is actually pretty cool! I have added navigation menus from the S1 app to S2 and vice

RE: [s1.35] Need help with Struts and Modules

2007-10-05 Thread Givler, Eric
If I create multiple struts configurations, do my actions end up having the prefix in the path, so that they could be secured? ie. action path=/secure/Main_Menu name=Dummy_Form input=/Main_Menu.jsp parameter=default=setup

Re: combining Struts-2 with Struts-1 application.

2007-10-05 Thread stanlick
Ted -- I have a fairly large S1 web app now infused with S2 capabilities. I am experimenting with techniques for calling between the two sides and have it working fine using redirect type forward and result mappings. As an aside, the S1 app used Tiles heavily and the modest S2 app is using T2.

Re: Trouble with using struts tags in freemarker files

2007-10-05 Thread Zarar Siddiqi
I load it using the following: #assign s=JspTaglibs[/struts-tags] You'll also need to load the JspSupportServlet: servlet servlet-nameJspSupportServlet/servlet-name servlet-classorg.apache.struts2.views.JspSupportServlet /servlet-class

Re: Defining a controller for Tiles?.. and shouldn't we include a Tiles example app in the release?

2007-10-05 Thread stanlick
Has the problem been solved concerning injecting the T2 controllers (preparers) with beans from the S2 beanFactory? I have written a DelegatingTilesController that gets the job done, but I consider it a workaround. On 10/5/07, Ted Husted [EMAIL PROTECTED] wrote: Good point. What has actually

Where is struts-*.tld

2007-10-05 Thread mjparme
I downloaded Struts 2.0.9 (binary release) and the files struts-bean.tld, struts-html.tld, and struts-logic.tld is nowhere to be found. All the documentation I have read said it should be in the lib directory. This documentation appears to be geared to Struts 1.x though. I have scoured google

Re: Where is struts-*.tld

2007-10-05 Thread Wendy Smoak
On 10/5/07, mjparme [EMAIL PROTECTED] wrote: I have scoured google and docs on struts.apache.org and can't find where these files are!! It has been very frustrating. All the getting started guides say to put these files in WEB-INF but then don't tell you where to get these files from! You

Re: Where is struts-*.tld

2007-10-05 Thread Jim Cushing
Those files don't exist in Struts 2. Struts 2 is very different than Struts 1, and is based off of WebWork, so many of the files and JSP you're used to don't exist, struts-*.tld among them. All the JSP tags included with S2 start with s: (e.g., s:url), instead of bean:, logic:, etc.

Re: Where is struts-*.tld

2007-10-05 Thread mjparme
Yeah, I have done more reading about Struts 2 vs 1. Didn't realize it was that different. I will probably just kick back down to the most recent Struts 1 release so I am in known territory. Jim Cushing wrote: Approach Struts 2 as if you're learning a new web framework, which you really

Re: Where is struts-*.tld

2007-10-05 Thread mjparme
Thanks for the information! It all makes sense now:-) I have previously used Struts 1; however, that project was setup long ago and I just have add to some new fucntionality to on occasion. This is the first time I have setup a struts application from scratch. The app I am using as an example

Re: Where is struts-*.tld

2007-10-05 Thread Jim Cushing
It is very different, but I'd still encourage you to play with it. I've been using it for a few months (though I had played with WebWork before), and I love it. I've found it light years ahead of Struts 1.x, and not nearly as frustrating as Spring MVC. It's got a learning curve, like any

why would error-page be *appended* to my jsp?

2007-10-05 Thread josephcjis
In my web.xml I have this mapping: error-page exception-typejava.lang.Throwable/exception-type location/error.jsp/location /error-page However, sometimes when an exception occurs while trying to access some property on the ognl stack (in this case a

Re: why would error-page be *appended* to my jsp?

2007-10-05 Thread Chris Pratt
Most likely the error wasn't detected until the page had been committed. Once the headers and the first part of the page have been sent to the browser, there's no way to recall them to display the error page, so the best that can be done is adding the error to the bottom. One way to prevent this

Modifying Java file changes are not reflected while running Tomcar Server

2007-10-05 Thread Arunkumar Balasubramanian
Hi I have downloaded source code online and were trying to reuse the files available to build my own application. I have MyEclipse IDE with Tomcat server on it. I am developing struts application. Here is what the problem I am running in to. If I add all java, jsp, class, ear and war

Re: Ajax forms not working - Problem with scriptaculous and dojo

2007-10-05 Thread Moacir Cardoso
Hello people, I was unable to make my ajax s:form submit to work. Then I tried to create a simple application from struts2-blank-2.0.9.war like this: %@ taglib prefix=s uri=/struts-tags % %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% !DOCTYPE html

Using annotations

2007-10-05 Thread Guilherme
Hi, I'm trying to use annotations to validate some fields in my application. The code is this: @Validation public class Teste extends ActionSupport { private Cliente cliente; @VisitorFieldValidator(message = ) public Cliente getCliente() { return cliente; } public

Re: Modifying Java file changes are not reflected while running Tomcar Server

2007-10-05 Thread Dave Newton
--- Arunkumar Balasubramanian wrote: org.apache.jasper.JasperException: An exception occurred processing JSP page /pages/Address.jsp at line 6 3: root cause javax.servlet.jsp.JspException: Missing message for key welcome.title That means you don't have a message for the welcome.title

Re: Ajax forms not working - Problem with scriptaculous and dojo

2007-10-05 Thread Dave Newton
At one point the JavaScript load order when using Prototype was significant; I had to put the s:head.../ tag before loading prototype. Note that Prototype does not always play well with other libraries. d. --- Moacir Cardoso [EMAIL PROTECTED] wrote: Hello people, I was unable to make my