Mark Modaressi

Greenhorn
+ Follow
since May 05, 2001
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 Mark Modaressi

Thanks, I'm new to JSP myself. I"ve worked with ASP, but it feels like a baby language... not enough structure. Still though, the results are really low compared to the others. Do you think that Tomcat could cost that much?
Where would I be able to obtain a copy of JRun?
Mark
22 years ago
After doing a search I read an article on ZDNet testing Cold Fusion, JSP, ASP, and PHP. According to their results the JSP setup allowed only 13 pages per second vs an average of around 30 for the other languages.
Here's the article:
http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2646052,00.html
Does anyone know why that is? I thought that JSP pages were compiled by the server unlike ASP. I assumed that would be enough to speed things up.
Thanks,
Mark
22 years ago
I've gotten some of the project working, but I have a few questions that I was hoping someone could answer:
We're give some classes to start with. Here's the relevant ones:
WebServer.java

MiniServlet.java

There's few parts I have questions about, but need most help in how to implement this class:

Blocker - Takes two arguments. The first argument is a string containing no white space and the second is a URL (e.g., http://marlowe.cs.umd.edu:33217/Blocker/gambling/http://www.goodfun.com). Your code will retrieve the requested URL and determine whether the URL's contents contain the string given in the first argument. If the URL content does not contain the string return those contents to the client, passing on the Content-type it receives. Otherwise, return the string "Site blocked", passing Content-type:text/plain.

Once I have the url how do I parse through it's contents to see if the word is there? That's the part I'm unsure of.
Also, if I run WebServer.java it says listening on port xxxxx. How do I run a servlet from that point. They said the generic url would be http://marlowe.cs.umd.edu:xxxxx/Foobar/Args. I tried it and couldn't connect. Do I have to be on the school network to connect or do I need to add a few lines of code to run it?
Thanks for any help,
Mark
22 years ago
Could anyone just give a list of books that they think may be most relevant to my project?
Thanks,
Mark Modaressi
22 years ago
Hi,
I have a project for class where I have to implement an http server and listen on a port based on the command line. We're given a few base classes to work with. Here's the project description:
http://www.cs.umd.edu/class/fall2001/cmsc433/Projects/p2/p2.html
I've used servlets, but I haven't anything like listening on a port. Does anyone have any sites or books that they would recommend? The school book is the most usless thing.
Thanks,
Mark Modaressi
22 years ago
I'm trying to call a java servlet from within a form in a html webpage using servlet tags (<servlet></sevlet> ). Each tag performs a different action so it's like servlet?action=firstname, etc.
The servlet pulls up all the customer information like name, address, etc, puts them in text boxes and allows them to update anything they need. It pulls the customer info based on the cookie, but even when a customer is logged in the page says that he/she is not logged in. The thing is if you cut and paste the servlet address to the browser it'll pull up the info just fine. The problem must be with the cookie, but I can't figure out what it is.
For reference, the cookie appears to work otherwise. We made a test page to see if the cookie works and it has. Maybe the problem is how the servlet is called?
Does anyone know how to get around this. I don't want to have to generate the whole page from the servlet if I don't have to.
Here's the page w/ problems so you can see what I mean:
http://129.2.210.250/cust_update.shtml
Thanks,
------------------
Mark Modaressi
TypeR673.com
K2K Motorsports
22 years ago