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

Tiny little bit of string manipulation should do it.

Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.