HELP! How do I share DB result set between nested JSP (Tiles) pages...

2002-01-16 Thread Michael Mehrle
This is what I am trying to do is to populate the same nested JSP template over and over again with different page data coming from the database. This is the process I imagine: - The user presses a link containing a pageID, which in turn gets send to Struts as a request. - The associated

about connectionPool

2002-01-16 Thread @Basebeans.com
Subject: about connectionPool From: Gary [EMAIL PROTECTED] === Since most of u r using Structs, what kind of database connection pool do u highly recommend to adopt? ( shareware will be better) Thanks. -- /** * Name: Gary Wang * Tele: 010-65546668-8119 * Mail: [EMAIL PROTECTED] */ -- To

alernatives to tomcat-4.0.1

2002-01-16 Thread Amitkumar J Malhotra
hello everybody, i require an alternative to tomcat 4.0.1, i have upgraded from tomcat 3.2.1 and am looking for a freeware which will reduce my configuration setting overheads to minimum , and also has good document to support it..your opinion will be highly appreciated..i had also applied

problem with properties file

2002-01-16 Thread Martin Fekete
Hi, i got problem with .properties file. when i'm dysplaing errors form my properties file it's not correctly printed. instead of special local characters are dysplayed only ? symbols. all my JSP files are encoded in Cp1250 and content-type contains charset=windows-1250. everything else works

JDeveloper

2002-01-16 Thread Barry Dreckmann
Hello there ! I was wondering if anybody was using Oracle9i JDeveloper with Struts. If someone is...How do you go about configuring JDeveloper to use it ? Thanks in advance. Baz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

How to store a String[] in a hidden field?

2002-01-16 Thread Christian Bouessay
Hi, I have a form with a multiple select box. class myForm1 extends ActionForm { String[] getFields() { ...} void setFields(String[] fields ) ... } html:select property=fields multiple=1 size=3 html:options collection=list property=value

SOLVED problem with properties file

2002-01-16 Thread Martin Fekete
this works ... http://www.mail-archive.com/struts-user@jakarta.apache.org/msg19545.html Martin Fekete - Original Message - From: Martin Fekete [EMAIL PROTECTED] To: Struts Users List [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 10:10 AM Subject: problem with properties file

Re: JDeveloper

2002-01-16 Thread Christian Bouessay
Barry Dreckmann wrote: Hello there ! I was wondering if anybody was using Oracle9i JDeveloper with Struts. If someone is...How do you go about configuring JDeveloper to use it ? I'm using struts with JDev O9iAS RC (Win NT). JDev seams to have some pbs using a .jar in the WEB-INF/lib

RE: Subclassing ActionMapping

2002-01-16 Thread Rey Francois
Typically you would derive it in order to add a new property, which value can be set in the struts-config.xml (as Ted described in his post). This property can be used for example to control the logic of ActionForm.validate() or of Action.perform(): both are given the ActionMapping instance as

Re: about connectionPool

2002-01-16 Thread Dick Starr
From what I have seen by the postings, Poolman is the favorite. Dick Starr - Original Message - From: Struts Newsgroup @[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 2:25 AM Subject: about connectionPool Subject: about connectionPool From: Gary [EMAIL

session id appearing

2002-01-16 Thread Henrik Chua
Hi folks... I have a problem. What should i do so that the session ids do not appear in the hyperlinks or in the address bar when you execute a link or an action? coz right now, here is what comes out on my address bar.

Re: session id appearing

2002-01-16 Thread Alvin Kutttikkat Antony
You can call the HttpSession.Invalidate() method, if you are not using Session any more Alvin alvin kuttikkat antony Internet und Virtuelle Hochshule Directory Universität München Leopoldstr .3 80802 München Germany Office Tel + 49.89.21025979 Office Fax + 49.89.21025980 [EMAIL

Report TagLib

2002-01-16 Thread Rubens Gama
can somebody tell if exists some report taglib ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: RES: Report's Tag

2002-01-16 Thread Jon Ferguson
You can get headers etc. using tiles... Have a look at www.DBForms.org Jon Rubens Gama wrote: well, i have a ResultSet object populated, ok? i want a header.. page break... a footer the report's body can use the ResultSet to show the data in a determined way(like 3 columns and 60

Re: How to store a String[] in a hidden field?

2002-01-16 Thread Christian Bouessay
Well, I've found one solution: logic:present parameter=fields property=fields logic:iterate id=fieldsValue collection=%=request.getParameterValues(fields)% html:hidden property=fields value=%=fieldsValue%/ /logic:iterate /logic:present Is there a better way to do this? --

Re: /admin/ mappings

2002-01-16 Thread João Guilherme Del Valle
Try: http://dyn21:8080/struts-example/admin/reload.do The .do suffix is needed, only then the request will be forwarded to ActionServlet. João. Joao Guilherme Del Valle [EMAIL PROTECTED] Visionnaire Informática SA http://www.visionnaire.com.br Tel/Fax: +55 41 373-7400 r: 217 - Original

RE: session id appearing

2002-01-16 Thread Andrew B Forman
One option would be to create a frameset with a full screen frame as so: HTML HEADTITLEWebApp/TITLE/HEAD FRAMESET FRAME name=main src=/webapp/appEntry.do scrolling=auto frameborder=no /FRAMESET /HTML all the user will see in the address bar is http://server/webapp/appEntry.do and the page

RE: How to use Log4j with a startup logging servlet

2002-01-16 Thread Alex Colic
Hi, I have used option two. The code for my servlet is below. It works for me. If you have any suggestions, enhancements please send me a note. Alex package com.sirius.struts.action; import javax.servlet.*; import javax.servlet.http.*; import org.apache.log4j.*; public class

Config Problem using Struts with WebSphere 3.5.4 on Linux 7.2

2002-01-16 Thread Anton_Grimm
hi all, sorry first for one more question on this topic, but I am trying to run struts-sample and another application using WebSphere 3.5.4 on Linux 7.2 for almost 4 days without success. I was reading the installation hints http://jakarta.apache.org/struts/installation-was352-x.html

Re: Is there a better way to write this code?

2002-01-16 Thread c tang
I agree with Alex that current strut taglib has a big deficiency. It allows only access through get/set methods of a property. How do I write the size of collection object to a page without resorting scriptlet or %=? How do I write toString() output to a page without resorting scriptlet or %=?

RE: Execute Struts in Netbeans?

2002-01-16 Thread Sandeep Takhar
Here are some steps I compiled for the guys at work. Note: WEB-INF for struts will automatically be recognized as a web-module. (There is no talk of struts below). Also note that the list of steps is for an older release 3.3 beta 6. The latest release of netbeans may not need all of the steps.

AW: How to use Log4j with a startup logging servlet

2002-01-16 Thread Hudayioglu, Fehmi
Use this - import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.struts.action.ActionServlet; import org.apache.log4j.xml.DOMConfigurator ; import org.apache.log4j.Category ; import

RE: How to use Log4j with a startup logging servlet

2002-01-16 Thread Eric L. Ma
Thanks, gentlemen. I start to get the idea but am still fuzzy on how to issue logging requests in my custom Action classes. Do I have to declare a static Category variable in each and every Action class I write? Please share some code on how logging is actually done, now that I know how to set

Suggestion

2002-01-16 Thread Sidhartha Jain
Hi Could anyone suggest a good way to code these lines in struts.I Am converting normal JSP to a struts JSP and launchsearch is an Javascript function which is to be called.I am totally confused and wanna do it in struts . LinkedList list = (LinkedList) pd.getValue(field);

Re: session id appearing

2002-01-16 Thread Olivier Dinocourt
use cookies - Original Message - From: Henrik Chua [EMAIL PROTECTED] To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 2:12 AM Subject: session id appearing Hi folks... I have a problem. What should i do so that the session ids do not appear

Re: How to store a String[] in a hidden field?

2002-01-16 Thread Keith Bacon
How about putting a helper class in your session which has methods:- String stringArrayToTokenizedString(String[] array) //store array elements delimted by some char that's not in the data. String[] tokenizedStringToStringArray. //Use StringTokeniser to build the array again. Then you

Suggestion Needed

2002-01-16 Thread Sidhartha Jain
Hi Could anyone suggest a good way to code these lines in struts.I Am converting normal JSP to a struts JSP and launchsearch is an Javascript function which is to be called.I am totally confused and wanna do it in struts . LinkedList list = (LinkedList) pd.getValue(field);

Suggestion

2002-01-16 Thread Sidhartha Jain
Hi Could anyone suggest a good way to code these lines in struts.I Am converting normal JSP to a struts JSP and launchsearch is an Javascript function which is to be called.I am totally confused and wanna do it in struts . LinkedList list = (LinkedList) pd.getValue(field);

set method in Action form is not called

2002-01-16 Thread Mahesh Agarwal
Hi all I am facing a strange problem in Struts. The situation is as follows There is a check box (html:checkbox property=allowOffContractPricing disabled=true /)which is disable and checked.When I submit that page, the corresponding set method(public void setAllowOffContractPricing(String

Struts Connection Pooling

2002-01-16 Thread Adrian Theuma
Hi, I just joined this mailing list and I think it is great for someone starting off with struts and even in the longer term. I need an opinion on the connection pooling build in struts. Is this safe to use, how does it behave under heavy load? Can you forward me to an example where this

Re: about connectionPool

2002-01-16 Thread Dick Starr
Nick: In Professional JSP Site Design page 608 Ted Husted says ... since the Struts GenericDataSource is an optional package, its just as easy to use something else (and in a production environment, I would recommend that you do, since this Struts package is really not designed for intensive

[Off Topic] Turn on Logging in Tomcat 4.0.1

2002-01-16 Thread Matt Raible
I'm hoping someone on this list will know the solution to this. I'm using Tomcat 4.0.1 on a Windows platform. I start Tomcat and run it in a console window on my machine, but I never see any logging messages. I *know* they're there, because when I put the same application on another machine

html:errors error?

2002-01-16 Thread Frank Lawlor
I just noticed that my error messages are acting strange. I recently changed to a nightly build (approx 1/2). For example, instead of getting the text: You must specify a Contact Name. I am now getting: null You must specify a Contact Name. null There are no substitution parms in the

Use action class for read only page?

2002-01-16 Thread Hai Hoang
Should I use an action class for my read-only page or just using the jsp to call the Model layer directly? I can understand if the page is large then you can use the action to load the data, but what I've is a small page. Do you know what are the guidelines or best practices regarding the use of

Re: Struts Connection Pooling

2002-01-16 Thread Michael Mehrle
Very simple - use Poolman! All you need to do is to download it, and put poolman.jar and the poolman.xml location in your classpath. It even has caching of frequent requests - cool stuff. Michae - Original Message - From: Adrian Theuma [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RES: html:errors error?

2002-01-16 Thread Rubens Gama
you must define in ApplicationResourses.properties: error.header= error.footer= the problem is solved. ok? -Mensagem original- De: Frank Lawlor [mailto:[EMAIL PROTECTED]] Enviada em: quarta-feira, 16 de janeiro de 2002 15:15 Para: Struts (E-mail) Assunto: html:errors error? I just

Re: Using struts-template as taglib

2002-01-16 Thread Ryan
Advanced Javaserver Pages is a great book but I have run into problems with his tags, as they were compiled with Xalan1 ( now deprecated ) I had to hack some of his source to work with Xalan 2 to use any xslt related functionality. just a note - Original Message - From: Vaughan Jackson

RE: about connectionPool

2002-01-16 Thread Jenkins, David
I use Tomcat 4.0.x which has connection pooling built in. The pooling jar is available separately from http://tyrex.exolab.org/. The version bundled with Tomcat 4.0.1 is missing some configuration options, this may be fixed in the newer release. Dave -Original Message- From: Struts

RE: How to use Log4j with a startup logging servlet

2002-01-16 Thread Jenkins, David
Hi Eric, here's how use Logging to provide method call logging. import org.apache.log4j.Category; public class myclass { private static final Category log = Category.getInstance(myclass .class); public void mymethod() { try { log.debug(enter mymethod); } finally {

RE: [Off Topic] Turn on Logging in Tomcat 4.0.1

2002-01-16 Thread Jenkins, David
All Logs are in the logs directory which is off your tomcat installation directory. Dave -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Thursday, 17 January 2002 6:10 a.m. To: [EMAIL PROTECTED] Subject: [Off Topic] Turn on Logging in Tomcat 4.0.1 I'm hoping

Problem with bean:write and bean:define

2002-01-16 Thread Marcelo Caldas
Hi, Maybe this is more related on how reflection works, But I'm trying to understand the behavior here... Here's my situation: I have a Bean under request scope with the following methods: public MyBean { private java.util.Calendar startDate; public void

multipart post files struts

2002-01-16 Thread Robert Tyler Retzlaff
Exactly what does struts do with form files? Does struts use some kind of intermediate temporary file for storing the file prior to the user writing the file out to some specified location? If a temp file is used how does struts determine the appropriate path for the tempfile? Thanks Rob --

uploading *multiple* files?

2002-01-16 Thread dhay
Hi. Does anyone know how to upload multiple files using a single file field - ie allow the user to choose multiple files in the file select box that opens? Pretty sure you can't do it in regular HTML, but does anyone know of any 3rd party tools to do it? Cheers, Dave -- To unsubscribe,

RequestUtils - bug? design limitation?

2002-01-16 Thread Esbrook, Scott
In some of my JSPs I've tried setting the page directive %@ page session=false % (for performance reasons) but when the JSP includes bean:message tags this results in the following exception at compilation time: java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an

Re: Config Problem using Struts with WebSphere 3.5.4 on Linux 7.2

2002-01-16 Thread dion
[EMAIL PROTECTED] wrote: hi all, sorry first for one more question on this topic, but I am trying to run struts-sample and another application using WebSphere 3.5.4 on Linux 7.2 for almost 4 days without success. I was reading the installation hints

Re: Problem with bean:write and bean:define

2002-01-16 Thread Michael Mehrle
This seems to be an obvious limitation based on Java reflection. By overloading the setStartDate method you seem to be confusing the write/read permission mechanism available from JSP. By adding a second method you seem to lose read capability altogether. Here's a little workaround - make the

Re: [Off Topic] Turn on Logging in Tomcat 4.0.1

2002-01-16 Thread Michael Mehrle
Solution: run LINUX!! Just kiddin' - the logs should be in your $CATALINA_HOME\logs\ directory (I'm using Windows slashes - hehehehe :-) If you want them to go somewhere else change the following entry in your $CATALINA_HOME\conf\server.xml file: Logger

No action instance for path-only with sub-sub-class of Action

2002-01-16 Thread Kelly Davis
I have created a class called DefaultAction which extends Action. It contains some common helper methods which all my actions will use. I then extend DefaultAction for my actual action fooAction. When I do this I get 'No action instance for path /foo could be created'. Now, when I extend Action

RE: FW: Nesting Beans/Iterators/... GOT IT!

2002-01-16 Thread Collard, John
Thanks for all the help! The problem (for some reason) was the name of my property! I simply created another property and its getter that returned the value of the first property. John Collard [EMAIL PROTECTED] -Original Message- From: Arron Bates Sent: Tuesday, January 15,

tag for authentication

2002-01-16 Thread Domen, Ken
Is there a struts tag library that does basic authentication? ken -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Has anyone seen this issue

2002-01-16 Thread Juan Alvarado \(Struts List\)
Hello Everyone: I've come across an interesting issue that I'd like to share with everyone with the hopes that someone might be able to provide an explanation or solution. I have a form with a bunch of text fields. One of these fields I want to have disabled (disabled=true). So using the struts

RE: Has anyone seen this issue

2002-01-16 Thread Andrew B Forman
disabled elements are not submitted with the form as per the html spec (below) http://www.w3.org/TR/html4/interact/forms.html#h-17.12 ---begin--- 17.12.1 Disabled controls Attribute definitions disabled [CI] When set for a form control, this boolean attribute disables the control for user

Re: Has anyone seen this issue

2002-01-16 Thread Ryan Cornia
I think adding property role to the page as a html:hidden field will solve your problem. This way it WILL be submitted with each request. Ryan [EMAIL PROTECTED] 01/16/02 02:42PM Hello Everyone: I've come across an interesting issue that I'd like to share with everyone with the hopes that

Language Alphabet Set

2002-01-16 Thread John Hunt
Hi I want to get the alphabet of a language based on the locale. How can I do that? I have to display an index structure based on the locale. So I need alphabet of the particular locale which comes in the request. Any help regarding this would be highly appreciated. Thanks Junta

Re: Is there a better way to write this code?

2002-01-16 Thread Arron Bates
A getter method like... public int getMyListSize() { return this.myList.getSize(); } with a tag like... bean:write name=myForm property=myListSize / ...maybe? Arron. c tang wrote: I agree with Alex that current strut taglib has a big deficiency. It allows only access through get/set

Re: Is there a better way to write this code?

2002-01-16 Thread Arron Bates
You have three options on starting the nested tags. nested:form - extends html:form html:form - naturally nested:root - this is the formless option for starting off. It requires only a name attribute which has to match the name of a bean which is in scope. This can be done by defining a bean

Re: FW: Nesting Beans/Iterators/... GOT IT!

2002-01-16 Thread Arron Bates
Sweet! :) Have fun. Arron. Collard, John wrote: Thanks for all the help! The problem (for some reason) was the name of my property! I simply created another property and its getter that returned the value of the first property. John Collard [EMAIL PROTECTED] -- To unsubscribe,

Re: Indexed properties...setters and getters

2002-01-16 Thread Arron Bates
Is table[5].minimumSales the tag's name or its property property?... Have you tried the nested extension for doing this stuff?... Arron. TODD HARNEY wrote: If I have a html:text field on my form with the property named table[5].minimumSales, wouldn't this result in: 1) A

RE: Is there a better way to write this code?

2002-01-16 Thread Alex Paransky
Arron, was this in some documentation that I failed to read. If so, could you please point me to it. I will try this at home tonight. Thanks. -AP_ -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 3:37 PM To: Struts Users Mailing List

Re: Language Alphabet Set

2002-01-16 Thread John Hunt
Isnt there a way to get the alphabet of a language? --- John Hunt [EMAIL PROTECTED] wrote: Hi I want to get the alphabet of a language based on the locale. How can I do that? I have to display an index structure based on the locale. So I need alphabet of the particular locale which comes

Re: Recommended method to pass back result to the JSP

2002-01-16 Thread Jorge Ruiz \(SX\)
This is how to put it in your action: List resultList = someClass.getResultList( request ); request.setAttribute(resultList, resultList); This could also be done by someClass.getResultList directly. This is how to get it in you JSP: List resultList = (List)

Mouse over images on buttons in Struts

2002-01-16 Thread Tony
Hi I want to have a mouseover effect on a button. When the mouse is not over the button the button should display graphic A, when the mouse is over the button the graphic should be graphic B. What is the best way to do this with struts. I have had a look at the html:button tag but am not

Re: Mouse over images on buttons in Struts

2002-01-16 Thread David M. Karr
s45652001 == s45652001 Tony writes: s45652001 Hi s45652001 I want to have a mouseover effect on a button. When the mouse is not over the button the button should display graphic A, when the mouse is over the button the graphic should be graphic B. What is the best way to do this

RE: tag for authentication

2002-01-16 Thread Jake Thompson
Do you mean to check if the user has a role? There is support in the logic:present tag and also in the tglibs, the request taglib(http://jakarta.apache.org/taglib/) There is also role checking. Also, I believe the logic:present supports checking usernames also. Later Jake T -Original

Re: Recommended method to pass back result to the JSP

2002-01-16 Thread Jin Siong Voon
Hi Jorge, Thanks for the info, but in the JSP page, I would like to pass the result list to the struts taglib, e.g. html:select property=profileName onchange=submitProfileForm(); html:options collection=resultlist property=name / /html:select how do i do that? thanks. regards, Jin S. Voon

html:form focus failing in NS on linux?

2002-01-16 Thread Mark Woon
Is anyone else seeing weirdness with the focus attribute to the html:form tag? It works fine for me on Windows (NS and IE), but on Linux, NS never grabs the focus properly. Is this a known bug? I've attached the html result. It all looks good to me, but yet... Any thoughts? Thanks, -Mark

Re: Error - MultipartIterator: no multipart request data sent

2002-01-16 Thread Antony Stace
Hi This is an old post that follows. I have found the same problem with Struts 1.01. Is this behaviour a bug or is it how Struts is meant to work? Also can someone please tell me what setting the value of redirect=true does besides clearing the request attributes. Cheers Tony Hello,

Re: Struts Connection Pooling

2002-01-16 Thread @Basebeans.com
Subject: Re: Struts Connection Pooling From: Gary [EMAIL PROTECTED] === Where could i download it? Thanks. Michael Mehrle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Very simple - use Poolman! All you need to do is to download it, and put poolman.jar and the poolman.xml

Re: Indexed properties...setters and getters

2002-01-16 Thread Tom Goemaes
Is the indexed feature supported in 1.0.1 ? don't think so... not sure. Use the nightly builds. Struts Users Mailing List [EMAIL PROTECTED] wrote: If I have a html:text field on my form with the property named table[5].min imumSales,

Antwort: Re: Config Problem using Struts with WebSphere 3.5.4 on Linux 7.2

2002-01-16 Thread Anton_Grimm
sorry for this one the whole file web.xml ## ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app SYSTEM file:/opt/IBMWebAS/hosts/default_host/OKBVWebApp/servlets/org/apache/struts/resources/web-app_2_2.dtd web-app servlet servlet-nameaction/servlet-name

Re: Problem with bean:write and bean:define

2002-01-16 Thread Tom Goemaes
could be that bean:write needs a String to be returned by the getter ... and not a Calendar ? since it is a String that is inserted ... Struts Users Mailing List [EMAIL PROTECTED] wrote: Hi, Maybe this is more related on how