Win a copy of Rust Web Development this week in the Other Languages forum!

matt hooker

Ranch Hand
+ Follow
since Jul 26, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by matt hooker

So srinivas, to get this straight. You want your java servlet to have access to read the contents of a client file system and copy a file to the server. You would need the client to 'request' this action (such as using an html 'file' component and allowing them to 'post' this file to the server. Java's security requirements (in fact - just general security) mean that letting a server access a clients FS 'at will' is a total NO NO !!!
17 years ago
Hi,
I think maybe you need to set the Environment Variable JBOSS_HOME.
You should set this to be the root install directory of your Jboss installation, e.g C:/software/jbossxxx or somesuch.
For instructions on how to set ENV variables for various windows platforms see http://www.chem.gla.ac.uk/~louis/software/faq/q1.html
18 years ago
Well, one sure fire way is to close the browser, shutdown the machine, dowse it in petrol and throw a match at it.
If you give a little more information on what exactly you mean by this, we could probably provide a better answer.
18 years ago
JSP
Trust yourself .... If you're good enough for the job you're applying for, you'll know the answers ... or at least, you'll be able to provide some that sound convincing enough
18 years ago
JSP
Hi,
Why not make use of the jsp:useBean functionality and access the data from the bean directly. Alternatively, create some sort of data object to hold the data you wish to display and then set it / get it from the session.
18 years ago
JSP
I think you're right. I have had a quick look over the spec and do not see any form specific entries in there. Of course, you could just scoot over to jakarta.apache.org and grab an implementation from their library.
18 years ago
JSP
Hi,
try adding the following lines to your web.xml :
<servlet-mapping>
<servlet-name>myservlet</servlet-name>
<url-pattern>/mylilservlet</url-pattern>
</servlet-mapping>
and then invoking with :
myserver/myapp/mylilservlet
That should fix ya ....
18 years ago
JSP
Yeah - session is the way to go .. is it a result set you are getting back ? Or are you monkeying with this to return some other data-form - maybe an ArrayList or somesuch ... doesn't really matter. When you get the results back just do a session.setAttribute("results", your_result_data_object) be that a ResultSet Obj or whatever. Then you can grap the data out of this whenever you want to.
18 years ago
JSP
By the way ... you should change your name to fit in with the ranches naming convention ... just to be polite
18 years ago
JSP
would need to see the code really - sounds like you are not giving the correct 'target' to the links ...
18 years ago
JSP
sounds like you need a webapp context.
Under the Tomcat <dir> there is a sub dir called webapps. In here you will find a couple of webapps already.
I would recommend following their structure :0
ie :- Tomcat 4.1/webapps/<your_webapp>/..put your jsp here, and ALSO
Tomcat 4.1/webapps/<your_webapp>/WEB-INF/web.xml
i think you need this webapp context descriptor file.
Haven't used Tomcat for a while tho ....
18 years ago
JSP
Very strange,
The only thing i could suggest is that you uninstall windows 98 and install a real os. But i guess thats not what you wanted to hear is it. Sorry.
19 years ago
Hi Garion,
I'm afraid its not quite as easy as that (though its not too difficult either)
You need to define a clipboard object, either local or System, and to implement the ClipboardOwner interface .. among other things.
A good example of using cut/copy/paste is available here : JavaWorld - cut/copy and paste
19 years ago
If you are using a PC, open a command window and type java -version at the prompt. So long as you have java in your path, this will tell you the version you are using (which may or may not be the latest one you downloaded - make sure the version you want to use is in your path)
19 years ago
There is a really cool book by O'Reilly - Java Network Programming which takes a fairly good look under the hood of HTTP Server dynamics.
19 years ago