Jsp not displayed on first time.

2001-05-03 Thread Tewathia, Atul
Whenever I start my application after redeploy I get the error given below. But on a subsequent refresh of the page the browser displays the jsp on the screen exactly fine. This happens for every jsp in my application. Does any body know why this happens ? May 3, 2001 12:03:36 PM GMT+05:30

locating .properties files

2001-05-03 Thread Matthew O'Haire
Where should I put .properties file(s) in my WAR ? Should they be in the application .jar (where I put the classes that use the properties files, ie. the helpers used to implement the struts Actions), or in the META-INF somewhere? When I run the application under Forte it works fine with the

RE: GenericDataSource Reconnection

2001-05-03 Thread Alan Inser
Andre, Though PoolMan is now version 2.0.1, your code could be interesting. If you find it again, thanks to put it on this list or send it directly to me at [EMAIL PROTECTED] On the other hand, I do not understand why you had to stuck the poolman instance in the init method, maybe it was

classloader problem using WLS6.0

2001-05-03 Thread Glania, Damian
Hi, if I deploy my EJB-applikation using struts (struts.jar is stored in the .war-file in WEB-INF/lib) as .ear-file (on WLS6.0 SP1 running on NT4.0 or Win2000) I get exceptions like: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm at

New to struts

2001-05-03 Thread Geoffrey Van Nuffelen
Hi, I am new to struts. I did the download of the release of strust (1.0b1). I use winzip, and now I have a directories structure. But where to begin ? What I have to do to create a new application ? Thanks geoffrey...

RE: New to struts

2001-05-03 Thread Manabendra Sarkar
Hi, u copy the struts-example.war to tomcat\webapps and then type the url localhost:8080\struts-example. u should get a pge which is the home page for the example application that comes with the struts thanx manabendra -Original Message- From: Geoffrey Van Nuffelen [SMTP:[EMAIL

Re: ActionForward matching url-pattern

2001-05-03 Thread Chris Butler
my guess is that this can be avoided with web.xml. in web.xml you set the patterns which do URL/servlet matching... can you provide more details on the forward called and your pattern matching in web.xml? c At 04:00 PM 5/2/2001 -0400, Mindaugas Idzelis wrote: When you create a new

Re: File uploads and Struts

2001-05-03 Thread Tharwat Abdul-Malik
There is an pretty good example in the source directory src/upload/* or webapps/struts-upload.war - Original Message - From: Graeme Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 2:15 AM Subject: File uploads and Struts Anyone here know where I can find a

Newbie question about form beans

2001-05-03 Thread Jim Downing
Hi, I'm new to struts, we're planning to use it to access an EJB tier. I'm bothered by what seems to be an inefficient and difficult to maintain pattern were using as a consequence: A large portion of what our app does is pretty standard - getting a record out of a database, presenting it to

Re: Newbie question about form beans

2001-05-03 Thread Jean-Noel Ribette
Hi Jim, There has been discussions about this on the mailing list. I suggest you have a look at the archive at http://www.mail-archive.com/struts-user%40jakarta.apache.org/. Look for EJB and specially communicating with EJB. Jean-Noel - Original Message - From: Jim Downing [EMAIL

NoSuchMethodError when running examples

2001-05-03 Thread Lim Wee Lit
Hi, I've just installed struts on tomcat 3.2.1. I could start tomcat without any problems but when I tried browsing to struts-example, I get the following error: Internal Servlet Error: javax.servlet.ServletException

RE: Internationalised strings and scriptlets

2001-05-03 Thread Nanduri, Amarnath
OhBoy. I would never do this. The main reason is that if ou are internationalizing your app, you never know what the next language you are going to support in your application. So if you wrote for some particualr languages and you want to include an other language you need to rewrite the whole

New error after upgrading to latest build

2001-05-03 Thread Brian Bowman
Hi, I have a Struts application that has been up and running in production for about 2 months now. I decided to upgrade to the latest nightly build to get up to date. The old version was Feb 18 nightly build. Now my application and the example application will no longer run. They both

very important please help guys....is it possible to update properties of an object in an iteration?

2001-05-03 Thread Dudley [EMAIL PROTECTED]
pleeaaasssee help What i have is this... html:form action=/eFilerAdd center . . . tr th align=center

Re: Help simple Iteration question?

2001-05-03 Thread Jean-Noel Ribette
Hi Alec, If I understand what you want to do, you're trying to iterate over two collections at the same time, and not over nested ones. That can't be done in Struts now. However, you can modifiy the html code to do something like this: table trtd table logic:iterate id=cols

nested logic:iterate tags

2001-05-03 Thread Richard Murray
Hi, I'm trying to generate a table of data from a 2 dimensional array of Strings called ( String[][] data ). I am trying to use the struts tag logic:iterate to loop through the data and generate the table. As it is a 2 dimensional array I have nested the iterate statements as follows:

RE: nested logic:iterate tags

2001-05-03 Thread Richard Murray
Hi, For anyone interested I managed fix my problem with the following: struts_logic:iterate id=rows name=contributorList property=data scope=page tr struts_logic:iterate id=element name=rows tdstruts_bean:write name=element//td /struts_logic:iterate

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-03 Thread Kyle Brown
Very good Jon. One last question -- have you tested far enough to see if Error messages display in JSP's? I think you might have to set another classpath on the servlet engine or the workspace classpath to get that to work -- it's not working so far in my system... Kyle Jon.Ridgway [EMAIL

RE: nested logic:iterate tags

2001-05-03 Thread tpeters
Richard, What does the array look like? Can you post the logic for that array? On Thu, 03 May 2001, Richard Murray wrote: Hi, For anyone interested I managed fix my problem with the following: struts_logic:iterate id=rows name=contributorList property=data scope=page tr

RE: Struts and VisualAge 3.5.3 with WTE

2001-05-03 Thread Jon.Ridgway
Hi Kyle, Yes error messages are OK. One thing I did have to change was under point 7), the servlet-path should read : servlet-path*.do/servlet-path the / in front seems to have caused a problem. Jon. -Original Message- From: Kyle Brown [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001

RE: i18n...

2001-05-03 Thread Jason Chaffee
Title: RE: i18n... I concur, Resin is an excellent app server. If you need EJBs as well, you can also use JBoss with Resin. -Original Message- From: Paul Tindall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: Re: i18n... Jason, I

Changes in Tomcat 3.3?

2001-05-03 Thread dhay
Does anyone out there know whether I have to change somekind of document base in Tomcat 3.3? I have moved to it from 3.2 and none of my images are showing up, including those with struts html:image tag. Any help appreciated! Dave

Usage of include or forward in Action definition

2001-05-03 Thread James Howe
Could someone explain a little more about when you would want to use either the include or forward attributes of the action tag (used in struts-config.xml) instead of the type attribute? An example or two would go a long way to clarifying when and why someone might want to use either include

Re: Servlets, Beans, Struts, and Threading

2001-05-03 Thread John Raley
Sean, You would probably not write the task as a Servlet. Instead, as part of your startup you'd put the task in application scope. Remember that Servlets/JSPs that talk to the task are going to do so from different threads (potentially at the same time). The task would probably manage its

How to check if an array is null

2001-05-03 Thread Alex Colic
Hi, I have a class which has a method 'Columns' which is a one dim array of Strings. How can I check to see if that method returns null. I want to write out one message if it is null another if it is not. Thanks for the help. Regards Alex

Re: I8N newbie question

2001-05-03 Thread Maxime Soucy
I'm new to Struts also and I faced the same problem recently... and my solution was to use this %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % html:submit bean:message key=Submit/ /html:submit Maxime Soucy Ad-Opt Technologies - Original Message - From: Kris Vandenberk

RE: I8N newbie question

2001-05-03 Thread Nanduri, Amarnath
Why do you want to translate the submit value ? Try this then and it will work. Constants is a java file. This name will be send back to the server if you press this button. The message appearing to the user is internationalized. html:submit property= '%=Constants.SUBMIT %' bean:message

Re: How to check if an array is null

2001-05-03 Thread Scott Walter
if(classinstance.Columns()==null) //do something else //do something NOTE: There is a difference between checking if an array is null and checking if the elements within the array are null. The above example checks the array itself. scott. --- Alex Colic [EMAIL PROTECTED] wrote: Hi, I

Re: locating .properties files

2001-05-03 Thread Scott Walter
You should just have to put it somewhere in the classpath (i.e. web-inf/classes) scott. --- Matthew O'Haire [EMAIL PROTECTED] wrote: Where should I put .properties file(s) in my WAR ? Should they be in the application .jar (where I put the classes that use the properties files, ie. the

Re: database connection

2001-05-03 Thread Vivek Bhaskaran
A reference to the DataSource is stored in the ServletContext object... You can get it from that. - Original Message - From: Ying Teng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 11:28 AM Subject: RE: database connection What you described is true. Now my

RE: database connection

2001-05-03 Thread Ying Teng
The ServletContext object of databaseServlet or the ActionServlet? Could you be more specific? Thanks. -Original Message- From: Vivek Bhaskaran [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:21 PM To: [EMAIL PROTECTED] Subject: Re: database connection A reference to the

Nested logic:iterate and bean:write problems

2001-05-03 Thread Roman Fail
I am having difficulty with the HTML output when using nested iterate tags. After reviewing the archives, I can see others have had a similar goal but I didn't see any working solutions. For some reason all of the output from the inner bean:write is being printed before the body of the

Problem in struts-example accessing ApplicationResources

2001-05-03 Thread Damonwfinney
I have just started to evaluate Struts as a possible platform for development. When I tried to run the struts-example I got the following error (reading the mail indicates other newbies are having similar problems): Error: 500 Location: /struts-example/index.jsp Internal Servlet Error:

RE: Problem in struts-example accessing ApplicationResources

2001-05-03 Thread Anthony Martin
I had this problem last night on Windows ME, JDK 1.3.1. The exact same project files worked fine on Win2k and FreeBSD without having to mess with the classpath like that. I have found that Windows ME has issues with it's environment space. Some issues clear up when you execute "COMMAND /e

RE: locating .properties files

2001-05-03 Thread Nigel Ainslie
Hi Scott, I work with Matt.thanks for the response. We have located the properties file in WEB-INF/classes both at that directory level and at the directory that the classes reside in (WEB-INF/classes/sub-directory/actualcode.class) but we still get the same error. Even tried adding $TOMCAT

RE: locating .properties files

2001-05-03 Thread Jason Chaffee
Title: RE: locating .properties files You shouldn't be adding WEB-INF/classes to your classpath. This should be running as a web app. You should have the following in your deployment desciptor and you should have ApplicaionResoruces.properties in the WEB-INF/classes directory: servlet

RE: database connection

2001-05-03 Thread Natra, Uday
There is only one ServletContext for the entire Web Application. -Original Message- From: Ying Teng [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:05 PM To: [EMAIL PROTECTED] Subject: RE: database connection The ServletContext object of databaseServlet or the

Re: Servlets, Beans, Struts, and Threading

2001-05-03 Thread Sean
John, If I subclass servlets does that mean they always run within their own thread? The reason I ask is that this process I am talking about is a connection to a remote server. The calls to and from this process are asynchronous and thus the remote server can send messages to this process at

Re: locating .properties files

2001-05-03 Thread Jeff Trent
Title: RE: locating .properties files I have the same problem ... I need to keep the properties file in two places or else something gets wacked. Haven't had the patience to research it any further... - Original Message - From: Jason Chaffee To: '[EMAIL PROTECTED]'

Struts in new JSP 2nd Edition Book

2001-05-03 Thread Sean
Hello All, Have not seen this posted yet, wanted to update people. There is a whole chapter on Struts in the new JSP second edition book: http://www.amazon.com/exec/obidos/ASIN/1861004958/smw-20 There is also a reference to an example at the WROX site. It is a Struts shopping cart example: