Mike Jenkins

Ranch Hand
+ Follow
since Jul 23, 2006
Merit badge: grant badges
For More
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 Mike Jenkins

I use Apache Commons codec Base64 encoding and decoding methods to fetch Intranet Domain login name only.
Is this considered an acceptable safe practice and/or is there any securty or any other issue with Base64 encoding and decoding?
12 years ago
JSP
The Head First book is good but if you really want to learn with a great mock database example, use the http://simple.souther.us/SimpleTable.war. I read many many books and articles and none come close to the http://simple.souther.us/SimpleTable.war example. I recommend the SimpleTable example to alot of people.
[ May 08, 2008: Message edited by: Mike Jenkins ]
14 years ago
JSP
Thanks again for all info.

I want to use this for File I/O work.
14 years ago

Originally posted by Bear Bibeault:
Are you really looking for the location of the Tomcat installation, or the location of the web app (which may or may not be co-located)? If the former, I hear many whistles and see many red flags. What would you do with this information?



Thanks,

I need the location of the Tomcat installation only.
14 years ago
Is there a method or something I can use in my Java helper class to find the Tomcat Home location on the server?
For example here is what the path might look like on the Server: C:\TomcatHome\webapps\myfile.jsp

In other language like Cold Fusion I can put in something like ExpandPath function and it will grab the Server Cold Fusion JRUN location: #ExpandPath#webapps\myfile.jsp

Does Java have anything like that?
[ May 05, 2008: Message edited by: Mike Jenkins ]
14 years ago

Originally posted by Bear Bibeault:
Actually it's a change in the Servlet Specification, not Tomcat.

The change from Servlets 2.3 to 2.4 mandated the change from a DTD to XML Schema.


Thanks,
The difference is the beginning part of my web.xml?


xml?
14 years ago
In Tomcat 6 they changed web.xml to a schema.
What is the difference between a schema version of web.xml in Tomcat 6
and a non schmea version of web.xml like the one they used in 4.1.27?
[ April 15, 2008: Message edited by: Mike Jenkins ]
14 years ago
Jeanne,

Thanks and you always give great help and advise on Javaranch!
15 years ago
JSP
I was wondering if there is anyway to click on a button or link on JSP and it print the JSP web page onto a CD where I can actually have the web page show on a CD? I guess Java would have to create a powerpoint of the page and be able to access the CD on the Windows OS. Is this possible?
[ November 29, 2007: Message edited by: Mike Jenkins ]
15 years ago
JSP
Sorry I dont understand what you mean by putting it in the request?

I dont have EL or JSTL in my Tomcat 4.1.27 due to restrictions but hoping to get it sometime next year.
15 years ago
JSP
Anyway to condense the declarations below?




I was hoping for something like this but it doesnt work:
15 years ago
I have a Servlet that checks for information and if there is an issue it forwards the message to presentation page (JSP). Now I want to stop using conditions in scriptlets in the JSP. Please advise how I can do it in this situation in my Tomcat 4.1.27 container:

Servlet that forwards to JSP:


JSP

I was thinking maybe a bean or regular Java class to handle this but not sure how. Here would be my method in a Java class:


Then I would put the method in a bean or what in JSP?
The Servlet would stay the same?
15 years ago
JSP
I have JNDI working with my Oracle 9i database using my server.xml file in my local Tomcat 4.1.27. Now I need to put my webapp on the server and I wont get access or be able to touch server.xml on the server.

Please advise how I can get the JNDI to work without using server.xml. I tried putting the <context> info I had in server.xml into mywebappname root and call it mywebappname.xml and that didnt work. I also tried that with creating a context.xml and that didnt work. Both gave me back error message: Cannot create JDBC driver of class '' for connect URL 'null'

Is this something that can be done in Tomcat 4.1.27??

Here is what I have working in my server.xml that connects to Oracle databse with no problems:
server.xml(C:\jakarta-tomcat-4.1.27\conf)







web.xml




database connection part


[ November 08, 2007: Message edited by: Mike Jenkins ]

2) if you want to be a bit more flexible, create a hidden param in the form with a comma-delimted list of the names in the desired order. The servlet can obtain and split this value to determine the names to retrieve in order.

I'd opt for the de-coupling that the second solution provides even though it's a tad more work.



I like this info.
Thanks for your time and guidance!
[ October 25, 2007: Message edited by: Mike Jenkins ]
15 years ago


Start by explaining what the order is. Is it the order of the fields on the form? If so, is the list of field names dynamic, or are they known in advance?



Thanks for your time on this!

I want it listed in the order of fields as shown on the form as seen below and the list of field names are known in advance.

Here is my JSP Form page with 6 out of the 15 field inputs listed:

[ October 25, 2007: Message edited by: Mike Jenkins ]
15 years ago