RE: about images and db

2002-10-20 Thread Tero P Paananen
What could you suggest to me to display images stored in a database. When I get them in a bean what could I do to show them on a web d. page? How is this related to Struts? Did you Google for answers before posting? -TPP winmail.dat-- To unsubscribe, e-mail:

RE: help, I'm desperate!!!!

2002-10-10 Thread Tero P Paananen
table class='list' cellpadding=10 cellspacing='0' tbody Your HTML is broken. This last table is not closed and is incomplete and you're missing the end tag for your form. -TPP

RE: all this traffic

2002-09-26 Thread Tero P Paananen
- One reason why there are a lot of questions is that documentation is lacking. What I wanted to suggest was one method of collecting answers in a cheap fashion. Hell no! The main reason why there are a lot of questions is because people expect their breakfast to be spoonfed to them. If

RE: [STRUTS] Detecting multiple users with the same login

2002-09-23 Thread Tero P Paananen
Store their login names and IPs in a context-scope hashtable upon login and remove them when their session expires. I'm not sure if Tomcat/JBoss has some kind of tracking mechanism that provides concurrent session info, but the documentation should tell you this. Will this work, if the

RE: logging in struts

2002-09-23 Thread Tero P Paananen
I highly suspicion this character is, in fact, a bot. ...and it is eternal Friday on the Struts User list. Kick the bot off the list. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: This guy from the bank raised a question ?

2002-09-22 Thread Tero P Paananen
In future address me directly. You can call me Mr. Rahman or Sir. Mr. Zahid, Sir, kindly realise that today is not Friday. Whoever let their Friday posting bot loose, please come and collect it. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: refreshing application properties

2002-09-17 Thread Tero P Paananen
I could be wrong, but every thing I've seen tell me that you can't do this with the current MessageResources API. There is no call for reloading or even modifying values. This is correct. We recently implemented a way to reload the application resources by extending the MessageResource API.

RE: Roles??

2002-09-17 Thread Tero P Paananen
I am going to be using Struts 1.0.2. How do you setup roles? Depends on what are you using for user authentication / management. If you're using container managed security, then you need to refer to your to the documentation of your container (Tomcat, WebSphere, WebLogic, etc.) Struts itself

RE: Roles without LDAP

2002-09-17 Thread Tero P Paananen
Anyway to use Roles without LDAP?? Yes. Can I just save some object in the session?? Yes. I wouldn't do it that way though. Use container managed security. Documentation with your container. -TPP winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

RE: [Off Topic] File Changed Listener?

2002-09-04 Thread Tero P Paananen
I am working on a project where we have two webapps, one is a admin app, the other is for users. Both are developed in Struts. The users app loads configuration settings from an XML file at startup and puts a bean into the application's scope. The admin app has an interface to change

RE: [websphere] fix for forward redirect=true

2002-09-03 Thread Tero P Paananen
The form tag doesn't properly parse on Websphere 3.5.2 for forwards to it that use redirect=true. The fix is to remove the following lines in ActionServlet (struts 1.0.2). if (path.startsWith(/)) path = request.getContextPath() + path; Websphere (in

RE: struts-config windows 2 unix?

2002-08-28 Thread Tero P Paananen
To convert a windows file into a unix format you can use the dos2unix command under unix. It will get rid of all the ^M caracters that you see under vi. Use a text editor on Windows that can save in Unix format. Practically any advanced text editor can do that. I use UltraEdit myself.

RE: Are we getting off the topic

2002-08-28 Thread Tero P Paananen
This board is too valuable to me. Any thoughts? Agree... Disagree? Agree STRONGLY. There's a reason why I subscribe to Struts mailing list and not to General Java or Tomcat Debug mailing list. Furthermore, if people would spend even 5 minutes trying to search answers to their questions

RE: [BS] Are we getting off the topic

2002-08-28 Thread Tero P Paananen
-Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED]] +2 -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] +2 Who gave you two two mod points!? +10 -TPP -- To unsubscribe, e-mail: mailto:[EMAIL

The O'Reilly book now available for pre-order in Bookpool.com

2002-08-27 Thread Tero P Paananen
http://www.bookpool.com/.x/dxoypt36fr/sm/0596003285 39% off list price compared to only 30% off at Amazon. -TPP - support the non-sw patent suit wielding book stores -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: First Web Application: Really Need Help

2002-07-26 Thread Tero P Paananen
Any advice you guys think would be helpful for me are most welcome. Depending on how aggressive your schedule is, consider getting outside help from someone who has developed web applications before for this project. If that's not an option for you, consider getting some formal training in web

FW: invalid e-mail address

2002-07-26 Thread Tero P Paananen
Somebody please remove the invitrogen.com subscriber that's causing these bounces, please. -TPP -Original Message- From: AutoReply, Invitrogen.com [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 9:00 AM To: Tero P Paananen Subject: invalid e-mail

RE: O'Reilly Struts Cover

2002-07-24 Thread Tero P Paananen
It's got only 3 legs!!! God, you're right This is awful! Might as well put the ostrich buried in sand in it :) -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Font Size

2002-07-24 Thread Tero P Paananen
Wanted a quick answer..so posting the query here..though this has nothing to do with struts How do i change the font size in a drop down ? You go to Google (or Google Groups), enter appropriate keywords in the search form and hit the search button. 5 seconds later, you have your answer.

RE: Where does the MessageResources get populated?

2002-07-22 Thread Tero P Paananen
What I would like to know, is where abouts in the code this population of the HashMap occurs, because the Struts example application has populated the HashMap by the time the MessageTag is called. But in the application I am writing, I have followed through the same code, and the

RE: Struts OReilly Book....

2002-07-22 Thread Tero P Paananen
btw: have they decided which animal is going on the cover or is that an I could tell you but then Id have to kill you bit of information? ;-) I'm still +1 for sasquatch ;) It's ostrich all the way! Give up, or I'll bury my head in the sand! -TPP -- To

RE: [ANN] Chapter 18 of the O'Reilly Struts book now available

2002-07-18 Thread Tero P Paananen
or maybe an ostridge... Strut -- To walk with a lofty, proud gait, and erect head; to walk with affected dignity. http://www.dictionary.com/cgi-bin/dict.pl?term=strutr=67 +2 for ostrich (please note the correct spelling :) Perfect! -TPP - ostrich = strutsi in Finnish -- To

RE: container managed security

2002-07-12 Thread Tero P Paananen
Consider that you are writing a portal application, with the usual self registration facilities. It is trivially simple to make the portal app itself portable across containers, if you just stick to standard servlet and JSP facilities. But the notion of add a new user is not portable,

RE: Does anyone have something to dump a sessions contents in a JSP?

2002-07-10 Thread Tero P Paananen
This would be handy if someone had code that would find and dump all the contents in a session in a JSP page... This is not by any means covering all potential cases and has some problems, but I'm using the following while developing my JSP pages: % java.util.Enumeration

RE: XML based application resources?

2002-07-08 Thread Tero P Paananen
Is there an extension or maybe some trick in Struts which would allow me to have xml-based application resource files? Extend PropertyMessageResources.java ( the corresponding factory class) and implement your own loadLocale() method, then, in your struts-config.xml, point application and

RE: Forwarding to action

2002-06-23 Thread Tero P Paananen
Is it possible to return a forward to another action (e.g. to chain actions)? Yes. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Re: Forwarding to action

2002-06-23 Thread Tero P Paananen
Is it possible to return a forward to another action (e.g. to chain actions)? Yes. Excellent! However, I'm not able to find that class/method. Hint? ActionForward forward = mapping.findForward( your_forward_name ); return forward; Define the forward in your struts-config.xml

RE: Absolute URL in forward tag

2002-06-18 Thread Tero P Paananen
is it possible to give an absolute URL (like http://www.xyz.com) in the 'path' attribute of 'forward' tag? Yes, but only, if it's a redirect (redirect=true). -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: Who's using Struts and license issue

2002-06-18 Thread Tero P Paananen
Personally, I've got no problems with Struts or plastering powered by Struts on every page. I would, if I were in charge of brand management/marketing. Does the Struts license allow putting that sentence in a meta tag (bad) or as an HTML comment (good), so that it's invisible to the regular

RE: User Authentication

2002-06-12 Thread Tero P Paananen
That's the part I was talking about. Tomcat and Resin aren't too bad, but I never have found an example of container managed security with Websphere. WebSphere uses its CustomRegistry interface for the database access layer of container managed security. Please see

RE: form-based login on a BEA weblogic server 6.1

2002-06-11 Thread Tero P Paananen
I'm trying to use a form-based login on a Bea WLS 6.1. Is there anyone who has experience with this using struts?? I don't know exactly how to set the actionmapping, because BEA wants the action of the form pointing to j_security_check. Does anyone has a working example for this problem?

RE: form-based login on a BEA weblogic server 6.1

2002-06-11 Thread Tero P Paananen
This will tie the app to weblogic. What means, the login-procedure is specific for weblogic. No it won't. The behavior described in Jon Ridgway's post is vanilla Servlet Spec 2.2 behavior and will work on any compliant servlet container. -TPP -- To

RE: WebLogic 6.1SP2 with Struts 1.1b-1

2002-06-11 Thread Tero P Paananen
I've read every one of the 62 messages in the thread in the archive and AFAICT, we are f*cked. One message referenced a tech update on BEA's website recognizing the ClassNotFoundException being thrown by the classloader, but I've found nothing whatsoever to indicate that Struts 1.1b-1 can

RE: MessageResources

2002-06-10 Thread Tero P Paananen
I agree, in fact, I wonder if it can be extended to load from other means such as xml, rdbms, or call to a url (ftp/http/whatever) We implemented XMLMessageResources.java on our current project. Interwoven had problems getting stuff into .properties files, so we had to read XML files

RE: Best way to forward to login, then re-forward to originally requested resource?

2002-05-29 Thread Tero P Paananen
Well, let's say for the sake of argument, that it's not authentication we're talking about. Let's say, instead, that in order to perform some Action B, some other Action A must be done first. However, doing A does not necessarily mean you'll do B next. What's the best way to remember

RE: Multiple resources - how to configure

2002-05-22 Thread Tero P Paananen
I want to use multiple resource files in my web application but cannot find a way how to configure this. To do something like this you could extend the org.apache.struts.util.MessageResources and org.apache.struts.util.MessageResourcesFactory classes and implement the functionality to read

RE: I have left the Deutsch Bank UK stage

2002-05-16 Thread Tero P Paananen
I have left Deutsche Bank UK, today. I have been made redundant because of global restructuring. Again? -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Test [Ignore Mozilla 0.9.9 mail]

2002-05-16 Thread Tero P Paananen
Test Does Mozilla/Linux send mail? *plonk* -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Websphere 4.02 Struts Deployment

2002-05-14 Thread Tero P Paananen
I'm having problems with struts forwards: logic:redirect forward=summary / (forwards to /do/summary/display) it actually redirects it to : /app/app/do/summary/display I think Websphere is being too helpful here with the redirects!! Any pointers? There's a patch to this bug. I'll

RE: SSN and/or Telephone Tag Libraries

2002-05-10 Thread Tero P Paananen
I offered to send you the source, asshole. pot-kettle-black I think it would be better, if people on the list concentrated in discussing Struts and left the jokes and ego-stroking to some other mailing list, maybe [EMAIL PROTECTED] Half the fucking traffic on this list is crap thanks to

RE: 'j_security_check' and unsecured resource access

2002-05-06 Thread Tero P Paananen
1. login successfully using 'j_security_check'; 2. the next request happens to be to an unsecured url (e.g. /do/frontpage (with no restrictions in web.xml) -- DispatchServlet -- user.frontpage (tiles)) ; 3. the request methods 'getUserPrincipal()', 'isUserInRole()' and 'getRemoteUser()'

RE: ideal method to set the sessionid in struts?

2002-04-30 Thread Tero P Paananen
What is happening here? Your app server sets the session id cookie. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Form based security

2002-04-29 Thread Tero P Paananen
Im in the process of re-engineering an application and I am focusing on how to implement the security. The current application uses a combination of security checks within the action classes and jsp custom tags based upon a user session object. After reading more about the form-based

RE: creating ear files

2002-04-24 Thread Tero P Paananen
is there any tool to create a ear file? Use ant for all your build needs. http://jakarta.apache.org/ant/ -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Tab Libraries? Bah!

2002-04-24 Thread Tero P Paananen
Rubbish! I work with graphics designers. They barely know HTML. Now you want them to remember 40 other tags? That's why you hire people with HTML/creative development skills. Or invest in training the designers. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL

RE: Tab Libraries? Bah!

2002-04-24 Thread Tero P Paananen
Rubbish! I work with graphics designers. They barely know HTML. Now you want them to remember 40 other tags? That's why you hire people with HTML/creative development skills. Or invest in training the designers. Yeah, sure. Any problem can be solved if we throw enough

RE: To use form-based authentication or not to.

2002-04-19 Thread Tero P Paananen
What are the factors involved in selecting form-based authentication over, say, custom authentication which can be simple to implement based on a db of registered users who have or don't have an indicator stored in their session(representing a login)? One factor to favor form based

RE: Multi-Lingual support

2002-04-18 Thread Tero P Paananen
1. have ApplicationResources.properties as English property file. 2. prepare a resource file for each language, in the case of Chinese, it is ApplicationResources_zh_CN.properties in the same directory, with the content translated to Chinese 3. Set init parameter

RE: Multi-Lingual support

2002-04-18 Thread Tero P Paananen
Go to Tools/Internet Options... Click on the Languages button. If Chinese is on the list move it to the top. If not, click the Add button and follow the instructions. You might also need to restart the browser. We've experienced some inconsistent behavior when testing different

RE: Multi-Lingual support

2002-04-18 Thread Tero P Paananen
Hi, Guys, I followed exactly the suggestions of setting up the languagues in the browser but no progress at all. Anything else i can do? In your JSP pages / action classes, check what's the locale set in the session object. session.getAttribute( Action.LOCALE );

RE: Save/Update data to XML-File

2002-03-28 Thread Tero P Paananen
The digester is bi-directional, and can create a JavaBean from XML, or XML from a JavaBean. The RSS digester is a good example. http://jakarta.apache.org/commons/digester/commons-digester-1. 1.1/docs/api/org/apache/commons/digester/rss/RSSDigester.html This approach could be used to

RE: Automatic way of transferring to login screen - Ryan Norman

2002-03-28 Thread Tero P Paananen
Check out this link http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security4.html#67530 Regards The standard J2EE web security does all the things you want. Unless your application needs a customized login process. If that's the case, it's kludge hacking time...

RE: struts tool ?

2002-03-27 Thread Tero P Paananen
UltraDev40 and so on... The question is: anybody knows a tool, extension or whatever that actually work with struts tags ? So it's easier to build web applications. This is a little off topic for this question, but I just met with an IBM engineer, who was saying that the latest

RE: Opening a new window in Javascript

2002-03-26 Thread Tero P Paananen
how do I open a new window from a Javascript function? window.open(url) does not work. Is there any other way to be followed in struts? The JavaScript FAQ usually helps in these type of questions: http://www.google.com/search?hl=enq=JavaScript+FAQ -TPP --