Urgent-how to access custom tag from jsp tag

I have a problem accessing a custom tag from a jsp expression.
Details: I have a custom tag that returns a string variable. I need to access that variable from jsp expression <%%>.
Can any body help me?

Tags don't "return" values as in the normal sense.
They can only support TEI (Tag Extra Information) that just stuffs a declared variable into the page's state.
For example, if the tag class had a public method called getValue(), you could do the following:
<xmp:mytag id="foo"/>
<%
out.println("value is " + foo.getValue());
%>

Similar Messages

  • How to access COM+ Objects From JSP

    Friends,
    We have a requirement to access COM+ objects from JSP. Please guide me on this.
    Thanks in advance.
    Tarani

    Sanyam wrote:
    if there is any .dll extension file, how can we read that file in labview?
    You can use Call Library Function node to call that dll file and use it in LabVIEW. Read the help and you will get more details.

  • Accessing custom classes from JSP

    Hi Guys,
    I am having some problems accessing my custom classes from my JSP.
    1) I've created a very simple class, SimpleCountingBean that just has accessors for an int. The class is in the package "SimpleCountingBean". I compiled this class locally on my laptop and uploaded the *.class file to my ISP.
    2) I've checked my classpath and yes, the file "SimpleCountingBean/SimpleCountingBean.class" is located off of one of the directories listed in the classpath.
    3) When I attempt to use this class in my JSP, via the following import statement:
    import "SimpleCountingBean.*"
    I get the following compile error
    java.lang.NoClassDefFoundError: SimpleCountingBean/SimpleCountingBean
    I'm pretty sure that my classpath is properly setup because when I purposely garble the import statement, I get the "package not found" compile error.
    Do I need to upload some other files in addition to the class file? Any suggestions would of course be appreciated.
    Sonny.

    Trying to get some clearer view.. so don't mind..
    So you uploaded all your .jsp files into your account which is:
    home/sonny
    and it compiles and work. But custom classes doesn't seems to be working, where did you place your classes?
    From my knowledge of tomcat, classes are normally placed in, in this case:
    home/sonny/web-inf/classes
    Maybe it differs from windows enviroment to *nix enviroment.. well, I'm just saying out so if its not the case.. don't mind me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Urgent:: How to transport customer exit from dev to test system?

    Hi,
    We have created a Customer exit in our development system in the $tmp package, and we want to transport it to our test system. Can you please tell us how to proceed on this. We are not able to change the package as our package is a development package and so does not start with Y or Z.
    Best Regards,
    Charu.

    Your package is RSR right.. this is the package for the function group XRSR where in this user exit exists.
    you need to have a separate development class either starting with Y or Z. If not, ask any developer or your sap basis team to create one for you. then you can assign this development class to your user exit.
    To check this, go to SE38 - enter your program name ZXRSRU01, display, in the menu "goto", CHECK "object Directory entry", you should have this development class.
    Hope this helps.
    Shakeel.

  • How to access MDB database from JSP Web Application?

    hi
    i am using tomact and developing appplication in which i have to insert data into MDB database and read/Update/Delete Data in MDB DataBase.
    could any help in this issue?
    Thanks
    Regards
    Oersla Afroze Ahmed

    Hi,
    For accessing MDB database, you must have a jdbc:odbc driver, u can get it from sun site.
    just put it into the lib folder of web server.
    or
    just follow the following link:
    http://www.developer.com/db/article.php/3571661
    keshri

  • How to access java method in JSP

    Hi all,
    I need to access java class (abstract portal component) method doContent() in a JSP which is under PORTAL-INF/jsp folder.
    I did
    <%@ page import = "com.mycompany.Aclass" %>
    <%com.mycompany.Aclass a = new com.mycompany.Aclass (); %>
    Aclass is coming as autofill/prepopulated with cntrl+space
    Till this time, it is working. no errors. But when I do
    a.
    a. (a dot) no methods are populating (autofill..cntrl+space) or If I forcebly add method a.doContent(req,res)... at runtime its giving error.
    It's not only with doContent method... Its with any simple methods in that class or any other class.
    (Other than doContent method in the APC java class are prepopulating/autofilling but giving error in runtime)
    Can anyone help me... how to access java method in JSP.
    I already gone through many SDN forum post... and implemented too---but no use I refered below forum thread
    Retrieve values from Java class to JSP
    URGENT! How to call a java class from JSP.
    Calling a java method from jsp file -
    this thread is same as my issue
    Thanks,
    PradeeP

    1st. The classes must be in packages. 2nd, the package that they are in must be under the WEB-INF/classes directory. 3rd Look on google and/or this site for web application deployment

  • How to access Custom controller

    Hi all,
    How can i access custom controller objects in my other controllers.Can i call custom controller objects from component controller .

    Hi,
    I hope you mean the Custom Controller the same way we understand as defined here
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers|http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers]
    To access custom controller from the component controller you have to do the following.
    1. Component controller->properties->use insert button to select the custom controller.
    2. Use the code generator (CTRL+F7) -second tab(general)->method call in used controller->select your custom controller->method.
    This will generate code like this
    DATA lo_zzsbn_cust_cc1 TYPE REF TO ig_zzsbn_cust_cc1 .
    lo_zzsbn_cust_cc1 =   wd_this->get_zzsbn_cust_cc1_ctr( ).
      lo_zzsbn_cust_cc1->test(

  • Problem with accessing init parameters from JSP file

    Hi,
    I have my init parameters and Jsp configured in web.xml
    <servlet>
              <servlet-name>TestJsp</servlet-name>
              <jsp-file>/Test.jsp</jsp-file>
              <init-param>
                   <param-name>username</param-name>
                   <param-value>Balboa</param-value>
              </init-param>
    </servlet> How do I access 'username' field from JSP file.
    Kindly help.
    Thanks.

    you can do this in the jsp
    <%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
    <%!  String userName = null; 
      public void jspInit() {   
        ServletConfig config = getServletConfig();   
        userName   = config.getInitParameter("userName ");  
    %>
    Hello <%=userName%>

  • How a process is launched from JSP in IdM 7.0?

    I am trying to find out how to launch a process from JSP page so that I can add my own workflow to the JSP page or even creating my own JSP pags launching my own process.
    I found an exmpale in the application:
    C:\tomcat\webapps\idm\user\processLaunch.jsp
    which is able to launch the following processes defined in System Configuration Object:
    <Attribute name='endUserUpdateGroups' value='End User Update Groups'/>
    <Attribute name='endUserUpdateMyGroups' value='End User Update My Groups'/>
    <Attribute name='endUserUpdateMyResources' value='End User Update My Resources'/>
    <Attribute name='endUserUpdateMyRoles' value='End User Update My Roles'/>
    <Attribute name='endUserUpdateResources' value='End User Update Resources'/>
    <Attribute name='endUserUpdateRoles' value='End User Update Roles'/>
    In the jsp code, I see the following line:
    <jsp:useBean id="form" scope="page"
    class="com.waveset.ui.web.task.TaskLaunchForm"/>
    However I do not see where the process name is referenced, then at the end, I see:
    String url = form.process(requestState);
    which seems to load the process at last.
    Can anyone explain to me?
    Thank you.

    Your response confirmed what I guessed. I will try to launch my own workflow like that. Did you do something similar before?
    It's just there is no explicit code passing the id value to the object, I do not see how the jsp will be able to load the process. I am just afraid I missed something that's handled behind the scene. Then when I copy the way they do it, my customized process is not known by the system, then of course I will fail.
    I will keep you posted if that works.

  • Assiginment to varaibles from jsp tags

    is it possible and how is it possible to assign something from jsp tag to an variable declared in scriptlet code - ie. - as below.
    also is there a good resource for jsp info - a comprehensive lookup on jsp syntax egs on the web that any one is aware of. - thanks.
    i 'm doing - can i use this variable as in below scrpitlet code :
    <%! List myAbridgments = new ArrayList(); %>
    then - Also at this stage it get a ClassCastException - why would i get that here i dont use this variable - results anywhere else - except in setting the session attribute in the original servlet that calls this jsp page
    <jsp:useBean id="results" class="com.bt.ros.Results" scope="session">
    <jsp:setProperty name="results" property="*"/>
    </jsp:useBean>
    the in some scrpitlet code doing:
    <%  myAbridgments = results.getAbridgments();
    for (int i = 0; i < myAbridgments.size(); i++) {
                    abridgment = (Abridgment) myAbridgments.get(i);
                        //out.println(abridgment.geta_volume_id());
    %>
    <p><input type="checkbox" name="list" value="ON"><span style="font-size:12pt"><jsp:getProperty name="abridgment" property="a_sub_year_volume"/></span><span style="font-size:12pt">,
         <a href="abridgment_link.htm"><jsp:getProperty name="abridgment" property="a_volume_id"/></a>, </span>

    yeah, but this doesn't really help me. I am trying (really hard!) to ensure my JSP's don't really contain any "code" as such, just JSP tags.
    The end result I want is to include one JSP in another. Now, I "could" just use a <jsp:include.., the problem is that the path to the file I want to include is tied up in an object which I have previously placed in the ServletRequest object. Again, I "could" extract this in the "parent" jsp, and pass it dynamically to the jsp:include, but I don't want any actual Java "code" in the JSP. (There IS a good reason for this, so I can't really comprimise).
    The fact that the IS a pageContext.include() method tells me that I can use it. I must be doing something wrong though.
    Thanks anyway.

  • How to Access Maintenance View from a program

    Hi Experts,
    I have created a maintenance view for a table. i want to insert data's into the table through the maintenance view. I don't know how to access the view, how to insert data into the Maintenance view. Please suggest me how to access the view from the program.
    with regards,
    James...
    Valuable answers will be rewarded...

    Hi,
    What is the need to search for a program.
    Use transaction SM30 or SE16 to create or maintain entries in the table.
    e.g. if the Maintenance view is created on table A, then Goto transaction SM30 or SE16 and give the table name as A and proceed. This will automatically take u to the maintenance view on tha table A.
    Regards,
    Himanshu

  • How to load java class from jsp page?

    hi all!
    Does anyone know how to load java class from jsp page?
    I try to load java class from jsp page.
    Is it possible to load java class fom jsp page?
    thanks and have a good day!

    What I mean is How to load/open java class file from jsp page?
    I think we can open Applet from jsp page by using
    <applet code=helloApplet.class width=100 height=100>
    </applet>
    but, how to open java class which is an application made by Frame?
    thanks and have a good day

  • How to access Oracle 8g from SQL Server 2005 SP3 EE 64 Bits ?

    Dear All,
    How to access Oralce 8g from SQL Server 2005 SP3 EE 64 Bits (liked server).
    Best regards,
    Miguel Gavinhos

    Hi!
    For the Oracle version is 8.1.6. what should I install, to access Oracle trought a linked server.
    Best regards
    Miguel Gavinhos

  • How to access the cloud from my pc?

    how to access the cloud from my pc?

    Go to Verizonwireless.com, log in to your account (or register your phone number if you haven't done so).  Once logged in, Go to My Verizon, My Device, Backup my contacts.  That should bring you to your Cloud "dashboard" - where you can view Contacts, Photos, Videos, Music,Documents, and anything else  you've sent to Verizon Cloud.
    If this doesn't work for you, then where does it break down?  Do you get any error messages?

  • How to access the Oracle from Unix when SID is not provided?

    How to access the Oracle from Unix when SID is not provided.
    User Name : xxx
    Password : yyy
    SID : SID
    I use to access it using below command from Unix prompt:
    sqlplus xxx/yyy@SIDNow since I dont have SID, how to access the Oracle DB from Unix Box?
    User Name : xxx
    Password : yyy
    Service Name : zzz
    Regards,
    Sunny.

    Hi Ajay
    Thanks for the suggesstion :)..It worked as well.
    The Actual problem was in the "tnsnames.ora" file where in I need to make entry for the new SERVICE name.
    Now I am able to connect it properly.
    Regards,
    Sunny.

Maybe you are looking for

  • Why does itunes freeze up windows/PC but work fine on mac?

    Yes itunes is apple but why make it so bad on PC and fine on mac? not everyone has the money for mac. And school wise windows is much easier than mac. One of my friends is stupid enough to rely on pages for everything but when we need to use excel or

  • Can I use creative cloud with multiple computers?

    I have a pc and a Mac and an Ipad.  Can I have one account and use all of these devices?  Also, I plan on upgrading my Mac.

  • Genius says my numbers don't match and the phone has been tampered with. Can anybody help?

    I have an iPhone4S 64Gb, which I bought from the Apple Store in Covent Garden in December 2011. Recently it developed a problem where it won't shut down (it restarts itself) and the battery life has deteriorated significantly. Having read about this

  • Why can't I install iTunes 10.5 on Vista?? Code 80073712

    Dear iTunes Team, yesterday, I tried to connect my iPhone 4 with iTunes, but it didn't work...so I thought I should update iTunes to 10.5 finally for making it work again. And suddenly after a few minutes of waiting during the installation an error o

  • After Windows XP reinstall....

    I tried searching the forum but merely became more confused! I have a 30gig ipod (purchased around dec '04)which is currently full of songs and play lists. After formatting my pc I am unaware of how to restore the song files (including purchased song