Using global forward in custom tag

2001-11-21 Thread Gundars Kulups
Hi! Is there any way to use global forward in custom tag? For example if I have: global-forwards forward name=person path=/Frames.jsp?area=person/ /global-forwards Is it possible to implement tag app:area coords=1,1,10,10 forward=person /, which would expand to: area coord=1,1,10,10

RE: What are the 5 optional args in Bean Message Tag for

2001-11-21 Thread Tom Klaasen (TeleRelay)
Have a look at http://jakarta.apache.org/struts/api-1.0/org/apache/struts/util/MessageR esources.html hth, tomK -Original Message- From: Thinh Doan [mailto:[EMAIL PROTECTED]] Sent: dinsdag 20 november 2001 21:20 To: Struts Users Mailing List Subject: RE: What are the 5 optional

Re: which button pressed?

2001-11-21 Thread Peter Pilgrim
script language=javascript function FormSetValueHiddenParam( form, element, value ) { form.elements[element].value = value; } /script htm:form html:hidden property=action value=noaction / html:submit value=Add It! onclick=FormSetValueHiddenParam('action','add') /

Why is Checkbox s.till marked??

2001-11-21 Thread tw . richter
Hi there, I have a form with one checkbox (defined with html:checkbox) which must be marked when something is to be deleted. The checkbox is validated and the is an error message when the user chooses delete but doesn't confirm it with the checkbox. This works, BUT: when submitted the action

Re: 1..N Relationships on a single form

2001-11-21 Thread Francois-Xavier Bonnet
First of all if you want to use indexed properties for your question options you should use the nightly builds of Struts as 1.0 does not support this. What i would do is create a QuestionActionForm containing the question and collection of possible answers. Answer object would have 2 fields text

RE: Why is Checkbox s.till marked??

2001-11-21 Thread Marcel Andres
Hi Thomas, Is it possible, that the value in the form bean is not set false or the scope of your action (struts-config.xml) is set to session instead of request? Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 10:39 AM

Forward from one Action-instance to another

2001-11-21 Thread Rune Salthaug
My case (simplified): Given an application with these two action-mappings: action path=/index type=IndexAction forward name=success path=/index.jsp/ /action action path=/foo type=FooAction forward name=success path=/index.jsp/ /action My IndexAction's perform-method adds some stuff on the

Re: JSP page without form bean ?

2001-11-21 Thread Joey Gibson
What exactly are you trying to do? I have several actions that have no forms that work fine. I do GETs to them, do some processing, and then forward to a jsp. Sent via jApache.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Melanie Harris
What I want to do is display a string in the window.status bar when a text input field gets focus. Anyone have a working example? This does not work: strutshtml:text maxlength=8 property=username onFocus = window.status='Enter your name' onBlur = window.status=window.defaultStatus

RE: unable to open taglibrary

2001-11-21 Thread Tricia Ong Cheah Yen
Henrick, Areas to check: 1. Tag libraries are stored in the WEB-INF directory of the WAR or in a subdirectory of WEB-INF. So where are yours? 2. What's the taglib directive used in your page? For example, if it is declared in the JSP page as %@ taglib

RE: Options tag question

2001-11-21 Thread Tricia Ong Cheah Yen
Peter, When I used the bean:define tag together with html:options. I had first define a bean with a property that contains an ArrayList of LabelValueBeans. But the code fails to work. I'm getting a NullPointerException. bean:define id=travelPeriodList name=newsletterForm

Dynamic Tag values

2001-11-21 Thread Martin Samm
i'm having trouble populating tag attributes from request parameters. The code below generates an error Attribute name is not specified. However, when i remove the pcard tag the other request parameter outputs function correctly, so i know that the request parameter is being populated. %@

RE: Why is Checkbox s.till marked?? HELP DID NOT GET IT!

2001-11-21 Thread tw . richter
Thanks for answer, Marcel, but both is set to the correct values. I have to set the confirmdel explicitly to false, then it works. Very strange to my since the reset method do the same thing. I think I haven't get it until now: I set another value explicity to the table name and then forward

Re: jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Francois-Xavier Bonnet
Taglibs attributes are case sensitive. Try onfocus instead of onFocus. I hope this will help you. What I want to do is display a string in the window.status bar when a text input field gets focus. Anyone have a working example? This does not work: strutshtml:text maxlength=8

RE: Forward from one Action-instance to another

2001-11-21 Thread Alexander Jesse
Hi, add a mappring like this: action path=/foo type=FooAction forward name=success path=/index/ (or /index.do) /action I am working off-memory... but I did it once and it worked... good luck Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:

back button causes form resubmit

2001-11-21 Thread Rob Breeds
I have a form where the user can add and delete values in a collection (by submitting the form with different params). When they are done adding/deleting they can hit a 'save' button to invoke an action to save the data to a database and display a results page. But if the user hits the browser

RE: Why is Checkbox s.till marked?? HELP DID NOT GET IT!

2001-11-21 Thread Marcel Andres
Thomas, I really can't think of something else. So, I checked in the mailing-list for an explanation. Maybe, this can help you: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15638.html (RE: wrong behavior of checkboxes in forms?). Let me know, if this is the solution. Marcel

Re: Forward from one Action-instance to another

2001-11-21 Thread Jin Bal
Alexander is right you can forward to another action in this way. It may start to get a bit complicated when you need to introduce request parameters for the action you are forwarding to and you may find yourself creating query strings inside the action class which I believe someone (either Ted

Re: jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Barry Glasco
Your jsp should look like: %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % the tag would be: html:text ... Not strutshtml:text unless you did: %@ taglib uri=/WEB-INF/struts-html.tld prefix=strutshtml % then you need to check the attributes for case, they are case sensitive. -

Re: jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Melanie Harris
Ended up that the problem was with the single quote within the html:text tag's onfocus attribute. If you build the window.status string outside of the html:text tag like below, it works. % String onFocus = window.status='Enter Search Parameters'; % html:text property=searchText size=55

How to Broadcast to users?

2001-11-21 Thread SUPRIYA MISRA
I have an application in struts where we need to restart the webserver and/or the database machine. Before doing so we would like to inform all live users to save their work as we are up for maintenance. Since we serve the School of Medicine - this application has live interaction 24 hours a

requery db for select lists?

2001-11-21 Thread Andy Noble
Hi, When a JSP is posted in struts, the entered values get copied to an ActionForm object so that the JSP can be redisplayed if necessary and the data survives across the request. Is this also true for the data in a select list? On initial creation of the JSP, I will be accessing the database

weblogic apache plugin

2001-11-21 Thread Bauer, John
We are using the weblogic apache plugin to route application server requests to our weblogic instance. The plugin expects the trailing path /app to distinguish between requests for the apache server and requests that are supposed to go to the weblogic instance (apache acts as our web server).

Re: requery db for select lists?

2001-11-21 Thread SUPRIYA MISRA
If you know in advance that this page needs Database access and the data in the database will not change between sessions, the best thing is to make a database access and store the data as a session variable. From: Andy Noble [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL

Re: weblogic apache plugin

2001-11-21 Thread Sean Owen
We are using a similar setup (iPlanet web server instead of Apache) without any trouble. All of the mappings include the /app portion, and all is well... the web server should simply pass through any requests beginning with /app to WebLogic, unchanged. Look at WebLogic's access log to see what

Re: Dynamic Tag values

2001-11-21 Thread Maciej Ko³odziej
Hi, In Your mail sent 21 listopada 2001 You wrote: MS i'm having trouble populating tag attributes from request parameters. The MS code below generates an error Attribute name is not specified. MS However, when i remove the pcard tag the other request parameter outputs MS function correctly,

Inconsistent error uploading PDF

2001-11-21 Thread Siggelkow, Bill
I having inconsistent errors displayed by acrobat after uploading a PDF file using the Struts (via the FormFile) ... The file size is the same however, acrobat says There was a problem processing the page ... then something about an error (110) ... or sometimes error (16) ... I have been unable

Re: Cannot find bean xyz in scope null

2001-11-21 Thread Brian Holzer
Hi there, Assuming that the results from your request.setAttribute() method in your action, is the ArrayList returned from your getReservationInfo () method, then you should be able to iterate without using the bean:define tag. Try this for your iterate logic:iterate name=InfoBean

RE: Inconsistent error uploading PDF

2001-11-21 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Bill, What version of Struts are you using? This problem is addressed in the coming 1.0.1 version of Struts and also should be working fine in the nightly builds. -Original Message- From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:15 AM To:

struts taglib in jdeveloper?

2001-11-21 Thread Phillip Rhodes
Has anyone been able to use struts taglibs in jdeveloper? I can compile my forms and actions, but it complains about my struts jsps. element taglib not complete, expected elements [tag] _ Do You Yahoo!? Get your free @yahoo.com

Re: Dynamic Tag values

2001-11-21 Thread Martin Samm
Thanks, i'd discovered that defining and populating a variable and then using it, rather than referencing the request directly would work, but as you say, not nice! On Wednesday 21 Nov 2001 3:52 pm, you wrote: Hi, In Your mail sent 21 listopada 2001 You wrote: MS i'm having trouble

RE: Why is Checkbox s.till marked?? HELP DID NOT GET IT!

2001-11-21 Thread twrichter
Thanks for answer, Marcel, but both is set to the correct values. I have to set the confirmdel explicitly to false, then it works. Very strange to my since the reset method do the same thing. I think I haven't get it until now: I set another value explicity to the table name and then forward

Re: jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Marcelo Caldas
Thanks Francois, It works fine... (Still some minor problems but I think I can fix them) Now I have a question: Is this indexed parameters will be available on the next Struts release? Regards, Marcelo. - Original Message - From: Francois-Xavier Bonnet [EMAIL PROTECTED] To: [EMAIL

RE: Inconsistent error uploading PDF

2001-11-21 Thread Siggelkow, Bill
Thanks for the response ... Mike ... I am using Struts 1.0 Final ... actually, I just tried out the patch that was part of bug 3702 and it fixed the problem. What is the time line for 1.0.1? -Original Message- From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]] Sent:

Can a JSP call 1 Action class, but have 2 Forms?

2001-11-21 Thread Adam Stotts
I want to manage a parent/child relationship (like order header detail) on one JSP page with two forms. Obviously, only one Form object can be submitted at a time and passed to the perform() method of the Action. I want the one Action to manage 2 business entities and 2 Struts forms. But is

Re: Re: jsp compile error when using onFocus attribute in strutshtml:text tag

2001-11-21 Thread Francois-Xavier Bonnet
The nightly builds should one day become Struts 1.1 so it should include indexed parameters unless committers change their mind. Regards, Francois-xavier Thanks Francois, It works fine... (Still some minor problems but I think I can fix them) Now I have a question: Is this indexed

Re: Forward from one Action-instance to another

2001-11-21 Thread Bruce Geerdes
Alexander Jesse wrote: add a mappring like this: action path=/foo type=FooAction forward name=success path=/index/ (or /index.do) /action I am working off-memory... but I did it once and it worked... Doing /index.do worked for me. Is there any way to define index.do as a global

problem w/ multiple servlet mappings in web.xml

2001-11-21 Thread Feisal Jaffer
All: I am sure this is a simple issue but I am having problems if I specify multiple servlet mappings in my web.xml. I was working on an application that did not have struts and have added struts for a part of the application. I would like only certain mappings to be handled by the Struts action

RESEND (ignore prev): problem w/ multiple servlet mappings in web.xml

2001-11-21 Thread Feisal Jaffer
All: I am sure this is a simple issue but I am having problems if I specify multiple servlet mappings in my web.xml. I was working on an application that did not have struts and have added struts for a part of the application. I would like only certain mappings to be handled by the Struts action

Re: MAPPING PROBLEM

2001-11-21 Thread BinhMinh Nguyen
Hi, thanks for replying, but I dont really understand your point much since I am new to struts, can you one more time, reexplain it to me? I really appeciate your help. Binh --- Yee Keat [EMAIL PROTECTED] wrote: There might be several problems in your code, one being that the action should

Re: Example for html:multibox tag (I get a BeanUtils.populate error)

2001-11-21 Thread Graham King
Torsten, I had the very same problem and got very frustrated because I couldn't find the answer anywhere. It turns out in the JavaBeans specification you are only allowed ONE set method. Remove the indexed set method so that you only have setScombo(String[]) and it should work. Good

RE: Options tag question

2001-11-21 Thread Brian Holzer
It looks to me like your bean:define and html:options tags are coded properly. You might want to check that your ArrayList is not empty which would probably cause the NPE. I haven't used the scope and toscope parameters yet, but the documentation says that the toscope param is used when

Re: RESEND (ignore prev): problem w/ multiple servlet mappings in web.xml

2001-11-21 Thread Sean Owen
The path mappings take precedence over the extension mappings (incidentally I think the mapping to the Struts servlet needs to be just *.do). So I think that if none of the other servlets map to a prefix that is used by any of your Struts actions you'll be OK... for example you can't map a Struts

RE: MAPPING PROBLEM

2001-11-21 Thread Long Nguyen
Hi Binh, For struts-conf file: actionpath=/login type=com.fnet.struts.login.LoginAction name=loginForm scope=request validate=true input=/jsp/login.jsp forward name=success

Multiple Forms in one JSP page?

2001-11-21 Thread tw . richter
Hello there, I am fighting with the specifications of struts, request scopes, checkboxes and so on...(as Marcel knows) One answer to a simple question can make many things clear: is it allowed to have two forms in one jsp? What are the resctrictions? Is it possible to access a field of one

RE: requery db for select lists?

2001-11-21 Thread Paul Bienick
This would work but if the lists are the same for all users, then it would be more efficient to store them in the servlet context. I worked on a application that had many lists of this nature, and I built a simple LookupManager class which encapsulated a Hashtable of Vectors, keyed by a string.

prepopulating, initializing and securing a form

2001-11-21 Thread Derek Clayton
I have a form which I want to prepopulate with some general data (eg. a list or provinces) from a database along with some user specific data again from a database (eg. user name). The form is also secure so I want the user to be logged in to access it. So I have set up: Page.jsp - the view

RE: Member variables in Actions

2001-11-21 Thread Cakalic, James P.
Quoting from the Struts User's Guide: The controller servlet creates only one instance of your Action class, and uses it for all requests. Thus, you need to code your Action class so that it operates correctly in a multi-threaded environment, just as you must code a servlet's service method

RE: Member variables in Actions

2001-11-21 Thread Dave J Dandeneau
That makes sense. Thanks for the help... dave -Original Message- From: Cakalic, James P. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 3:03 PM To: 'Struts Users Mailing List' Subject: RE: Member variables in Actions Quoting from the Struts User's Guide: The controller

Re: prepopulating, initializing and securing a form

2001-11-21 Thread Myles
struts-newbie This might be heretical, but why can't you just call the form bean's validate method from your action servlet. It still does the business logic of validating the form and you'd still be able to validate your user. ActionErrors errors = new ActionErrors(); MyForm myForm =

AW: prepopulating, initializing and securing a form

2001-11-21 Thread Dirk Gabler
actually you talk about different things: - IsLoggedIn-Check Why don't you put this into a separat tag ? - Prepopulation of forms We had the same problem and our solution was to extend the org.apache.struts.taglib.html.FormTag and overwrite its doStartTag()-method. In this method we get the

re: prepopulating, initializing and securing a form

2001-11-21 Thread jgibson
Are you sure that your validate() method is not causing you to bounce back to your input page? IOW, are you trying to validate data that wouldn't/couldn't be there yet? Consider putting some printlns in validate() and/or make sure you have an html:errors/ on your input page. -- To unsubscribe,

Extending ActionServlet for User Authorisation

2001-11-21 Thread Alan . Owen
Has anybody got an example of how they have extended ActionServlet to provide User Authentication ? Best Regards Alan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Please Help!!!

2001-11-21 Thread Ashoka Murthy
Could anybody tell me where to find information on how to include beans on your page and also write the corresponding ActionForm for it. I have a form in which I am displaying 2 dates that come from a class Daterange. Now I am calling the dates as :- html:text name=ServiceProvider

Not for the faint hearted

2001-11-21 Thread Brandon Goodin
I know this is not the forum for this question but I am very desperate and need an answer or at least a suggestion. I am using struts, poolman, org.gjt.mm.mysql.Driver, mysql database on a cobalt RaQ 4(linux OS) server. The tomcat.policy permissions are set to - permission

Re: prepopulating, initializing and securing a form

2001-11-21 Thread Derek Clayton
You got it. /bonk me The validate() method was producing errors since no form data had yet been set (as the form hadn't even been presented to the user). I added an action= parameter to the calling query so when the page is called with action=display it ignores error checking. Subsequent

All the jar files cann't be read

2001-11-21 Thread Lily Zou
I put struts.jar and commons-*.jar file under WEB-INF\lib folder. However every time I started tomcat, I got following error msg ( every time it complains different jar file name ) and the page is just blank. Could anybody tell me what is the most likely reseason for this ? I am the

RE: All the jar files cann't be read

2001-11-21 Thread Brett Porter
My guess is that it got corrupted in the download, or perhaps because you have two paths in the webapp name (s2100\si) - I've never seen that before, not sure if it should work. Can you unjar the struts.jar file manually into a temp dir to check it is not corrupt? - Brett -Original

RE: All the jar files cann't be read

2001-11-21 Thread Lily Zou
Thank you very much, Brett. The jar file did corrupted even though I just copied from somewhere else. This time I got: register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'jar:file:/C:/opt/redknee/product/s2100/1_0_1/lib/struts.jar!/org/apache/str

Struts, poolman cobalt raq4

2001-11-21 Thread Brandon Goodin
Does anyone use this combination? (Struts,poolman,cobalt RaQ4). Brandon Goodin Phase Communications P (406)862-2245 F (406)862-0354 http://www.phase.ws -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: All the jar files cann't be read

2001-11-21 Thread Brett Porter
That's a normal message in startup. However, the directory looks a bit suspect - there should be a WEB-INF/lib somewhere in there. eg here is mine: register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',

Re: Struts salability

2001-11-21 Thread Ted Husted
[EMAIL PROTECTED] wrote: Does anybody know of any issues with Struts with respect to salability ? Is a multiple servlet solution more scalable ? A multiple servlet solution would tend to be less scalable, since it is more expensive to switch between different servlets than threads within the

[Fwd: Struts, WebLogic 6.0 and template tags]

2001-11-21 Thread Alain Renaud
---BeginMessage--- Hi! I'm new to that Struts thing. I changed our Web site servlet to the ActionServlet with XML config design in a day or so and it works fine BUT there does not seem to be anyway to trap logical errors (I'm not talking about errors in a JSP page here): like let's say you

Re: Resetting a bean

2001-11-21 Thread Ted Husted
The reset button and the Strut's ActionForm reset method are only related in name. Struts doesn't control the reset button. This is handled by the browser. It's important to remember that the browser doesn't retain values between requests (which is why we need the ActionForm). From the

displaying values in columns of 5

2001-11-21 Thread Henrick Chua
Hi folks! if i have a collection of values. let's say 23 items. how can i display it such a way that there are only 5 item in each row. should i use 2 iterates for it or something? thanx in advance h -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

Re: displaying values in columns of 5

2001-11-21 Thread Robert Parker
Here's what I did, I resorted to some script inside an iterate tag. You can access the iterator's internal counter as an Integer... (Note in this case I'm grouping by 3's) logic:iterate id=product name=element property=value indexId=i ... %=(((i.intValue()%3)==0) ((i.intValue()

Struts Tag Library Debug Info Available??

2001-11-21 Thread Greg Callaghan
Hi, I just spent a reasonable amount of time trying to work out why my new set of struts JSP/action/actionform wasn't working. The resultant JSP page was bombing out 1/2 way through and only some of the header HTML was getting to the browser, seemingly pointing at a problem with the struts

What is the best way to display pictures from a database using Struts

2001-11-21 Thread antony
Hi I need to retrieve pictures from a database and use struts to display them. I am not sure about the best way to do this. Can someone please tell me how they do it and what they beleive the best approach is. Cheers Antony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

JSTL (standard taglib) Early Access 2

2001-11-21 Thread Shawn Bayern
Hi everyone - I'm pleased to announce Early Access Release 2 of the JSP Standard Tag Library, now called JSTL (which replaces the old acronym, JSPTL). While it is important to realize that Early Access releases are not final and are always subject to change, JSTL EA2 moves us ever closer to a