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
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
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(
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:
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
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
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
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
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
> 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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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://
27 matches
Mail list logo