AW: AW: JDBCRealm

2001-11-28 Thread storck
Thats what I know but how can I achieve that a user has atomaticaly a role named guest and if a user is logged in how can I achieve that he can log in again cause I can't access the loginpage direct cause of tomcat? -Ursprungliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]]

Re: TRY Resource Files Editor beta version

2001-11-28 Thread BONNET Francois-Xavier
Hi Igor, I have just tried your editor. It work fine i had already used such a tool : RBManager. It is from IBM but it is free. Unless i miss something, it seams to me that RBManager has more features than your editor. Check this address : http://www.alphaworks.ibm.com/tech/rbmanager

Re: ITERATE

2001-11-28 Thread Martin Cooper
Yes. - Original Message - From: saisrinivas [EMAIL PROTECTED] To: StrutsUser (E-mail) [EMAIL PROTECTED] Sent: Tuesday, November 27, 2001 10:50 PM Subject: ITERATE Hi, Inside logic-iterate can we call JSP Pl. clarify me. Regards, Sai -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Escaped HTML characters in bean:write/

2001-11-28 Thread Chris Birch
Hi, You know, I've gone over the documentation several times, tried various debug statements, narrowed it down to bean:write, looked at the documentation again and managed to miss filter=false. I feel very foolish now... Thanks very much for your help though! Kind Regards, Chris.

RE: How to send output from Action directly to user

2001-11-28 Thread Alexander Jesse
Hi, not to forget: in the action you have to return null (return(null);) when you will service the request completely within the action. good luck Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 5:01 PM To: [EMAIL

RE: Two security roles, one ActionServlet?

2001-11-28 Thread Tom Lister
Hi This is how we set up our controller to switch http/https. I was never happy with it but it works for us. I'm posting it in the hope someone will point out a better way! Basically we decided on boundary conditions as requesting login and requesting logoff (controller always checks user and

Dynamically Developing HTML forms

2001-11-28 Thread Rajeev Singh
Hi, I have a query as to whether I can use Struts comfortably for an application wherein I have to generate HTML /JSP pages Dynamically. All these JSP's will have different names that too generated dynamically and not predecided names. I don't think we can WAR in this case so we cant follow

DB connection pool

2001-11-28 Thread Màris Orbidàns
hi How to get a connection from connection pool ? Maris Orbidans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: DB connection pool

2001-11-28 Thread Viet Kevin
//take the DataSource from the servlet context DataSource datasource = getServlet().getServletContext(Action.DATASOURCE_KEY); // and the connection Connection connection = datasource.getConnection(); Don't forget to configure your database int the struts-config.xml Ciao

RE: DB connection pool

2001-11-28 Thread Tom Lister
Does anyone know how to work with multiple connection pools to different databases. :-) Regards [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Advanced Banking Solutions Limited +44 (0)20 7448 9146 -Original Message- From: Viet Kevin [SMTP:[EMAIL PROTECTED]] Sent:

Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Otavio C. Decio
Hi, I was trying to find the best way to access the data source configured in web.xml from a Data Access Object, but I'm confused because it requires the DAO to know about servlets, since one has use the getServlet().getServletContext function to get the connection information. Do you know of a

RE: Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Tom Lister
Hi My choice in the same situation was to get the datasource in the actions, actually implemented as a method in a base action I extend for everything else protected DataSource getDataSource() { javax.sql.DataSource dataSource =

RE: DB connection pool

2001-11-28 Thread Arnaud Héritier
In your struts-config.xml you declare all your connections pool : data-sources data-source set-property property=key value=db1/ ... /data-source data-source set-property

Re: DB connection pool

2001-11-28 Thread Otavio C. Decio
Yes, I know, but I don't want my DAO to know anything about Actions. I like Tom Lister's idea, to simply pass the datasorce to the DAO. Thanks! Otavio - Original Message - From: Arnaud Héritier [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday,

Re: Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Otavio C. Decio
Thanks! I think it's ok to pass the connection to the DAO instead of making it discover the connection information. Otavio - Original Message - From: Tom Lister [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 9:38 AM Subject: RE:

RE: DB connection pool

2001-11-28 Thread Arnaud Héritier
Yes I understand and It is what I done in my application. I retreive datasources from actions and passes it to my DAO. This response was for Tom who asked how to declare several data-sources -Message d'origine- De: Otavio C. Decio [SMTP:[EMAIL PROTECTED]] Date: mercredi 28

Form problem

2001-11-28 Thread Kris Thompson
First off, I am using Frames. After I login, and forever after that point, my url stays the same because of frames. It says http://bla.bla.com/bla/login.do. Problem is if someone bookmarks this page and trys to hit it (even while the session is valid) I get the following error. Error: 500

RE: DB connection pool

2001-11-28 Thread David Bolsover
Hi The solution I use is to use a WEB.xlm configured servlet to establish a connection pool as follows: -snip- public class DataAccess extends HttpServlet { private GenericDataSource dataSource = null; private String description; public void init() throws ServletException {

Security for Actions or ActionClasses?

2001-11-28 Thread AJ Morris
Hello, I am new Struts and evaluating whether to use it for my next project. I wonder how struts handles security. I understand I can still apply container security by applying security constraints to my ActionClasses. But, is there some way to apply security based on the Actions? Does Struts

Re: Security for Actions or ActionClasses?

2001-11-28 Thread Ted Husted
Struts can also use the Tomcat JDBC Realms. Nic Hobbs has put together a Role-based security package at http://husted.com/struts/resources/struts-security.htm I'm about to give it a whirl myself. Let me know if you like it. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software

RE: Security for Actions or ActionClasses?

2001-11-28 Thread AJ Morris
Yes! This exactly what I was thinking of -- Especially because it uses the underlying security API, which could be Tomcat, Websphere, whatever. I would love to try this out, but what is the development status? Is this incorporated into Struts, or a branch, or a final submission? In the docs, Mr.

Parameterizing Datasource URL

2001-11-28 Thread Stephen Turner
This may turn out to be an XML question rather than a struts question, but here goes... I have a data source defined in struts-config.xml, including database URL. This has worked fine so far on my development machine, but now I want to deploy my application to a different (production) server

RE: Parameterizing Datasource URL

2001-11-28 Thread Mikkel Bruun
Well...you have to specify it somewhere...the struts-config.xml seems like a nice place... or if your are using a deployment tool (ant??) you could make it do keyword subsitition on deployment... specifying data in a configuration file isnt hardcoding...its specification... Mikkel

check for null collection

2001-11-28 Thread Thinh Doan
I've defined the following collection but don't know how to use the logic tag to check if it contains no data to display appropriate message: logic:present name=MEMBERS scope=request bean:define id=myArray name=MEMBERS type=java.util.TreeSet scope=request/ logic:iterate id=member

Struts modifications policy

2001-11-28 Thread Jeff Pennal
Hello all, I was wondering if someone could answer this question for me. I have modified a version of struts 1.0 to support xml-xsl-html transformations. I would like to make these changes available to anyone who would want to use them but I was wondering what the policy is on posting

RE: Security for Actions or ActionClasses?

2001-11-28 Thread Matt Raible
I've used Nic's extensions on a project, and actually mofified his code to return an SC_FORBIDDEN status code. To specify an error page for this code, you simply need to add the following to your web.xml: error-page error-code403/error-code location/forbidden.html/location /error-page You

Forward session

2001-11-28 Thread Frot
Hi, Small questio : big problem. In servlets a forward does not seem to work when in a session !? Is this a correct assumption/observation ?? Currently I have to replace all forwards by redirects, resulting in some unwanted behaviour when hitting the back button. If it is not possible to use

Deplyoment problem on LinuxTomcat4.0.1

2001-11-28 Thread Dragomir Nikolov
Hello, I am trying ot deploy my struts - based web application on linux and tomcat 4.01 using jdk 1.4.0 Beta 3 But I have the following exception thrown. javax.servlet.ServletException: Parsing error processing resource path /WEB-INF/struts-config.xml at

Removing session scope form bean on short-circuit

2001-11-28 Thread JEWeaver
Hi, I have a multi-page transaction that uses a session-scoped form bean. The action class that carries out the final transaction cleans up the form bean from the session. The catch is that on earlier pages there are links that allow the user to short-circuit the business transaction

Re: Forward session

2001-11-28 Thread Erik Hatcher
Sessions and forwards have nothing to do with one another (unless of course your in some kind of load balanced server farm and aren't using session affinity or something like that). In other words, sessions and forwards work fine together. Care to share the error you're getting when using a

How to use a group of html:image tags?

2001-11-28 Thread Ashoka Murthy
So that on submit each sends a different request parameter to the server?!! Also how to use the Action class in this case? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail:

Re: Struts modifications policy

2001-11-28 Thread Ted Husted
We welcome derivative works, so long as the license is kept intact. Many of the extensions posted on our resource page rely on modified code. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ Jeff

Re: Struts modifications policy

2001-11-28 Thread Jeff Pennal
Great, that's good to hear, and the licensing is no issue for me. As for the posting on the resource page, is there are particular email that I need to send infomation to get my modifications posted? Thanks again, Jeff Ted Husted wrote: We welcome derivative works, so long as the license is

Re: Security for Actions or ActionClasses?

2001-11-28 Thread Ted Husted
It would be like a branch at this point. I'm going to try it myself soon, and if I like it as much as Matt did, then it could make it's way into the distribution ;-) It does help when people like Matt mention that it worked well on their own projects. AJ Morris wrote: Yes! This exactly what

Re: Struts modifications policy

2001-11-28 Thread Ted Husted
Putting in an enhancement request to Bugzilla is best. Keeps things from getting lost. http://nagoya.apache.org/bugzilla/ Jeff Pennal wrote: Great, that's good to hear, and the licensing is no issue for me. As for the posting on the resource page, is there are particular email that I

Misunderstood newbie

2001-11-28 Thread David Lauta
Hello, Can someone help me get started? Where/when is the proper place/time to create an ejb (Entity bean)? Should I create access methods in the mapping class, the form class or both or should I just create the objects in the action class? I want to create a complex entry form that may

File Upload Problem.

2001-11-28 Thread Marli Satyadi
Hello, I was writing some upload code to test the use of MultipartIterator class. My html code is as follows: - BODY BGCOLOR=FF h1 MULTIPART TEST/h1 FORM NAME=loadfile ACTION=/MDC/servlet/servlet/com.cisco.nm.callhome.servlet.TestServlet

Re: Misunderstood newbie

2001-11-28 Thread Barry Glasco
To implement a screen of the particular Use Case, the following artifacts should be created: 1.Action class handles logic of that particular screen, errors and, probably, validation. 2.ActionForm class stores and validates the data presented on the screen. 3.

Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-28 Thread antony
Hi I want to include a hidden field in a form which I have. I do not want this information to be included in the formbean which is defined for this page. How can I do this? Should I just use plain html INPUT TYPE=hidden NAME=action VALUE=send without using the html taglib supplied with

Re: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-28 Thread Erik Hatcher
Won't hurt. You'll just have to use request.getParameter(action) in your Action to get it. - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 8:25 PM Subject: Hidden Field in a form. Do I use struts taglib or

Re: Hidden Field in a form. Do I use struts taglib or vanilla ht ml?

2001-11-28 Thread antony
The data I am storing in the bean is logically different from what the hidden field value is, I have a message message { string Recipent string From string MessageBode } And the hidden field is action=sendMessage and I didn't think that message { string Action string

RE: Hidden Field in a form. Do I use struts taglib or vanilla ht ml?

2001-11-28 Thread Brett Porter
That's an interesting design decision. I have always had a form bean and then another bean containing the actual data. The action copies it across, processes it, and stores it. The reason I'd do it that way is that I imagine the message is a business class, and you don't really want you model

RE: Hidden Field in a form. Do I use struts taglib or vanilla html?

2001-11-28 Thread Shri
by having a 'HTML' hidden field, you will loose the mapping of form elements to properties in the form bean, action class cannot access the value of it. Shri -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, 29 November 2001 12:26 PM To: Struts Users

Re: Form problem

2001-11-28 Thread Pete Carapetyan
I have had this same problem with frames, but my frame was on one server and the called login form was on another. As soon as I got them coming from the same box, everything worked fine. Don't know if that is your problem. Kris Thompson wrote: First off, I am using Frames. After I login, and

Page Expiration

2001-11-28 Thread Stanley Struts
How can I make it so that when the user clicks on the back button, he is presented with an error stating that the page has expired (does this make sense?) __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.

[ANNOUNCEMENT] Struts 1.0.1 Release Candidate 1

2001-11-28 Thread Martin Cooper
The first Release Candidate of Struts 1.0.1 is now available. The Struts1.0.1 release contains fixes to bugs identified in the Struts 1.0 release, and documentation updates. No new functionality is available with this release. The binary distribution is available at:

Secure Example

2001-11-28 Thread storck
Hi, does an example exists wich uses jsp's for frontend and secure ejb's ? Many thanks! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]