Freddy Villalba

Greenhorn
+ Follow
since Feb 11, 2004
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 Freddy Villalba

I have the very same problem!
Anybody found the definitive solution to this?
I've checked my "run" script and the JAVA_HOME variable is being set correctly.
Thanks,
Freddy.
19 years ago
Hi,
Take a look at ImageMagick's APIs (last time I used them they were free). They deliver nicely!
www.imagemagick.com
HTH,
Freddy.
20 years ago
IMHO, JBoss is decent enough to make it absurd to pay for any other (at least if you are not deploying an extremely complex / high-demand web site). At least, it did so 1 1/2 years ago (the last time I used it). The users base is big and qualified enough to rival any other commercial option's tech. support department.
I've been using WL for the last 2 years and, to be frank, the only thing I'd miss if going back to JBoss would be the fancy web-based GUI for configuring and administrating it.
20 years ago
I've been using Pajes for 2 years now and I have to say it's quite decent.
Take a look at www.pajes.org.
HTH,
Freddy.
20 years ago

Originally posted by danny liu:
User ServletConfig.getServletName method
dan


Thanx for your answers. I agree with you, but I've realized I should have been a little bit more specific. I apologize (to you all).
This is what I want to do: it's a method in a Factory class that, based on a few parameters, builds the URL to access (forward / redirect) a given Servlet (always the same servlet). However, I want it to be "web.xml-independent". That is, that the URL can be built without having to "know" the name assigned to that Servlet inside the web.xml DF.
In order to do what you say, I must be able to access the instance of the servlet that is already in use. Creating a new instance "by hand" (i.e. "new XXXServlet()") and then trying to get ServletConfig out of it will not work since it will be null.
Then, my question should have been as follows:
From a normal class, and being able to access the request (/ session / servlet context): how can I recover (based on the fully-qualified classname) the instance of a Servlet - already present in memory - being managed by the Servlet container, in order to determine its Servlet Name (for that servlet context)?
OR EVEN MORE SIMPLE: given Servlets A and B, how can I obtain A's servlet-name (as specified inside web.xml) from servlet B (at runtime)?
Thanx in advance (again),
Freddy.
[ February 12, 2004: Message edited by: Freddy Villalba ]
20 years ago
Hi everybody,
How can I determine the name of a servlet (i.e. the name specified for it by the corresponding <servlet-name> tag inside the web.xml descriptor file)?
Assume you know the fully-qualified classname of the Servlet you are interested in.
I believe (not 100% sure) this was possible in previous Servlet APIs - at least 'till v2.1 - but I'm not sure it is anymore.
Thanks in advance,
Freddy.
20 years ago