PDK Struts HTML API Listing

Hi,
Can you guide me in locating the PDK Struts HTML API listing, i am unable to find any documentation regarding these tags and how they can be used.
Any pointers to some detailed documentation on these tags would be greatly
appreciated!!
Thanks,
Srikarthik

Srikarthik ,
There is not a seperate doc for the Struts API. As far as I can tell, the basis of these tags are Struts 1.1. You can find documentation on Struts 1.1 at http://struts.apache.org//struts-doc-1.1/index.html . Please be aware that there apparently are some limitations compared to normal struts. According to metalink note #357760., the hidden and textareas values are lost on submit.
Eric

Similar Messages

  • PDK-Struts Application requires pdkstruts.jar & pdk-struts-html.tld

    Hi All,
    Scenario is this, that I've created a pdk-struts application via JDeveloper with normal struts taglibs, and deployed it to Oracle Portal 10.1.4. default-action tags specified action.do is working fine and displays the welcome page within portlet region but after clicking any button within that welcome page opens a new browser page within same window and the URL pattern changes too.
    I want this to be executed within portlet region.
    Another problem is this, when I tried to use pdk-struts-html.tld within application;
    first warning within JDeveloper is this; Metadata Namespace for pdk-struts-html is not loaded, all entries are fine, and within Portal after successful deployment it gives an error (500 Server Listener Error) on viewing that portlet body.
    I want these issues to be resolved as soon as possible.
    Or if anybody knows about pdkstruts.jar and pdk-struts-html.tld with latest versions, plz do tell me the site-url to download these things.
    Plz help me out about these issues.
    Thanks in advance.

    Look in the Building Struts Portlets with Oracle Jdevelper section of the Oracle Application Server Portal Developers Guide. You need additional jar files besides the pdkstruts one. Also, look in the server logs to see more detailed messages about why it failed, it will help you debug.

  • How to use pdk-struts-html:link

    i have a portlet,
         <pdk-html:link href="/StartEhrpHrj.do?targetGroup=Hrj1030MInfDtlGroup">
                   xyz
    </pdk-html:link> </td>
    but no link,why

    Hi,
    It is not an issue with the tag. Look at the docs for the struts html:link tag; the pdk-html:link tag is intended to replace this tag and not the regular HTML anchor tag.
    Good luck,
    Hernando
    hjbconsulting at comcast dot net

  • PDK Struts tags

    When trying to use the PDK Struts tags in a portlet, I receive the following error message when the portlet has been deployed to a 10g portal:
    [ServletException in:/WEB-INF/jsp/tiles/portal/index.jsp] action'
    Even with debug mode enabled on the server, that's the only detail I get. My config is as follows:
    IN SERVER.XML
    <taglib>
    <taglib-uri>/WEB-INF/tld/pdk-struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/tld/pdk-struts-html.tld</taglib-location>
    </taglib>
    IN THE TAGLIB INCLUDE
    <%@ taglib uri='/WEB-INF/tld/pdk-struts-html.tld' prefix='pdk' %>
    IN THE JSP:
    <pdk:link page="/servlet/letterView">Link text</pdk:link>
    VERIFIED:
    - The portlet works without the tag included.
    - It works using the standard Struts html:link tag, but of course generates the resulting page in it's own screen, outside of the portal container
    - The TLD is indeed in the location listed in the URI
    - The following two JARs are included in the LIB directory: pdkjava.jar, pdkstruts.jar
    - I removed all attributes from the tag and received a more detailed message (Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", or "page"') so it seems like everything that needs to be in place is indeed in place -- it seems like I'm just misusing the tag.
    Any help would be appreciated. Thanks!

    The problem was an old copy of the struts.jar file, which was missing the calculateUrl() method called by the Oracle tag. With a new struts.jar file, all was good.

  • JDeveloper 10.1.3.2 pdk-struts taglib doesn't work

    Hi all,
    I just installed new jDev version (10.1.3.2) and I migrated all projects and setting from 10.1.3.1, but I still got a little/big problem with PDK-Struts taglib.
    In the previous jDev version portlet add-in wasn't include and to use pdk-struts integrate in the IDE I managed it as a JSP TagLib and everythings works fine.
    In new version the taglib in native and ready (it doesn't required to be registered!) to use but when I'm building the project I found and exception
    Error: java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/FormTag
    mind!!!
    - the same project in version 10.1.3.1 has no problem to build
    - I checked and seleted all the libraries required
    Anyone knows why the new jDev version doesn't work??
    please someone helpMe!!!!
    Regards
    spig@

    Yea, I had those "is not a registered namespace in TLD" errors too, but regarding Struts HTML... I had to go to the Project properties and add the library.. (It went missing during conversion)
    Its frustrating and I know how you feel. Try this, try that and still doesnt work. My advice is to remove taglibs. Close Jdev. Open Jdev add them again. It have to work. Also it might help to delete class directories. Also be aware that some libraries are kept in "\WEB-INF\lib" and during conversion they remained (those libraries were from old Jdev you have to replace them with new version)
    So, all in all keep tryng, it have to work :)
    Good luck...

  • Action listener for struts html tag

    hi i am doing a project using sturts. I have used struts HTML Select tag with a collection of values in select box. now i want to write an actionlistner for that select...ie if i select any value from the select list it should do some action like take me to different page...can anyone tell me how can i do that...
    Thanks

    Soultech, I think you're being a bit harsh. Struts is a valid topic on this forum as it is a java framework related to JSP.
    However having said that, the question does show a basic misunderstanding of JSP technology.
    JSP = Java SERVER Pages. Java code only runs on the server.
    All that gets sent to the client (browser) is an HTML file.
    You can not write java action listeners to run and respond to events on the client.
    For any client side interaction you will have to use javascript (which is NOT java) - probably an onclick/onchange event - the same as any other web page.
    However you can only run javascript code from such events.
    To run java again you have to submit a request to a server - normally done by submitting a form.

  • Query on struts html:optionsCollection tag !

    Hi,
    I've a query on struts <html:optionsCollection tag. I'm trying to render the values of an arraylist using the optionsCollection . The arraylist is stored as a part of form object. But the issue is that each row of arraylist contains a string data. The arraylist is returned by a remote process.Now, when I use the following struts code,
    <html:select property="userProxy" size="1" >
    <html:optionsCollection property="userProxy" value="" label=""/>
    </html:select>
    what shud be the value for value and label , as the arraylist contains only one string per row . The userProxy is the arraylist field defined in the form object.
    My question, will I be able to use the <html:optionsCollection tag in this scenerio ?
    I'll really appreciate if someone can get back to me on this.
    Thnx

    The html:optionsCollection tag is designed to work with a collection of beans, each with a "label" and "value" attribute.
    If you only have a list of strings, then you probably want to use the html:options tag.
    Note that your ActionForm should have two attributes
    // form bean"
    String userProxy;  //stores the currently selected userProxy
    List userProxyList;  //list of userProxies.
    // assume appropriate get/set methods
    // the jsp page:
    <html:select property="userProxy" size="1" >
      <html:options property="userProxyList"/>
    </html:select>Cheers,
    evnafets

  • Struts html:iterate tag

    Hello all,
    Does anyone know if the struts html:iterate tag can be used to iterate through an ArrayList? Can you populate a html:radio tag with such an iterator?
    If anyone has code examples of these, they would be MOST appreciated!
    Thank you!

    I have an ArrayList object that contains a collection of Listing objects.
    The Listing object has two methods getID, getName
    In the ActionForm there is a variable listingData of List type. How can I use the logic:iterate tag to traverse the ArrayList object and display the id and name of the ListingObjects?
    What has to be added in the logic:iterate tag below?
    <table>
    <logic:iterate id="listingForm" name="listingForm" property="listingData">
    <tr>
    <td>
    // Here I want to output the value of ids
    </td>
    <td>
    // Here I want to output the value of names
    </tr>
    </logic:iterate>
    </table>Do I need a nested logic:iterate tag?
    Should the ArrayList be populated with a J2SE class rather than a business object, i.e. the Listing class?

  • Pdk struts jsp tags not working.

    The problem we have hited is that pdk-struts tags are not rendered corectly:
    From next piece of code:
    <pdk-html:form action="/auth_portlet/doLogin.do" name="loginFormBean" type="passport_portlets.auth_portlet.loginFormBean">
    <%--<pdk-html:errors/>--%>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>Username:</td>
        <td><pdk-html:text property="username"/></td>
    </tr>
    <tr>
        <td>Password:</td>
        <td><pdk-html:text property="password"/></td>
    </tr>
    <tr>
        <td></td>
        <td><pdk-html:submit value="Login"/></td>
    </tr>
    </table>
    </pdk-html:form>We recieve next output in the browser window:
    <form name="loginFormBean" method="post" action="/passport_portlets/auth_portlet/doLogin.do">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>Username:</td>
        <td><input type="text" name="username" value=""></td>
    </tr>
    <tr>
        <td>Password:</td>
        <td><input type="text" name="password" value=""></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" value="Login"></td>
    </tr>
    </table>
    </form>But it's wrong output, there aren't any qualifiing naming prossed, as much as no hidden fields included into form. We don't receive any kind of errors, just such simple output in browser.

    to be more detailed and specific, source follows
    provider.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
       <session>true</session>
       <passAllUrlParams>false</passAllUrlParams>
       <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
          <id>1</id>
          <name>AuthPortlet</name>
          <title>portlet name</title>
          <description>description</description>
          <timeout>40</timeout>
          <showEditToPublic>false</showEditToPublic>
          <hasAbout>false</hasAbout>
          <showEdit>false</showEdit>
          <hasHelp>false</hasHelp>
          <showEditDefault>false</showEditDefault>
          <showDetails>false</showDetails>
          <renderer class="oracle.portal.provider.v2.render.RenderManager">
             <renderContainer>true</renderContainer>
             <renderCustomize>true</renderCustomize>
             <autoRedirect>true</autoRedirect>
             <contentType>text/html</contentType>
             <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
             <defaultAction>/auth_portlet/doDefault.do</defaultAction>
             </showPage>
          </renderer>
       </portlet>
    </provider>
    web.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <description>web.xml file for passport portlets package</description>
      <context-param>
        <param-name>oracle.portal.log.LogLevel</param-name>
        <param-value>4</param-value>
      </context-param>
      <servlet>
        <servlet-name>SOAPServlet</servlet-name>
        <servlet-class>oracle.webdb.provider.v2.adapter.SOAPServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>SOAPServlet</servlet-name>
        <url-pattern>/providers</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>SOAPServlet</servlet-name>
        <url-pattern>/providers/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
    </web-app>
    struts-config.xml
    <?xml version="1.0" encoding="windows-1251" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
      <form-beans>
        <form-bean name="loginFormBean"
                   type="passport_portlets.auth_portlet.loginFormBean">
          <form-property name="username" type="java.lang.String"/>
          <form-property name="password" type="java.lang.String"/>
        </form-bean>
      </form-beans>
      <action-mappings>
        <action path="/auth_portlet/doDefault"
                type="passport_portlets.auth_portlet.doDefaultAction">
          <forward name="loged" path="/auth_portlet/showLoginState.jsp" redirect="true"/>
          <forward name="notloged" path="/auth_portlet/showLoginForm.jsp" redirect="true"/>
        </action>
        <action path="/auth_portlet/doLogin"
                type="passport_portlets.auth_portlet.doLoginAction"
                name="loginFormBean"
                scope="request"
                validate="true"
                input="/auth_portlet/showLoginForm.jsp">
          <forward name="success" path="/auth_portlet/showLoginState.jsp" redirect="true"/>
          <forward name="failure" path="/auth_portlet/showLoginForm.jsp" redirect="true"/>
        </action>
      </action-mappings>
      <message-resources parameter="passport_portlets.ApplicationResources"/>
    </struts-config>
    showLoginForm.jsp
    <%@ page contentType="text/html;charset=windows-1251"%>
    <%@ taglib uri="http://xmlns.oracle.com/portal/pdk/struts/tags-html" prefix="pdk" %>
    <pdk:xhtml/>
    <pdk:form action="/auth_portlet/doLogin.do" name="loginFormBean" type="passport_portlets.auth_portlet.loginFormBean" method="post">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>Username:</td>
        <td><pdk:text property="username"/></td>
    </tr>
    <tr>
        <td>Password:</td>
        <td><pdk:text property="password"/></td>
    </tr>
    <tr>
        <td></td>
        <td><pdk:submit value="Login"/></td>
    </tr>
    </table>
    </pdk:form>all works fine, except the problem that pdk-struts tags in jsp page aren't processed correctly, they output simple html output, which is not formated to inline rendering rules (qualified naming of fields, hidden fields with all values, etc).
    Maybe I'm missing something?

  • Struts Html tag problem in Weblogic 8.1

    Hi
    I am using weblogic8.1 Application server
    I have written a simple web application in struts that accepts
    username and password in "login.jsp" and corresponding "bean" ActionForm
    for the same.
    Below are my application source files......
    login.jsp
    <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <html:html>
    <head>Struts Test</head>
    <body bgcolor="#E6F1FC">
    <html:form action="login.do">
    <table>
    <tr>
    <td><html:text property="uname" value=" "/></td>
    <td><html:submit>SUBMIT</html:submit></td>
    </tr>
    </table>
    </html:form>
    </body>
    </html:html>
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
    Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    </web-app>
    struts-config.xml
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="LoginFrom" type="com.nit.StrutsEx.LoginFrom"/>
    </form-beans>
    <action-mappings>
    <action path="/login" type="com.nit.StrutsEx.LoginAction" name="LoginFrom" validate="false"
    input="/login.jsp">
    <forward name="success" path="/success.jsp"/>
    </action>
    </action-mappings>
    <message-resources parameter="ApplicationResource" null="false"/>
    </struts-config>
    ActionForm
    package com.nit.StrutsEx;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.*;
    import javax.servlet.*;
    import java.io.*;
    public class LoginForm extends ActionForm
    private String uname=null;
    public void setUname(String uname){
    this.uname=uname;
    public String getUname(){
    return this.uname;
    public void reset(ActionMapping am, HttpServletRequest req) {
    this.uname=null;
    public ActionErrors validate(ActionMapping am,HttpServletRequest req)
    System.out.println("I am in Validate");
    return null;
    ActionServlet
    package com.nit.StrutsEx;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.*;
    import java.io.*;
    public class LoginAction extends Action
    public ActionForward execute(
    ActionMapping am,
    ActionForm af,
    HttpServletRequest req,
    HttpServletResponse res) throws ServletException , IOException
    return am.findForward("success");
    My application runs well under tomcat but when i deploy it on Weblogic 8.1 it gives following error
    Compilation of 'E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java' failed:
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:151: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 4:
    <html:html>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:168: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 8:
    <html:form action="login.do">
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:203: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 13:
    <td><html:submit>SUBMIT</html:submit></td>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:216: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 13:
    <td><html:submit>SUBMIT</html:submit></td>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:226: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 16:
    </html:form>
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:235: cannot resolve symbol
    probably occurred due to an error in /login.jsp line 18:
    </html:html>
    Full compiler error(s):
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:151: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int0 == BodyTag.EVAL_BODY_BUFFERED) { //[ /login.jsp; Line: 4]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:168: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int1 == BodyTag.EVAL_BODY_BUFFERED) { //[ /login.jsp; Line: 8]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:203: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int2 == BodyTag.EVAL_BODY_BUFFERED) { //[ /login.jsp; Line: 13]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:216: cannot resolve symbol
    symbol : variable EVAL_BODY_BUFFERED
    location: interface javax.servlet.jsp.tagext.BodyTag
    if (_int2 == BodyTag.EVAL_BODY_BUFFERED) out = pageContext.popBody(); //[ /login.jsp; Line: 13]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:226: cannot resolve symbol
    symbol : method doAfterBody ()
    location: class org.apache.struts.taglib.html.FormTag
    } while (_html_form0.doAfterBody() == IterationTag.EVAL_BODY_AGAIN); //[ /login.jsp; Line: 16]
    ^
    E:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_stest_stest\jsp_servlet\__login.java:235: cannot resolve symbol
    symbol : method doAfterBody ()
    location: class org.apache.struts.taglib.html.HtmlTag
    } while (_html_html0.doAfterBody() == IterationTag.EVAL_BODY_AGAIN); //[ /login.jsp; Line: 18]
    ^
    6 errors
    Wed Jul 25 17:06:07 GMT+05:30 2007
    Please reply the solution

    I don't know about that, but I am using MyFaces and tomahawk with WLS8.1 sp5 jdk1.4.2_05 and it works fine.
    I do remember getting such an error when I moved from Sun RI to MyFaces and all I can recall is that it was a commons library mismatch problem or some classpath problem...

  • Wls 8.1 sp2: weblogic.jspc complains about struts-html tags

              Hi,
              I am trying to compile jsps with weblogic.jspc, which use struts' html tags. However,
              the compilation fails with the following message:
              [java] Translation of /views/viewPageBody.jsp failed: (line 3): Error in using
              tag library uri='/tags/struts-html' prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag'
              has no setter method corresponding to TLD declared attribute 'server', (JSP 1.1
              spec, 5.4.1)
              I opened the BaseTag class from the struts jar and found the setter exists for
              the attribute 'server' of html tld. So does the property 'server'. The property
              'server' is a string and the parameter in the setter is a string. I read about
              the jspc errors in wls 8.1 about the setter parameter being of different type
              than the property. However, that is not the case here. I tried using both Sun's
              and BEA's jdk. None of them help. Btw, there is another attribute mentioned in
              the html tld, which is 'target'. The compiler doesn't complain yet about this.:(
              Also, I happened to compile other apps which have struts logic tags.
              My environment:
              OS: Win2k sp3
              WLS: 8.1 sp2
              JDK: Sun's 1.4.2 sp4 / Bea's 1.4.1 sp5 (tried both)
              Ant: 1.5.3 (I had an issue earlier with ant until I found that Bea officially
              without any mention supports only ant 1.5.3.)
              I would appreciate any help in this regard.
              Thanks,
              Abbas
              

              What version of Struts are you trying to use?
              Are you certain you're not encountering a different instance of that class in
              an unexpected location in your classpath?
              "Abbas" <[email protected]> wrote:
              >
              >Hi,
              >I am trying to compile jsps with weblogic.jspc, which use struts' html
              >tags. However,
              >the compilation fails with the following message:
              >
              >[java] Translation of /views/viewPageBody.jsp failed: (line 3): Error
              >in using
              >tag library uri='/tags/struts-html' prefix='html': The Tag class 'org.apache.struts.taglib.html.BaseTag'
              >has no setter method corresponding to TLD declared attribute 'server',
              >(JSP 1.1
              >spec, 5.4.1)
              >
              >I opened the BaseTag class from the struts jar and found the setter exists
              >for
              >the attribute 'server' of html tld. So does the property 'server'. The
              >property
              >'server' is a string and the parameter in the setter is a string. I read
              >about
              >the jspc errors in wls 8.1 about the setter parameter being of different
              >type
              >than the property. However, that is not the case here. I tried using
              >both Sun's
              >and BEA's jdk. None of them help. Btw, there is another attribute mentioned
              >in
              >the html tld, which is 'target'. The compiler doesn't complain yet about
              >this.:(
              >Also, I happened to compile other apps which have struts logic tags.
              >
              >
              >My environment:
              >OS: Win2k sp3
              >WLS: 8.1 sp2
              >JDK: Sun's 1.4.2 sp4 / Bea's 1.4.1 sp5 (tried both)
              >Ant: 1.5.3 (I had an issue earlier with ant until I found that Bea officially
              >without any mention supports only ant 1.5.3.)
              >
              >I would appreciate any help in this regard.
              >
              >Thanks,
              >
              >Abbas
              

  • How to use form name in struts html:form tag

    Hi,
    I want to validate text box value, if it is ordinary html form I would have done like this <form name="myform" action="xxxx.jsp" onsubmit="return validate()">
    But am using struts html:form tags. In this case how can I use/specify name for a form.
    Can any one help me.
    Thanks

    The name of the form comes from the actionForm you have defined backing it.
    View source on the generated page to see what HTML it constructs.
    You are able to use the onsubmit event with the <html:form> tag just like the standard one, so if all you want to do is that:
    <html:form action="/saveUser" onsubmit="return validate()">
    ...You can also give it a styleId, which will generate an id in the HTML.
    See the tag documentation for details: http://struts.apache.org/1.2.x/userGuide/struts-html.html#form

  • Org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not foun

    hi
    i have developed small stuts sample using eclipse.When i tried to run the sample its giving following error..
    org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not found
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
         org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:160)
         org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
         org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
         org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
         org.apache.jasper.compiler.Parser.parse(Parser.java:127)
         org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
         org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    But i ahve placed the tld files inside WEB-INF.
    please anybosy help me why i am getting this error?
    regards
    shruthi

    Hello,
    Were you able to find out the cause of the problem you were having with the "/WEB-INF/struts-html.tld" error?
    I'm stuck for a while on this problem, your input would help a great deal.
    Thanks,
    -Rick

  • Struts html:form vs form

    Hi,
    I'm trying to get form validation working in struts but am running into a bit of difficulty. I have a couple of questions:
    1) When an ActionError is returned - does the input form have to have used <html:form> tags for the errors to be shown. The reason i ask is because at the moment i am using the original <form> tags and when the request is returned to the input page there is just a blank page - i though this might be because i am not using the specialised struts html tags? This leads nicely on to my 2nd question... :o)
    2)Now the reason i am not using these tags is because when i try and create a form using these tags the text input areas/buttons etc do not appear - here is my code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:html>
      <head>
        <title>iQ Holiday Entitlement Calculator</title>
      </head>
      <body>
        <p><html:errors property="date"/></p>
        <html:form action="/iq/hr/holiday/calculate" name="calculatorForm" type="iq.hr.holiday.calculator.forms.CalculatorForm" >
          <table width="45%" border="0">
            <tr>
              <td>Day: <html:text property="day" /></td>
            </tr>
            <tr>
              <td>Month: <html:text property="month" /></td>
            </tr>
            <tr>
              <td>Year: <html:text property="year" /></td>
            </tr>
            <tr>
              <td colspan="2" align="center"><html:submit styleClass="button" value="Go"/></td>
            </tr>
          <table>
        </html:form>
      </body>
    </html:html>The text literals "Day:", "Month:", "Year:" appear but no text field with which to enter the text!
    I would very much appreciate any help anyone can offer!
    Many thanks

    <%@ page contentType="text/html; charset=iso-8859-1"
    language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld"
    prefix="html" %>
    <html:html>
    <head>
    <title>iQ Holiday Entitlement Calculator</title>
    </head>
    <body>
    <p><html:errors property="date"/></p>
    <html:form action="/iq/hr/holiday/calculate"
    te" name="calculatorForm"
    type="iq.hr.holiday.calculator.forms.CalculatorForm"
    >
    <table width="45%" border="0">
    <tr>
    <td>Day: <html:text property="day" /></td>...
    </tr>
    <table>
    </html:form>
    </body>
    </html:html>try:
    1.check your Action to see if the forward is ok (I think that your forward=... is not reachable if you have some errors)
    2.delete property="date" from <html:errors.../>
    3.close <table>tag
    4.delete <html:html> and </html:html> from your code
    5.maybe you have some errors in your and you have errorPage=""

  • Struts html:text tag background colour

    How to change the background colour of Struts <html:text> tag?

    styleClass and styleId, you can put css value on it

Maybe you are looking for

  • Error Message - The iTunes Library file cannot be saved. An unknown error occurred (-50).

    I can add my music files to the Library in iTunes and play the music, but when I close iTunes the Library doesn't save. When I reopen iTunes there is no music in the Library. This has happened after a switch to a new computer and upgraded software. I

  • Muench's examples, #81

    I have a question for Steve M. or someone who used his example code #81. Does this method of refreshing a page ever not work? It seems like it only works once per request cycle. It is hard for me to tell why it does not work in a particular scenario.

  • Remote RSS Feed consumption - no route to host

    Hi all, I tried to embed an external RSS feed but always get the error that Service SS_GET_PAGE and Function getRssFeedForUrl cannot be performed due to System Error : No route to host. I guess that the server needs a proxy setting in order to connec

  • Print separations on non-PS printer (inkjet)

    This must have been brought up but for the life of me I can't find anything conclusive on it. I don't have a PS printer (a multi-purpose inkjet) but want to print separations. I wan't to print my own t-shirt stencils and even check work (on paper) be

  • About SAP Privilege Setting

    Hi, I have a question. Can I use ABAP programming to modify SAP privilege setting? If I can, how can I do to avert user to do this? Thanks a lot.