Re: Action Mapping Forward to static html from

2006-05-09 Thread Philihp Busby
Have you tried the contextRelative attribute? forward name=index path=/index.html contextRelative=false/ On 5/9/06, Allen Casteran [EMAIL PROTECTED] wrote: Is there a way to configure an action mapping in struts-config.xml to forward to a static URL that is not part of the application files?

Re: Interesting question (to me)... Perl app conversion to SUNWappserver/Java/Struts

2006-05-09 Thread Gareth Evans
Hi, You could use a servlet mapped to *.pl (or whatever extension the perl system used) and get it to send a redirect to the appropriate part of the java system. Gareth Alan Treece wrote: As the Subject: line states I'm in the middle of converting a larger Perl application to a Struts

Re: Interesting question (to me)... Perl app conversion to SUNWappserver/Java/Struts

2006-05-09 Thread Leon Rosenberg
Define a servletmapping for the old url, write a servlet which simply redirects all requests to the new url. Done. regards Leon On 5/9/06, Alan Treece [EMAIL PROTECTED] wrote: As the Subject: line states I'm in the middle of converting a larger Perl application to a Struts web-app running on

Re: Action Mapping Forward to static html from

2006-05-09 Thread Allen Casteran
Yes. That creates the path domain/context/index.html I need the link without the context, yet don't want to hard code the domain into the struts config. Philihp Busby wrote: Have you tried the contextRelative attribute? forward name=index path=/index.html contextRelative=false/ On 5/9/06,

How to dispaly application home page by default

2006-05-09 Thread Nandakishore Nekkanti
Hi , i have a requirement like this.When ever we enter the website address i want to display my application home page. Some thing like www.abc.com shoud be equal to www.abc.com/appName .If i am not giving appName in URL it is displaying tomcat home page. How can i achieve this.Provide me some

Add column to table via Javascript/JSTL

2006-05-09 Thread Stasica, Grzegorz
Hi, I know it's not directly connected with struts but perhaps somebody will be able to help me. My problem is that I've HTML table with rows/columns as value labels. On the intersection there is a corresponding value. table tr td/td tdhorizontal label 1/td /tr tr tdvertical label 1/td

[Shale] Dialog statemachine and errorconditions

2006-05-09 Thread hermod.opstvedt
Hi Having been fiddling around with the Shale dialogs, there is one thing that I feel could be improved on. The way it is now, if there is an error situation or if the user navigates away from a dialog and later on navigates to say the start of the dialog, an exception is raised. There is no

Re: Make base Action class a dispatch action

2006-05-09 Thread Niall Pemberton
On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote: What we has been brought from the stone ages: * Base Action class does not dispatch events * DispatchAction and its flavors do, but they do not allow a user to derive an action class from some another user's base action What we got now in

Re: [Shale] Dialog statemachine and errorconditions

2006-05-09 Thread Craig McClanahan
On 5/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Having been fiddling around with the Shale dialogs, there is one thing that I feel could be improved on. The way it is now, if there is an error situation or if the user navigates away from a dialog and later on navigates to say the

RE: How to dispaly application home page by default

2006-05-09 Thread Miquel Angel Seguí Munar
I think you can achieve what you want using Virtual Hosts in the definition of the Tomcat server.xml config file. Something like this: Host name=www.abc.com appBase=webapps Context path= docBase=appName/ /Host Hope this helps. Miquel Àngel Seguí Munar Sidiem s.l.

RE: [Shale] Dialog statemachine and errorconditions

2006-05-09 Thread hermod.opstvedt
Hi I'll do that. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Tuesday, May 09, 2006 12:23 PM To: Struts Users Mailing List Subject: Re: [Shale] Dialog statemachine and errorconditions On 5/9/06, [EMAIL PROTECTED] [EMAIL

DiscoverSingleton in ContextDestroyed

2006-05-09 Thread starki78
Hi, is anybody using this for releasing static resources when redeploying a web-application? DiscoverSingleton.release(); Does it work properly? Thanks a lot Starki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

URL needs www appended

2006-05-09 Thread Scott Purcell
Hello, I have a struts site in which all views are called from the action. Problem I encountered, is as follows: When users search for my site in the search field area, the site shows up, but when the user click the link the www is not there. Google sees my site as http://sitename.com

html:options collection design question

2006-05-09 Thread Stanislav
Hi! I want to set background color in drop down menu that is generated with html:options collection. Is there any way to do that? Here is code sample: html:select property=id styleClass=Podaci html:options collection=hmUserList property=user-1-0 labelProperty=user-2-0/ /html:select Tnx,

Struts using Sun One Studio 5 IDE

2006-05-09 Thread zahid mohammed
Hi, We are asked to build a new Struts application using Sun One Studio 5, Standard Edition IDE. I have'nt used it before. Is there any plugin I can install to use struts in Sun One? Links to some tutorials will be helpful. Thanks.

RE: Validator stops when an error is encountered

2006-05-09 Thread Mulligan, Scott H
Thanks Niall...that is exactly the type of thing I'm looking for. However, I tried it and it did not work. I suspect it is because I am using older versions of Struts (1.1) or commons-validator (1.0.2). Do I need to upgrade anything to get this functionality? I created my own workaround by

RE: URL needs www appended

2006-05-09 Thread David G. Friedman
Scott, How about adding a filter that checks the url and if it does not see www.sitename.com then it causes a redirect to the same PATH on the www.sitename.com path. The only problem might be any bookmarked or outside form submission pages if they have parameters to go with them. But there

Re: URL needs www appended

2006-05-09 Thread David Evans
if you are running on apache, you can use mod_rewrite to fix this, by including a rewrite rule, something like: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.domainname\.com$ [NC] RewriteRule ^(.*)$ http://www.domainname.com$1 [R=301,L] dave On Tue, 2006-05-09 at 08:26 -0500, Scott Purcell

Re: URL needs www appended

2006-05-09 Thread Thomas Joseph
From: David Evans [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, May 09, 2006 7:53 PM Subject: Re: URL needs www appended if you are running on apache, you can use mod_rewrite to fix this, by including a rewrite rule, something like: RewriteEngine on

RE: Validator stops when an error is encountered

2006-05-09 Thread Chaudhary, Harsh
Hi, This is probably a newbie question but here goes: If we call validation manually, the method signature reads: validate(ActionMapping, HttpServletRequest) I know what the request part does, but how and where does mapping fit in there? What does it do? And how does the validation framework use

Re: Make base Action class a dispatch action

2006-05-09 Thread Dave Newton
Niall Pemberton wrote: Personally I'm against this because IMO it just adds confusion/complexity to the Action class that is unnecessary for users who don't want to use the dispatch style. Not if you use my idea of making the 'execute' method the default dispatch. Of course, don't name one of

Re: Interesting question (to me)... Perl app conversion to SUNWappserver/Java/Struts

2006-05-09 Thread Dave Newton
Leon Rosenberg wrote: Define a servletmapping for the old url, write a servlet which simply redirects all requests to the new url. Done. Or filter with a list of old URLs = new URLs and redirect. Dave - To unsubscribe,

[OT] Re: Add column to table via Javascript/JSTL

2006-05-09 Thread Dave Newton
Stasica, Grzegorz wrote: The number of vertical labels is fixed. On the other hand the number of horizontal labels is dynamic. The Html table DOM model has a addRow() method but there is no corresponding addColumn() :( I'd appreciate any suggestion on how to generate such a table.

Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Andreas Hartmann
Hello! I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect(). The two filters are: Loginfilter and Blockfilter (some pages must be blocked in some circumstances).

Struts-Faces: Is this a bug?

2006-05-09 Thread A. Alonso Dominguez
Hi there! I'm trying to use the new struts-action framework, version 1.3.3 with tiles and faces. I'm following the example applications but I found possibly a bug when rendering a struts-based FormBean. The jsp code that I was using is as follows: s:errors / s:form action=/login id=login

re: html:options collection design question

2006-05-09 Thread Kyle Wu
maybe css would be one solution, edit your css class, and use styleClass attribute to ref it options ... ... styleClass=.mycssclass / Stanislav [EMAIL PROTECTED] 写道: Hi! I want to set background color in drop down menu that is generated with html:options collection. Is there any way to

NullPointerException when using DynaActionForm

2006-05-09 Thread fea jabi
form-bean name=NewEligibilityDynaForm type=com.formbeans.NewEligibilityForm dynamic=true form-property name=name type=java.lang.String/ form-property name=date type=java.lang.String/ form-property name=eligibleCust type=java.lang.ArrayList/

Re: NullPointerException when using DynaActionForm

2006-05-09 Thread Michael Jouravlev
On 5/9/06, fea jabi [EMAIL PROTECTED] wrote: form-bean name=NewEligibilityDynaForm type=com.formbeans.NewEligibilityForm dynamic=true form-property name=name type=java.lang.String/ form-property name=date type=java.lang.String/ form-property

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Dave Newton
Andreas Hartmann wrote: I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect(). [snipalottatext] I would be glad to get some help, Are you adding the

Re: NullPointerException when using DynaActionForm

2006-05-09 Thread fea jabi
sorry about that. here it is. yes, I have the action mapping right I guess. action path=/PrepareEligibilityAction type=com.actions.PrepareEligibilityAction name=NewEligibilityDynaForm scope=session forward name=success

Another Tiles Question

2006-05-09 Thread Troy Bull
I have another tiles question. I have an application with a header, footer leftmenu and body. My question is should i have 1 form layed out in my layout.jsp that surrounds all these tiles, or should i have a different form on each tile. For example if you edit a form in the body section and

Re: Insert into html TITLE based on passed URL paramter

2006-05-09 Thread Bryce Nesbitt
It seems that by the time I put the title, it is too late to affect the HTML page. Is anyone doing anything like this? I have a tiles template: titletiles:getAsString name=title//title Which is invoked from titles-defs.xml: definition name=.site.mumble extends=.site put

Re: Insert into html TITLE based on passed URL paramter

2006-05-09 Thread Dave Newton
Bryce Nesbitt wrote: But what I'd like to do is set the title of the HTML page, based on the parsed URL parameter (e.g. area=987). The proper title is not known until the jsp executes, and does a lookup on an xml file. Is this possible with tiles? How would one do it? Since you're not

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Andreas Hartmann
Hello Dave, Dave Newton wrote: Andreas Hartmann wrote: I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect(). [snipalottatext] I would be glad to get some

Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
I'm trying to set up a very basic(generic) validation with struts 1.1 (and tiles) and I can not get it to work. I'm not getting any errors or anything. Validation simply doesn't take affect. I believe I have everything in place. Here is some snippets from my file. Please let me know if you

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread Chaudhary, Harsh
I am not 100% on this as I don't know the package org.apache.struts.chain.commands.servlet.ValidateActionForm very well, but try extending your form from ValidatorForm from: org.apache.struts.validator.ValidatorForm Harsh. -Original Message- From: josh t [mailto:[EMAIL PROTECTED]

RE: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
My form is extending ValidatorActionForm, not ValidateActionForm. Sorry about that. Extending ValidatorForm instead didn't help. Since I'm not getting any sort of errors, it's very hard to figure out where the issue may reside. Chaudhary, Harsh [EMAIL PROTECTED] wrote: I am not

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Dave Newton
Andreas Hartmann wrote: No, that's not done. I thought, this would be done in the background by struts automatically. getContextPath is from J2EE, not Struts :) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Michael Jouravlev
On 5/9/06, Andreas Hartmann [EMAIL PROTECTED] wrote: Hello Dave, Dave Newton wrote: Andreas Hartmann wrote: I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the

Re: Struts-Faces: Is this a bug?

2006-05-09 Thread Wendy Smoak
On 5/9/06, A. Alonso Dominguez [EMAIL PROTECTED] wrote: Hi there! I'm trying to use the new struts-action framework, version 1.3.3 with tiles and faces. I'm following the example applications but I found possibly a bug when rendering a struts-based FormBean. ... While you wait for someone who

Re: Make base Action class a dispatch action

2006-05-09 Thread Michael Jouravlev
On 5/9/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote: What we has been brought from the stone ages: * Base Action class does not dispatch events * DispatchAction and its flavors do, but they do not allow a user to derive an action class

(Very O/T!) Oracle JDev configuration topic

2006-05-09 Thread Martin Gainty
Good Evening Fellow Coders- Since most of my development has used Oracle I have been using JDeveloper but encountered some problems when I downloaded latest 10G development distro for whatever reason the xalan libraries that come with the distro are not the right version..to correct I would

OverWrite the properties file Bundle.properties in Shale

2006-05-09 Thread emily chen
Hi, In Shale Bundle.properties file, the value of key token.invalid is: # org.apache.shale.component.Token token.invalid=Invalid resubmit of the same form I want to overwrite it to display more information. for example, change it to: # org.apache.shale.component.Token

Re: OverWrite the properties file Bundle.properties in Shale

2006-05-09 Thread Wendy Smoak
On 5/9/06, emily chen [EMAIL PROTECTED] wrote: I want to overwrite it to display more information. for example, change it to: # org.apache.shale.component.Token token.invalid=Invalid resubmit of the same form, but the first submit is processed. Is there any way to do that? Try

Re: OverWrite the properties file Bundle.properties in Shale

2006-05-09 Thread emily chen
yup... that is what we have, our own resource bundle, but it appears the s:token tag has the bundle key hardcoded to use the Shale Bundle file. Is there a way to tell the Tag, or perhaps the whole taglib to use our custom bundle instead of the one included in shale? Thanks,

Role-Based Menu Navigation

2006-05-09 Thread josh t
I want to build a role-based nested navigation menu : - Using Struts 1.1 with tiles - My menu.jsp will be used by all other JSPs (extension in the tiles def file) - The roles to build the menu will be retrived from the session. - I don't care about the java script part of the dropdown

Re: Make base Action class a dispatch action

2006-05-09 Thread Niall Pemberton
On 5/9/06, Michael Jouravlev [EMAIL PROTECTED] wrote: On 5/9/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote: What we has been brought from the stone ages: * Base Action class does not dispatch events * DispatchAction and its flavors do,

Re: Make base Action class a dispatch action

2006-05-09 Thread Dakota Jack
I agree completely with Niall on this one. I cannot believe that the basic action class could conceivably be considered to carry this overhead. On 5/9/06, Niall Pemberton [EMAIL PROTECTED] wrote: On 5/4/06, Michael Jouravlev [EMAIL PROTECTED] wrote: What we has been brought from the stone

Re: OverWrite the properties file Bundle.properties in Shale

2006-05-09 Thread Gary VanMatre
From: Wendy Smoak [EMAIL PROTECTED] On 5/9/06, emily chen wrote: I want to overwrite it to display more information. for example, change it to: # org.apache.shale.component.Token token.invalid=Invalid resubmit of the same form, but the first submit is processed. Is there

Re: Validation Issue - Validation Not Taking Affect

2006-05-09 Thread josh t
I've tried several things, but the form filed is not being validated. Am I doing the nested form attribute right in the validator.xml? josh t [EMAIL PROTECTED] wrote: I'm trying to set up a very basic(generic) validation with struts 1.1 (and tiles) and I can not get it to work. I'm not