code too large for try statement

2004-05-17 Thread Rahul Mohan
Hi, I have a JSP page with Struts and JSTL tags. It is pretty big with about 15 conrols and a *LOT* of JSTL tags. When I try host the page in Weblogic8.1 i get the following compile error: window.java:12652:code too large for try statement try {

Re: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Paraman
Hi Andrea, Quite agree with you. As for my application, I think the first one is the best choice: I needn't to do any thing else. - Original Message - From: "Andrea M" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 1:07 PM Subject: R

R: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Andrea M
Hi Paraman These are the two actions you're talkin' about: Now I see that the first one forwards a processAreasForm to the second, which in turn accepts evaluationForm That's very likely to be your problem So.. you have three options I guess - The one you found: setting the "

request for subscription

2004-05-17 Thread shankarr
subscribe

Re: App-level globals

2004-05-17 Thread Jacob Weber
You can make a ContextListener class like this: public final class MyContextListener implements ServletContextListener { private ServletContext context = null; public BaseServletContextListener() {} public void contextInitialized(ServletContextEvent event) { this.context = event.

Re: JSTL 1.1 EL not working :(

2004-05-17 Thread Nicolas De Loof
First, you don't need to set taglibs in your web.xml. Check that your web.xml declares "2.3" servlet api (in DOCTYPE) It should work Nico. > I've tried to use JSTL with my web app, and it's not working! > I downloaded jstl 1.1, and copied jstl.jar, and standard.jar to WEB-INF/lib. > I put the

RE: Problem with utf-8 encoding with struts

2004-05-17 Thread John Cavacas
This is not just a problem with JSTL, it's a "problem" with JSPs in general. A JSP page will default to the system encoding, and not what you may specify on the response somewhere up the chain. I'm aware of 3 options. 1) Use a Servlet filter as suggested. This only works on Servlet 2.3 and high

RE: Help with using declarative error handling

2004-05-17 Thread Patrick Cheng
Hi, What we do in our project is, we have a top level exception class, say, RootException(), which does nothing. Then you keep all your try catch, if you do whatever you want in the catch block, but at the end, you re ' throw new RootException("with your description in it") ' Now your global exc

Re: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Paraman
Richard, Firstly I should apologize for disturbing you. I have solved this problem by setting the 'redirect' attribute of the forward element which invoked the executeEvaluation action to 'true'. This forward is nested in another action called 'selectProcessAreas', thus, without setting the 're

Re: Help with using declarative error handling

2004-05-17 Thread Frank Burns
Hi Wendy, Thanks for your reply. I know that what you suggest is a solution. But I don't understand why what I originally tried doesn't work, which is to add some code in the catch block, before rethrowing it, for example like this: } catch(TrcDatabaseException ex){ /* add relevant action e

RE: Help with using declarative error handling

2004-05-17 Thread Wendy Smoak
> From: Frank Burns [mailto:[EMAIL PROTECTED] > However, the problem I am trying to solve is that my > AuthenticateAction > class can throw the TRCDatabaseException in SEVERAL places. > > I want to be able to display a DIFFERENT error message for > each place in the > code where the exception c

Re: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Richard Yee
Paraman, Are you submitting a form to the action? If so, you don't have the name of the form-bean as the 'input' argument to your executeEvaluation action. Regards, Richard --- Paraman <[EMAIL PROTECTED]> wrote: > Richard, > Thanks for your kind help. Following is the content > of my struts-con

Re: Help with using declarative error handling

2004-05-17 Thread Frank Burns
Thanks for your reply, Bill. I already appreciate the point you are making, However, the problem I am trying to solve is that my AuthenticateAction class can throw the TRCDatabaseException in SEVERAL places. The example you provide will display the same error message for ALL TRCDatabaseException

Re: Naveation pages.

2004-05-17 Thread Richard Yee
The error indicates that the input attribute for your action whose path is /tb_alarmeDataAction is invalid. This is most likely caused by specifying a non-existent formBean as the action's input Regards, Richard --- "Teixeira, Jorge (Informaker)" <[EMAIL PROTECTED]> wrote: > Help me pleash. > >

Naveation pages.

2004-05-17 Thread Teixeira, Jorge (Informaker)
Help me pleash. I tray developer one page but it show me this error, I can´t understand, plash tell me what I need alter. HTTP Status 500 - No input attribute for mapping path /tb_alarmeDataAction type Status report message No input attribute for mapping path /tb_alarmeDataAction description

R: use of session object in Action Form?

2004-05-17 Thread Andrea M
Correct Whatever the reason you need to access the session, you can do that using the request passed to the two methods Atta mentions. Getting a reference to the session from the request is trivial: HttpSession session = request.getSession(); -Messaggio originale- Da: atta-ur rehman [mail

R: Indexed property throws exception - HELP!

2004-05-17 Thread Andrea M
I've seen in another list someone resolving a problem like this using ArrayList instead of the interface List It's odd but the guy claims it worked. Maybe a bug in PropertyUtils.. don't honestly know. This is the link if you are interested http://www.junlu.com/msg/45025.html -Messaggio origin

RE: R: App-level globals

2004-05-17 Thread None None
Thanks everyone... Based on your recommendations, I found some reference material on plug-ins, I think that's precisely what I want. It's the closest to what the app currently has, so it certainly makes sense... should just be a matter of changing the base class and called method signature, no

Re: Using DispatchActions with validation

2004-05-17 Thread Nicholas L Mohler
Ron, We did something similar to the page that you have posted. We only clone the struts-config mappings. So for example, we have a SelectionPage (top) and a Detail Page. Validations are different for the selection and detail pages, but the action and form classes are the same. Lastly, ou

Re: Server side validation

2004-05-17 Thread Samuel Rochas
Hello Nicholas, Ok, thank you very much for the explanation, it makes the things a bit clearer and less magical to me. I have two questions: -Why making that difference once for all? I mean, why not just accept everything here (page, action, forward)? -Where is a good and complete documentation

R: App-level globals

2004-05-17 Thread Andrea M
Yeah Probably Struts' plugins are the most straightforward thing for you. Plugins are components that Struts loads once at startup, and they are often used (I use them in that way too) to load shared resources (like datasources) in servletcontext before every other component is load. -Messag

R: R: Sharing what I've learned: locale switching

2004-05-17 Thread Andrea M
Hi again I'm afraid I was kind of inaccurate in my previous answer you can retrieve session from the request, but that's only with forwards of course, and forwards work only in the same application. What you can do is to share your objects putting them in JNDI. JNDI tree is shared between all of

Re: use of session object in Action Form?

2004-05-17 Thread atta-ur rehman
Hi, As far as I know, both the reset() and validate() method are passed the request object. You could get the session from this request object. HTH, ATTA - Original Message - From: "Shyamal Shah" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, May

Re: JSTL 1.1 EL not working :(

2004-05-17 Thread Johannes Wolfgang Woger
Daniel Perry wrote: Am using tomcat 5. If i declare the uri in web.xml and include the .tld files, then the taglibs work, but el doesnt seem to work. I have never got problems with Tomcat5 and tlds declared in web.xml. Wolfgang Anyway, got rid of them and it's working fine now. Daniel. -Origin

RE: struts is giving error on weblogic81

2004-05-17 Thread Mick . Knutson
We might be interested in this. We are creating a new app on WLS 8.1 currently. Are there a list of specific items that are being fixed associated with WLS8.1? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 8:30 AM To: Struts Users Mailing List

Re: Using DispatchActions with validation

2004-05-17 Thread Ron Grabowski
> From: "Nicholas L Mohler" > <[EMAIL PROTECTED]> > Date: Mon, 17 May 2004 09:27:11 -0400 > > Hi Jacob, > > I asked almost the same question when we were > implementing validation. We > had the same issue with preparing things before > creating the user page. We > ended up creating an input tha

Indexed property throws exception - HELP!

2004-05-17 Thread Phan, Hienthuc T (Rosetta)
Hi, I encountered an index out of bound exception when using the indexed property. The problem I'm facing is that I can't debug this. The exception is not thrown either in the the form or the action. Do you know what cause this? <101017> <[ServletContext(id=4601745,name=scheduler,context-p

Re: Tiles - retrofit existing struts based wars

2004-05-17 Thread Joe Germuska
At 11:36 AM -0500 5/17/04, Kravchenko, Vyacheslav wrote: We have multiple wars deployed on WebSpehere server. All of our applications are using on Struts 1.1. I was hoping to find a way and retrofit tiles framework in our existing environment. Can we develop a separate tiles application that can

RE: App-level globals

2004-05-17 Thread Joe Germuska
At 5:33 PM +0100 5/17/04, Paul McCulloch wrote: Struts has plugins which, I think do the kind of thing you are after. Personally I've never used them - I just implement a ServletContextListener to do that sort of thing. This is exactly right: if you're using Servlet 2.2 (which doesn't have Servl

Tiles - retrofit existing struts based wars

2004-05-17 Thread Kravchenko, Vyacheslav
We have multiple wars deployed on WebSpehere server. All of our applications are using on Struts 1.1. I was hoping to find a way and retrofit tiles framework in our existing environment. Can we develop a separate tiles application that can integrate with existing apps in following ways:

RE: App-level globals

2004-05-17 Thread Paul McCulloch
Struts has plugins which, I think do the kind of thing you are after. Personally I've never used them - I just implement a ServletContextListener to do that sort of thing. Paul > -Original Message- > From: None None [mailto:[EMAIL PROTECTED] > Sent: Monday, May 17, 2004 5:17 PM > To: [EM

Re: Error from javax.servlet.ServletException: No getter method for property...

2004-05-17 Thread Daynell Trent
Thanks Naveen for quick response. It works after changing the property and its setter and getter methods from aEndNpaNumber -> aendNpaNumber getAEndNpaNumber -> getAendNpaNumber setAEndNpaNumber -> setAendNpaNumber but I still don't know why? > - Original Message - > From: "Joshi, Nav

App-level globals

2004-05-17 Thread None None
Hello again everyone... I am starting conversion of a none-Struts app to Struts, and mostly it's straight-forward, but two things I have questions about... The home-grown framework this app was written with has the notion of an App Loader. Basically, this is a class that runs at startup and re

Re: struts is giving error on weblogic81

2004-05-17 Thread Joe Germuska
Could this be related to Bug #26322, which indicates that Weblogic 8.1 expects just about everything to be serializeable? http://issues.apache.org/bugzilla/show_bug.cgi?id=26322 It doesn't appear that BasicDataSource implements Serializeable: http://cvs.apache.org/viewcvs/jakarta-commons/dbcp/src

Re: Error from javax.servlet.ServletException: No getter method for property...

2004-05-17 Thread dennis . graham
Have you tried "public String getaEndNpaNumber()" "Daynell Trent" <[EMAIL PROTECTED]> 05/17/2004 11:37 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:Re: Error from javax.servlet.ServletExc

Re: Error from javax.servlet.ServletException: No getter method for property...

2004-05-17 Thread Daynell Trent
sorry...mis type, here is the correct snippet of the code: - Original Message - From: "Daynell Trent" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, May 17, 2004 10:28 AM Subject: Error from javax.servlet.ServletException: No getter method for proper

Error from javax.servlet.ServletException: No getter method for property...

2004-05-17 Thread Daynell Trent
I'm running struts 1.1 with weblogic 7.04. I'm keep getting "No getter method for property aEndNpaNumber" but I've checked my ActionForm and it does has the getter and setter methods. Does anyone know what I'm doing wrong. This is my custom form: package com.struts.RequestCriteriaForm; publi

Re:

2004-05-17 Thread Domingo A. Rodriguez S.
Use html:options collection="dummyList" labelName="key" labelProperty="value" Implement this javabean.. public class Row implements java.io.Serializable{ Row(String key, String value){this.key=key;this.value=value;}; private String key=""; private String value=""; public String getKey(

RE: JSTL 1.1 EL not working :(

2004-05-17 Thread Daniel Perry
Am using tomcat 5. If i declare the uri in web.xml and include the .tld files, then the taglibs work, but el doesnt seem to work. Anyway, got rid of them and it's working fine now. Daniel. -Original Message- From: Andrea M. [mailto:[EMAIL PROTECTED] Sent: 17 May 2004 15:17 To: 'Struts U

RE: struts is giving error on weblogic81

2004-05-17 Thread Brian Lee
What exception do you see in the myserver.log or in the console out? Do you have the dbcp and oracle classes jar in your weblogic classpath? BAL From: Jignesh Patel <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: struts is giving error on weblogic81 Date: Mon, 17 May 2004 20:18:33 +0530 We are t

struts is giving error on weblogic81

2004-05-17 Thread Jignesh Patel
We are trying to deploy struts1.1 based application on weblogic8.1 which is already working fine on tomcat5.19. But it is giving problem because of following datasource code, if we remove it then we are not able to get the oracle database connection and if keep it, the code is not deploying Acti

Re: getting non-struts form elements

2004-05-17 Thread Matt Bathje
There are 2 problems with this - First (and biggest) it doesn't seem to work for me. I setup a test page, and am attempting to print out the form element names using request.getParameterNames(). This is the code I have: System.out.println("before"); for(Enumeration e = request.getParameterNames()

Re: Date Time field validation

2004-05-17 Thread Ivan
Ok thanks, we can see there is a problem with date and mask validation -There is no date(time) validators -Java regular expressions are not escaped for javascript logic. - Original Message - From: "Dean A. Hoover" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> S

R: JSTL 1.1 EL not working :(

2004-05-17 Thread Andrea M.
Hi Daniel Please tell us which container you are using JSTL 1.1 require JSP 2.0 + servlet 2.4 AFAIK the only ones that actually implement those specs are: Tomcat 5 SunOne 8 Jboss 4 If you are using other containers (e.g. Tomcat 4x) you need to use JSTL 1.0, that only require JSP 1.2 + servlet 2.3

RE: JSTL 1.1 EL not working :(

2004-05-17 Thread Daniel Perry
Well, that worked... So why does having the taglib files cause it to screw up? Daniel. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: 17 May 2004 14:55 To: Struts Users Mailing List Subject: Re: JSTL 1.1 EL not working :( Remove the TLD files from WEB-INF, remov

Re: Server side validation

2004-05-17 Thread Nicholas L Mohler
Samuel, If you look in the struts-config.xml file, within the tags, there is a statement - inputForward="true" - that indicates the type of value that will be specified in you input tags. If "true" is specified, then your input tags must refer to a forward name. If "false" is specified or

Error while creating form bean

2004-05-17 Thread Sameer Gijare
Hi , I am getting following error when constructing a action form.Can anyone point out the mistake.Thanks in advance... May 17, 2004 6:49:29 PM org.apache.struts.util.RequestUtils createActionForm SEVERE: Error creating form bean of class org.apache.struts.action.ActionForm java.lang.Instantia

Re: JSTL 1.1 EL not working :(

2004-05-17 Thread Kris Schneider
Remove the TLD files from WEB-INF, remove the elements from web.xml, make sure you're using a JSP 2.0 container (like Tomcat 5), and make sure you're using a Servlet 2.4 web.xml. Quoting Daniel Perry <[EMAIL PROTECTED]>: > I've tried to use JSTL with my web app, and it's not working! > I downloa

R: JSTL 1.1 EL not working :(

2004-05-17 Thread Amleto Di Salle
You don't have to declare the .tlds inside the "web.xml" Try elminate it! BR /Amleto -Messaggio originale- Da: Daniel Perry [mailto:[EMAIL PROTECTED] Inviato: lunedì 17 maggio 2004 15.50 A: Struts User List Oggetto: JSTL 1.1 EL not working :( I've tried to use JSTL with my web app, an

JSTL 1.1 EL not working :(

2004-05-17 Thread Daniel Perry
I've tried to use JSTL with my web app, and it's not working! I downloaded jstl 1.1, and copied jstl.jar, and standard.jar to WEB-INF/lib. I put the f.tld, fmt.tld, fn.tld in WEB-INF/. In my web.xml i've got: /WEB-INF/c.tld /WEB-INF/c.tld /WEB-INF/fn.tld /WEB-INF/fn.tld

support for non-default resource bundles in validation

2004-05-17 Thread Marcus Vinicius W. Ferreira
Hello, The Struts supports different resource bundle in the validation.xml? The dtd http://jakarta.apache.org/commons/dtds/validator_1_1.dtd allows the bundle attribute to the msg and arg tags, but the validator ignore this attribute. Marcus

support for non-default resource bundles in validation

2004-05-17 Thread Marcus Vinicius W. Ferreira
Hello, The Struts supports different resource bundle in the validation.xml? The dtd http://jakarta.apache.org/commons/dtds/validator_1_1.dtd allows the bundle attribute to the msg and arg tags, but the validator ignore th

Re: Using DispatchActions with validation

2004-05-17 Thread Nicholas L Mohler
Hi Jacob, I asked almost the same question when we were implementing validation. We had the same issue with preparing things before creating the user page. We ended up creating an input that forwarded to a mapping that was basically a duplicate of the one with the validation failure. The o

Slightly off topic- Ant build script with array

2004-05-17 Thread as as
HI all, Sightly off topic I guess but I felt I could post here coz sometimes I saw discussions about Apache ANT. Wnated to know how we can pass array values in a target for ant script (.xml file) I have an array - colorCodes declared as string in my array-red blue green yellow etc my ANT script cu

Re: Linking DispatchActions

2004-05-17 Thread Nicholas L Mohler
Hi Guillermo, You should be able to add ?method=method2 to your path statement (. We use something very similar for the input tag. The only thing we do differently is that we use a different parameter name. Whereas our base action mappings use dispatchAction as the parameter, we use "valid

Re: use of session object in Action Form?

2004-05-17 Thread Joe Germuska
At 3:13 AM -0400 5/17/04, Shyamal Shah wrote: I need to use session object in my Action Form class. Can I use either session or request object in my form class? If yes can someone please suggest how can I do that? What exactly do you mean by "need"? With the current Struts architecture, there's n

Re: Date Time field validation

2004-05-17 Thread Dean A. Hoover
I'm not sure if this will help but how about escaping the forward slashes; ^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}$ you may have to escape the backslashes as well (you have to do this when constructing a RE in C: ^\\d{2}\\/\\d{2}\\/\\d{4} \\d{2}:\\d{2}$ don't know about javascript... just a thought. Dean

RE: R: Sharing what I've learned: locale switching

2004-05-17 Thread Kransen, J.
If I understand you right, you want data (in this case the locale) to be stored at a scope higher than session, because it involves more webapps, but less than "application", because it is user (session) specific. Far as I know, there is no such scope defined. Maybe you can simulate this behaviour

Re: R: Sharing what I've learned: locale switching

2004-05-17 Thread Jan Normann Nielsen
Andrea M. wrote: Hi Jan What do you mean with "sharing user chosen locale"? Does your user access thru a common login application? If it's something like that, then you might share your Locale putting it in session Session.setAttribute("myLocale", myLocale); Then retrieving it in the other applicat

Responding to Your Newsletter Request

2004-05-17 Thread requests
Your request was not completed because the newsletter "Me" could not be found. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Unsubscribe Me !!

2004-05-17 Thread Rohit A Nair
  On Mon, 17 May 2004 Ronald van den Heuvel wrote : >Hm ok I will try the filter but this is not the real solution because I >am not using any other taglibs. Only the standard Struts taglibs. > > > >-Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] >Sent: maandag 17 mei

RE : Struts 1.1 & XHTML [html:form]

2004-05-17 Thread Le Goff, Yoann
Hi, I'm talking about the render Not about the use of the struts tag. About style & id, all is ok ;o) Thx. Yoann -Message d'origine- De : Andrea M. [mailto:[EMAIL PROTECTED] ] Envoyé : lundi 17 mai 2004 12:40 À : 'Struts Users Mailing List' Objet : R: Struts 1.

Re: Help with using declarative error handling

2004-05-17 Thread Bill Schneider
Hi, try changing the exception handler in struts-config.xml to You can get rid of the whole catch block in your action--the ActionServlet takes care of it. That's the beauty of declarative exceptions. -- Bill >> Wherever an exception is thrown in AuthenticateAction, I add some code in >> the ca

RE: Problem with utf-8 encoding with struts

2004-05-17 Thread Ronald van den Heuvel
Hm ok I will try the filter but this is not the real solution because I am not using any other taglibs. Only the standard Struts taglibs. -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: maandag 17 mei 2004 13:50 To: 'Struts Users Mailing List' Subject: RE: Probl

RE: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Kransen, J.
> <%@ page buffer="64kb" autoFlush="false" > contentType="text/xml; charset=UTF-8" %> Hurray, that was the solution :-D Thanks, Jacob! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: Problem with utf-8 encoding with struts

2004-05-17 Thread Paul McCulloch
That's an old version I gave the URL for. A better place to look would be in the Tomcat source. Paul > -Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: Monday, May 17, 2004 12:47 PM > To: 'Struts Users Mailing List' > Subject: RE: Problem with utf-8 encoding wit

RE: Problem with utf-8 encoding with struts

2004-05-17 Thread Paul McCulloch
This can happen if you use JSTL tags which overwrite whatever response encoding you set. This can be fixed by using a filter to force the encoding http://www.anassina.com/struts/i18n/SetCharacterEncodingFilter.java Paul > -Original Message- > From: Ronald van den Heuvel [mailto:[EMAIL P

RE: DynaActionForm/DynaValidatorForm 'losing' state

2004-05-17 Thread Mainguy, Mike
The first things I would investigate would be #1 Do you REALLY have sticky sessions (could be misconfigured) #2 Are ALL the session timeouts set properly? Is the sticky session is set to timeout after 5 minutes but the app server session times out after 10 minutes or visa versa. #3 Is the user id

Re: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Jacob Weber
In article <[EMAIL PROTECTED]>, "Kransen, J." <[EMAIL PROTECTED]> wrote: > Hello, I generate an XML file from within a JSP in Tomcat. Especially after > 16384 bytes the contents are really interesting. Unfortunately, Tomcat > disagrees and truncates it. It can't be coincidence that this is 16k >

DynaActionForm/DynaValidatorForm 'losing' state

2004-05-17 Thread Daniel Haynes
** Your attention is drawn to the warning notice at the end of this message. ** An intermittent bug is occurring o

Problem with utf-8 encoding with struts

2004-05-17 Thread Ronald van den Heuvel
Hello all, I am using Struts for a web-application and the web-page should be in UTF-8 encoding, but the application keeps sending the following header: Content-Type: text/html;charset=ISO-8859-1. I take the following action to get the page into UTF-8. - in the struts config file:

Linking DispatchActions

2004-05-17 Thread Guillermo Meyer
Hi: I have 2 Action classes (ActionA, ActionB) that extends DispatchAction class. Each Action has 3 methods: method1, method2 and method3. This is the executing scenario: 1) a post is made to ActionA.do with parameter set to "method3". 2) DispatchAction execute method3 according to parameter value

R: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Andrea M.
Hmm I don't know about this 16k limit, but AFAIK you can set any kind of content type in your jsp. JSPs are ultimately servlets (once translated), so you have no limit in content types e.g. I used to set "text/xml" for creating dynamic JNLP files with jsps -Messaggio originale- Da: Kran

RE: [very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Adolfo Miguelez
I did have similar experiences parsing files by myself using SAX parsing. Xerces and other parsers chop files in blocks. 16k is the default size for xerces, or at least it was. Hander code must be aware of that, in the events handling, and hold strings from one block to the other if one tag is

R: Struts 1.1 & XHTML [html:form]

2004-05-17 Thread Andrea M.
Hi Yoann Why do you need a "name" on your form? In Struts it usually identifies the name of the actionForm it uses, but that is usually set in struts-config. If a unique identifier of the then 'styleId' attribute might be what you want, since it renders an 'id' attribute (ibid http://jakarta.apach

[very OT] 16 kb limit in XML from Tomcat?

2004-05-17 Thread Kransen, J.
Hello, I generate an XML file from within a JSP in Tomcat. Especially after 16384 bytes the contents are really interesting. Unfortunately, Tomcat disagrees and truncates it. It can't be coincidence that this is 16k precisely, so I hoped to find a configuration item set to 16k (in fact I hoped not

RE: Struts 1.1 & XHTML [html:form]

2004-05-17 Thread Kransen, J.
That's a known issue and is solved in 1.2 > -Oorspronkelijk bericht- > Van: Le Goff, Yoann [mailto:[EMAIL PROTECTED] > Verzonden: maandag 17 mei 2004 11:55 > Aan: 'Struts Users Mailing List' > Onderwerp: Struts 1.1 & XHTML [html:form] > > Hi, > > My render a form with a name="toto" attr

Re: About multiple Resourcebundles

2004-05-17 Thread Harjot Narula
Hi You dont need anything in web.xml except from config parameter name and value which I beleive you would have given. Just let me know if you are using tiles by any chance. We had some problems in the application we developed due to tiles. Just make sure that name of the files in classpath matc

Struts 1.1 & XHTML [html:form]

2004-05-17 Thread Le Goff, Yoann
Hi, My render a form with a name="toto" attribute corresponding to my struts-config bean. All is right, But XHTML 1.1 do-not accept name attribute in a form tag ... Is somebody got an idea ? I've ever try in my jsp. It works form tag but for form tag, it doesn't. Thx ! Yoann

R: About multiple Resourcebundles

2004-05-17 Thread Andrea M.
Yes that's the way you access the bundles. Your web.xml has nothing to do with message resources However... instead of asking "will it work?" perhaps it would be a better idea to try it out first, and eventually ask "why didn't it work?" then :) Andrea -Messaggio originale- Da: SMETS

About multiple Resourcebundles

2004-05-17 Thread SMETS Thomas
Dear, I am struggling a bit with the usage of more than one Resourcebundle in Struts-config.xml. I have defined two "property" files in my classpath : _ ApplicationResources.properties _ ApplicationResources2.properties The bottom line is (I think) how do I access the messages

RE: UTF8 and Chinese

2004-05-17 Thread Michael McGrady
UTF-8 works fine with Chinese and everything else. I am doing it. It can be used, and I do use it, on each JSP page no matter what the language. I am presently using 19 which all work fine with UTF-8. I wondered about that. And, I am not saying that UTF-8 is always the way to go. But it d

Re: UTF8 and Chinese

2004-05-17 Thread Cees van de Griend
Hello Jeroen, On Monday 17 May 2004 10:42, Kransen, J. wrote: > Anyone tell me if I'm wrong, but I doubt if UTF-8 covers Chinese. As I see > it, it only contains 8 bits per character, instead of ASCII's 7 bits, and > for that reason I assume it only covers 2* the number of chars. Maybe you > can t

R: Sharing what I've learned: locale switching

2004-05-17 Thread Andrea M.
Hi Jan What do you mean with "sharing user chosen locale"? Does your user access thru a common login application? If it's something like that, then you might share your Locale putting it in session Session.setAttribute("myLocale", myLocale); Then retrieving it in the other applications with (Local

RE: UTF8 and Chinese

2004-05-17 Thread Kransen, J.
Anyone tell me if I'm wrong, but I doubt if UTF-8 covers Chinese. As I see it, it only contains 8 bits per character, instead of ASCII's 7 bits, and for that reason I assume it only covers 2* the number of chars. Maybe you can try UTF-16 instead? Jeroen > -Oorspronkelijk bericht- > Van:

Re: Sharing what I've learned: locale switching

2004-05-17 Thread Jan Normann Nielsen
None None wrote: Because this might be helpful to others, and because I probably would have spent another couple of hours figuring it out on my own without the help of some people on this lsit, I wanted to give back as much as I could. So, here's a consolidated bit of info I've learned about s

Re: Session attributes lost when open a popup window

2004-05-17 Thread brati . sankarghosh
Hi lozano I had the same problem. whenever i close the pop up window the session is lost in the parent window too. I am using JDeveloper as IDE and weblogic to deply. Someone adviced me that this is a problem with the OC4J contained shipped with JDeveloper. But I doubt this may also be due to some

Date Time field validation

2004-05-17 Thread Ivan
Hi, I have a form field representing a date in the format dd/MM/ HH:mm (14/05/2004 13:03) My problem is that validator cannot handle time in its date validations rutines. Neither using mask validation with the regular expression ^\d{2}/\d{2}/\d{4} \d{2}:\d{2}$ works, because it throw a jav

use of session object in Action Form?

2004-05-17 Thread Shyamal Shah
I need to use session object in my Action Form class. Can I use either session or request object in my form class? If yes can someone please suggest how can I do that? Thanks,