RE: Nested logic:iterate tags ServletExec

2001-06-07 Thread Roman Fail
I can second your problems with nested iterate tags using ServletExec. We are running JDK 1.3, ServletExec 3.1, Win2k/IIS 5.0. I posted something about it a few weeks ago but no one replied. It appeared to me to be some sort of recursion issue, where the body of the inner iterate tag was

Can anyone help with solving the BACK button problem, in the browser?

2001-06-07 Thread Dudley [EMAIL PROTECTED]
Please help, When the user pushes the back button, I want the page to redirect or refresh to a different page, please, any ideas? Thanx guys and gals Dudley

HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?

2001-06-07 Thread Dudley [EMAIL PROTECTED]
Does anyone have an example of this?

RE: HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?

2001-06-07 Thread Manoj Deb
You can get help of including JAVASCRIPT FILE.js and style sheet in struts jsp from the below lines of code: e.g: %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld

Re: Nested logic:iterate tags ServletExec

2001-06-07 Thread Ted Husted
Be sure to report this to your vendor; people are starting to use Struts as a compatibility test of their containers with the specifications ;-) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/

Problems with CSS and TEMPLATE !!

2001-06-07 Thread Chuck Amadi
Hi , I have utilised my Companies Cascade Style Sheet .(struts-bbnpa is the name of My Application ). My classpath is as follows /webapps/struts-bbnpa/WEB-INF/index.jsp - Thus classpath for css is as follows /webapps/struts-templates/css/bbnpa.css. I have included the - %@ taglib

RE: invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Peter Doyle
Hi, I'm using IE 6 beta. I tired it with Netscape 6 and there was no change. Its not a browser issue. The struts upload example works I think because the forward is to a jsp and not to another action. In my case I forward to an action that takes in the request from the controller. I guess the

RE: Problems with CSS and TEMPLATE !!

2001-06-07 Thread Jon.Ridgway
Hi Chuck, You shouldn't have to add your webapp to the classpath under Tomcat. So you might have some other setup config issue.  Have you added your tlds taglib defs into your web.xml ? -Original Message- From: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sent: 07 June 2001

Re: viewing combo box

2001-06-07 Thread William Jaynes
Easiest thing is to have a propery in your ActionForm that tests whether the combo box is empty or not. Then in your jsp you'll need to surround the select/option tags with a logic tag of some kind, like logic:equal name=form property=comboEmpty value=false ... /logic:equal - Original

Re: Problems with CSS and TEMPLATE !!

2001-06-07 Thread Chuck Amadi
Hi this is what's in my xml file beaneath /webapps/struts-bbnpa(myapp)/WEB-INF/xml taglib> taglib-uri>/WEB-INF/struts-template.tld/taglib-uri> taglib-location>/WEB-INF/struts-template.tld/taglib-location> /taglib> "Jon.Ridgway" wrote: Part 1.1 Type: Plain Text (text/plain) Encoding:

Re: Problems with CSS and TEMPLATE !!

2001-06-07 Thread Chuck Amadi
Hi "Jon.Ridgway" going back to my set-up - tomcat3.2.1/webapps/struts-bbnpa/ Thus my jsp, taglibs and struts-framework etc should be under webapps and not struts-bbnpa. Please not that i had to deploy 6* struts-war files in C:\jarkarta-tomcat-3.2.1\webapps\and then re-start tomcat thus i

Re: Problems with CSS and TEMPLATE !!

2001-06-07 Thread Ted Husted
This doesn't seem to match what was given in the other message. I believe the other cited a /tlds/ folder. Chuck Amadi wrote: Hi this is what's in my xml file beaneath /webapps/struts-bbnpa(myapp)/WEB-INF/xml taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri

Re: Scratch RowSets

2001-06-07 Thread Ted Husted
Ted Husted wrote: Now, the next step is to create a RowSet from scratch to insert a new record to a new table. Given this, there doesn't seem to be any reason to have a seperate value object bean for a data set that is coming from or going to a persistent store. In case anyone is interested,

Re: Problems with CSS and TEMPLATE !!

2001-06-07 Thread Chuck Amadi
Sorry i amended the xml Ted Husted wrote: This doesn't seem to match what was given in the other message. I believe the other cited a /tlds/ folder. Chuck Amadi wrote: Hi this is what's in my xml file beaneath /webapps/struts-bbnpa(myapp)/WEB-INF/xml taglib

Re: Problems with Classpath, CSS and TEMPLATE !!

2001-06-07 Thread Chuck Amadi
I now recieve the following since i made that alteration within the broswer i type http://localhost:8080/struts-bbnpa/index.jsp Not Found (404) Original request: /struts-bbnpa/css/bbnpa.css Not found request: /struts-bbnpa/css/bbnpa.css Albiet is my classpath set up wrong.

Re[2]: Scratch RowSets

2001-06-07 Thread Oleg V Alexeev
Hello Ted, Thank for good stub. Now I am trying to implement such approach in my extension to struts - BeanFactoryServlet. Thursday, June 07, 2001, 3:38:30 PM, you wrote: TH Ted Husted wrote: TH skipped -- Best regards, Olegmailto:[EMAIL PROTECTED]

user-specific default-values of html-formulars

2001-06-07 Thread Michael Schommer
Hi, I want to save user-specific default-values of html-formulars. I think the best way is to put the ActionForms in a synchronized HashMap (user as key) and save this in a file when a user specifies new default-values for the formular. In the ActionForm-constructor I will check the HashMap if

Re: exception in MessageTag.doStartTag()

2001-06-07 Thread RoleModel Software
We have struts.jar in /WEB-INF/lib/ I believe that everthing is in the classpath... but that we probably have a configuration problem in one of our files. The immediate problem that I see in the doStartTag() method is that the message we get back is null. - Original Message - From: Oleg

RE: No clue what is wrong...

2001-06-07 Thread Zaremba, Don
Are you still having problems with JRun finding your prop files? I'm having a similar problem, I solved it temporarily by moving all my classes to be under the servers/lib directory, but I could never get it to work leaving the files under the application/WEB-INF/classes dir. don -Original

ACtionError Issues

2001-06-07 Thread Prabha Desai
Title: ACtionError Issues i have a page which calls an Action Form based on the action. Within the page, i have logic to view detail or not. I am trying to saveErrors and output them back to the page, but I keep getting an infinite loop. Error: path= :action: Processing a POST for

Re: ACtionError Issues

2001-06-07 Thread Ted Husted
You may need to set up another Action Mapping with validate set to false, but both could point to the same resources. Or, you may be able to just use department.jsp as the input resource. Prabha Desai wrote: i have a page which calls an Action Form based on the action. Within the page, i

Logic Tag Library and (Iterator) List Navigation

2001-06-07 Thread Matt Raible
Has anyone used logic:iterator to display a list of records, and corresponding list navigation links at the bottom? For instance, I have an Iteration of DataObjects that I can list through with the following code: while (iteratorName.hasNext()) { dataObject =

me again struts-setup problems regarding Top level

2001-06-07 Thread Chuck Amadi
Sorry all but to install Struts i have to copy the six war files in my Struts / webapp directory to my container webapps directory thus restart my container . When i mount separately jakarta-struts or the webapps of jakarta-struts it did not deploy the war-files.It has to be done via the

Re: Can anyone help with solving the BACK button problem, in the browser?

2001-06-07 Thread Peter Alfors
Depending on which browser you use, and the data on the page, the back button may cause (or ask) the page to reload. However, some browsers (like IE) only display a snapshot of what the last page rendered to. Therefore, you cannot use scriptlets or the action class. However, you are able to

RE: Moving from Struts 1.0b1 to Struts 1.0b3

2001-06-07 Thread Biswas Amalendu
Graeme Miller, I was trying to replicate the situation that you have and I think what you need to do is, go to your struts-config.xml and for your specific action tag turn the validate to true if the validate() method of the form bean should be called prior to calling this action, or set to

Re: exception in MessageTag.doStartTag()

2001-06-07 Thread Kyle Brown
I got this error a LOT in writing up my instructions for using Struts within VAJ. In 9 cases out of 10 what was happening was that Struts was failing to load either the DTD's or the struts-config.xml file. Basically, what is happening is that the servlet init() method in the Struts

RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Thane Eisener
Title: RE: Can anyone help with solving the BACK button problem, in the browser? I seem to recall a META tag called something like pragma-no-cache that you can embed in your page which will force the page to reload (not just display a snapshot). This should enable handling the situation in

RE: Can you do this with internationalisation.

2001-06-07 Thread Jon.Ridgway
Hi Alex, Yes you can do this. When the user clicks on the flag, you set the local in their session. Then use the local option to explicitly set the local when using the Struts bean:message tag. Jon. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: 07 June 2001

Re: How to add .props files to web.xml

2001-06-07 Thread Jonathan
why put it in the session when you can put it in the application scope? I say this because heavily filled session objects have caused us problems in weblogic, and it is really for the application anyway - Original Message - From: Peter Alfors [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Can you do this with internationalisation.

2001-06-07 Thread David Winterfeldt
You just need to have your users response go to an action and create a java.util.Locale object based on the users choice of language and put it in session scope under the org.apache.struts.action.Action.LOCALE_KEY constant. session.setAttribute(org.apache.struts.action.Action.LOCALE_KEY, new

Is this possible with Struts?

2001-06-07 Thread Matt Raible
I have an iteration of Beans and I want to list through the iteration, extract the beans and get the properties on each bean. Is this possible? Example code: _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Re: How to add .props files to web.xml

2001-06-07 Thread Peter Alfors
Yep... That will work too. :) Jonathan wrote: why put it in the session when you can put it in the application scope? I say this because heavily filled session objects have caused us problems in weblogic, and it is really for the application anyway - Original Message - From:

RE: Can you do this with internationalisation.

2001-06-07 Thread Kowshik . Podder
I think I understand how this works, but some code examples would be handy since the documentation for the bean:message tag's locale attribute seems to indicate that a session scope bean under which our currently selected Locale object is stored can be used as an alternative to the

Re: Re[2]: Scratch RowSets

2001-06-07 Thread Wolfgang Irler
Hi all RowSet-interested, after Contacts.setCommand(SELECT name, telephone from Contacts); put Contacts.setTableName(Contacts); in the example jsp mentioned below. Otherwise you won't be able to save. Wolfgang At 08:42 6-7-2001 +0400: Hello Steve,

RE: Scratch RowSets

2001-06-07 Thread Gogineni, Pratima
Hi Ted, I remember playing with cached rowsets sometime ago. It is probably useful to standardize your tags/code etc. based on the cached rowset rather than create your own data-structure - but I found that particularly the update/delete/insert into the rowset doesnt work properly for all but

Re: problem with invoking struts-template!!

2001-06-07 Thread Peter Alfors
I haven't done anything with templates, so this may not be correct. However, if you are referencing a style sheet in your header (on a regular page), the link: /struts-bbnpa/css/bbnpa.css is a reference from the context, not the WEB-INF directory. Therefore, you would want to change your link

Re: problem with invoking struts-template!!

2001-06-07 Thread Ted Husted
I don't believe that the JSP templates and CSS files are strongly coupled. I believe the browser applies the CSS, not the template. You might just want to move the CSS up to where Tomcat is looking for it. Chuck Amadi wrote: I have created a index.jsp that has the content of our company

Scope of the form

2001-06-07 Thread Joyce Tang
Title: Scope of the form I would like to verify my understanding on this thing. Please let me know if it is correct. Thank you very much in advance. 1. Whenever the Action do a forward, the request is being forwarded. 2. When the error happens, the request is forwarded back to the same JSP

Problem getting Struts working on RedHat 7.1/Enhydra but not Windows/Tomcat

2001-06-07 Thread Renee . Petris
I posted this yesterday but didn't get a response. Has anyone had problems with the Struts distribution on RedHat 7.1? When I run struts-example under Enhydra on RedHat the generated java code for the login.jsp is wrong. I've just setup Struts to work with Tomcat under Win2K. Everything

RE: me again struts-setup problems regarding Top level

2001-06-07 Thread Anthony Martin
Sounds like a Tomcat setup issue to me. Also sounds like someone is paranoid. -Original Message- From: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 6:48 AM To: Craig R. McClanahan Subject: me again struts-setup problems regarding Top level Sorry all but to

Log file, ArrayList/Hashmap

2001-06-07 Thread Bjagoring
Hi, I am not yet using Struts but I would like to apply some functionality of it in a webapp I'm doing. ActionServlet logs messages if the debug value is = 1. I'm thinking about writing the messages (maybe just certain warnings or error messages ) to a log file (most possibly an AS/400 file),

Re: Is this possible with Struts?

2001-06-07 Thread David Winterfeldt
This calls getLastName() on each object in the list. logic:iterate id="results" name="myList" bean:write name="results" property="lastName"/br /logic:iterate Matt Raible [EMAIL PROTECTED] wrote: I have an iteration of Beans and I want to list through the iteration,extract the beans and get the

FW: Scope of the form

2001-06-07 Thread Joyce Tang
Title: FW: Scope of the form -Original Message- From: Joyce Tang To: '[EMAIL PROTECTED]' Sent: 6/7/01 9:28 AM Subject: Scope of the form I would like to verify my understanding on this thing. Please let me know if it is correct. Thank you very much in advance. 1. Whenever the

RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Thane Eisener
Title: RE: Can anyone help with solving the BACK button problem, in th e browser? Try putting both of the following in the HEAD element of your page. Please let us know if it works. META NAME=Pragma CONTENT=no-cache META NAME=Cache-Control CONTENT=no-cache From the HTTP1.1 spec:

RE: SOLVED invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Peter Doyle
HAHA! Right for anyone (not many) who came across this problem here is how to solve it. In the struts upload application you will see that control is sent to a JSP after the uploading. If you send it to another action you get the MultipartIterator problem. This is *I think* because the request

RE: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Thane Eisener
Title: RE: Can anyone help with solving the BACK button problem, in th e browser? Oops, I guess I should test before I post. It looks like newer browsers don't support this as a META tag only as a header. I added the following to one of my action classes and the perform() method was called

Re: FW: Scope of the form

2001-06-07 Thread Ted Husted
1. Yes. Using the standard forward or redirect Servlet services. 2. It is forwarded to the JSP or Action specified by the input property. 3. The form is disposed when the request is disposed, which would happen after the JSP was rendered. Joyce Tang wrote: -Original Message-

Re: Pleeeeease help me using the Digester-Class of STRUTS

2001-06-07 Thread Andre_Beskrowni
hmm, does de.dhw.asim.components.benutzer.LoginObjekt have a method with the signature: setGrp(de.dhw.asim.components.benutzer.BenutzerGruppe)? and does the this in the line: digester.push(this); have a method with the signature:

Re: Is this possible with Struts?

2001-06-07 Thread Matt Raible
Thanks - worked like a charm! I have another question now: I am now trying to setup my list so it alternates row backgrounds as it writes the list. Below is how I can do it with scriplets, but I'd rather use Struts to do this - any ideas? % int rowNum = 0;%logic:iterate id="list"

Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Peter Alfors
Looks like you can also set the Servlet init param nocache to true, and struts will automatically set the response headers for you. Thanks, Pete Thane Eisener wrote: Oops, I guess I should test before I post. It looks like newer browsers don't support this as a META tag only as a

Re: Can anyone help with solving the BACK button problem, in th e browser?

2001-06-07 Thread Spencer Smith
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser? That won't work. I solved the problem using javascript. Javascript doesn't cache like JSP pages does, so you can get around this problem using javascript. If you want, I can send you the code I use. -

Re: Scratch RowSets

2001-06-07 Thread Ted Husted
I've seen the same problem with updating via the CachedRowSet, but had been blaming MySQL's lack of transaction support (with the default tables at least). As a workaround, I'm using PreparedStatements for update/insert/delete but drawing the data from the RowSets to avoid defining another

Logic-Iterate not finding scope of Bean

2001-06-07 Thread Luna, Kat
Title: Logic-Iterate not finding scope of Bean Hi all, me again with my afternoon question.. I have a UserAction class that extracts a list of Users from the database and stores them in an ArrayList. Success from this Action forwards to user.jsp which I want to display the list in table

Re: Is this possible with Struts?

2001-06-07 Thread Ted Husted
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/36/topic_id/207/question_id/821

Re: FW: Scope of the form - TED

2001-06-07 Thread Ted Husted
I don't believe that there is a reliable way for Struts to determine dynamically where a submit actually started, since things can get passed around. There is history information in the request, but that can be iffy. If you want that behaviour, you should be able to script that through the

Re: Is this possible with Struts?

2001-06-07 Thread Matt Raible
I got this to work, but now my problem is that my font attributes specified in my stylesheet don't get into Netscape 4.x. I know of a workaround - that is to have a class associated with each td that defines the font-family, but I'm hoping someone knows of a workaround for NS 4.x. Here's

Re: Can I have NO action?!

2001-06-07 Thread dhay
Oleg, Hi. Thanks for the post. The current file name is set in my action before the page is called. BUT, I want to give the user the option to change the filename, and forward back to this action to display the filter for the new file. Hence, my action doesn't need to DO anything, which

Re[2]: exception in MessageTag.doStartTag()

2001-06-07 Thread Oleg V Alexeev
Hello RoleModel, Yes, it is another common error. To use bean:message tag you must place properties files for all supported languages to the path WEB-INF/classes or to the some jar in WEB-INF/lib derectory and place string with properties path to the web.xml as init parameter for ActopnServlet -

Re: Can I have NO action?!

2001-06-07 Thread Ted Husted
If you truly don't need the Action to do anything, you might be able to specify the JSP as the target for your form's submit Action. If you did use an Action, it would return an ActionForward to the JSP, which is its main purpose. An empty perform() is not permitted since it must return an

Re: Logic Tag Library and (Iterator) List Navigation

2001-06-07 Thread Oleg V Alexeev
Hello Matt, I can send you Pager class, used to generate ArrayList of links to the pages in this result set, and a piece of jsp code to display it. I think it can used for any container wich implements Collection interface. Thursday, June 07, 2001, 5:57:12 PM, you wrote: MR Has anyone used

Re: Logic Tag Library and (Iterator) List Navigation

2001-06-07 Thread Matt Raible
Please send it - and an example if you have one. Thanks, Matt - Original Message - From: Oleg V Alexeev [EMAIL PROTECTED] To: Matt Raible [EMAIL PROTECTED] Sent: Thursday, June 07, 2001 2:07 PM Subject: Re: Logic Tag Library and (Iterator) List Navigation Hello Matt, I can send

RE: SOLVED invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Graeme Miller
Hmm... it actually looks like someone has beaten me to this. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1947 -- Thanks Peter. Have logged this bug with your comments. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2039 -Original Message- From:

Building Latest version of Struts

2001-06-07 Thread Matt Raible
I downloaded the latest source (b3) from apache.org and I get the following error when I try to build it with Ant. Any ideas? /cygdrive/e/development/ijsa/../jakarta-struts-1.0-b3-src/ant Buildfile: build.xml init: [echo] - jakarta-struts 1.0-b1 - [echo] [echo]

Re[2]: Can I have NO action?!

2001-06-07 Thread Oleg V Alexeev
Hello dhay, From your words I found that you want to make - in Action - retrieve current filename - forward to the JSP page to display it in JSP page - edit current filename - submit new value to the action in Action - take new value - build or retrieve filter for new file

Re[2]: Scratch RowSets

2001-06-07 Thread Oleg V Alexeev
Hello Ted, Thursday, June 07, 2001, 9:52:24 PM, you wrote: TH Speaking of configuration issues, I've also played with the idea of TH loading SQL commands from a resource, so they could be changed and TH reloaded without restarting the application. It would also be easier to TH optimize command

Re[2]: Logic Tag Library and (Iterator) List Navigation

2001-06-07 Thread Oleg V Alexeev
Hello Matt, Pager - this one PagerIterator - iterator to review Pager without cach PagerEntry - link to page representation JDBCPagerFactory - sample of Pager utilization pager.jsp - displaying of pager data and current page Friday, June 08, 2001, 12:17:19 AM, you wrote: MR Please send it -

URGENT!!! NEED HELP WITH SSL AND STRUTS

2001-06-07 Thread SPandith
Hi, I am working on a Struts app where some of the pages need to be secure. We are using WebLogic 5.1 sp6 I will not be using a war file to deploy. Instead I have all the jsp pages under my webapp directory. Here are a few questions I have: 1. Should I create 2 directories - One which has

RE: SOLVED invalid multipart request in beta 3 Controller Wrapping Request

2001-06-07 Thread Graeme Miller
Thanks Peter. Have logged this bug with your comments. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2039 -Original Message- From: Peter Doyle [mailto:[EMAIL PROTECTED]] Sent: Friday, 8 June 2001 4:58 a.m. To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: SOLVED

Problem with Form Default Values

2001-06-07 Thread Owais Anjum
Hello, I am having problems with my jsp page. If I do not specify a default value (value=any value) for the fields in my page, I get the following exception. I have written all the getter and setter methods in my FormBean and carefully checked for the naming convention as well. If I specify any