What I would like to do is print the current jsp filename without the ".jsp" extension.

I can print the absolute url, or the relative url, but I can't figure out how to print just the filename without the file extension.

Recommended Answers

All 3 Replies

Tiny little bit of string manipulation should do it.

Tiny little bit of string manipulation should do it.

Can you suggest some code please?

Take the name as a String and then manipulate it. Shouldn't be that hard since you are already moved on to jsps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.