how to use ant tool to build my application?

2001-04-17 Thread JeanX
Hi struts-user, I apologize in advance for this kind of problem ,but I think it is the best mailing-list I am aware of :) So when I use the ant to build my application, there are some error: Buildfile: build.xml BUILD FAILED javax.xml.parsers.FactoryConfigurationError:

Digester : how to use nested tag as data ?

2001-04-17 Thread Noel Sebastien
Hi, I would like to learn an easy solution to get a XML part as a parameter of a method a the current object of the stack. I explain with an example : Input XML (configuration file of my application) : cfg header field name="from" value="[EMAIL PROTECTED]"/ field name="to" value="[EMAIL

Needs Help in Struts File Uploading

2001-04-17 Thread Kirubakaran K S
Hello, We are working on File Uploading in struts. The problemwe arefacing is the "name of the file" stored while uploading. When finished submitting, after the file is selected a Randomly Generated temp file ( strts13374.tmp ) is generated in _tmp_war_uptest directory. But instead of this

Parsing problem with Tomcat 3.2.1

2001-04-17 Thread Czerwinski . M
Has anyone ever tried to use Struts-based applications on a Tomcat 3.2.1 server? I experience parsing errors porting an application from Tomcat 3.1 (where it works) to Tomcat 3.2.1 (where it crashes). The error looks like this: org.apache.jasper.compiler.ParseException:

problem with redirecting url

2001-04-17 Thread Sundaram Ramasamy
Hi, I am using tomcat 3.2. I am calling servlet like this. http://localhost/employee/servlet/dispPage?p=sales from servlet I redirecting to jsp page. But jsp page URL coming like this http://localhost/employee/servlet/disp.jsp I want URL like this. http://localhost/employee/disp.jsp my

how to cache lists?

2001-04-17 Thread Alex Colic
Hi, Lets say you have a web app that runs over a number of web pages in a wizard fashion. On each one of these pages you need to present the user with a select box holding lists. e.g. locations, cities, etc. This data is read from a database and rarely changes. How would you cache these lists

Re: Needs Help in Struts File Uploading

2001-04-17 Thread SPietsch
look at the example struts-upload from one of the later nightly builds. There is a example included to write the file to disk with a specified name. Soeren Kirubakaran Hello, Kirubakaran We are working on File Uploading in struts. The problem we are facing is the "name of the file"

Re: how to cache lists?

2001-04-17 Thread Paul Tindall
If you use a servlet to initialize your lists, you can simply do a post to this same servlet whenever you need to refresh... without bouncing the servers. This can be a cron'd process or done automatically whenever you edit the lists. - Original Message - From: "Natra, Uday" [EMAIL

Re: how to cache lists?

2001-04-17 Thread Chris Butler
At 09:15 AM 4/17/2001 -0400, Alex Colic wrote: Lets say you have a web app that runs over a number of web pages in a wizard fashion. On each one of these pages you need to present the user with a select box holding lists. e.g. locations, cities, etc. This data is read from a database and rarely

RE: how to cache lists?

2001-04-17 Thread Greg Reddin
You could store the data in Application context as you've stated, but provide a mechanism for that data to be refreshed (either automatically or manually) without restarting the server. I haven't implemented this at all, but it seems possible. I've considered using some sort of date/time stamp,

Using html:form, html:link tags with strut template

2001-04-17 Thread Web Programmer
When I use html:form or html:link tags with strut template, these tags do not get parsed. Has anyone experienced this? Any solution? Thanks. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/

RE: how to cache lists?

2001-04-17 Thread Greg Reddin
The above approach is fine if you want to have cache within a single application. If you want to have the same cached data accessible to different web applications, you can use a Startup class like what Weblogic provides. You can have your cached data as instance variables of your startup

Re: Parsing problem with Tomcat 3.2.1

2001-04-17 Thread Rob Leland
I run the struts applications on tomcat 3.2.1 all the time. [EMAIL PROTECTED] wrote: Has anyone ever tried to use Struts-based applications on a Tomcat 3.2.1 server? org.apache.jasper.compiler.ParseException: /usr/local/tomcat/webapps/night/content.jsp(43,0) Unterminated user-defined

RE: how to cache lists?

2001-04-17 Thread Nanduri, Amarnath
I would say implement a pattern like the Observer which watches for any changes to the data list. If any changes occur it immediatly updates the internal list. So you will always have an updated list (no matter what) and it is done automatically behind the scenes... cheers, Amar.. -Original

AW: Parsing problem with Tomcat 3.2.1

2001-04-17 Thread Czerwinski . M
Thanks, just as you said but why did it work with the former version then? Michael -Ursprungliche Nachricht- Von: Rob Leland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 17. April 2001 03:57 An: [EMAIL PROTECTED] Betreff: Re: Parsing problem with Tomcat 3.2.1 I run the struts

RE: Using html:form, html:link tags with strut template

2001-04-17 Thread Tobias Meyer
Hi "Web Programmer" :) When I use html:form or html:link tags with strut template, these tags do not get parsed. Has anyone experienced this? Any solution? Thanks. Don't forget to define your taglib before you use custom tags. e.g. %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %

RE: Using html:form, html:link tags with strut template

2001-04-17 Thread Web Programmer
Thanks Tobias, it worked. I had the taglib only in the template. Need to put in every file. --- Tobias Meyer [EMAIL PROTECTED] wrote: Hi "Web Programmer" :) When I use html:form or html:link tags with strut template, these tags do not get parsed. Has anyone experienced this? Any

Re: AW: Parsing problem with Tomcat 3.2.1

2001-04-17 Thread Rob Leland
Sorry, I hit the send button before typing. Maybe there is a /form tag at the bottom of the page instead of a /html:form. Another possability is that either the /html:form is either commented out or there is an unmatched " or ' that is hiding the tag. [EMAIL PROTECTED] wrote: Thanks, just as

Need help with Bean:define.

2001-04-17 Thread Alex Colic
Hi, I have a bean StoreRoomForm which I have saved in the session in application scope via: StoreRoomForm storerooms=new StoreRoomForm(); ServletContext context=this.getServlet().getServletContext(); context.setAttribute("storeroom",storerooms ); StoreRoomForm has the

Can I internationalize all parameters of ActionError?

2001-04-17 Thread John Chang
Hi there, In the ActionError, we can internationalize the first parameter: key. But I am wondering if we can also internationlize the other parameters, which are replacement values. For example, I have some replacement values which are Strings. If these Strings can be in different languages,

RE: how to cache lists?

2001-04-17 Thread Menno M Jansz
This is ok, but doesnt work if you have no control over the data changes. Some of our data in the database gets changed by other legacy apps, so we've implemented a CacheManager through which we obtain cached data. If the data item is not currently cached we retrieve it from the EJB tier,

FW: Session scope

2001-04-17 Thread Maguire, James
Obviously, design decisions have been made on the session context. Is anyone running (or considering running) Struts in a truly distributed server infrastructure? Does Craig's suggestion of Serializable session beans stand up under volume? Just looking for some pointers. Jim -Original

Confusing error and other questions

2001-04-17 Thread Scott Fitzgerald
Hello Everyone, I am working on an application that interacts with a database. When I try to run the app, I get an error (500) that tells me: javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection. Can someone offer some insight? Also, I have added a

Re: Need help with Bean:define.

2001-04-17 Thread Dan Miser
setStoreroom and getStoreroom are not using the same class type. If you change them to match, this will work. -- Dan Miser http://www.distribucon.com From: "Alex Colic" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "Struts" [EMAIL PROTECTED] Subject: Need help with Bean:define. Date: Tue,

Caching going well.

2001-04-17 Thread Alex Colic
Hi, caching my lists is going pretty well. In the init of my ActionServlet I compile all my lists and place them into the ServletContext. Then throughout my web pages I pull the lists out and populate select boxes. I have noticed a large speed improvement. My next challenge is going to be to

Re: Caching going well.

2001-04-17 Thread Zach Thompson
I'm currently evaluating Poolman (www.codestudio.com) which has database connection pooling and query caching. According to the docs, the cached queries will be periodically updated against a database, at an interval set in a config file. I haven't tested this package out yet, and I have no

Last little bit of help will get me over the hump!

2001-04-17 Thread Alex Colic
Hi, I have almost moved my app over to struts. Fantastic framework. I am being held up at that dual select control where the user selects a storeroom in the first box and the second box is populated with locations using criteria from the first. I have a class pwStoreroomList in the session

link tag not getting transalated

2001-04-17 Thread Vimal Kansal
Hi, I have following in my jsp file a href="javascript:;" onmouseover="hideAll()" onmouseout="hideAll()" img src="obj/spacer.gif" width=50 height=16 border=0 /a html:link forward="success" onmouseover="highlightSubItem('xdiserver', 4); hideMenu('xdiserver', false); window.status='Log Out

i want the jsp pages to be updateable (from internet,browser)

2001-04-17 Thread Johan Compagner
Hi, When i include my jsp inside a war file i really don't know where those files are unpacked (if they are unpacked) But if i want my jsp's to be updateable from the internet (uploading) where must i put my jsp's? Can i for example put my jsp's inside a DB and then have some common class

RE: Confusing error and other questions

2001-04-17 Thread Iraklis Kourtidis
Hi Scott, this may or may not end up answering your question: I remember seeing something similar when I was first trying to create my own Struts app. What happened was that, for some mysterious reason, the struts-config.xml file was not getting read properly - although I never got a

in which scope to find a formBean request/session ?

2001-04-17 Thread olivier
Hi, I am using struts 1.0b with Orion 1.4.5 (? one of the latest anyway). In my JSP I have: logic:equal name="registrationForm" property="action" scope="request" value="create" app:checkLogon/ /logic:equal in my struts-config.xml I have: actionpath="/registration"

how to restrict direct access to jsps(and have struts work)

2001-04-17 Thread Daniel Toms
Hello, I'm using Struts and Tomcat 3.2.1. Is it possible to set things up so that jsps cannot be directly accessed at all, but must always be referenced through an action? I had writen a checkLogon tag for inclusion in each jsp when the above question occured to me. I've looked at web.xml

Request..

2001-04-17 Thread Tangeti, Ramarao
Hi, Please add my mail id into struts-user mailing list. Thanks, Tangeti.

Re: how to restrict direct access to jsps(and have struts work)

2001-04-17 Thread Dan Miser
You can place the JSPs inside your WEB-INF directory. -- Dan Miser http://www.distribucon.com From: "Daniel Toms" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "Struts-User" [EMAIL PROTECTED] Subject: how to restrict direct access to jsps(and have struts work) Date: Tue, 17 Apr 2001 14:28:52

Re: Data Connection Pool, solution?

2001-04-17 Thread Johan Compagner
there should be another attribute in the datasource like this: testSql="select * from test" and GenericConnection has a setTestSql(String) method and that test method is executed right before the connections is given to the request in getConnection() When it fails it closed and tries

a form within iterate

2001-04-17 Thread Christine Robb
Does anyone know if the html:form ... tag can be placed inside the iterate tag? Here's what I would like to do, put the form tag inside an iterate so that each record is in it's own form. That way when I click the submit button (there will be one submit button associated with each record and

Handling File Upload Failures

2001-04-17 Thread Rack, Mike
Is there an elegant way of handling file upload errors when the file size is too large? I want to display an error page that indicates that the file is too large to upload. Currently I can only get a second exception to display. For example if I restrict the file size to be 500K and someone

RE: a form within iterate

2001-04-17 Thread Christine Robb
Thanks for the suggestion, but that won't work for what I'm doing. All the submit buttons will have the same label, and same action associated with them. Here's more information: logic:iterate id="notes" name="clientNotesListForm" property="notesResults" tr tdbean:write name="notes"

Confirmation page

2001-04-17 Thread Fabien Modoux
Hello, I am new to Struts and I am struggling on what would be the best way to do the following: on several pages, the user can perform actions which need to be confirmed before being actually performed (e.g., exiting the application or logging off). The confirmation page is the same regardless

Any way to customize button image?

2001-04-17 Thread Jacob Thomas
Is there a way to specify a custom image for a button when using the html:submit tag? -- Thanks Jacob

indicating mandatory input fields in html form?

2001-04-17 Thread Phillip Rhodes
Is there a recommended method for indicating a required field in an html input form? I know I can just type an asterisk in, but isn't there a better way? Thanks. Phillip

Re: Confusing error and other questions

2001-04-17 Thread Dan Miser
The exception is happening in the html:form tag. I would guess that you have a malformed struts-config.xml file. Do you have any error messages in your console or servlet log file? You can look up data-source elements that you defined in struts-config.xml in your Action or ActionForm by using

Another bean:iterate question

2001-04-17 Thread Brett G. Palmer
I've been working on this bean:iterate ... problem for some time now. I finally had to use a scriplet to get it to work. I am trying to get a list of FieldTypes from a record controller (PrimaryServer below) which implement an AbstractField object (this may be the entire problem ... let me

FormAction Bean for dynamically created forms

2001-04-17 Thread Brett G. Palmer
What is the best way to develop a FormAction bean for HTML forms that are dynamically generated? In other words, the FormAction bean won't know the parameters names of the form until runtime. For example, if I wanted to process HTML forms for relational database tables dynamically. Each input