I would guess it is someone purposely subscribing it.
Just a guess...
> -Original Message-
> From: Paananen, Tero [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 22, 2003 4:56 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Auto-Confirmation
>
>
> > Thank you for
Dear Eric,
>From what I learned of interfaces, I would not need to redefine my
checkLogin method in each Action subclass. By saying "public class
NewAction extends Action implements LoginCheck", I am able to use the
LoginCheck's "checkLogin(request)" method as if it were something I'd
defined in
Dear All,
I have an application which returns a varity of properties, which can
not be decided at design time. I would like to populate the Business
data into a dynaValidatorForm and display them.
In this case, it is not possible to specify all the properties as
. If i set properties, without
I am not entirely sure what your intentions are here, but it appears
that you are missing a return statement in your OrgIdService execute()
method -- the function only has one return statement, and it returns
null. You need at least one return statement that returns an ArrayList.
As a minimal cha
Dear Rich,
I had my javascript validation break the page like that
when I had two conditions incorrect in my page:
1) I put my tag within
my opening/closing tags
2) when I used #1 with the wrong formName="something" (i.e.
no matching validation formset).
When I fixed both of those problems on
Use the
tag. This will take care of everything for you.
-Trav
Fumo, Vince wrote:
I'm using the tag in all my jsps so my images and css sheets get
correctly referenced. However, when I add refs to my action mappings, I have
to add a ../ before them for them to work.
For example will get me t
There are 2 ways to solve this problem
1. through Javascript
2. in FormBean
1. Write the even on the Onsubmit of the form
on this javascript method return false when cancel is clicked.
2. On Validate method of the form bean you can check the Cancel button
clicked if yes then return or do valid
I'm not familiar with the use of double quotes in regexes. However, you
seem to have the right idea. Instead of quotes, try using \\ in place
of each \ you want to match. E.g.:
^\\(\\[A-Za-z0-0_-]+)+\\?$
Quick explanation
\\ - Must start with a single backslash
(\\[A-Za-z0-0_-]+) - A patt
Hello. I am using a HashMap for inter-component communication from my ActionClass to
my BLB (Business Logic Bean) which connects to an Oracle DB to execute a query and
return a ResultSet.
Any assistance you can provide would be most appreciated.
Thanks in advance.
- Mitesh Kapadia
It seems
On Fri, 22 Aug 2003, Andrew Hill wrote:
> Date: Fri, 22 Aug 2003 19:31:18 +0800
> From: Andrew Hill <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Disallow user to modify URL
Thanks Cal. I will have a look.
steve
-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 4:04 PM
To: Struts Users Mailing List
Subject: RE: [OT] - Bread Crumb navigation
I created an example .war using two different techniques that I posted
on
I've been beating my head against this for a couple of days now, if someone
can help me out, that would really make my weekend :-)
I am having a problem with an ActionForm after restarting the context.
Here's some details:
1. I have a jsp with struts form tags.
2. This form has an ActionForm as
I just upgraded to Struts 1.1 from rc2 and now I am getting this error
msg when I start Tomcat.:
log4j:WARN No appenders could be found for logger
(org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
I remember reading about something like th
I am having a problem with validating a html:select drop down. I think.
The problem: after validation fails the JSP is blank (the browser is blank)
not just an empty drop down. To be more specific...I load the page then
without filling out any field I do a submit. It then does the javascript
va
I would prefer to use the security constraints to protect
sensitive area. And in the logout action class, invalidate
the user's session and then forward to /logout.html.
In the logout.html page, you could add JavaScript
statement on top of it:
location.replace('/thank_you.html');
Once the thank_
If you look at the Boolean Converter as shown below, you will
find an empty string will be converted to false if useDefault is true.
if (stringValue.equalsIgnoreCase("yes") ||
stringValue.equalsIgnoreCase("y") ||
stringValue.equalsIgnoreCase("true") ||
I'm using the tag in all my jsps so my images and css sheets get
correctly referenced. However, when I add refs to my action mappings, I have
to add a ../ before them for them to work.
For example will get me the follwing error:
The request sent by the client was syntactically incorre
I don't think you want the slash when you reference your page.
try this:
instead of:
> -Original Message-
> From: Bryce Fischer [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 22, 2003 4:23 PM
> To: 'Struts Users Mailing List'
> Subject: Ti
Bryce,
Try taking our your leading slash on the /default.layout tile reference:
If you didn't put a slash in your tile name, don't use it with a slash in
your definition. Tiles are specific to the 'name="something"', not path
specific.
Regards,
David
-Original Message-
From: Bryce Fis
> Thank you for submitting your request to Quest Software
> Technical Support.
Who's the stupid [EMAIL PROTECTED]@ at Quest, who subscribed
to the list with an Email address that's fed to their
support systems?
If the list owners are reading, why don't you unsubscribe
this genius, please?
Thanks David
IN our case when we update, we do not want to reset the
checkbox values. So we are going to read the values from the request
parameter and then reset the checkboxes according and the others would
be reset to blank.
Raghu
-Original Message-
From: David Erickson
I'm going to describe my problem, then list the appropriate files below.
I'm new with tiles, and am trying to get a simple tiles-definition
working.
Here's what I did:
1. I create a file called tiles-def.xml, and put it in my WEB-INF
directory (listed below)
2. Make sure my definitiions-config
If you want to validation to be turned off in both javascript and server
side you ahve to use the tag
You will not be able to set the property for this tag because if you do,
struts won't know where to look to find the submittal to see if it should or
shouldn't do the server side validation.
Yo
ah.. You know I've been messing with this all day and that was something I
didn't try.. I figured the property names from the struts website were up to
date...but now that I look, the setters for BasicDataSource are diffent that
what I had. Thank you, this works great now...
v
-Original Messa
Hi Susan,
In my application, I do not have to reset the entire form, as I
do an update and return to the same page... The user should be able to
see the checkboxes that he set or disabled. Do you have any ideas??? One
idea given to me was to read the request parameters and then set the
c
--- "Fumo, Vince" <[EMAIL PROTECTED]> wrote:
> Thank you David, I gave that a shot and I made some headway, however,
> now at
> Tomcat startup (and obvioulsy Struts startup) I'm getting an exception
> that
> basicly states "Cannot load JDBC driver class 'null'" (full startup is
> below). I'm sure I
I was looking at the source for Roller a couple of weeks ago, it had a BreadCrumb
class in it. I didn't investigate it or use it, but I do remember it being there:
http://www.rollerweblogger.org/page/project
If I rememer correctly, it was a servlet filter that used a simple push/pop mechanism
f
By sub-classing requestProcessor, I can now do my own authentication within
Struts. I believe my solution is both simple and i18n compatible so I am
sharing it. Sometime later, I'll probably update it to set a session
attribute, "refererPage", where I've stored request.getServetPath() so I can
us
Hi,
I had one issue, that is I have some checkboxes within my
, and
1) When the user clicks on the checkbox, the property corresponding to
the checkbox is set to 'on'.
2) When the user de-clicks the checkbox(removes the check), the checkbox
is still set to 'on', how do we reset t
Shouldn't be any trouble at all having scriptlets and struts stuff on
the same container. You could just map all the old jsp's as forwards
to have everything controlled from a centralized place. Then if you
ever got time you could start thinking about porting the old stuff,
moving some code ou
I am assuming you are using this form in a session scope then.. check back
through the archives on the reset function of the form there have been
numerous posts within the last few weeks on this topic.. Essentially what
happens is that if you deselect a checkbox and then submit the form, nothing
is
Thank you for submitting your request to Quest Software Technical Support. We are
unable to process your request because our records indicate that you are not
registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and
self-register from
Thank you for submitting your request to Quest Software Technical Support. We are
unable to process your request because our records indicate that you are not
registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and
self-register from
Thank you for submitting your request to Quest Software Technical Support. We are
unable to process your request because our records indicate that you are not
registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and
self-register from
Thank you for submitting your request to Quest Software Technical Support. We are
unable to process your request because our records indicate that you are not
registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and
self-register from
Thank you for submitting your request to Quest Software Technical Support. We are
unable to process your request because our records indicate that you are not
registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and
self-register from
Thank you for submitting your request to Quest Software Technical Support. We are
unable to process your request because our records indicate that you are not
registered for Technical Support.
To register, logon to our Supportlink web site http://www.quest.com/support , and
self-register from
Try "driverClassName" as the property.
-Original Message-
From: Fumo, Vince [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 3:32 PM
To: 'Struts Users Mailing List'
Subject: RE: problems
Thank you David, I gave that a shot and I made some headway, however, now at
Tomcat startup (
I created an example .war using two different techniques that I posted on my site - it
depends on tiles to function. Try
http://www.calandva.com/holmansite/do/blog/blogging?date=20030701
Cal
http://www.calandva.com/Last update 08/01/03
-Original Message-
From: Steven
Thank you David, I gave that a shot and I made some headway, however, now at
Tomcat startup (and obvioulsy Struts startup) I'm getting an exception that
basicly states "Cannot load JDBC driver class 'null'" (full startup is
below). I'm sure I have my struts-config correct and I have the JDBC driver
Hello,
What is a way to add Struts to Model 1 App?
The App is implemented as Model 1 and I have no time to transform it to
Model 2 (and Struts).
What is a way for new functionality to be implemented with Struts?
How make possible for co-exist Model 1 and Struts in one App?
Something like a put Str
I'm hoping to be able to do some dynamic breadcrumb trail stuff. I see
some vague references to them when I search, but I don't see anything
good. Anybody have any good links?
thanks,
steve
-
To unsubscribe, e-mail: [EMAIL PRO
Hi Hue,
> I must confess to being a bit confused! What is the difference between
> your approach and getting an instance of a Dyna, viz:
>
> DynaActionFormClass dafc =
> DynaActionFormClass.getDynaActionFormClass("Dyna-Definition-Name-In-Struts-C
> onfig");
With a form bean your goal i
Hi all,
I try to use a filter for the authentication so I created a class which
implements filter with the following doFilter method (I found this in a
post)
public void doFilter(ServletRequest _request, ServletResponse _response,
FilterChain _chain)
throws IOException, ServletException
{
Hi,
I have one issue, that is I have some checkboxes within my
, and
1) When the user clicks on the checkbox, the property corresponding to
the checkbox is set to 'on'.
2) When the user de-clicks the checkbox(removes the check), the checkbox
is still set to 'on', how do we reset the c
Are you using the reset() method of your ActionForm to set the checkbox to
null or false?
http://jakarta.apache.org/struts/faqs/newbie.html#checkbox
Susan Bradeen
On 08/22/2003 12:32:17 PM "Raghu.Ramakrishnan" wrote:
> Hi,
>
> I have one issue, that is I have some checkboxes within my
> , and
Hi
I have a question regarding pagination.
I have say 40 records, and I am displaying them as 10 per page.Now I go
to the 2nd page and delete a record, say record no 11.How do i make sure
that i remains in the 2nd page and shows the records from 12-21?
Well, the number of arguments is part of the method signature. In your case a dynamic
object would be ideal, and if you don't want to use an array you could ever use a
Collection, which offers the add(Object element), remove(Object element) methods, thus
allowing for dynamicity. The Collection p
--- "Fumo, Vince" <[EMAIL PROTECTED]> wrote:
> Yes..I know that I can include the legacy jar but I don't want to. I'd
> prefer to not use depreciated librarys in my app. The thing I'm confused
> about is that I'm not sure how I'm even using GenericDataSource at all.
> I
> thought that by explicitly
Hi david
I spent a little to much allocated time on this so I had to move on, and I am
going to come back to it at a later date. I have a quick 'hack' (a taglib
which checks the session in each jsp) for my prototype to present to the
client..Anyway, when i do it i will let you know.
W
On 08/22/2003 04:43 PM Leonardo Francalanci wrote:
I read the JNDI tutorial, but is the worse thing I've ever read.
You've obviously never read any of my poetry.
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
-
To uns
I would like to state a basic assumption I deduced in learning struts, then
pose a question.
Assumption: ActionForm property getters and setters should return and take
Strings.
My initial impulse was to try passing the actual data types (Dates, Numbers,
etc.); however, the Struts mechanism see
Cool,
Thanks Adam :-)
-Original Message-
From: Adam Levine [mailto:[EMAIL PROTECTED]
Sent: 22 August 2003 15:27
To: [EMAIL PROTECTED]
Subject: RE: Validating uploaded file as an image only
Use of the MediaTracker is way to "track" the status of any "media".
>From the MediaTracker javado
thats cause you mentioned it like that
it would take the base dir as ./pages
add multiple fileset if you want some other dir too...
Panchasheel
-Original Message-
From: deepaksawdekar [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 12:48 PM
To: Struts Users Mailing List
Subject
Commons Validator was recently modified to allow the required validation
in Struts to run on String[] or Collection objects. You can download the
latest Validator nightly build to try it out.
David
--- java-dude <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am having problems using Validator framewor
Tried that - it still performs the server-side validation.
- Original Message -
From: "Norm Deane" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 12:07 PM
Subject: RE: Bypassing Form Validation
> Try
>
>
>
>
> --
> Norm Deane
Hi,
I have one issue, that is I have some checkboxes within my
, and
1) When the user clicks on the checkbox, the property corresponding to
the checkbox is set to 'on'.
2) When the user de-clicks the checkbox(removes the check), the checkbox
is still set to 'on', how do we reset the
Yes..I know that I can include the legacy jar but I don't want to. I'd
prefer to not use depreciated librarys in my app. The thing I'm confused
about is that I'm not sure how I'm even using GenericDataSource at all. I
thought that by explicitly using the BasicDataSource I would be avoiding
this pro
> I have the appropriate configurations completed to use Log4J w/Tomcat.
> However, how would I invoke Log4J from within my action class to
> generate DEBUG statements?
> I have the following package imported:
> import org.apache.log4j.*;
> Any examples would be most appreciated.
> Thanks in advan
I am using Ant to build my war file. my build file is
When i run the build only content of pages dir is included, Can some one help me to
debug tht build file.
Thanks and Regards
Deepak
---
--- Leonardo Francalanci <[EMAIL PROTECTED]> wrote:
> In my DB tier I use an interface to get the connection.
> When used under Tomcat, the class that implements the connection gets
> the connecton through JNDI.
> I want to test these classes outside of Tomcat.
> Is there a simple way to put object
Try
--
Norm Deane
MIS Consultant
Vanderbilt University
(615) 322-7855
[EMAIL PROTECTED]
-Original Message-
From: David Stemm [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 10:39 AM
To: Struts Users Mailing List
Subject: Bypassing Form Validation
I'm having trouble trying
--- "Fumo, Vince" <[EMAIL PROTECTED]> wrote:
> Hi all. I'm sure this has been asked before but I can't seem to find it
> in
> the archives.
>
> I'm building a simple web app and I want to use a connection pool. I've
> decided to use the commons dbcp BasicDataSource class
> (org.apache.commons.dbcp
Hi all. I'm sure this has been asked before but I can't seem to find it in
the archives.
I'm building a simple web app and I want to use a connection pool. I've
decided to use the commons dbcp BasicDataSource class
(org.apache.commons.dbcp.BasicDataSource). Here is the struts-config I'm
using (bas
I have methods for debug, info, warn and error. Attached is a sample class
I use.
- Original Message -
From: "Kapadia Mitesh-C23457" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 11:08 AM
Subject: RE: Generating logs w/Log4J in Acti
I think it is. Probably because WSAD 4.x uses JSP1.1 which requires the flush
attribute in jsp:include. And the flush attribute cannot be used with custom tags. I
ran the application on Tomcat 5.0 and it worked fine.
Thanks
Yamini
-Original Message-
From: Paul McCulloch [mailto:[EMAIL
No, Richard that's it. :)
I will be sending the example application for all who have replied
(later today - i am working now - maybe then it will be more obvious
the advantage of the framework. unfortunately, it will not make people
earn more money by just using it, but it will surely be easi
Maybe this files can help you.
Regards.
Manolo Ramirez T.
Leonardo Francalanci wrote:
In my DB tier I use an interface to get the connection.
When used under Tomcat, the class that implements the connection gets
the connecton through JNDI.
I want to test these classes outside of
In java 1.4 logging, in the java logging.properties file, it says:
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = %h/java%u.log
You can also log to the console and depending on what you have setup
your app server scripts to do with output to the console
I'm having trouble trying to cancel out of a form. I have a cancel button that looks
like this:
and while the onclick event does cancel out the javascript validation it still goes
ahead and performs the server-side validation and I get errors saying certain fields
are required, etc. I'm usi
--- Andy Cheng <[EMAIL PROTECTED]> wrote:
> Hi, currently I have something like the code below on every action, is
> this the normal way of getting the connection? And how would normal
> people do if they want to make some data access objects, which contain
> all the methods like insert, select et
Hi, currently I have something like the code below on every action, is
this the normal way of getting the connection? And how would normal
people do if they want to make some data access objects, which contain
all the methods like insert, select etc, while the Action class will
purely do logic, fo
Mark,
There is also another way to accomplish your goal that doesn't use the
refresh header. Basically, a servlet or JSP outputs a partial HTML page
using the flush() method. The partial page contains JavaScript that
typically writes out HTML tags that produce a table inside a element
using the do
You know what, I was using the template. As long as I added
<% request.setCharacterEncoding("UTF-8"); %>
in the template. It works now.
Thanks everybody
Billy Ng
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http
I know, I know, never use anything but Strings in an
ActionForm to be populated from the request. I guess
this is the same old argument for that.
I recently thought it might be convenient to use a
Boolean, and it worked fine, until I re-used the Form
for a query jsp where this property was NOT
re
Thanks David.
Quick question -- do I just have the listed method you provided in my wrapper class?
-Original Message-
From: David Stemm [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 8:56 AM
To: Struts Users Mailing List
Subject: Re: Generating logs w/Log4J in ActionClass
I j
In my DB tier I use an interface to get the connection.
When used under Tomcat, the class that implements the connection gets
the connecton through JNDI.
I want to test these classes outside of Tomcat.
Is there a simple way to put objects in the Context,
I mean a simple way to emulate Tomcat behavi
Use of the MediaTracker is way to "track" the status of any "media".
From the MediaTracker javadoc:
The MediaTracker class is a utility class to track the status of a number
of media objects. Media objects could include audio clips as well as images,
though currently only images are supported
http://strutstestcase.sourceforge.net/
-Dan
- Original Message -
From: "ronanoc" <[EMAIL PROTECTED]>
To: "Struts List" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 6:13 AM
Subject: struts test info
> Can anyone point me in the direction of good examples and info about
> using/writ
Hi Edgar,
this is what I do but it will never diable the Back button.
By any chance did you tried to :
- do the log out then
- click browser's Back right to the first page after signup,
- do a Refresh and then
- try your links from this page.
Could you tell me the result please?
I looked at many
i just vaguely remember
private Logger logger = Logger.getLogger(Test.class);
logger.debug("Better Check log4j docs");
and keep the log4j.properties file in classpath.
hth
navjot singh
|-Original Message-
|From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED]
|Sent: Thursday, August 21,
file uploading is user front job and let the Struts handle it.
Sessionbeans are bad choice!!
|-Original Message-
|From: Erez Efrati [mailto:[EMAIL PROTECTED]
|Sent: Friday, August 22, 2003 5:33 PM
|To: 'Struts Users Mailing List'
|Subject: Struts Action or EJB session bean
|
|
|My EJB/We
use log4j or jdk1.4 logging.
|-Original Message-
|From: Louise Pryor [mailto:[EMAIL PROTECTED]
|Sent: Friday, August 22, 2003 8:38 PM
|To: Struts Users Mailing List
|Subject: Logging to application directory
|
|
|Is there any easy way of sending logs to somewhere in my application
|directo
I use this all the time with Tomcat. Maybe this is a websphere bug?
-Original Message-
From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED]
Sent: 22 August 2003 11:53
To: Struts Users Mailing List
Subject: Nested tags and recursive inclusion
Hello,
I am trying to make recursive
This question reminds me of an old virus.
You can have file IO that creates a simple java class file with a method
taking in as many parameters as you wanted to then invoke javac to rebuild
it. Performance-wise it worked great for the virus but probably not a viable
option for you ;)
-Origina
Is there any easy way of sending logs to somewhere in my application
directory, rather than eg Tomcat/logs? The latter is OK when I'm
developing the application on my own machine, but when I deploy onto
my shared host I don't have access to the Tomcat logs directory. And
however carefully I test on
Hi Adam,
Cool! I had no clue that any of this was available.
A few questions if you don't mind.
What is the purpose of using the MediaTracker?
I understand how using
Image makeimg = Toolkit.getDefaultToolkit().createImage(
image.getFileData() );
will show you if it's a proper image, but I don'
Andrew Hill wrote:
> Based on the information you have provided it *should* work!
Thanks ;-)
I added some more logs and it looks like the action receives another instance
from ActonConfig, than that was created during configuration-setup.
I dumped the hashcode of the ActionConfig.
At creation #
This looks reliable enough, but still i would suggest to do a role and user
chec on each page (only if the application requires it)
thanks
-raj
Hi Yamini
I am sorry that did not respond imeadetly got stuck in some work
use this instead of jsp include it has to work..
cheer up
preetam
-Original Message-
From: Yamini Krishnamurthi Ayyagari [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 4:23 PM
To: Struts Users Mailing
I just create a class that wraps the log statements and would have a
function like this:
public static void debug(String message, String aCategory)
{
Category cat = Category.getInstance(aCategory);
cat.debug(message);
}
then when I need to use this I would call something like:
If testview_srchpost.do and testtwoview_srchpost.do are valid action
then you cannot restrict. This means testview_srchpost.do,
esttwoview_srchpost.do are in Struts Config File
If that testtwoview_srchpost.do not Valid action then It will go default
page or Error Page
Thanks
Nazeer
-Orig
Sorry, this is with commons logging not log4j specifically
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 9:29 AM
To: Struts Users Mailing List
Subject: RE: Generating logs w/Log4J in ActionClass
In your action class, retrieve your log ins
Storing a few bits and pieces in a session is all storing a cart will
do anyway. While I can see why some folks would consider it a clear
benefit to save all carts to the db , i don't. But that can be layered
on afterwards, especially with handy packages like beanutils. Given
that most the folk
Hue, one reason why I took this approach was because I felt that
although DynaActionForms implement the DynaBean interface, they
are meant to deal with user input where as the "views" described
by Pedro are simply value objects used to transport data from
the business tier to the web tier.
I guess
In your action class, retrieve your log instance
Log LOG = LogFactory.getLog(YourAction.class);
Then wherever you need to log:
if (LOG.isDebugEnabled()) {
LOG.debug("Log your debug msg here");
}
Replace isDebugEnabled() with whatever level you want to use.
HTH,
Mike J
-Orig
I do it the brute force way:
< snip ->
FormFile image;
java.awt.Image makeimg = null;
try
{
makeimg = Toolkit.getDefaultToolkit().createImage(
image.getFileData() );
// wait for the image to be loaded/created
Canvas cv = new Canvas();
Rajendra,
I've used the following code in my .jsp page:
<%
if ((request.getHeader("referer")=="") || (request.getHeader("referer")==null)) {
%>
<%
}
%>
If the user tries to manipulate the URL in the address bar, "referer" becomes null.
It works..but not sure how reliable is this!
Sri
Struts Upload Action.
thanks
-raj
"Erez Efrati"
1 - 100 of 133 matches
Mail list logo