How to get the JSP Name calling the Tag Library inside the Tag Library
Hi guys,
I have defined a Tag Library PenStart:
import javax.servlet.jsp.tagext.*;
public class PenStart extends TagSupport
public int doStartTag()
return EVAL_BODY_INCLUDE;
public int doEndTag()
return EVAL_PAGE;
}I have also defined the pentags.tld:
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
version="2.0">
<description>My Tag Library</description>
<tlib-version>1.0</tlib-version>
<short-name>pentags</short-name>
<tag>
<name>penstart</name>
<tag-class>com.srh.tag.PenStart</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>I am calling the tag library in my JSPs:
<%@ taglib uri="WEB-INF/pentags.tld" prefix="pen"%>
<pen:penstart/>Now in the doStartTag() I want to know the JSP which is using the tag. How can I do that?
Thanks
pageContext.getRequest().getRequestURI()
Similar Messages
-
How to get fully qualified name for a class with just the class name
I want to get the fully qualified name of the class at runtime. The only piece of information which I have is the class name.
I want to create a runtime instance of a class with the class name [Just the class name].
Is there is any way to achieve this using ClassLoader?
Could anyone suggest me an idea?
Cheers,
Vinn.Nope. If you are given "List", will you decide that means "java.util.List" or "java.awt.List"? Of course you could prompt the user to make the decision for you, I suppose. But using a class loader isn't going to make the task any easier.
-
cannot open pictures in Window 8.1...getting message 'the remote procedure call failed". What is the solution?
I recently bought a new HP computuer and uploaded Window 8.1. I then transfered photo files from old computer to new computer using a portable storage drive.
When trying to view the photos, a message pops up showing a file path...and the message 'the remote procedure call failed'. Photos are in jpeg format.
Please let me know what I can do to view photos?What program you use to view these photos? Choose another app to view these photos
for a test.
This issue only occurred when you view photo? What is the result if we connect the
portable storage drive to other computer (if possible)?
Run sfc/scannow to check and fix if there are some missing or corrupted system files.
Check the event viewer to see the detailed information of this issue.
Regards
Yolanda
TechNet Community Support -
How do i fix my wifi if it connects and the bars are blue but no check sign appears next to the wifi name and does not connect to the internet???
Did you already try to reset the iPod by holding the sleep and home button for about 10sec, until the Apple logo comes back again? You will not lose data.
If this does not work, try to reset the network settings in Settings/General/Reset. After that you'll have to put in the passwords for all known networks again.
More troubleshooting can be found here:
iOS: Troubleshooting Wi-Fi networks and connections -
I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found. Would you like to locate it now?" It happens on each tune I select and a "?" appears beside the song. Does this sound familiar to anyone?
I was not complete clear.
Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section. If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
But before I would check the folders and see if the songs are really there
In my iTune I have this, and I believe it is the default.
Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music -
My mini died. bought one used from a friend... all of my songs and books are on my iPhone, and I cant figure out how to get them onto this new computer. this is frustrating. the things i really want are purchases I've made from itunes store... help
!!!!!Hey kevyg3,
I was able to find an article that I believe will help you move your iTunes purchases from your iPhone over to your new computer:
iTunes Store: Transferring purchases from your iOS device or iPod to a computer
http://support.apple.com/kb/HT1848
Hope this helps,
David -
I recently purchased songs from itunes via my pc and I dont know how to get them onto my iphone? When I click the sync button it says I will lose all the music currently on my iphone.. Help
If you're syncing with a different iTunes library than the one you previously synced with, then there is no way around it. You're gonna loose the old data. The only way round it would be to make sure that all the music files on your iPhone is also in your iTunes library. If you still have access to the computer with the old library, you could copy the files on to an external harddrive, and then import them into your new iTunes library.
If it is in fact the same library, then the music currently on your iphone, is also in your itunes library. Just make sure that the artists/albums/playlists, or whatever you sync contains these tracks, that you allready have on your phone and don't want deleted. What i do is, i create a playlist specifically for my iPhone, and i set it up to only sync with this playlist. Whenever i hear a track from my iTunes library or buy a new track that i want on my phone, i just drag it to this playlist and next time i synchronize, it's there without deleting anything else. -
Photoshop elements 10 will not migrate to my new macbook pro/retina display. There is no CD/DVD player on this machine. Any suggestions on how to get Elements onto my machine? Yes, I have the disk(s). Am I going to have to buy an external CD/DVD player to load this one program:(
I have ordered a USB3 BluRay/DVD/CD player/burner and will use that both with my iMac ( in which the Superdrive seems to be failing ) and the MBPro Retina I just bought .
-
How do get my mail on my ipad 3 to set the same email rules as is on my imac ???
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
iPad Mail
http://www.apple.com/support/ipad/mail/
Cheers, Tom -
My ipod touch 4 gen is in recovery mode and i dont know how to get out of it,i tried everything like hold the home and top button at the same time. All it did what g to the apple logo and went back to recovery mode any help?
Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
kevinpowell1 wrote:
how can i get it out of recovery mode?
Make sure you have the Current Version of iTunes Installed on your computer
iTunes free download from www.itunes.com/download
Then See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once... Be sure to Follow ALL the Steps...
Take your time... Pay particular attention to Steps 3 and 4.
Some users have reported as many as 8 or 9 attempts were necessary before success.
After you have Recovered your Device...
Re-Sync your Content or Restore from the most recent Backup...
Restore from Backup > http://support.apple.com/kb/ht1766
If the issue persists...
Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
Be sure to make an appointment first... -
I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel. My Basic panel should be below the Histogram. Any ideas how to get it back. I have even uninstalled my lightroom and reinstalled it with same issue. Help!!!
Right click on or near one of the other headers and a pop-up will appear and you will be able to select the Basic Panel for viewing.
-
My iphone4s is not displaying the contact name of other iphone users in the SMS folder, anyone know how to sove this problem?
You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
Can not get mail , it sayes that the user name or password is incorret, it the right one
You need to contact the email provider and reset your information. All your iPhone does is send the information to the provider and they are stating your username or password are incorrect. If you contact the provider they can help you reset it so it will work with your phone
-
My itunes store won't open. Any suggestions on how to get this to work? I've already downloaded the newest version of itunes. I'm also not sure what Mac operating system I have..
To find the version of Mac OS X on your computer, all you have to do is click the Apple logo and then About this Mac. For more info, take a look at this doc -> Finding your OS X version and build information
Do you see an error when you try to open the iTunes Store on your Mac?
This Apple doc is a good place to start -> iTunes: Advanced iTunes Store troubleshooting -
Sophos detected 3 threats on my iMac (Maverick OSX 10.9.5) but clean up failed. Any idea how i get rid of them please? 1 is Malware the other 2 Trojans. Thanks
Thanks for your interest CSound & sorry I couldn't get back sooner. These are the full details from Quarantine Manager:
Date Threat Filename Action Available
2 Feb 2015 Troj/Zbot-Goy notification - the_royal_ban Clean up failed
2 Feb 2015 Troj/Agent -AIRO sale 2014-12-08_8704... Clean up failed
2 Feb 2015 Mal/Phish-A e document..html Clean up failed
I did have a look at a 'manual' for sophos but couldn't make sense of how to go about trying to rid something if the automatic detection / clean up process didn't work.
Any ideas?
Thanks
Maybe you are looking for
-
I've been going through this painful process to deploy a simple JSP application on a Red Hat Linux 6.1 system with the latest Tomcat release. I got the Tomcat server running and all their sample JSP apps work. This system also contains the database,
-
PSE8/PRE8 device error when burning DVD
When trying to burn a DVD using PSE8 and PRE8 in Vista Home Premium 64 bit, and now in Windows 7 Home Premium 64 bit, PRE8 stops at 96% burn and gives me "Device error - the target device isn't suitable for use." The DVD will run on the computer and
-
OK to Rerun FAGLF101 for the Same Period?
We run FAGLF101 every month in order to account for reconcilation account and trading partner changes. My actual situation is a bit more complicated, but let's say that I just discovered a large number of customers with incorrect recon accounts that
-
I have photoshop CS5 and I want to upgrade to Photoshop CS6
I have photoshop CS5 and I want to upgrade to Photoshop CS6
-
JVC DT-1710CG vs Sony BVM-A20F1U
Hi. I'm looking to purchase a color grading monitor. Usually I rent the Sony BVMA20 HD CRT but I am wondering if the JVC DT-V1710CG is good enough to grade with. Has anyone here used the JVC monitor before? If so, how does it compare to the Sony? Tha