RE: How to read a parameter in web.xml from Action class

2004-05-19 Thread Ashutosh Satyam
One more addendum to this. In case you want this intialization parameter to be available to all the servlets in your web application, then it should be defined like this in web.xml myParamName myParamValue Now you can call getInitParameter("myParamName") on the ServletContext to retrieve i

Re: connection pooling

2004-05-19 Thread brati . sankarghosh
If 5 users are simultaneously using the database connections then you need to create more connections. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Lokanath <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 05/20/2004 10:11 AM Please re

Form repopulation after validate

2004-05-19 Thread brati . sankarghosh
We are using the validate method to validate the action form. However if validate returns false then we return to the same page from where we came. But on returning, the form in the page remains blank. How can we show this form populated. Thanks DISCLAIMER: The information contained in this messa

Re: Multiple Databases.

2004-05-19 Thread Vishal Arora
well that not the problem but my problem is that i want to connect to different databases in my application and i m using datasource object and in my xml file i have given the details of my database url,username,password etc etc. but now i want to connect to another database and if in struts-c

RE: How to read a parameter in web.xml from Action class

2004-05-19 Thread Ashutosh Satyam
Try using the below mentioned code to read intialization parameter defined in the Web descriptor file. String sname = servlet.getInitParameter("myParamName"); OR ServletConfig config = servlet.getServletConfig(); String sname = config.getInitParameter("myParamName"); 'servlet' is a

Re: Multiple Databases.

2004-05-19 Thread Riyad Kalla
IIRC you should use the connection pool mechanism of your App Server and not Struts... I believe its use was deprecated (someone please correct me if I'm wrong). Vishal Arora wrote: Hi, I want to connect to different Databases in my application using the connection pooling of struts.How can

Re: connection pooling

2004-05-19 Thread Riyad Kalla
If your pool max is 4, then you will see 4 and your 5th user will wait until someone returns their connection to the pool. Lokanath wrote: hi all i have a doubt over connection pooling.When 5 users are using a project in struts and if i have defined the maximumnumber of connection to 4 .Then how

Multiple Databases.

2004-05-19 Thread Vishal Arora
Hi, I want to connect to different Databases in my application using the connection pooling of struts.How can i implement this and what all changes i have to make in my application and struts-config.xml file to use such a scenario.If anybody can provide an example it will be very helpfull.

connection pooling

2004-05-19 Thread Lokanath
hi all i have a doubt over connection pooling.When 5 users are using a project in struts and if i have defined the maximumnumber of connection to 4 .Then how many connection will be estblished.What i mean to say is how many visible connection will be there in mysqlprocess lokanath

RE: struts-bean:write and dynamic property parameter?

2004-05-19 Thread Rahul Mohan
hi dennis,    ya...if u r using the rt version of taglibs u can use property="<%=parameter%>" . if u r using the el tags then use property="${parameter}"    hope this helps   rahul -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 18,

Multiple nested Hashmaps. Limit?

2004-05-19 Thread Randy Shelley
I am running into a problem with multiple Mapped nested properties When I use the following lines to access the Value form my dynaValueObj Object I get this error <% String value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo lumnValue"; %> [ServletException in

RE: [OT] Stress testing?

2004-05-19 Thread adam
You can also check out the Grinder 3 for stress testing your application. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 4:27 PM To: Struts Users Mailing List Subject: RE: [OT] Stress testing? I've used JUnit and JUnitPerf to drive t

Invalid Path

2004-05-19 Thread Hammer
Hi, I am getting the following "Invalid path" error when I tried to add a action tag block in the struts-config.xml. Any idea why this is happening? The error I am getting is : Error Code : 400 Error occured while p

Problem with Content length

2004-05-19 Thread itsraghuveerhere
Hi, I work for a financial organization. All of our applications will have to go thru a common portal for authentication and authorization. The problem is that this Portal has a limit of the output to be written. If we dont SPECIFY the CONTENT LENGTH of our pages and our pages contain exceed

Re: struts-bean:write and dynamic property parameter? (SOLVED)

2004-05-19 Thread DGraham
Never mind...seems that my email was the catalyst to jiggle the response out of the recesses of my brain. Thanks, Dennis Dennis Graham/EvergreenFunds 05/18/2004 02:09 PM To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject struts-bean:write and dynamic property paramete

struts-bean:write and dynamic property parameter?

2004-05-19 Thread DGraham
Is there some way to pass a pass a parameter to the "property" attribute of struts-bean:write tag? Thanks, Dennis- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[ANN] Velocity Tools 1.1 released

2004-05-19 Thread Nathan Bubna
The Velocity team is happy to announce the release of Velocity Tools 1.1. This release includes: - support for Struts 1.1+ features (e.g. modules, sslext, tiles, and validator) - much improved generic tools (DateTool, MathTool, etc.) - several new tools (ImportTool, CookieTool, etc.) - support for

Include common javascript file with relative path

2004-05-19 Thread Ding Lei
Hello folks, There is a common jsp file named common_header.jsp used throughout the system, under PROJECT_ROOT/js/ directory, and various function jsp files are under different subdirs of PROJECT_ROOT, for example, appEdit.jsp,appRemove.jsp under PROJECT_ROOT/app directory. Now t

Re: How to read a parameter in web.xml from Action class

2004-05-19 Thread Frank Burns
Sorry, see my CORRECTION below: - Original Message - From: "Frank Burns" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, May 20, 2004 4:19 AM Subject: How to read a parameter in web.xml from Action class > Hi, > > From an Action class, I want to r

How to read a parameter in web.xml from Action class

2004-05-19 Thread Frank Burns
Hi, >From an Action class, I want to read a parameter specified in the web.xml file. I thought I could place it in an block, within the action element, like this: myParamName myParamValue and then read it within the Action class using: String paramValue = request.getS

RE: [ot] eclipse vs. IDEA

2004-05-19 Thread Shane Mingins
> -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Thursday, 20 May 2004 2:34 p.m. > To: Struts Users Mailing List > Subject: Re: [ot] eclipse vs. IDEA > > I can't say concerning the Mac, but on both Windows and Linux IDEA has > always seemed to perform better than

Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Riyad Kalla
IDEA (Swing) currently performs better on Mac and Linux because (a) IBM is dragging their feet getting the performance of SWT up to par on those non-Windows platforms. There was a HUGE stink about Linux performance, starting here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=37683, that result

Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Rick Reumann
Andy Engle wrote: I am wondering (for you Mac users out there) if IDEA is less of a resource hog than eclipse? I can't say concerning the Mac, but on both Windows and Linux IDEA has always seemed to perform better than Eclipse. (Surprising because I don't even think IDEA uses SWT.) I've used bo

form processing

2004-05-19 Thread Dean A. Hoover
I don't quite understand how DynaActionForm gets populated when a form is submitted. The form I have gets processed exactly as I expect, except for a group of checkboxes (generated in JSP by a custom tag I wrote). If I have one or more checked it works fine. However, if I uncheck all of them, it fa

Re: [ot] eclipse vs. IDEA

2004-05-19 Thread Pedro Salgado
On 04/05/19 23:57, "Andy Engle" <[EMAIL PROTECTED]> wrote: > Hi all, > I tested IDEA 3 and it ran great on my G3 600MHZ (640Mb RAM) with Jaguar. Last week, I checked IDEA 4 with Panther on the same machine... It ran great but, a little bit slower than the previous version but good enough, ev

Taglib to convert http:// to link

2004-05-19 Thread Satish Satish
Hi, Is there a taglib to convert a string starting with http:// or https:// to a link. Example: Suppose the data in the db is "Please click the link http://www.home.com for more details" When I retrieve this data and put it in jsp (using ) the url is not a link. So is there a taglib which can

ActionForm does not work in InternetExplorer...

2004-05-19 Thread Scott Tavares
... but works in mozilla. Hi all, I'm trying to implement the 'Value List Handler or Page by Page Iterator' design pattern in Struts. I'm hoping to use one Action to do scrollFirst, scrollLast, scrollNext, and scrollBack by sending which direction to 'scroll' in by passing a value into a FormBean

nested property and javascript reference

2004-05-19 Thread ZCurtis
I am struggling with using javascript to reference a nested property that is two levels deep. I didn't seem to find anything on this topic that helped me when searching the archive list. Here is an example of my code that is not working because document.forms[0].myHidden does not exist. JSP cod

RE: html:select onchange question

2004-05-19 Thread Tom McCobb
I got it. The form bean referred to in the stmtDetail.do (DetailForm)is a different one than where the selMtr property lives (HeaderForm), and I just had to loop through a mapping that took me through the HeaderForm first. -Original Message- From: Tom McCobb [mailto:[EMAIL PROTECTED] Sent

Struggled for Days. Please Help With This NullPointerException Problem.

2004-05-19 Thread Caroline Jen
Please help me to find the possible place the problem comes from. I have been struggling with this problem for days. I tried a number of things but just could not get rid of the problem. The Tomcat log does not give enough clue to trace where the problem occurs. My class extends Action. But t

[ot] eclipse vs. IDEA

2004-05-19 Thread Andy Engle
Hi all, I am wondering (for you Mac users out there) if IDEA is less of a resource hog than eclipse? When I fire up eclipse on my Mac it seems like that thing takes a lot o' juice. Is IDEA just as bad, or is it a little lighter? Thanks, Andy --

html:select onchange question

2004-05-19 Thread Tom McCobb
I have read most of the archived messsages on this subject, and I am still left with questions. Here is my basic problem: When I change the value of the SELECT by selecting a new option, I expect the new value to be set in the form bean. I then want to be able to retrieve the value from the form

getResource(path)

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
I just read in SCWCD exam prep book about this method: "You can not pass a URL of any active resource -- for example, a JSP page or servlet -- to this method." I thought you could serve up your JSP pages, i.e., their actual JSP code using this method. What does the above statement mean? Thanks.

Re: [OFF TOPIC] - iterate over Two Dates

2004-05-19 Thread Martin Gainty
Julio: Did you check out the Jakarta Taglib DateTime Tag? http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html HTH, Martin - Original Message - From: "Julio Cesar De Salvo" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, May 19, 2004 4:39

RE: Newbie question

2004-05-19 Thread Glenn Wilson
this.servlet.getServletContext(); HTH, Glenn -Original Message- From: Chaikin, Yaakov Y (US SSA) [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 3:22 PM To: [EMAIL PROTECTED] Subject: Newbie question Hi, How do you get at ServletContext object inside an Action? Thanks. Yaako

Dot notation with Validator?

2004-05-19 Thread David Erickson
Is it possible to use dot notation with the xml validator? Ie i want to validate the zipcode String which is a member variable of my reference object which is on the form. Ie reference.zipcode? I've tried but havn't been successful.. anyone else solved this? This is essentially what I'd like to

Newbie question

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
Hi, How do you get at ServletContext object inside an Action? Thanks. Yaakov Chaikin Software Engineer BAE SYSTEMS 301-838-6899 (ph) 301-838-6802 (fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [OT] Stress testing?

2004-05-19 Thread Martin Gainty
Greg- Have you looked at Clover? http://www.thecortex.net/clover/index.html HTH, Martin - Original Message - From: Greg Hess To: Struts Sent: Wednesday, May 19, 2004 4:28 PM Subject: [OT] Stress testing? Hi All, I am looking for a tool to help me stress test my app

[struts workflow extension] workflow violation ?s

2004-05-19 Thread Wood, Derek (DIS Contractor)
workflow violation seems to work when trying to navigate off the workflow when pressing the browser's back button or reload button and when selecting a navigation link when the link points to a resource within the current application context. can't anything be done to prevent a workflow violation

[OT] Stress testing?

2004-05-19 Thread Greg Hess
Hi All,   I am looking for a tool to help me stress test my application and would greatly appreciated any recommendations, suggestions on how to perform such testing and any procedures to followJ.   My requirements:   1)   Mimic the work flow process for processing a transaction

struts ClassCastException

2004-05-19 Thread ksitron
My web-app runs great when first starting JBoss. After making src changes to my web-app, I build, and redeploy using ant. I then attempt to test my changes by going down the exact same html:link navigation as before, only to receive a ClassCastException from org.apache.util.RequestUtils.createAc

RE: [OT] Stress testing?

2004-05-19 Thread Chappell, Simon P
I've used JUnit and JUnitPerf to drive tests written with HttpUnit. These worked well for me, allowing me to stress our Struts app to levels of 100 simultaneous users. Is that stressful enough for you? (It certainly stressed out our DB2 DBA's watching what all that application activity did to th

[OFF TOPIC] - iterate over Two Dates

2004-05-19 Thread Julio Cesar De Salvo
Hi , sorry about this but maybe someone has had the same trouble. I need to iterate over to Date object, what's the best way? Thanks, Julio Cesar De Salvo

Re: [OT] Stress testing?

2004-05-19 Thread Niall Pemberton
http://marc.theaimsgroup.com/?l=struts-user&m=108387088028600&w=2 http://www.opensta.org/ - Original Message - From: Greg Hess To: Struts Sent: Wednesday, May 19, 2004 9:28 PM Subject: [OT] Stress testing? Hi All, I am looking for a tool to help me stress test my application and woul

new to jcl and tcl scripts?

2004-05-19 Thread sudheshna aaa
Hi Team, I am new to jcl or tcl scripts. Is there any site where I can quickly get a grasp of them? Thanks for your help. SD _ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.click-

RE: [OT] Stress testing?

2004-05-19 Thread Greg Hess
Thanks Simon, Actually I have been assigned to test 100 simultaneous users as a max, so that would do fine. We do have some JUnit tests in the bag that we use but I haven't worked with them yet. I will have a look at HttpUnit, hope SSL is supported because our application runs exclusively on SSL.

Ant scripts for websphere4.0

2004-05-19 Thread sudheshna aaa
Hi, May be I am in the wrong mailing list. I posted in ant mailing list and did not get any response. Do anybody have any ant scripts for any of the below tasks in websphere 4.0: 1.stopping the server group 2.deploy the ear on one of the node 3.copy the deployed ear to clustered env 4.start the s

RE: R: R: Turning OFF auto form population?

2004-05-19 Thread None None
Ok, good enough. If that's the only way than that's that. Thanks for the replies! From: "Amleto Di Salle" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: R: R: Turning OFF auto form population? Date: W

RE: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Geeta Ramani
Dan: Here you go: http://archive.apache.org/dist/jakarta/struts/old/release/v1.0.2/ Geeta > -Original Message- > From: Dan Tarkenton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 19, 2004 2:32 PM > To: Struts Users Mailing List > Subject: Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spe

RE: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Pingili, Madhupal
I have 2 web applications using Struts 1.1 running successfully on WebSphere 4.0.4 (Servlet 2.2/JSP 1.1) for about 9 months now. WebSphere 5.0.x supports Servlet 2.3/JSP 1.2 specs. So, you can mix filters, context listeners with Struts 1.1 concepts. -Reddy > -Original Message- > From:

Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Dan Tarkenton
Geeta: I can't seem to locate v1.02 via google search. I couldn't find it at http://apache.mirrors.pair.com/jakarta/struts/struts-legacy/ either. Any idea where I can get a copy of the struts 1.02 binaries? Thanks, Dan Geeta Ramani wrote: Dan: Struts 1.1 requires at least Tomcat 4.0. You will

Re: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread benanderson
I was actually wondering the same thing as I will be starting a project using a version of WebSphere(5, I think) that supports 2.2/1.1. According to this page: http://jakarta.apache.org/struts/status.html all 1.x Struts releases should work on a 2.2/1.1 server. -Ben Quoting Dan Tarkenton <[EMAI

R: R: Turning OFF auto form population?

2004-05-19 Thread Amleto Di Salle
Hi, you are right when you said "...I'd like to avoid doing that...", but unfortunely the only possible solution is to extend the RequestProcessor and override the processPopulate() method. Maybe the solution is to eliminate the RequestUtils.populate inside the processPopulate() method, i.e prote

RE: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Geeta Ramani
Dan: Struts 1.1 requires at least Tomcat 4.0. You will have to stick with Struts 1.02. Regards, Geeta > -Original Message- > From: Dan Tarkenton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 19, 2004 2:20 PM > To: [EMAIL PROTECTED] > Subject: Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec

Tomcat 3.3.1 and Servlet 2.2/JSP 1.1 spec compatibility

2004-05-19 Thread Dan Tarkenton
I've used struts with great success in the past on some of the latest application servers available today. However, I have a client who necessitates the use of Tomcat 3.3.1. I know that Tomcat 3.3.1 supports the Servlet 2.2 and JSP 1.1 specifications. I only have experience with Struts with

RE: R: Turning OFF auto form population?

2004-05-19 Thread None None
That's interesting, I knew Struts was designed to be extended in a number of places, I hadn't thought of doing that... However, I've purposely NOT extended it in some other places, and I'd like to avoid doing that, just from a philosophical point of view (i.e., unless I have a real good reason

R: Turning OFF auto form population?

2004-05-19 Thread Amleto Di Salle
Hi, but have you used in the action tag inside the "struts-config.xml" the "name" attribute? Anyway, if I understood correctly, you can always extend the RequestProcessor class and override the processPopulate(...) method. Furthermore, you have to configure struts to use the extended RequestProc

Turning OFF auto form population?

2004-05-19 Thread None None
Hello all... Is it possible to turn OFF Struts auto-populating an ActionForm with the paramters from the client? The reason I ask is that I'm converting a non-Struts app over, and in this app, because it was using a homegrown framework, we have value object classes which are basically exactly w

RE: Using tokens in links

2004-05-19 Thread Daniel Perry
works, but uses the constants values directly. Sould any of the constants values change, then it would stop working. Daniel. > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: 19 May 2004 17:23 > To: Struts User List > Subject: Using tokens in links > >

RE: EL in JSP 1.2?

2004-05-19 Thread Daniel Perry
> 1) Am I correct in thinking that you are able to use EL under JSP 1.2 > container? Yes > > 2) If yes, are there any differences in how you would use it under JSP > 1.2? Yes, there are things in jsp2 el that are not in jsp1.2 el. Check the specs for details. > > 3) How do you set up your con

Using tokens in links

2004-05-19 Thread Daniel Perry
I'm trying to use a token in a link. I am expecting somthing like the following to work: But it gives a thread death :( Any ideas? Daniel. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[struts workflow extension] Workflow Violation Help

2004-05-19 Thread Wood, Derek (DIS Contractor)
I have everything working using the Struts Workflow extension except that I am having problems with the workflow violation mechanism. I have a wizard consisting of 6 pages. The workflow through the entire 6 pages is assigned a single primary workflow value. So, I made one violation mapping to

EL in JSP 1.2?

2004-05-19 Thread Chaikin, Yaakov Y (US SSA)
Hi, 1) Am I correct in thinking that you are able to use EL under JSP 1.2 container? 2) If yes, are there any differences in how you would use it under JSP 1.2? 3) How do you set up your container/jsp so it can use EL? Thank you. Yaakov Chaikin Software Engineer BAE SYSTEMS 301-838-6899 (ph) 3

R: Modular packaging of a large application

2004-05-19 Thread Amleto Di Salle
Hi Daniel, the Struts modules can be used to separate the web-tier and only for "development" purpose (i.e. you use the stuts module only for design purpose). So you will continue to create the war file for the web-tier and the jar file for the business-tier. BR /Amleto -Messaggio original

RE: Modular packaging of a large application

2004-05-19 Thread Daniel Perry
As far as i understand, all of the app must be deployed in the same war file: I dont think an app can be split between war files (please correct me if i'm wrong here!). If you can split an app, then i doubt struts would be bothered. With our webapps we make use of cvs, and for deployment checkou

Multipage form and multibox fields

2004-05-19 Thread Diego
Hi everyone! I have a multi-page form with several multibox fields in its different pages. The form is stored in session. In the ActionForm Javadoc I found this: --If the form is stored in session-scope so that values can be collected over --multiple requests (a "wizard"), you must be very caref

RE: Modular packaging of a large application

2004-05-19 Thread Brian Styles
Hi Daniel, thanks for the reply. That's fine for development but what about deployment though? Will all the modules have to be deployed in a single war file so they can see each other? From: "Daniel Perry" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts

RE: FW: code too large for try statement

2004-05-19 Thread Joe Germuska
At 1:38 PM +0530 5/19/04, Rahul Mohan wrote: Thank for the reply joe... But the Tomcat I am using is 4.1 only.I have checked the documentation and found out that both Tomcat4.1 and Weblogic8.1 is conformant to J2EE1.3 ( Servlet 2.3 / JSP 1.2 ) so the problem is not with the jsp specs

RE: Modular packaging of a large application

2004-05-19 Thread Brian Styles
Hey Ricardo, absolutely. But I said in "a" standard format. Not "the" standard format :-) From: "Ricardo Cortes" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: Modular packaging of a large application Date: Wed, 19 May 2004 11:15:56 -0400 Not to be cheeky but who says JSP->Struts->Session

RE: Modular packaging of a large application

2004-05-19 Thread Daniel Perry
> 1) Should all my entity beans be packaged in a single jar? > no idea... i dont go in for the session beans/entity beans, i'm using OJB so it's a bit different. > 2) Different modules will probably mean different session beans, jsps and > struts actions. > This is no problem. Different module

problem while loading validation.xml

2004-05-19 Thread Hengge Joachim
Hi mailing list, today quite a strange (at least in my opinion) behaviour of my struts application. I'm developing an application based on weblogic 8.1 SP2. So far so good, everything works fine (struts and tiles), but as soon as i add the validator plugin in the struts-config.xml and redeploy

Modular packaging of a large application

2004-05-19 Thread Brian Styles
Hi everyone, I've built an application in a standard j2EE format JSPs-->Struts-->Session Beans-->CMR Entity Beans. This is deployed in an exploded ear, with struts and JSPs in the war as well as the session bean interfaces. Then I have the Session Beans and CMR Entity Beans in a jar. Now I want

Re: Class path in Oracle 9Ias

2004-05-19 Thread Richard Yee
Duncan, Is there a switch or something on oc4j that will cause the ServletContextListener.contextInitialized() method to be called before the init methods of the servlets that are configured to load on startup? I think the behavior I have seen on OAS 9.0.3 is that contextInitialized() happens a

RE: [JBoss-user] [Beginners Corner] - deployment big picture

2004-05-19 Thread Brian Styles
Hi everyone, I've built an application in a standard j2EE format JSPs-->Struts-->Session Beans-->CMR Entity Beans. This is deployed in an exploded ear, with struts and JSPs in the war as well as the session bean interfaces. Then I have the Session Beans and CMR Entity Beans in a jar. Now I want

RE: html:text with format property

2004-05-19 Thread Slattery, Tim - BLS
> Anybody knows any tag like html:text that has a format property? I think the best you can do for that is to have the getter method that the tag invokes return appropriately formatted text. You'll also have to write the corresponding setter method to accept the formatted text, and transform it i

html:text with format property

2004-05-19 Thread Paulo Rezende
Hi friends, Anybody knows any tag like html:text that has a format property? tks, Paulo

RE: FW: code too large for try statement

2004-05-19 Thread Rahul Mohan
Thank for the reply joe... But the Tomcat I am using is 4.1 only.I have checked the documentation and found out that both Tomcat4.1 and Weblogic8.1 is conformant to J2EE1.3 ( Servlet 2.3 / JSP 1.2 ) so the problem is not with the jsp specs further, i feel that the problem is

Re: Problem with number formatting

2004-05-19 Thread Hubert Rabago
The Struts form tags don't handle formatting or i18n. That's up to the Action object (or maybe ActionForm, depending on how you write your app). I believe there are locale-aware BeanUtils converters, though I haven't used them myself. You might wanna take a look at FormDef (http://www.rabago.ne

RE: Setting the locale toa different value thanthe Browser Locale []

2004-05-19 Thread Kransen, J.
For a default language, make sure that there's a file ApplicationResources.properties without a "_en", "_fr" etc suffix. That language will be used if there's no match for the preferred language. If you want German speakers to see English, and still have the rest (default) see French, you can copy

Problem with Internationalisation

2004-05-19 Thread Prakasan OK
 Hi All, I am trying to implement internationalisation with my struts application. I am having three resource files namely a.properites,a_ar.properties and a_fr.properties. I have done the following things. In IE 5 I have done as follows Tools->Internet Options...->Languages...->Add L

SV: SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread hermod . opstvedt
Hi 1. implement the validation method on your ActionForm 2. Check if a particular button was pressed (give your button a name via the "property" property). Use request.getParameter("the name of the button"). 3. If they do not match, call super.validate() Hermod -Opprinnelig melding-

RE: sending emails from a struts app

2004-05-19 Thread Daniel Perry
duh... attachment seemed to get lost BackgroundSender.java follows: /* * Created on 19-May-2004 * */ package org.apache.commons.mail; import javax.mail.MessagingException; /** * A class to send messages in the background. Compose the mail as normal, then * use the static method: Backgro

Re: SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread Gunnar Schmitz
dnbnor.no> writes: > > Hi > In the javascript validation routine there is a parameter : bCancel > <<<-Set this to false if you do not want client side validation > as in : > > > > Hermod > Hello Hermod, I am sorry if my description was unclear. My problem is on the server side. I wa

SV: Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi This won't work - If a user enters say "1,2" in the html:text field on the form, then what happens is that once you call BeanUtils.copyProperties - in the process converting it from String to Double - the converted value becomes 0d. If the user enters "1.2" the conversion is Ok. So - Why is th

Re: Class path in Oracle 9Ias

2004-05-19 Thread Duncan Mills
You can do this at the application level by a entry in the orion-web.xml that is deployed with the app or at the OC4J Level as a whole in the j2ee/home/config/application.xml Regards Duncan Mills Senior Principal Product Manager Oracle Application Development Tools [EMAIL PROTECTED] wrote: Hel

SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread hermod . opstvedt
Hi In the javascript validation routine there is a parameter : bCancel <<<-Set this to false if you do not want client side validation as in : Hermod -Opprinnelig melding- Fra: Gunnar Schmitz [mailto:[EMAIL PROTECTED] Sendt: 19. mai 2004 14:20 Til: [EMAIL PROTECTED] Emne: Va

Validation only on SUBMIT but not on BACK

2004-05-19 Thread Gunnar Schmitz
Hello, I am using Struts 1.1 on Tomcat 4.1.24. I have a question regarding validation. I have a form and validation rules that apply to this form. In my JSP, I have three buttons, namely CANCEL, SUBMIT, BACK (BACK meaning: I will come back later). My problem now is: I want to validate the field

Re: Setting the locale toa different value thanthe Browser Locale[]

2004-05-19 Thread Hubert Rabago
This was illustrated by None None in this mailing list in the past few days, with some suggestions for improvement from others. Check the archives. Actually, gimme a minute here... (types on keyboard) It's right here: http://marc.theaimsgroup.com/?t=10845587771&r=1&w=2 --- "[EMAIL PROTECTED]"

RE: Class path in Oracle 9Ias

2004-05-19 Thread Williams, Robert E
I do not, but you might be able to find an answer on the Oracle Java mailing list at: http://www.odtug.com/subscrib.htm Particularly: [EMAIL PROTECTED] There are several Oracle folks involved with that mailing list. Regards, Robert Williams -Original Message- From: [EMAIL PROTECTED] [m

Re: Mulitple Forms per Submits

2004-05-19 Thread Thomas SMETS
Okay, Say you have many forms you have to write. These forms have (sometimes) very little to do with each others but for the fact that they belong to the same application. For instance, people can introduce periods (from a date, to a date) for a specific reason (product validity) but also period f

SV: Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi I'll give it a try. I just thought that there might be someway of setting the formatting of html:text globally. Hermod -Opprinnelig melding- Fra: Mark Lowe [mailto:[EMAIL PROTECTED] Sendt: 19. mai 2004 13:39 Til: Struts Users Mailing List Emne: Re: Problem with number formatting Yo

Re: Problem with number formatting

2004-05-19 Thread Mark Lowe
You could try something like On 19 May 2004, at 13:12, [EMAIL PROTECTED] wrote: Hi I see a kind of strange behaviour with the Struts html tags. When on a form I have a html:text field which displays a number, say 1.2 it displays as "1.2", but according to the locale I am using it should display a

SV: Server side validation

2004-05-19 Thread hermod . opstvedt
Hi Check your Tiles controller definition in the struts-config.xml file. Make sure that the forward parameter is not set to "forward" Hermod -Opprinnelig melding- Fra: Samuel Rochas [mailto:[EMAIL PROTECTED] Sendt: 15. mai 2004 00:41 Til: Struts Users Mailing List Emne: Re: Server side v

Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi I see a kind of strange behaviour with the Struts html tags. When on a form I have a html:text field which displays a number, say 1.2 it displays as "1.2", but according to the locale I am using it should display as "1,2". On the same form I have a JSTL tag fmt:number, and it displays it as it

RE: sending emails from a struts app

2004-05-19 Thread Daniel Perry
I went with that, but added my own class for sending mails in the background (see attached). instead of: message.send() i use: BackgroundSender.send(message); Daniel. > -Original Message- > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] > Sent: 18 May 2004 18:09 > To: 'Struts Users

Tiles or equivalent ?

2004-05-19 Thread Linus Nikander
the project I'm working on needs a (struts) Tiles-like framework to make page design easier and more efficient. I've looked att Tiles but also at some of the competitors (Sitemesh for instance). Which one do you guys use in your projects and why ? //Linus Nikander.