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.
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.
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.