RE: Split web.xml into multiple files

2004-05-03 Thread Prasad, Kamakshya
Hi, I tried xml entity. It worked though I have few doubts. This is part of the xml which have that reference http://java.sun.com/dtd/web-app_2_3.dtd"; []> Struts POC &xmlfrag; The "&xmlfrag" contains the servlet specification and everything is working fine but when I start

RE: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Andrew Hill
No container that I know of lets you selectively replace classes that have already been loaded into the class loader, because Java's class loader API doesn't support unloadClass() or replaceClass(). I use the Sysdeo plugin for eclipse with tomcat and it lets me make minor modifications to code '

Token Help Neede

2004-05-03 Thread shankarr
Hi! I have an issue in my web application. My control flow is as follows : 1. On cliking a link, show Page AA as a result of ForwardAction 2. User fills data in AA and then clicks submit button. 3. This submit button internally invokes my Action class Action1 which adds data to db and calls clas

Re: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Michael McGrady
Thanks for sticking with this "half-assed" idea for a bit, Craig. All this says, if I understand you, and I am fairly sure I do, is that if you change some class and have no way to reload it, without the container reloading then you have a problem unless you do something about it. That is to b

Mixed Struts Validator Framework and ValidationForm

2004-05-03 Thread Eric Noel
Is it possible to use both Strut's Validator Framework for some fields and validate other fields using my own validation via ActionForm class. If yes, can someone site an example. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Way to reload struts Action classes in WebLogic8.1

2004-05-03 Thread Michael McGrady
At 11:40 PM 5/2/2004, Craig McClanahan wrote: Michael McGrady wrote: Isn't it true, Craig, that this is not a problem for hot deploy of the classes that do this. If you have other classes that do not do this, then they cannot be hot deployed. But, what difference does that make? If someone w

Re: Token Help Neede

2004-05-03 Thread yoge
Hi Richie , include below line in the jsp that contains the form(AA in your case) <%@ page import="org.apache.struts.util.TokenProcessor" %> <% TokenProcessor token = TokenProcessor.getInstance(); token.saveToken(request); %> This should be included before tag. You should use in the d

RE: Array Validation

2004-05-03 Thread Takhar, Sandeep
Highlighting the error line (even though only the first error is returned). The input field in error's name will be returned with the error including the index I presume since no change was made to the 'hightlighting' code and it works. sandeep -Original Message- From: Niall Pemberton

RE: newbie struts-el best practices question

2004-05-03 Thread Takhar, Sandeep
Thanks Craig, that was helpful to understand. sandeep -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 3:13 AM To: Struts Users Mailing List Subject: Re: newbie struts-el best practices question Takhar, Sandeep wrote: >Where does Str

validation mask not working

2004-05-03 Thread Johannes Wolfgang Woger
Hi, my validator seems not to work with mask. snipped from validation.xml: mask ^[a-zA-Z]*$ I can insert numbers into my password form field without complains form the validator, there is a errors.invalid key in m

How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
Hi, how can a use internationalized text strings stored in a resource bundle as values of attributes? For example: I know, this will not work, but how can it be done? Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

struts-config.xml in jar file

2004-05-03 Thread Otto, Frank
Hi, I have a jar file, that contains a struts-config.xml. Is it possible to set the init parameter in web.xml, that struts find this struts-config file? config ??? Regards, Frank

Specified RequestProcessor not compatible with TilesRequestProcessor

2004-05-03 Thread Marcella Turner
Hi All, I would like to migrate a Struts application to a Struts-Tiles application. The application currently defines the controller as SecurityRequestProcessor, like so: However, I'm getting the following error when calling my first tiled jsp: [4/30/04 16:42:44:725 EDT] 74488c86 WebGroup

Setting html:text readonly attribute

2004-05-03 Thread John Moore
I'm having a big problem trying to dynamically set a value for the readonly attribute of an tag. I'm using a JSTL core tag to try to set it and whatever I do is ignored. In the example below, the newPurchase property is a boolean. If I use exactly this tag elsewhere on the page, it outputs tru

Re: struts-config.xml in jar file

2004-05-03 Thread Joe Germuska
At 3:05 PM +0200 5/3/04, Otto, Frank wrote: Hi, I have a jar file, that contains a struts-config.xml. Is it possible to set the init parameter in web.xml, that struts find this struts-config file? Not right now; however, there was some discussion on this topic on the struts-dev list a few weeks

Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
Use jstl! On May 3, 2004, at 6:51 AM, Ralf Schneider wrote: Hi, how can a use internationalized text strings stored in a resource bundle as values of attributes? For example: I know, this will not work, but how can it be done? Ralf.

trouble with taglibs in xml syntax

2004-05-03 Thread Tomasz Dreßler
Hi! I have problems to use the struts taglibs in jsp with xml syntax. When I use <%@ taglib uri="/WEB-INF/tags/struts-bean.tld" prefix="bean" %> the generated servlet contains the line '_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")' and everything is ok. But with the following syntax the

Re: Specified RequestProcessor not compatible with TilesRequestProcessor

2004-05-03 Thread Joe Germuska
This is mostly a side-effect of the RequestProcessor being a single class, rather than an interface. The SSL-ext project has a SecureTilesRequestProcessor class which solves your immediate problem. When we begin work on Struts 1.3.x (real soon now) we will integrate support for a composable

Re: trouble with taglibs in xml syntax

2004-05-03 Thread Kris Schneider
Try: xmlns:bean="urn:jsptld:/WEB-INF/tags/struts-bean.tld" But since JSP 1.2 you really don't need separate TLD files for packaged taglibs (like Struts and JSTL). This should also work: xmlns:bean="http://jakarta.apache.org/struts/tags-bean"; Then you can remove the TLD files from your app as w

RE: Mixed Struts Validator Framework and ValidationForm

2004-05-03 Thread salgado.pc
Yes. Extend the DynaValidator override the validate method validate(...) { ActionErrors errors = super.validate(...); // do your stuff if (...) { errors.add(...); } return errors; } Pedro Salgado On 04/05/03 9:40, "Eric Noel" <[EMAIL PROTECTED]> wrote

2 Actions 2- FormBeans

2004-05-03 Thread Frers Michael
Hello i have a little Problem and perhaps someone can help me out i have an actionclass (I) which has a FormBean now i send the HTML Form away. after i get a response from database i decide in my actionclass (i) that if only one hit in my database is coming back,(instead of more than 1) i pickup

Cannot run web application with struts framework in WSAD test environment

2004-05-03 Thread PADALA, SANDHYA (SBCSI)
Hi All, I have created a web project with struts support in WSAD 5.1 and an EAR project for this web project. I created a test environment in WSAD 5.1 for this web project. When I start the server I get the following error. Can anyone help on this. [5/3/04 9:21:12:092 CDT] 3f05edff Digester

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
Could you give a short example of how this can be done with JSTL or point me to an example? I looked into the Java Web Services Tutorial, but the chapter about internationalization with JSTL only describes the use of internationalized strings in the body of a tag (e.g. ). Ralf. Am Montag, 3.

Re: Security + struts

2004-05-03 Thread BaTien Duong
Pedro Salgado wrote: On 04/05/02 6:40, "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote: DMZ is short for "demilitarized zone" ... a term adopted for enterprise network infrastructures from the military use of the term. If you're writing an application for public access on the Internet, you'll

forwarding to a pop-up window

2004-05-03 Thread rchar
Hi, I'm new to struts. I have a JSP form which when submitted, needs to open a pop-up window that will display a confirmation message after processing is complete. How would I do this? Thanks. - To unsubscribe, e-mail: [EMAIL PR

Re: Specified RequestProcessor not compatible with TilesRequestProcessor

2004-05-03 Thread Marcella Turner
Joe, Thanks so much for your prompt reply! I have downloaded the sslext from SourcForge and am wondering if there is a user friendly migration document that I can reference which spells out the implementation. From: Joe Germuska <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAI

Validator execution-order, all at once possible?

2004-05-03 Thread nils . mueller
http://marc.theaimsgroup.com/?t=10590259932&r=1&w=2 Hi folks, I got stuck on a problem discussed earlier in this list (@see link above). Hope this hasn't been answered elsewhere - it was the only thing I could find. Forms seem to get validated in a certain order. First, all required fields

Re: Setting html:text readonly attribute

2004-05-03 Thread Jason Miller
Actually, you can't use a tag as the value of another tag's attribute. If you use the html-el taglib you can do something like this: John Moore wrote: I'm having a big problem trying to dynamically set a value for the readonly attribute of an tag. I'm using a JSTL core tag to try to set it

RE: Setting html:text readonly attribute

2004-05-03 Thread Paul McCulloch
You cannot use one jsp tag to supply another jsp tag with a value for an attribute. Some solutions are: 1) Use an html (rather than a jsp) tag: 2) Use a bean defintion and an rt expression: 3) Use struts el tag: Paul > -Original Message- > From: John Moore [mailto:[EMAIL PRO

Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
I am not 100% sure but I believe that you just use the tag. Just use something like... if you need to send parameters just put them in the body of the tag. Nathan On May 3, 2004, at 8:44 AM, Ralf Schneider wrote: Could you give a short example of how this can be done with JSTL

RE: Setting html:text readonly attribute

2004-05-03 Thread John Moore
At 16:09 03/05/2004, Paul McCulloch wrote: You cannot use one jsp tag to supply another jsp tag with a value for an attribute. This certainly explains my problem. I could swear that I was doing so successfully with an integer attribute, though, as I mentioned in my original post. Trying it again

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
But this is not the way I want to use it. This way, I could use it to put a translated text into the body of a tag like But how can I use the translated text as an attribute value as written before? Ralf. Am Montag, 3. Mai 2004 17:12 schrieb Nathan Maves: > I am not 100% sure but I be

RE: forwarding to a pop-up window

2004-05-03 Thread Ricardo Cortes
Here's an example of what I'm doing in my Struts application to handle opening up a popup window: ')">Reply The DisplayNotePopup action gets called when the user clicks on the link. The parameter messageSubject and messageRecipient g

Re: trouble with taglibs in xml syntax

2004-05-03 Thread Tomasz Dreßler
Thank you for your answer. It works. Can you help me understand why :) Someone looks in all jar's for 'http://jakarta.apache.org/struts/tags-bean' namespace? When I am use JSP 2.0 what I sould take instead of element? I use tiles so I can't take as root element. Greetings Kris Schneider schrie

Re: How to use resource bundle in attributes

2004-05-03 Thread bOOyah
Ralf Schneider wrote: how can a use internationalized text strings stored in a resource bundle as values of attributes? Hi Ralf Have you tried I use the 'titleKey' attribute like this on 'html:submit' buttons. -- bOOyah --

Re: How to use resource bundle in attributes

2004-05-03 Thread Nathan Maves
Sorry how about this.. I am not sure what the title attribute tag does. Since it is a struts only attribute you will have to use the struts el tags to access the var userNameTitle that is now in scope. in web.xml struts/html-el /WEB-INF/struts-html-el.tld make sure you have

Re: trouble with taglibs in xml syntax

2004-05-03 Thread Kris Schneider
As of JSP 1.2, the container makes packaged taglibs pretty easy to deal with. For details, you really should check out the JSP spec (or get a decent book). One of the things the container will do is inspect each JAR file in WEB-INF/lib and look for TLD files in their /META-INF dirs. If a TLD contai

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
Yes! That's exactly what I was looking for. Thanks a lot! I missed this attribute when looking through the endless list of attributes of the HTML taglib. Ralf. Am Montag, 3. Mai 2004 18:28 schrieb bOOyah: > Ralf Schneider wrote: > > how can a use internationalized text strings stored in a resou

Re: How to use resource bundle in attributes

2004-05-03 Thread Ralf Schneider
As a work-around I made it this way: ... But what I was looking for was the suggestion bOOyah made in this thread. You can simply use the titleKey attribute instead of title. titleKey uses the given text as a key for the resource file. Thanks for your help, Ralf. Am Montag, 3. Mai

nested:iterate & nested HashMap

2004-05-03 Thread Serhiy Brytskyy
Hi, There is a struts form: This hash map has got nested has maps. approximately next: LinkedHashMap itemsMap = new LinkedHashMap(); HashMap map = new HashMap(); map.put("Item1", new Integer(2)); map.put("Item2", new Integer(4)); map.put("Item3", new Integer(10)); itemsMap.put(new Inte

sslext - non-ssl http links available from https pages

2004-05-03 Thread Eric Dahnke
Hello List, We have implemented sslext to secure a certain section of our application / site. As part of the design / biz requirements the main navigation and many links in the headers and footers are all still available from the https protected pages. My question is whether we have to explicitl

sslext - non-ssl http links available from https pages

2004-05-03 Thread Eric Dahnke
Hello List, We have implemented sslext to secure a certain section of our application / site. As part of the design / biz requirements the main navigation and many links in the headers and footers are all still available from the https protected pages. My question is whether we have to explicitl

RE: forwarding to a pop-up window

2004-05-03 Thread Brian Lee
For your tag, set the target to a window name, then when you submit, call a javascript function that opens a new window with the same name. This will submit all the values from the current page into the targetted new window. I think you can also just do and it will submit into a new blank ht

RE: forwarding to a pop-up window

2004-05-03 Thread Ricardo Cortes
I forgot to include the popup() Javascript function: