Re: Capturing an outgoing response.

2001-11-02 Thread Erik Hatcher
Are you running a Servlet 2.3 compliant app. server? If so, Filters are what you are looking for. If not, you could add some scriptlet to the end of each JSP (perhaps?) that could post-process the response before it is finalized. Erik - Original Message - From: Brandon Goodin

RE: reset() in FormBean

2001-11-02 Thread Alexander Jesse
Hi, check in the code... first: reset() then: populate() at last: validate() You need to do it, if you have checkboxes on your form, cause their value is only transmitted if they are set. Without the reset-methode you have no knowledge when the user deselects them. Easy to try and then you

Re: Tiles/Orion(Oracle)

2001-11-02 Thread Cedric Dumoulin
Hi, Does the ignore=true not reset bug in Orion still remain with the latest Tiles distribution ? I think I have corrected it. Can someone confirm it ? For the Orion problem (submenu failed after second access), I am aware of it and will try to correct it asap. A workaround is to

RE: Tiles/Orion(Oracle)

2001-11-02 Thread Darryl Pentz
Hi Cedric, So is there (was there) a known bug with Orion then? This sounds very much like the problem I had with Orion where a search form worked the first time, and then subsequently only returned the page of the first search's results. The JSP seemed to hang at the template:insert... start

Re: Duplication of Template Files Solution

2001-11-02 Thread Cedric Dumoulin
Hi Darryl, Two problems with Tiles and Orion have been discovered : * If you was using ignore=true, other tags in the page don't behave as expected. This bug is corrected in the latest distribution * If you try the Tiles example, the submenu fail after the second access to

Re: TILES components in a select box

2001-11-02 Thread Cedric Dumoulin
Hi, I don't really understand what you want to do : Can you describe a little bit more what the resulting page should look like, and what is the expected behavior when you select an option ? Also, is there a set of select for each adress, or one for all adresses ... Cedric iT meDic

Cookie problem

2001-11-02 Thread Peter Norsker
Hi I making my first Struts application that uses cookies, but it doesn't seems to send the cookies to the client. If I use cookie.setMaxAge(60*60*24*30); to set the max age for 30 days, the cookie is not send to the client, but if I doesn't set the max age at all, the cookie is send allright

Problem with EAR file

2001-11-02 Thread Prior, Simon
Hi guys, This isn't strictly a struts question but I have been wracking my brains trying to solve it with no luck. I wondered if any of you guys could help I am deploying an ear file under weblogic 6.1 and in part of the code I need to parse an xml file however, I can't figure out how to

Re: Duplication of Template Files Solution

2001-11-02 Thread Cedric Dumoulin
Well, I agree that this is not well documented. I need to find time to do it. But if someone have something, any help is welcome ! Cedric Sandeep Takhar wrote: Here you need to understand the api of tiles. It is quite powerful. I wrote something about this for internal use. I will

RE: Check session/BO @ the view without using Java

2001-11-02 Thread jelmer
In the struts-example that comes with stuts 1.0 they use a tag for this. I can imagine however that some people find creating their own taglib for such a trivial task a bit too much work. -Original Message- From: Marc L. de Bruin [mailto:[EMAIL PROTECTED]] Sent: donderdag 1 november

struts-example.war

2001-11-02 Thread Andrew Kirkland
After a week of banging my head on my desk I am still no closer to getting any struts example to work. I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example file.nI have tried it on 2 macheines with the same result. I displays the first Jsp but the image on it is missing as it

struts-example.war - url correction

2001-11-02 Thread Andrew Kirkland
Slight correction When i try to submit any form in the example, my browser is redirected to logon.do;jsessionid=454333 or whatever number. Im my haste and frustration I got it wrong, sorry guys :) Andy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: struts-example.war

2001-11-02 Thread Marcel Andres
Hi Andy, First of all, don't break your head on the desk, use a pillow! Now, to your problem: Did you instal all the prerequisite software, how it is described on http://jakarta.apache.org/struts/installation-1.0.html? Marcel -Original Message- From: [EMAIL PROTECTED]

RE: struts-example.war

2001-11-02 Thread Andrew Kirkland
Indeed I did. The only thing I dont have is the: JDBC 2.0 Optional Package Classes - Struts supports an optional implementation of javax.sql.DataSource, so it requires the API classes to be compiled. They can be downloaded from http://java.sun.com/products/jdbc/download.html. I want sure if

Re: Check Box,Radio button (Urgent)

2001-11-02 Thread Ted Husted
It's hard to say without seeing your code. They should automatically select the current value. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ yogesh borse wrote: Hi All, I'm populating a

Re: Setting bean property with custom tag

2001-11-02 Thread Ted Husted
If you want to set a value that is part of an ActionForm, you can use html:hidden. Note that the Struts html:form tag will automatically create a bean if it is not already in the expected scope. An Action will also create a ActionForm bean if it is missing. Otherwise, you need to create it

Producing an XML document from a form

2001-11-02 Thread Matt Raible
I'd like to be able to produce an XML document from my form that wraps the bean's values with the method names. Has anyone done this, or should I do it on my own and submit the extension? Thanks, Matt __ Do You Yahoo!? Find a job, post your

struts on iPlanet Webserver 4.1

2001-11-02 Thread Heiner, Aaron
I'm trying to install and run the struts example on iPlanet Webserver 4.1. I've followed the instructions provided on the jakarta website, however, when I try to access the index.jsp page, I get the following error. Has anybody encountered this problem before or have ideas on the cause of the

Re: html:errors

2001-11-02 Thread Kris Thompson
Are you using Frames? That could be the problem. I haven't quite figured out why but try removing any frames (if possible). Todd Fulton wrote: I just can't seem to get the html:errors tag to display the errors passed through via my ActionForm object's validate() method. I have confirmed

Incompatible object error trying to instantiate an Action

2001-11-02 Thread Rob Breeds
Hello I've been successfully forwarding a form submit to an Action (A0) which uses a parameter in the form to forward to another Action (call it A1) which performs business logic and populates a bean to display in a result page. It all works. I now copy that working Action (A1) class to another

Re: Capturing an outgoing response.

2001-11-02 Thread Sandeep Takhar
I believe there is also a tag that struts uses that can take the output servlet/jsp and place it in a bean. If you look at the code for this tag you will see how they get the output of a servlet and place it in a bean. This should work for any type of output. Unfortunately I don't have the

Re: html:errors

2001-11-02 Thread Sandeep Takhar
Have you defined the tag library in the jsp? --- Todd Fulton [EMAIL PROTECTED] wrote: I just can't seem to get the html:errors tag to display the errors passed through via my ActionForm object's validate() method. I have confirmed that the validate() method is working correctly -- as I'm

ActionForms extending ActionForms

2001-11-02 Thread Richard Dallaway
I've been wondering about the best way to go about using struts in this situation I have two types of forms (for different kind of web registrations) which are very similar, but not quite identical. The associated RegistrationAction will perform slightly different tasks depending on

I can't find taglib logic:empty nor logic:notEmpty

2001-11-02 Thread Arnaud Chiaberge
Hi all, On the http://jakarta.apache.org/struts/struts-logic.html; site page, two very interresting tags are presented : 'empty' and 'notEmpty'. I have downloaded struts v1.0, but I just can't find them neither the declaration in the struts-logic.tld file, nor the corresponding .class files in

Re: ActionForms extending ActionForms

2001-11-02 Thread Ted Husted
The problem is that html:form is looking for the ActionForm associated with its ActionMapping. Having one Action handle more than one ActionForm isn't a problem. But getting html:form to handle more than ActionForm is problematic. If the *properties* for each registration type are the same,

Re: action forward tag...

2001-11-02 Thread Sandeep Takhar
If you are not using framesets - I would suggest looking at using tiles or templates. These allow you to include header,footer,menu,body type layouts within the jsp -- here you would just reference the jsp file. sandeep --- John Nikolai [EMAIL PROTECTED] wrote: Hello all! I have an

ClassCastException when moving extended Action and ActionForm classes in the classpath

2001-11-02 Thread Leonardo Mena
Hi folks! I am from Uruguay, South America, so sorry my English :) I am evaluating the Struts framework as an MVC aproach in the web tier in our company product (after attending the entusiastic presentation in the JavaOne conference!). The framework convince us pretty much, but we are very

RE: struts-example.war

2001-11-02 Thread Marcel Andres
Andy, if everything is configured well, I can't think of what is wrong. As much as I understand, you did reiceve the logon form. after signing on you are redirected back to the logon form. Right? As much as I remember the example (it is quiet a long time ago, I used it), it will redirect you

Re: ClassCastException when moving extended Action and ActionForm classesin the classpath

2001-11-02 Thread Rob Breeds
That's the error message I get in the browser for my current problem too (see earlier post)! I don't think I see a specific ClassCastException though, only 'incompatible object'. You're right - it makes no sense Rob Breeds

Newbe - problem with Struts-Config.xml

2001-11-02 Thread tnist
Hello, I am relatively new to Struts and am encountering a problem with the struts-config.xml file. I have set up a global-forwards like below: forward name=menu path=/do/Menu/ Then I set up an action like below: action path=/Menu forward=/WEB-INF/pages/menu.jsp

Force login...

2001-11-02 Thread Scott Watson
My appologies for asking something that has probablly been asked and answered before, however, I wasn't able to find the answer in my searches. How do you force someone to login before being allowed to access your application. It doesn't seem right to code this in each action class. Is it

Re: Digester content with elements

2001-11-02 Thread Bob Byron
Hmmm Is this too easy or too hard of a question to be answered? Bob - Original Message - From: Bob Byron [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 3:16 PM Subject: Digester content with elements I was wondering how to

RE: struts-example.war

2001-11-02 Thread Matt Raible
I'd suggest using Tomcat 4.0. I've installed the struts-example.war on it without any problems at all - and no setup. Matt --- Marcel Andres [EMAIL PROTECTED] wrote: Andy, if everything is configured well, I can't think of what is wrong. As much as I understand, you did reiceve the logon

Re: Digester content with elements

2001-11-02 Thread Scott Atwell
Could you not use a DOM parser, e.g. xerces, to do this? Regards, Scott - Original Message - From: Bob Byron [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 02, 2001 3:46 PM Subject: Re: Digester content with elements Hmmm Is this too

RE: Force login...

2001-11-02 Thread Princeton Lau
Scott, Check out the Struts sample app, it has two features that could solve your problem. Firstly, it has a login form and action. The sample app checks against an XML file for a list of users, but you could code the action to access a business object that verifies the username and

Re: Digester content with elements

2001-11-02 Thread Sandeep Takhar
I don't understand how this is any different than the stuff that comes with the documentation. -sandeep --- Scott Atwell [EMAIL PROTECTED] wrote: Could you not use a DOM parser, e.g. xerces, to do this? Regards, Scott - Original Message - From: Bob Byron [EMAIL PROTECTED] To:

RE: Force login...

2001-11-02 Thread Matt Raible
In my opinion, the best method to use is container-managed authentication. You can set this up via your web.xml file and protect your struts action class (*.do). http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html Matt --- Princeton Lau [EMAIL PROTECTED] wrote: Scott, Check out the

Re: Force login...

2001-11-02 Thread Martin Samm
a common method is to insert a custom tag on each page and a) checks the session, say, for a suitable attribute and value b) presents a login / redirects to login if no such value is found On Friday 02 Nov 2001 3:44 pm, you wrote: My appologies for asking something that has probablly been

Re: Force login...

2001-11-02 Thread Peter Pilgrim
To do it properly you have to: (1) Write a abstract base class, say `SecureActionBase' that provide security methods checkLogon(). Write a default implementation of `checkLogin' that subclasser can override. If no user is not longer return an action mapping forward that redirects to the login.

Re: Digester content with elements

2001-11-02 Thread Bob Byron
The examples that I have seen only show neat cases where there is no intermixing of text and content.. Case 1: textI want to remember this date,/textdate/text, forever!/text I want to see an example of how to parse the following: Case 2: textI want to remember this date,date/, forever!/text In

Re: Digester content with elements

2001-11-02 Thread Bob Byron
Actually, I can use SAX to do this, but I have been hearing good things about the digester and wanted to see if I could utilize any of its advantages. Would you recommend I use SAX instead? Bob - Original Message - From: Scott Atwell [EMAIL PROTECTED] To: Struts Users Mailing List

RE: Force login...

2001-11-02 Thread Sobkowski, Andrej
Hello All, by using a JSP tag to check if the user is logged, aren't you mixing somehow logic and presentation? In theory, you should provide a way that is independent of the fact that you store your user in the session (though Struts does it that way). Furthermore, you may need to not only

Re: Newbie: Iterate tag : Object properties not updated to form bean from JSP

2001-11-02 Thread Rajoy
Hi again .. I am quite new to struts .. hope someone will take time to go through my query which I am reposting ( if not I am gonna come back with a more catchy subject line !! ;-) ) Thankx in advance (again) Rajoy HI all I've encountered a situation as follows 1. I have a

Re: Check Box,Radio button (Urgent)

2001-11-02 Thread Jens Khnberger
When you call a page for the first time and you want some values in checkboxes or radiobuttons preselected, just initialise the form bean with the values you want to preselect. Jens Ted Husted wrote: It's hard to say without seeing your code. They should automatically select the current

MessageResources bean - application scope

2001-11-02 Thread Todd Fulton
Can anyone interpret this for me? I'm really at a roadblock here: Re the html:errors tag . . . In order to use this tag successfully, you must have defined an application scope MessageResources bean under the default attribute name, with at least the following message keys:

RE: Newbe - problem with Struts-Config.xml

2001-11-02 Thread Siggelkow, Bill
Your JSPs should not be in your WEB-INF folder ... try moving it up. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 10:40 AM To: [EMAIL PROTECTED] Subject: Newbe - problem with Struts-Config.xml Hello, I am relatively new to

RE: MessageResources bean - application scope

2001-11-02 Thread Justin Piper
Take a look at the section on internationalization in the User's Guide, http://jakarta.apache.org/struts/userGuide/building_view.html#i18n -Original Message- From: Todd Fulton [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 10:38 AM To: Struts Users Mailing List (E-mail)

RE: MessageResources bean - application scope

2001-11-02 Thread Scott Watson
You can also look at http://www.onjava.com/lpt/a//onjava/2001/10/31/struts2.html The fifth and sixth page to be precise. It talks about exactly what you are looking for. HTH Scott. -Original Message- From: Justin Piper [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001

Re: Tiles/Orion(Oracle)

2001-11-02 Thread Cedric Dumoulin
It is now ok : Tiles run with Orion in both mode (development and production). Otavio, can you tell us if it also works on Oracle's flavor of Orion (I thing yes, but want to be sure). I have try it with Orion 1.5.3. Cedric Otavio C. Decio wrote: Hi all, Did anybody successfully

RE: Newbe - problem with Struts-Config.xml

2001-11-02 Thread Drozdowski, Terry
what if you want to use the JSP in WEB-INF technique so you can rely on container authentication to protect your JSPs from prying eyes? -- Terry Drozdowski Staff, Technology Services SIM Technology - Phoenix Charles Schwab Co. (602)355-8843   Warning: All e-mail sent to

RE: Setter method doesn't work with indexed tag

2001-11-02 Thread dhay
Hi again, Took another look at your code - wondering why there are no setter/getters in your Parameter.java?!! Did I miss something? You obviously need these for the set to work. You still haven't posted your jsp page to show what you are doing there, but if you have something like this:

Re: html:errors

2001-11-02 Thread Tom Servo
And have you done a saveErrors(request, errors); in your action (or wherever the validation is occuring)? -- Posted via jApache.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

How to use the radio tag inside logic:iterate tag

2001-11-02 Thread Alvin Kutttikkat Antony
I have a collection called workrelationships .I have to use radio buttons to select the preferred workrelationship. here is the code for iteration logic:iterate name=WorkRelationshipsForm property=WorkRelationships id=worker/ tr td bean:write name=worker property=faculty/ bean:write name=worker

Common User Interface for JSP's

2001-11-02 Thread John Regan
Can anyone enlighten me on the Pros and Cons of using the Struts template taglib as opposed to say CSS or any other common interface rendering utility? Thanks in advance. JBR

RE: html:errors

2001-11-02 Thread Todd Fulton
Yes, I have in my Action subclass. But, I'm doing the validation in the ActionForm subclass -- via the validate() method which returns the populated ActionErrors object (i checked that it is indeed populated) to the ActionServlet. -Original Message- From: Tom Servo [mailto:[EMAIL

RE: html:errors

2001-11-02 Thread Todd Fulton
I have the following: %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 6:20 AM To: Struts Users Mailing

Re: Common User Interface for JSP's

2001-11-02 Thread Ted Husted
The Tiles version (in the Contrib folder) can be integrated with the Action forwards, eliminating places where another physical file might otherwise be needed. This uses a XML configuration file, which is very Struts-like. CSS can be used along with JSP templates. Other than that, I would say

Re: Newbie: Iterate tag : Object properties not updated to form bean from JSP

2001-11-02 Thread dhay
Rajoy, Please read the archives of this list before posting questions. This problem has been addressed many times. To summarise again, to update in an iteration, the names of the form elements must have the index included eg. name=parameter[0].value. Struts will then use this to make the

RE: Newbe - problem with Struts-Config.xml

2001-11-02 Thread Rob Breeds
You can have your JSPs in the WEB-INF directory - I use that and it works fine. Are you using a html:base/ in your JSP? Rob Breeds |+- || Drozdowski, Terry| || Terry.Drozdowski@s| || chwab.com |

How to use the radio tag inside logic:iterate tag

2001-11-02 Thread Alvin Kutttikkat Antony
I have a collection called workrelationships .I have to use radio buttons to select the preferred workrelationship. here is the code for iteration logic:iterate name=WorkRelationshipsForm property=WorkRelationships id=worker/ tr td bean:write name=worker property=faculty/ bean:write name=worker

javax.servlet.ServletException: BeanUtils.populate

2001-11-02 Thread Sudha
Hello. I get the following error 2001-11-02 18:34:42,855 533668 [Thread-4] ERROR (gui.framework.ExceptionHandler) - Handling exception javax.servlet.ServletException with template error.htm 2001-11-02 18:34:42,855 533668 [Thread-4] ERROR (gui.framework.ExceptionHandler) - Exception-Message:

Re: How to use the radio tag inside logic:iterate tag

2001-11-02 Thread dhay
See if this helps... http://www.mail-archive.com/struts-user@jakarta.apache.org/msg16684.html Cheers, Dave Alvin Kutttikkat Antony [EMAIL PROTECTED] on 11/02/2001 12:33:27 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc:(bcc:

RE: Common User Interface for JSP's

2001-11-02 Thread John Regan
thank you for the quick response Ted. it's quite obvious that you are the man. I will look @ Tiles. I didn't have any other interface rendering utilities in mind, I was just looking for suggestions. thanks again. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent:

Re: action forward tag...

2001-11-02 Thread John Nikolai
Thanks for your reply Sandeep, We are already using struts templates to render the pages. So we have something like the following: template.jsp - Contains all navigation - Gets the content page content.jsp - Inserts into template.jsp - Puts several items (title, image, etc...) into

Exception: Cannot retrieve mapping for action

2001-11-02 Thread tnist
Hello, I have the following Strut-Config file. !-- == Form Bean Definitions === -- form-beans !-- Logon form bean -- form-bean name=logonForm type=com.mlsbuyer.logonform/ /form-beans !-- == Global

RE: Exception: Cannot retrieve mapping for action

2001-11-02 Thread Chilakala, Laxminarsimha
try using servlet-mapping servlet-nameaction/servlet-name url-pattern/*.do/url-pattern /servlet-mapping instead of servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping LN -Original Message- From: [EMAIL PROTECTED]

Data source

2001-11-02 Thread Barry Jia
Hi, All, I set up a data source in my struts-config.xml like this: data-sources data-source autoCommit=false description=Tira Database driverClass=sun.jdbc.odbc.JdbcOdbcDriver maxCount=2 mincount=1

RE: Exception: Cannot retrieve mapping for action

2001-11-02 Thread tnist
Thank you, I realize that the *.do will work, I had it that way initially. However, I was reviewing the Artimus example by Ted Husted and liked how he had the URL mapping setup and the struts-conf.xml file so I thought I would give it a try. But so far, it has not worked at all in my

RE: Data source

2001-11-02 Thread Stephen Owens
Barry, This can happen if your data source is improperly configured. The Action mappings aren't processed due to an error while trying to access the datasource. My most frequent cause has been a misconfigured JDBC URL, or a missing JDBC driver. regards, Stephen Owens Corner Software

RE: Common User Interface for JSP's

2001-11-02 Thread Prengaman.Karen
Hi Ted, I joined the Struts Mailing List yesterday and have already learned some valuable information. I have seen Tiles refered to in several different posts and am wondering where I can find out more information about it (I couldn't find a Contrib folder, but wasn't sure where to look for

RE: Newbe - problem with Struts-Config.xml

2001-11-02 Thread Chen, Gin
What application server are u using Rob? Cause unless ur doing something else different. WEB-INF is supposed to be a PRIVATE folder (read the J2EE specifications) nothing public should be in this folder. Not that it cant be.. it just takes more coding. -Original Message- From: Siggelkow,

Re: Exception: Cannot retrieve mapping for action

2001-11-02 Thread cahana
Try global-forwards forward name=logonpath=/do/logon.do/ /global-forwards - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 02, 2001 8:25 AM Subject: Exception: Cannot retrieve mapping for action Hello, I have the following

Need help

2001-11-02 Thread Ashoka Murthy
Hi, I am relatively new to struts..I have a login page on which I fill user name and password and press login button. Then it should go to home.jsp instead browser says Page cannot be displayed. I saw the Tomcat console and error given is No action instance for path /logon could be created

How to use Data source in *.jsp

2001-11-02 Thread Barry Jia
Hi, All I read the struts document, I config my data source in struts-config.xml, In my action I can use the following code to get Data source and use it. Right now I want to use it in my JSP scriplet, when I use it, it can not be compiled as servlet is a undefined variable or class. I want to

RE: Need help

2001-11-02 Thread Barry Jia
did you have this classes in your WEB-INF/classes dir ?com.tgt.d2g.auth.LogonAction -Original Message- From: Ashoka Murthy [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 2:41 PM To: [EMAIL PROTECTED] Subject: Need help Hi, I am relatively new to struts..I have a login page

RE: Need help

2001-11-02 Thread Ashoka Murthy
Yes I do :-( From: Barry Jia [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Need help Date: Fri, 2 Nov 2001 15:19:42 -0500 did you have this classes in your WEB-INF/classes dir

Re: ActionMessage classes

2001-11-02 Thread David Winterfeldt
There isn't a set schedule, but there are goals set. Below is a link to the To Do List. There will be a Struts 1.1 release when these things are done. http://jakarta.apache.org/struts/todo-1.1.html When is the next release coming out?

Re: html:errors

2001-11-02 Thread David Winterfeldt
You have validate=true in your action? Or in your Action if you are definitely getting back an ActionErrors object with messages then you could use the saveErrors method in the Action class to save it. Also, do you have errors.header and errors.footer defined? There is also an html:messages

RE: Need help

2001-11-02 Thread Justin Piper
Are you submitting your form to /login, or /do/login? Alternately, are you using the html:form tag with the action attribute set to /login? -Original Message- From: Ashoka Murthy [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: Need help

Re: How to use Data source in *.jsp

2001-11-02 Thread Mark Gordon
The datasource is an attribute in application scope. You can use the pageContext to get this attribute. You may be able to do something with a bean:. tag or a jsp:useBean / tag to expose this attribute... but I could not figure it out. by the way you aren't going to put a

Re: Need help

2001-11-02 Thread Christian Rosner
Hi Ashoka, your sample struts config file does not define a form bean. Maybe this is the reason for your problem. actionpath=/logon type=com.tgt.d2g.auth.LogonAction name=logonForm input=/jsp/logon.jsp

Problem with multilingual submit button with request parameters

2001-11-02 Thread Christian Rosner
Hello struts experts, I can't get a submit button to work which uses a bean:message for a localized button text _and_ a request parameter at the same time. I have browsed the mail archive, but haven't found a solution for this. Maybe one of you can tell me the way to achieve my goal: A form on

Re: Need help

2001-11-02 Thread Mark Gordon
I think all paths are relative to the root of your application. I am new to struts... so I may be all wrong but make the path in your action /jsp/logon actionpath=/jsp/logon type=com.tgt.d2g.auth.LogonAction name=logonForm

RE: Problem with multilingual submit button with request parameters

2001-11-02 Thread Justin Piper
The problem is actually with HTML itself. The value attribute of a submit button specifies both the button label as well as the value submitted to the server. -Original Message- From: Christian Rosner [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 3:08 PM To: [EMAIL

Re: Need help

2001-11-02 Thread Ashoka Murthy
Pardon me, I forgot to mention earlier that the form-beans entry is also there. Ashoka Murthy From: Christian Rosner [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Need help Date: Fri, 2 Nov 2001 22:13:39

RE: html:errors

2001-11-02 Thread Todd Fulton
I finally got it. Was missing the init-param for the 'action' servlet in the web.xml file. init-param param-nameapplication/param-name param-valuecom.spk.ApplicationResources/param-value /init-param Thanks!!

Re: Problem with multilingual submit button with request parameters

2001-11-02 Thread Mark Gordon
If you have three submit buttons for the same form only the submit button that is pressed will be sent as a parameter... i think. so you could check for the existence of the parameter to find out what button was pressed. The parameter name will not be localized just the value... and who

RE: Problem with multilingual submit button with request parameters

2001-11-02 Thread Sobkowski, Andrej
Why don't you separate the value displayed from the action sent using a Javascript method: script language=javascript function submitWithAction(action) { document.yourFormName.action.value=action; } /script input type=hidden name=action (this can be generated with html:hidden) html:submit

RE: Problem with multilingual submit button with request paramete rs

2001-11-02 Thread Justin Piper
I would say having three properties for the three buttons would be a cleaner solution. Relying on JavaScript anywhere you don't have to is asking for trouble, IMO. -Original Message- From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 3:49 PM To: 'Struts

Re: Need help

2001-11-02 Thread Ashoka Murthy
Will get back on this. Probably the right track to go. Tnx Ashoka From: Mark Gordon [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Need help Date: Fri, 02 Nov 2001 14:30:27 -0700 I think all paths are

Professional JSP Site Design BOOK

2001-11-02 Thread Nicolas Parisé
Anybody knows how much Struts related pages will be in this book ? Nicolas

help: config filter-mapping and struts

2001-11-02 Thread c tang
Hi all, I wrote an app using struts and it works fine. Now I want to add a filter, so that a pre-defined page will be filtered before return. The question is how to specify filter-mapping. I tried lots of options, it does not work. For the following action, actionpath=/generateBig

Re: Professional JSP Site Design BOOK

2001-11-02 Thread Ted Husted
Lots. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Nicolas Parisé wrote: Anybody knows how much Struts related pages will be in this book ? Nicolas -- To unsubscribe, e-mail:

RE: Professional JSP Site Design BOOK

2001-11-02 Thread Paulo J S Pereira
Nick ... Don't know about that one, but I like Professionl JSP 2nd Ed. from Wrox ... good foundation on JSP and good coverage of basic Struts with a plus! (custom tag libs section) Paulo -Original Message- From: Nicolas Parisé [mailto:[EMAIL PROTECTED]] Sent: November 2, 2001 5:22 PM

RE: Silverstream, struts and UTF-8 Encoding

2001-11-02 Thread Krueger, Jeff
Russell, This comes from the SilverStream admin guide on page 90. It tells you how to change it in the httpd.props file, but you might be able to get it to work via the web.xml. _ Specifying character set

RE: Form Bean

2001-11-02 Thread Prengaman.Karen
Cameron, are you still experiencing this problem? I just ran into the same thing and thought I would share how I solved it. I too was creating a form bean and then adding it to the session. When the corresponding jsp was loaded, all the values were reset to the default. Upon examining my

struts with tiles

2001-11-02 Thread peter
hi Does anybody know when the next version of struts (containing tiles) will be released? Thanks Peter -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: struts with tiles

2001-11-02 Thread Trieu, Danny
I think 1.1 will have tiles in it actually the current nigthly build of 1.1 already have Tile in its source. -Original Message- From: peter [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 4:15 PM To: Struts Users Mailing List Subject: struts with tiles hi Does anybody

Re: Capturing an outgoing response.

2001-11-02 Thread Adam
Another way is to proxy it yourself. This may or may not work if you are dependent on user state. Basically, you server code plays the role of the web browser ala wget. (not sure if the following code is correct. Let the buyer beware) URL url = new URL(pageToCache); String

exceptions

2001-11-02 Thread Todd Fulton
Design wise . . . do you all tend to propagate exceptions all the way up to the ActionServlet -- centralized like -- or rather grab them in a more granular fashion? For instance, I've got Action classes using a business object layer which has LDAP exceptions possible down deep. This layer is

  1   2   >