Re: Blank app fails to build

2016-11-20 Thread Java House
The change indeed fixes the issue thank you 2016-11-20 18:28 GMT+02:00 Lukasz Lenart : > Open HelloWorldTest.java and replace this > > HelloWorld hello_world = new HelloWorld(); > > with this > > HelloWorld hello_world = container.inject(HelloWorld.class);

Re: Blank app fails to build

2016-11-20 Thread Java House
2016-11-20 17:17 GMT+02:00 Martin Gainty : > > MG>possible maven-jetty-plugin is not copying .properties to expected > WEB-INF\classes\example > MG>when operational struts war expects HelloWorld.properties to be in > .\WEB-INF\classes\example > > ls -al > struts-2.3.4\src\apps\processing-forms\

Blank app fails to build

2016-11-20 Thread Java House
es is under struts-examples-master\blank\src\main\resources\example\package.properties I even tried to place the file under the java and rename it the same as the class struts-examples-master\blank\src\main\java\example\HelloWorld.properties but it didn't help tha

Re: Running Struts 2 Project in WebSphere Application Serve 7.0.0.19

2014-03-20 Thread Java OpenSource
Can u send out ur project I worn fine on spring struts in was 8.5 On 21 Mar, 2014 6:08 am, "manohar" wrote: > Hi, > > Have you fixed the issue? I am having the same issue. I am using Struts > 2.1.6 and WAS 7.0.0.27. If you have fixed it please share your fix. I am > struggling since 10 days and c

Re: Transparently handling a missing image

2010-09-17 Thread java . rgm
In case it helps anyone else (or in case anyone wants to tell me how much of a bad idea this is), to solve this problem I ended up writing my own SkinFilter class (implements Filter) which looks for a "skin" parameter in the HttpSession. If it's there, then the servlet request is wrapped in a

Message resources -- 2 suggestions and 1 question

2010-09-17 Thread java . rgm
On this page: http://struts.apache.org/2.2.1/docs/message-resource-files.html Suggestion -- discuss (or at least link to) PropertyResourceBundle MessageFormat patterns This page should include an example to the effect of: numUsers = {0,choice,0#No Users|1#1 User|1<{0} Users} Suggestion -- Expand

FM template fall-back / multiple template loaders

2010-08-26 Thread java . rgm
Is there a way to specify an alternate location for a result template in cases when the template is not found? If the specified template is missing, I'd like the framework to try looking in a different location before giving me a 500 error. I'm already using OGNL in my result configuration, b

Choosing a result dynamically based on session attribute?

2010-08-18 Thread java . rgm
Is it possible to choose an action result based on a value in the HttpSession? I have read the following page: http://struts.apache.org/2.0.11.1/docs/parameters-in-configuration-results.html I understand how to reference properties from the action itself, but is it possible if the acti

Including a Velocity page inside a FreeMarker template?

2010-08-12 Thread java . rgm
I'm migrating a system from Velocity to Freemarker. I'd like to be able to include the result of a velocity template into the outer freemarker template while migrating, but cannot seem to use the <@include_page > tag from within a FreemarkerResult. Apparently the FreeMarkerResult is NOT proces

Transparently handling a missing image

2010-07-29 Thread java . rgm
It's possible that this is not a Struts question, but it's succinct: I'd like to be able to code pages that ask for a resource that may or may not be present in one directory. If the resource is NOT present in the requested location, I'd like to automatically look for it in a different location

Advice on replacing an image with fall-back?

2010-07-28 Thread java . rgm
I'm suffering from option overload and need advice on how best to accomplish loading resources based on the User's current "skin." This would be something the user could set through an Action, and would be stored on the HttpSession. I'd like to have one set of templates and page resources norma

Re: Setting up 2.2.1 in maven for testing

2010-07-27 Thread java . rgm
new implementors. Thank you for taking the time to consider improving the docs, I know it's not as sexy as coding. -rgm On Jul 27, 2010, at 8:13 AM, java@spamgourmet.com wrote: > I'd like to test the Sitemesh / FreeMarker "full integration" configuration > availa

Setting up 2.2.1 in maven for testing

2010-07-27 Thread java . rgm
I'd like to test the Sitemesh / FreeMarker "full integration" configuration available in Struts 2.2.1, detailed on this page: http://struts.apache.org/2.x/docs/sitemesh-plugin.html BUT I'm new to using maven and can't seem to figure out how to modify my pom.xml such that maven downloads the pre-

Dispatcher with precompiled JSP

2010-01-05 Thread java
Hello, I have an action result type dispatcher with param name location equal to the path to the JSP, but I have precompiled the JSPs and it now seems the dispatcher cannot locate the JSP class. I tried changing the location to the fully qualified class name of the compiled JSP with the same r

Re: How To Post A Message To the Struts User Mailing List

2009-08-31 Thread Java Struts
Hey, thanks a lot for your help. On Mon, Aug 31, 2009 at 5:52 PM, phillips1021 wrote: > > Someone asked me this on a different thread. > > I use nabble.com (http://www.nabble.com/Struts---User-f206.html) to > search, > read, post new topics, and reply to topics on the Struts user mailing list.

Re: Convention Plugin and Method Called In Action Class

2009-08-31 Thread Java Struts
Hi, could you please tell me how to post my question to this list? Thanks, On Mon, Aug 31, 2009 at 4:13 PM, phillips1021 wrote: > > I'm learning to use the Convention Plugin. > > I understand from the excellent notes posted on the Wiki > (http://cwiki.apache.org/WW/convention-plugin.html) that

RE: Radio options left aligned

2009-08-31 Thread java
Thanks Andy. The docs recomend not doing that, but it seems to work fine. I ended up just copying radiomap.ftl to /templates/simple since there aren't any radio buttons I want to be listed outside of the tr and td tags I added to the template. -Original Message- From: Andy Law Subj

Old tiles site

2008-10-14 Thread Lance Java
When I type in tiles2 into google, the first result is this page http://struts.apache.org/struts-sandbox/tiles/index.html I had been using this as a reference until I discovered it was out of date and has moved here http://tiles.apache.org/index.html It would have been nice if the old site had tol

Re: How to allow to download several files in a zip in Internet Explorer

2008-10-14 Thread Lance Java
Try zos.flush() instead of close() It is not your responsibility to close the servlet output stream, it is the container's. 2008/10/13 Ariel <[EMAIL PROTECTED]> > Hi Everybody: > I 'm using struts 1.2 version, in my web application I have a chart where > the user can add several files that are lo

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
> 2. Use (and probably fix) the Struts 1/Tiles 2 plugin: This is what I'm after... thanks! > Spring 2.5 has an integration layer to Tiles 2: Yep... that's the easy bit :) Thanks, Lance. 2008/10/13 Antonio Petrelli <[EMAIL PROTECTED]> > 2008/10/13 Lance Java <[

Re: Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
> Any reason for your optioning against Struts2.x? Spring MVC is the new standard where I currently work and all sites are moving in that direction. The support team and developers here have spring MVC skills so it makes sense. If it was up to me I'd be moving to tapestry5 (http://tapestry.apache.o

Using tiles 2 with struts 1

2008-10-13 Thread Lance Java
Is it possible to use tiles2 with struts1? I am about to move a struts 1 app to spring MVC + tiles2. I was hoping that spring MVC and struts 1 could live side by side in the interum period but first I need to upgrade to struts1 + tiles2. I've looked through the struts1 website which seems out of da

Re: How to use for multiple fields of form

2007-03-02 Thread Java Guru
problem then I will be happy to hear from you. :):D;) Java Guru. On 3/2/07, Java Guru <[EMAIL PROTECTED]> wrote: Hi every one, I have a Question for you. I am trying to display and attribute of session on a form.It is something like this on norm

How to use for multiple fields of form

2007-03-02 Thread Java Guru
Hi every one, I have a Question for you. I am trying to display and attribute of session on a form.It is something like this on normal jsp. --

Re: how to use validation rules from validatior-rules.xml in Struts Actions

2006-11-24 Thread Java Programmer
On 11/23/06, robin bajaj <[EMAIL PROTECTED]> wrote: Hi Folks, I have an Email text field that I want to validate against Struts validation framework's provided "email" Rule in validator-rules.xml. Can I do this programmatically in Struts Action or ActionForm's java

Tiles & menus

2006-11-22 Thread Java Programmer
Hello, I have some troubles with finding examples of using SimpleMenuItem and tags within , so far I did menu like this: - part of tiles-def.xml: - part of jsp *tile* "> So first I import attribute

A doubt on struts-config.xml

2006-06-24 Thread Krieser Java
Hello, I am with a doubt: How I make to separate the entrances of struts-config.xml in some archives? It is possible to make this? Somebody knows as to make? Thanks, Francisco Krieser. __ Fale com seus amigos de graça com o

Catch me up!

2006-03-12 Thread e-denton Java Programmer
Hi, I've been away from my Struts project for a while. I hear there have been several developments. What's the latest version of Struts I should be using? What about using other packages with Struts, like Spring, and I hear there are others. I'd appreciate enough direction to get me restarted o

Is there a way of using tiles in a non struts Jsp-servlets web app?

2006-01-26 Thread Java Development Team
Hi (new in struts) I was wondering if there is a way in using the tiles framework in a MVC 1 web app (Servlets Jsp Javabeans). Is there a way in using the struts libraries and mix the archritecture with no problem? Any suggestions? Had anyone tried this?

UnsupportedClassVersionError

2005-12-08 Thread e-denton Java Programmer
Hi, I recently uploaded an updated Struts application to a remote server. Now I get this message (below: UnsupportedClassVersionError). I am using Tomcat 5.0.27. I do have 5.5 on that system, but everything points to 5.0.27 (as far as I can tell). I am running Java 1.4.2_01_b06. I have the same

Tiles problem - how to put attr in right context

2005-09-30 Thread Java News
Hello, I have problem with putting attributes in right context - my tiles definitions look like: What I would like to achieve is: 1) I would like that .header attribute "title" was passed from .add_product.form, so i can have only one header definition and many rendering pages like .add_pr

Action vs. Servlet

2005-06-01 Thread e-denton Java Programmer
Hi, I recently wrote an Action which in conjunction with an ActiveX object returns a table from the server to update the DOM in the browser. My question is: Is this a proper use of an Action, here essentially just a subroutine I am calling from the client, with no forwarding action? Or should I ha

Action vs. Servlet

2005-06-01 Thread e-denton Java Programmer
Hi, I recently wrote an Action which in conjunction with an ActiveX object returns a table from the server to update the DOM in the browser. My question is: Is this a proper use of an Action, here essentially just a subroutine I am calling from the client, with no forwarding action? Or should I ha

How handle multiple records in form?

2005-05-04 Thread e-denton Java Programmer
Hi, I need to accept up to 20 records per form, which may have been edited and update them in the database. In the past I have tried assigning unique ids to each form field or using Javascript to create an XML string of the fields. I don't like either method. Is there a best practice for this? Th

How handle multiple records in form?

2005-05-04 Thread e-denton Java Programmer
Hi, I need to accept up to 20 records per form, which may have been edited and update them in the database. In the past I have tried assigning unique ids to each form field or using Javascript to create an XML string of the fields. I don't like either method. Is there a best practice for this? Th

RE: multi-page validation form

2005-03-22 Thread java
Apologies for not reading more closely. And now that I have, I'm a little confused. Your original post said "But it just seems to ignore this validation whatever I set the form page property to". But below, you say "the form always gets validated. Even when the page is set to a number where the

RE: multi-page validation form

2005-03-22 Thread java
Having done exactly the same thing, I know it works (though it's been a while so I'm trying to remember everthing I've done). Do you also have a page number defined for the Javascript include tag e.g. Jay http://www.vtgroup.com/ -Original Message- From: Brandon Mercer [mailto:[EMA

RE: Present formbean value on jsp page.

2005-03-18 Thread java
Can you use bean:write to accomplish what you're after e.g. Jay Vertical Technology Group http://www.vtgroup.com/ -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 2:32 PM To: Struts Users Mailing List Subject: Present formbean value on js

RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
> For the current offer in place today, the license does NOT expire and > you will have access to updates for the JSP Editor free for 1 year. As > for the project, I'm not familiar with this issue so I'll have to get > back to you on this. > > Thanks, > > -Carl

RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
> For the current offer in place today, the license does NOT expire and > you will have access to updates for the JSP Editor free for 1 year. As > for the project, I'm not familiar with this issue so I'll have to get > back to you on this. > > Thanks, > > -Carl

RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
ng is the free license good for? Thanks. Will -Original Message- From: Carlos Chang [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 4:10 PM To: Struts Users Mailing List Subject: [ANN] Free JSP Editor for Eclipse Dear Java Developer, For a limited time, M7 is offering the N

RE: [ANN] Free JSP Editor for Eclipse

2005-02-04 Thread e-denton Java Programmer
ng is the free license good for? Thanks. Will -Original Message- From: Carlos Chang [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 4:10 PM To: Struts Users Mailing List Subject: [ANN] Free JSP Editor for Eclipse Dear Java Developer, For a limited time, M7 is offering the N

RE: OT constants interface

2005-01-22 Thread e-denton Java Programmer
What makes this sort of interface acceptable? package java.io; public interface Serializable { } Instead of, maybe... public interface Serializable { public final boolean isSerializable { return true; } } -Original Message- From: Dakota Jack [mailto:[EM

RE: OT constants interface

2005-01-22 Thread e-denton Java Programmer
What makes this sort of interface acceptable? package java.io; public interface Serializable { } Instead of, maybe... public interface Serializable { public final boolean isSerializable { return true; } } -Original Message- From: Dakota Jack [mailto:[EM

Re: 2005

2004-12-31 Thread e-denton Java Programmer
And, thanks to all for their help this year! - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "strutsuser" Sent: Friday, December 31, 2004 10:09 AM Subject: 2005 > And a happy new year to you all! > > -Andrew > > 2005-01-01 00:07 > > > --

OT Useful Validation Routines

2004-11-26 Thread e-denton Java Programmer
Hi, If you aren't using Validator, you might find these useful: public static boolean isValidEmailAddress (String eMailAddress) { return eMailAddress.matches ("^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*(\\.[_ A-Za-z0-9-]+)"); } public static boolean isValidURL

Re: [OT] - Blog and Forum plugin

2004-11-22 Thread e-denton Java Programmer
Roller blog for blogging at http://www.rollerweblogger.org/page/project - Original Message - From: "Richard" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 22, 2004 4:43 AM Subject: [OT] - Blog and Forum plugin > Hi Guys, > > I am tasked

Re: Enabling/Disabling elements in jsp

2004-10-29 Thread java
Saifuddin > I hv used multi box for an application. Now,the requirement is that > i have to make the multibox enable/disable depending on a value in my > data Object. > I hv a getter/setter in my data Object that will hv boolean value which > signifies enable/disable. > > disabled=""> > > >

Struts img tag usage

2004-10-26 Thread e-denton Java Programmer
Hi! I have been using the Struts img tag instead of the HTML img tag just cause I was trying to use and learn the Struts tags, e.g. . But, now that I have tried deploying, I find it doesn't work for me. Apparently, it adds the jessionid onto the url (http://www.xxx.com/grafx/logo.jpg;jsessionid=49

Re: [OT] Hosting Companies

2004-10-23 Thread e-denton Java Programmer
I use http://www.webappcabaret.com/index.html. - Original Message - From: "David G. Friedman" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 2:04 AM Subject: RE: [OT] Hosting Companies > Joe, > > Wouldn't a hosting company that h

Where's tlds?

2004-10-19 Thread e-denton Java Programmer
Hi, Where are the struts tlds supposed to be? I downloaded the struts zip (jakarta-struts-1.2.4) and the lib (jakarta-struts-1.2.4-lib), but I couldn't find struts-form or struts-template. Thx. - To unsubscribe, e-mail: [EMAI

Re: Latest Struts Install Problem

2004-10-18 Thread e-denton Java Programmer
Yep, using templates. Are they no longer supported? - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton Java Programmer" <[EMAIL PROTECTED]> Sent: Monday, Oct

Latest Struts Install Problem

2004-10-18 Thread e-denton Java Programmer
Hi, I just tried to install Struts Struts 1.2.4 and got the error below. Should I be using the binaries or library download (What's the difference?) ? Thx. exception javax.servlet.ServletException: org/apache/struts/taglib/template/InsertTag org.apache.jasper.servlet.JspServlet.servi

Re: Access context from Action?

2004-10-17 Thread e-denton Java Programmer
Nevermind... servlet.getServletContext() getServlet().getServletContext() request.getSession().getServletContext() - Original Message - From: "e-denton Java Programmer" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent:

Access context from Action?

2004-10-17 Thread e-denton Java Programmer
Hi, I want to set an application attribute from an Action. How do I get the ServletContext from an Action? Thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Bad XML?

2004-10-06 Thread e-denton Java Programmer
I am getting this Tomcat error on my remote server (It runs on my local server): "Oct 6, 2004 12:35:25 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 321 column 17: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,glob

Struts and html:base - hidding implementation

2004-09-23 Thread Java News
Hi, I don't understand one simple thing with - when I had read about Struts and JSTL help for them, I saw that it helps to hide implementation, so why I got such output: http://localhost:8180/struts_test/pages/Welcome.jsp";> form page which was called from browser as: http://localhost:8180/struts_

Any common way to get back after login?

2004-09-15 Thread Java News
Hi, What is best method to get back to the previous page, after eg. login. All I thought so far is to set actual path in (if possible with JS), and use it to redirect in Action. But what if someone first use search form to get results of something, and after that he use login form - I can store so

Re: Please .dont

2004-08-05 Thread e-denton Java Programmer
Thanks, Kishore, but that will give me the form name. I want the Action path sans ".do". - Original Message - From: "Kishore Senji" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton Java Programmer" <

Roller as Struts Module

2004-08-04 Thread e-denton Java Programmer
I only have a single context at my ISP, and I want to use Roller Weblogger (http://www.rollerweblogger.org/page/project). Would it be practical to make it a module? Any tips or comments appreciated. I haven't found many useful module examples on the Web. Thx. ---

Please .dont

2004-08-03 Thread e-denton Java Programmer
(Sorry, I posted this once already under the wrong subject: Re: R: How to render html embedded in a text-area?) According to the Struts API: ActionConfig.getPath() Return context-relative path of the submitted request, starting with a slash ("/") character, and omitting any filename ext

Re: R: How to render html embedded in a text-area?

2004-08-03 Thread e-denton Java Programmer
According to the Struts API: ActionConfig.getPath() Return context-relative path of the submitted request, starting with a slash ("/") character, and omitting any filename extension if extension mapping is being used. But, System.err.println (mapping.findForward (Constants.FORWARD_BAN

Better way?

2004-07-12 Thread e-denton Java Programmer
Hi, When I want to open a new browser window to access an offsite URL, I have been loading a jsp with a frameset containing that URL, i.e. "return new ActionForward ("/offsiteFrameset.jsp")". For example, to open a URL from a page of offsite links. Is there a better or more direct way of doing it?

Recommend Struts Plugins for Eclipse?

2004-06-25 Thread e-denton Java Programmer
I am converting from Kawa to Eclipse. Anyone have Eclipse plugins they recommend for Struts, Tomcat, JBoss, XML, etc development? Thanks for your opinions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [OT] Jobs

2004-06-23 Thread e-denton Java Programmer
t: Re: [OT] Jobs > Hello James, > > Please consider my qualifications for a Java position. My resume in Word > format is attached. > > Thank you for your consideration. > > Sincerely, > > Will Wagers > > - Original Message - > From: "James Mi

Re: [OT] Jobs

2004-06-23 Thread e-denton Java Programmer
Hello James, Please consider my qualifications for a Java position. My resume in Word format is attached. Thank you for your consideration. Sincerely, Will Wagers - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List"