DataSources

2007-03-14 Thread Daniel Blumenthal
I'm looking into upgrading from 1.2.9 to 1.3.8, and I'm having a hard time figuring out how to get DataSources for my application. In the old version, I did the configuration in the struts-config.xml file, and could say the following in the action: DataSource ds =

RE: DataSources

2007-03-14 Thread Daniel Blumenthal
Chris, Thanks for the reply - this sounds like just what I need. For instance, Apache Tomcat makes this pretty darned easy. You can define a JNDI datasource at the server level, or per webapp. The configuration is (roughly) the same; it just goes in a different place in your config files.

Internet Explorer and serving files

2006-10-29 Thread Daniel Blumenthal
I'm trying to get my server to send an MP3 file to the client, but it's just not working on Internet Explorer (Firefox works fine). The user clicks a link like this: a href=/myapp/GetMP3.do?id=1download file/a And whereas Firefox opens up a save as window, IE forwards you to an error 404.

RE: strange problem with session IDs

2006-04-19 Thread Daniel Blumenthal
It makes sense that going from step 1 to step 2 is going to yield a new sessionID, because a new window is being opened. Not really (makes sense, I mean). It's likely that the user has closed the browser down between sessions. Also, a new window being opened in IE will have a new

strange problem with session IDs

2006-04-18 Thread Daniel Blumenthal
I'm having a very strange problem with sessionIDs getting dropped. It only happens rarely, and I can't seem to reproduce it myself, but I can see that it's happening by looking at the logs. (it's happening on XP with both IE and Firefox) I have four pages: Home, Register, CreditCard, and

upgrading from 1.1 to 1.2.9

2006-03-24 Thread Daniel Blumenthal
I just took the plunge, and upgraded from 1.1 to 1.2.9. I did the following: replaced all the .jar files in WEB-INF/lib replaced all the .tlds in WEB-INF upgraded to sslext1.2 restarted Tomcat And, um, everything just worked. embarrassed shuffling of feet Now, normally this wouldn't be

yet wnother localization question

2006-02-20 Thread Daniel Blumenthal
So, I'm in the midst of localizing my app, and the first thing that's clear is that localizing the MessageResources is a snap (pats self on back for choosing Struts). My question, though, is whether there's a standard method for choosing one .jsp or another based on language. Also, is there a

RE: bi-di messages and dir=RTL?

2006-01-22 Thread Daniel Blumenthal
Ok, I use a resource file for all text and then put it in the html page using c:out, etc. But, what about Hebrew Arabic? They need to be marked with dir=RTL. I can make the message span dir=RTLhi there/span but then I can't escape any text and have to make sure I have escaped things in

RE: The framework I think I want...

2006-01-07 Thread Daniel Blumenthal
I just wanted to say, this has been a great thread, and given me a lot of food for thought. As I mentioned previously, I've spent a lot of time with my head down developing in Struts 1.1, and now that I'm refactoring my site, it's good to hear people batting around different ideas about the

RE: The framework I think I want...

2006-01-07 Thread Daniel Blumenthal
Frank, Interesting... there is of course no reason you can't use ActionForms with AJAX, was it a conscious decision that you didn't need them? How are you getting around not using them? Your Actions pull parameters directly from request I assume? Right. My struts-config.xml file is

RE: [FRIDAY] You might be a geek if ...

2006-01-06 Thread Daniel Blumenthal
nah, if you were really a geek you'd type :x and save the keypress :) -Original Message- From: Simon Chappell [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 11:09 AM To: Struts Users Mailing List Subject: Re: [FRIDAY] You might be a geek if ... I have been known to

RE: Sending file name containing unicode characters in http file download

2006-01-05 Thread Daniel Blumenthal
Sourav, I'm not sure, but I'd guess that you'd want to encode it as a transportable UTF-8 format on the server side, and decode it on the client side. Assuming that this is, in fact, what you need to do, you can find instructions on doing it here: http://www.w3.org/International/O-URL-code.html

RE: bean:write question

2006-01-04 Thread Daniel Blumenthal
Is it possible to supply some parameter as expression for property getter in bean:write tag ? I'd like to write bean property supplying the result of other bean property as the input parameter in my JSP page. If it isn't, is there any way to do this? There are a couple of ways to do

RE: [FRIDAY] You might be a geek if ...

2005-12-30 Thread Daniel Blumenthal
Remember - the first step is admitting you have a problem. -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 3:04 PM To: Struts Users Mailing List Subject: Re: [FRIDAY] You might be a geek if ... ...Instead of playing Twister

RE: How does Shale affect my Struts development

2005-12-29 Thread Daniel Blumenthal
Actually, not to start that holy war, but I'm in the middle of refactoring my Struts 1.1 app, and am trying to decide whether there's any compelling reason to upgrade to either 1.2.x, or Shale. Struts 1.1 has certainly been just fine - and unless there's a good reason (important security upgrade,

RE: How to remember usernames?

2005-12-29 Thread Daniel Blumenthal
On 12/29/05, Priya Saloni [EMAIL PROTECTED] wrote: Hi there, I have a requirement like this where i need to remember the user names for a computer.Can some one suggest me how to implement this using struts based framework.. Example: *Username: * *Password: * Remember

RE: serving binary files

2005-12-28 Thread Daniel Blumenthal
-Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, December 28, 2005 12:28 AM To: user@struts.apache.org Subject: Re: serving binary files Daniel Blumenthal wrote: Hi there, and happy holidays! I have an application

RE: Discussion forum software -- open source

2005-12-27 Thread Daniel Blumenthal
A couple of years ago someone suggested PMachine, but again - it's PHP-based. I'm not sure why, but most (all?) of the discussion forum packages out there seem to be in PHP. -Original Message- From: slam dunk [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005 12:33 PM To:

RE: [OT] customizing JSF view management (was [shale][struts-faces] structured URLs with JSF (reprised))

2005-12-27 Thread Daniel Blumenthal
You can get it from the HttpServletRequest object. bean:page id=req property=request/ Here's the javadoc page: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest. html Daniel -Original Message- From: Garner, Shawn [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Upload File

2005-12-27 Thread Daniel Blumenthal
This probably won't help, but (you never know) - you might want to specify method=POST. So: html:form action=/foto enctype=multipart/form-data method=POST Just a thought. Daniel -Original Message- From: Flávio Maldonado [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 27, 2005

serving binary files

2005-12-24 Thread Daniel Blumenthal
Hi there, and happy holidays! I have an application in which there are certain files which are only accessible by certain users. So, when a request comes to my GetFile Action, I first verify that they have the correct permissions, then send the file by opening the file and reading it into the