Re: How do I execute this action servlet on startup?

2009-04-02 Thread laredotornado
> http://struts.apache.org/1.3.10/userGuide/building_controller.html#plugin_classes > > Nils-H > > On Wed, Apr 1, 2009 at 4:49 PM, laredotornado > wrote: >> >> Hi, >> >> I'm using Struts 1.3 on WebLogic 9.2.2.  I have this defi

Re: How do I execute this action servlet on startup?

2009-04-02 Thread laredotornado
Turns out you don't have to add anything to your web.xml file since Struts automatically loads all elements upon startup and invokes their "init" methods. So problem has been solved. Thanks to all, - Antonio Petrelli-3 wrote: > > 2009/4/2 laredotornado : >> I&

Making two URLs map to the same action

2009-04-03 Thread laredotornado
Hi, I'm using Struts 1.3 with WebLogic 9.2.2. I would like my URL http://mydomain.com/context-path/refresh to do the same thing, or at least point to the same place that http://mydomain.com/context-path/refresh.do goes. How can I set this up? Thanks, - Dave -- View this message in context

How do I turn off debug statements when using MockStrutsTestCase with JUnit?

2009-05-01 Thread laredotornado
Hi, I'm using the latest version of MockStrutsTestCase to test my Struts 1.3 application. I'm using Ant 1.6. I have Ant Junit tasks that look like ...

struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

2009-06-22 Thread laredotornado
Hi, I'm trying to migrate my app from struts 1 to struts 2. On a particular JSP page, I get this error The page generated an error: Exception: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the

Re: struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

2009-06-22 Thread laredotornado
one of the JSPs you mapped as results. > > Also, is there any reason why you are changing the interceptor stack? > You don't have validation and workflow, which seems a bit odd... > > -Wes > > On Mon, Jun 22, 2009 at 12:27 PM, laredotornado > wrote: >> >> H

What is Struts 2 equivalent of PlugIn?

2009-06-23 Thread laredotornado
Hi, I'm migrating my app from struts 1 to Struts 2. In my Struts 1 app, I had this class ... public class RefreshAction extends Action implements PlugIn { ... } and this in my struts-config.xml file ... So how do I convert this to Struts 2? There doesn't seem to be a support for "plug-

Blocked trying to get lock: org.apache.log4j.spi.RootLogger

2009-07-01 Thread laredotornado
Hi, We are using WebLogic 9.2.2 with Java 1.5. The application is written using Struts 1.3 and log4j 1.2.15. We found a number of errors that looked like below in our managed server's .out file. Any ideas what might be a cause or how to troubleshoot further? Our sys admin sadly did not preserv

Re: Blocked trying to get lock: org.apache.log4j.spi.RootLogger

2009-07-17 Thread laredotornado
Here is my contribution to the good of humanity. The below problem went away when we increased the number of file descriptors available to our WebLogic managic server process from 1024 to 65K. - Dave laredotornado wrote: > > Hi, We are using WebLogic 9.2.2 with Java 1.5. The applicat

Cleaner way to create this page?

2009-07-27 Thread laredotornado
Hi, I'm using Struts 1.3. I have this in my JSP page ... <% final RoutingEnginePropertiesMgr rePropMgr = RoutingEnginePropertiesMgr.getInstance(); if (rePropMgr.isUseCaptcha()) { %> https://api-secure.recaptcha.net/challenge?k=<%= rePropMgr.getCaptchaPublic

RE: Cleaner way to create this page?

2009-07-27 Thread laredotornado
e struts taglibs. > >> -Original Message- >> From: laredotornado [mailto:laredotorn...@gmail.com] >> Sent: Monday, July 27, 2009 11:51 AM >> To: user@struts.apache.org >> Subject: Cleaner way to create this page? >> >> &

Why doesn't struts evaluate the Java code?

2008-11-14 Thread laredotornado
Hi, I'm using Struts 1.1 on WebLogic 9.2.2. I have this tag " size="20" maxlength="50" readonly="<%= exists %>" /> but when my JSP is rendered, the expression, "<%= (newUser != null ? newUser.getNewName() : "") %>" actually appears in the browser. Anyone know how to make the actual value of t

How do I generate an ID attribute with my text field

2008-11-17 Thread laredotornado
Hi, I have this hidden field which is causing me compilation errors because "forceId" is not recognized as an attribute. How do I create a struts hidden field so that an ID is generated in addition to the name attribute? Thanks, - Dave -- View this message in context: http://www.nabble.com

What is the Struts way to construct this menu?

2008-12-02 Thread laredotornado
Hi, I have a single select menu on my search page. What is the struts way to construct this menu such that when the user is redirected to this search page, the menu is pre-selected with what they selected from the original search? Thanks, - Dave

Invalid path was requested

2008-12-15 Thread laredotornado
Hi, I'm using Struts 1 and trying to figure out the mysterious world of forwarding. I have String path = new String("/npsim/appGroupsAdmin.do?addAppGroup=Add+New+Group&submitted=submit&task=add&appName=" + URLEncoder.encode(appName)); return new A

Re: Invalid path was requested

2008-12-16 Thread laredotornado
setName(originalForward.getName()); > forward.setRedirect(originalForward.getRedirect()); > return forward; > > But i use some ancient s1 version. > > So firstly You can try without URLEncoder.encode(appName), > then you can add printing constructed string and

Does ActionForward preserve the request?

2009-01-22 Thread laredotornado
I'm using Struts 1. In my execute method, I have a clause that looks like String path = new String("/appGroupsAdmin.do?addAppGroup=Add+New+Group&submitted=submitted&task=add&appName=" + URLEncoder.encode(appName)); return new ActionForward(path);

How do I add a paramter to the request and forward?

2009-02-18 Thread laredotornado
Hi, I'm using Struts 2. I am fairly new to Struts and wondered how I would set this up. What I want to do is when someone types in "mydomain.com/context_path/flow.do", something on the server side catches the request, and a parameter with name="token", value="123" to the request, and then forwa

Trouble with an action mapping

2009-02-26 Thread laredotornado
Hi, I'm using Struts 2. I have this action-mapping ... I first visit my page, http://localhost:7005/re/jsp/pcAccountLookup.jsp, which submits a form to "/re/pcFlow.do". Unfortunately, this is when I get a 404 error. Wha

Struts 2 question about validation and forwarding

2009-02-27 Thread laredotornado
Hi, If request validation fails, how can I forward the user to a different page than that from which they came? The scenario is that an external web site is going to invoke our site with something like "/ourForm.do?param1=xxx¶m2=" and if their parameters are not valid, we want to forward the

Re: Struts 2 question about validation and forwarding

2009-02-27 Thread laredotornado
currently ... - Dave Jim Kiley wrote: > > Just have the result of the input() method return them to a different page > under that condition. > > On Fri, Feb 27, 2009 at 12:41 PM, laredotornado > wrote: > >> >> Hi, >> >> If request vali

Re: Struts 2 question about validation and forwarding

2009-03-02 Thread laredotornado
ecute method. The forwarding will take place in your struts.xml file > as previously suggested. > > If you need to execute code regardless of the validation, look into > the prepare method. > > On 2/27/09, laredotornado wrote: >> >> But it seems like the "Act

Struts 1: Why is ActionServlet unavailable?

2009-03-06 Thread laredotornado
Hi, I'm using Struts 1 with Weblogic 9.2.2 (Java 1.5), running on my local Win XP machine. I'm getting this error when trying to deploy my WAR in my Weblogic logs ... <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1236353508999> at

How can I tell if Struts is finding my messages file?

2009-03-12 Thread laredotornado
Hi, I'm using Struts 1. In my ActionForm's validate method, I have a section of code ... final ActionMessage am = new ActionMessage("error.accountNum.wrong.length"); errors.add(ACCOUNT_NUM_PARAM_NAME,am); My question is how can I verify that the

How do I execute this action servlet on startup?

2009-04-01 Thread laredotornado
Hi, I'm using Struts 1.3 on WebLogic 9.2.2. I have this defined in my struts-config.xml file: This servlet takes no parameters. How do I get this to run upon application startup? Thanks, - Dave -- View this message in context: http://www.nabble.com/How-do-I-execute-this-

Struts date tag?

2008-08-26 Thread laredotornado
Hi, Using pre-Struts 2, is there a tag that will create a date (month, day, and year)? What would I need to do in the ActionForm? In other words, it seems like the ActionForm can only deal with String and boolean member fields. Thanks, - Dave -- View this message in context: http://www.nabbl

What is the struts way to create a navigation menu?

2008-08-27 Thread laredotornado
Hi, Using pre-Struts 2, what is the preferred method of creating a navigation menu? I have something that looks like this -- http://screencast.com/t/xmVBY9Te and the desire is that as I click on each nav item it takes me to my page of choice while styling the current menu selection differently.

Re: Struts date tag?

2008-08-27 Thread laredotornado
Hi, I am asking if there is a tag which will create separate HTML form inputs for month, day and year. Thanks, - Dave Laurie Harper wrote: > > laredotornado wrote: >> Hi, >> >> Using pre-Struts 2, is there a tag that will create a date (month, day, >> and >

Re: What is the struts way to create a navigation menu?

2008-08-27 Thread laredotornado
% } if(allowedTasks!=null && allowedTasks.contains(IMConstants.taskAdmin) || allowedTasks.contains(IMConstants.taskManageGroups)) { %> -1 ? "menuLinkSelected" : "menuLink" %>" href=

How do I create a conditionally disabled button?

2008-08-28 Thread laredotornado
Hi, I'm using Struts 1. I'm trying to clean up some code and make it into a proper Struts form. How do I create a button whose disabled attribute is set to true or false depending on a certain condition on my page? (The condition is if the variable "endCount" is less than the variable "maxCoun

Loading message resources properties from a database

2008-09-03 Thread laredotornado
Hi, I'm using Struts 1. We want to load our message resources properties, currently defined in our struts-config.xml file: from a database. Now of course, they are in a file called "MessageResources.properties". What is the proper way to do this? Thanks, - Dave -- View this message in con