11/10 6:30pm Oracle ADF and ADF Faces talk at Netscape in Mountain View, CA

2004-10-24 Thread Van
The next Silicon Valley Web Developer JUG meeting will convene at 6:30pm on Wednesday, November 10th, at Netscape in Mountain View. This is another co-hosted meeting with the Silicon Valley Java User Group (http://www.svjug.org). Special thanks goes to Netscape for providing the meeting space and O

Re: Getting a resource from a WAR

2004-10-24 Thread Eddie Bush
The ActionServlet provides an excellent example of how one might do this in its initServlet method. Perhaps you'd care to have a look at that? The classes directory is for compiled Java classes. Some folks put XML there if it needs to be in the classpath, but I try to avoid this because it "j

Re: Getting a resource from a WAR

2004-10-24 Thread Dinesh Sampangi
Hi! try putting the "myresource.xml" under /WEB-INF/classes/ and get access to it as below. public void init() throws ServletException { try{ SAXBuilder builder = new SAXBuilder(); URL confFileURL = this.getServletContext().getResource("/WEB-INF/classes/MyResource.xml"); logger.info(

[OT] Shale

2004-10-24 Thread Michael McGrady
For those of you who do not get the wiki changes, I would recommend that you look at the following addition by Craig. http://wiki.apache.org/struts/StrutsShale Very exciting stuff. Michael McGrady - To unsubscribe, e-mail:

Re: file validation best practice

2004-10-24 Thread Michael McGrady
Also, there is JHOVE http://hul.harvard.edu/jhove/ Michael McGrady Joe Germuska wrote: If your server is a Unix platform, one thing you could do is run the shell command "file" against the uploaded file, and take a look at the result. This tool ignores any extension on the filename, and examines t

Re: file validation best practice

2004-10-24 Thread Joe Germuska
If your server is a Unix platform, one thing you could do is run the shell command "file" against the uploaded file, and take a look at the result. This tool ignores any extension on the filename, and examines the content of the file itself against signature patterns it knows about. For image, Mar

Re: file validation best practice

2004-10-24 Thread Craig McClanahan
If your server is a Unix platform, one thing you could do is run the shell command "file" against the uploaded file, and take a look at the result. This tool ignores any extension on the filename, and examines the content of the file itself against signature patterns it knows about. Craig On S

Re: file validation best practice

2004-10-24 Thread Bill Siggelkow
I know of no way to deterministically discover what type of file the user sent. There is nothing to prevent a user from taking a .exe file and changing the extension to .txt or anything else ... others may have a better idea ... struts lover wrote: Thanks Bill. I had another question. What if t

Re: struts-faces: ActionForm not populated

2004-10-24 Thread Bill Siggelkow
Ahhh ... Bach! Worked like a charm, Craig ... thanks! Craig McClanahan wrote: The struts-faces library assumes that you are using value binding expressions on your input fields to bind the components to their values in the form bean, so it bypasses the usual population. As you'd see if you glance

Re: How can I set values to message parameters by using bean:message tag?

2004-10-24 Thread Greg Ludington
> Hi all, > I am wondering if there is a way to set values to message paramerts by using > bean:message, for example, > I have a message entry in my application.properties file like this:Welcome, > {0} Unless I am misunderstanding what you are looking for, that is what the arg0-arg4 attributes are

Re: How to instruct Struts to output XHTML 1.1?

2004-10-24 Thread Eddie Bush
Use styleId= on the form tag to have it emit an ID attribute. There's not a way to eliminate the name= attribute though - not that I'm aware of. Eddie - Original Message - From: "Nikola Banovic" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Sunday, Octo

RE: How to instruct Struts to output XHTML 1.1?

2004-10-24 Thread Nikola Banovic
Eddie, Craig and Niall Thanks for the fast reply! I feel ashamed I didn't take a look at the Apache bug database first :). Do you know if there is a workaround for this? Nikola -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Sunday, October 24, 2004 9:23 PM To

Re: How to instruct Struts to output XHTML 1.1?

2004-10-24 Thread Niall Pemberton
http://issues.apache.org/bugzilla/show_bug.cgi?id=15023 - Original Message - From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 12:48 AM Subject: Re: How to instruct Struts to output XHTML 1.1?

Re: How to instruct Struts to output XHTML 1.1?

2004-10-24 Thread Craig McClanahan
Just to add a bit to the complexity, it would be fairly simple to make the form tag not emit a "name" attribute under some circumstances. However, this would break the client side JavaScript emitted by current versions of the integration with Commons Validator, which rely on the "name" property (r

Re: How to instruct Struts to output XHTML 1.1?

2004-10-24 Thread Eddie Bush
There is a bug report open on this. I don't recall the number and I'm having problems finding it right now ... but it is there! So, to answer your question: You're not doing anything wrong, that's just how it currently works. I don't believe Struts is emitting XHTML 1.1, but /name/ is a requi

Re: file validation best practice

2004-10-24 Thread struts lover
Thanks Bill. I had another question. What if the user has some .exe file with .doc extension. I mean somefile.exe.doc. How do I check the valid file type with the extension. Thanks once again. --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > U can set the accepted mime types on the input tag; > h

Re: struts-faces: ActionForm not populated

2004-10-24 Thread Craig McClanahan
The struts-faces library assumes that you are using value binding expressions on your input fields to bind the components to their values in the form bean, so it bypasses the usual population. As you'd see if you glance at the login screen in the example :-), the differences in your JSP are pretty

How to instruct Struts to output XHTML 1.1?

2004-10-24 Thread Nikola Banovic
Hello, I have to output an XHTML 1.1 form using Struts form tag. When I place and elements in a JSP page, a generated XHTML page contains form element with a name attribute (which is not supported in XHTML 1.1) and input elements without closing tags. I use Struts 1.2.4. Can you please let me

RE: [OT] Hosting Companies

2004-10-24 Thread Joe Hertz
Interesting. I had a problem with Tomcat not restarting. Asked them about it. The saw I was using hibernate and complained. 7 gets you 10 that you started with them before they banned it. It's definitely verboten in their usage policy now. > -Original Message- > From: Patrick L Archibald

Re: file validation best practice

2004-10-24 Thread Bill Siggelkow
U can set the accepted mime types on the input tag; however, the browser may not do anything with this information; so in your ActionForm, I suggest you validate the type by checking the extension of the received file name. struts lover wrote: Hi Everyone, I wanted to know what is the best prac

struts-faces: ActionForm not populated

2004-10-24 Thread Bill Siggelkow
Okay -- I know doing something stupid -- anyway, I am implementing a simple example using Struts-faces -- I have a login page where a user enters username and password; which goes through my LogonAction; then forwards to a faces page for display of entered data. The problem I am having is that

Re: [OT] Hosting Companies

2004-10-24 Thread Erik Weber
I have had a pretty good experience with webappcabaret. You can deploy whatever you want on Tomcat or JBoss as long as you respect the bandwidth and memory consumption requirements, as far as I know. Erik e-denton Java Programmer wrote: I use http://www.webappcabaret.com/index.html. - Origin

file validation best practice

2004-10-24 Thread struts lover
Hi Everyone, I wanted to know what is the best practice for file type validation. I want the user to allow to upload only certain type of files and disallow all other types. I am using Struts FormFile. Any help would be appreciated. Thanks. ___ Do yo

Re: How can I set values to message parameters by using bean:message tag?

2004-10-24 Thread Addy Kapur
You should consider using 2 tags. One for displaying the Welcome message and other for the name. On Sat, 23 Oct 2004 13:51:39 +0800, Yufan Shi <[EMAIL PROTECTED]> wrote: > Hi all, > I am wondering if there is a way to set values to message paramerts by using > bean:message, for example, > I have

Re: newbie html-tag query

2004-10-24 Thread Addy Kapur
instead of using you should consider using It will iterate over all the values and build the drop down for you On 24 Oct 2004 17:09:22 -, Vishal Sudheer <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > > > > > > Here I am iter

newbie html-tag query

2004-10-24 Thread Vishal Sudheer
  Hi, Here I am iterating through an ArrayList (departments) which contains department_id and department_name. Here I want to populate the html:select option with the department details. I am able to display the department_nm in my b

Re: [OT] Hosting Companies

2004-10-24 Thread Patrick L Archibald
Joe I use Hibernate on one of my JavaServletHosting.com sites without any problems. They set up a DBCP connection pool for me and I took it from there. Thanx, PLA Joe Hertz wrote: JavaServletHosting is the one with the problem. And I *really* like them in all other respects. :-( -Joe http://