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...

Similar Messages

  • 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
              

  • Struts bean/html tag problem

    i am writing this url_element on screen
    <bean:write name="url_element"/>
    then i got a link
    <html:link action="urlDetail.do?url=???">aaa</html:link>
    how can i transfer the url_element into ??? do i need to write something like <%...%>?

    just found the solution:
    You can't use a <bean:write> tag inside an <html:link> tag. Struts doesn't support it.
    The easiest way to fix this is to abandon use of <html:link> and just use the plain old html tags <a></a>. Then you will have no problem substituting parameters with <bean:write> tags.
    The only advantage <html:link> has over the plain html tag is that it automatically does URL rewriting (Adding of the jsessionid to the URL so that sessions may be tracked even if the user has turned cookies off). If you're not using this function anyway, as most modern websites don't, you may as well use the html tag.
    If you still want to use <html:link>, use the struts-el version of the html tags and use EL expressions instead of <bean:write> tags.

  • 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.

  • Struts html tag

    hi
    i have table in each row there is radio button.when i click a radio button it should redirect to another page and the sametime it has to retrieve the row value of selected radio button
    please can any one help me in this.i am using struts.i am new to struts

    <html:form action="somename" ondbclick="check()">why do you plan to check it on double clicking the html form? what if the user doesn't do a double click?!
    Maybe you could check it on the "onblur " event for the textbox. ->
    <html:text property="username" onblur="javascript:check();"/>If you are unsure about how to work on the javascript function (because I didnt exactly understand your query :) ) then just to get you started...
    function check()
             if(document.forms["0"].username.value == "")
                 alert("Empty textbox!");
             //put code for checking spaces
    }but do a little googling for the rest..
    And if I have entirely misread your query, then please clarify...

  • Html Tag Problem

    Hello, I have a web page.
    <body  class="mediawiki ns-0 ltr page-Hacker">
         <div id="globalWrapper">
              <div id="column-content">
         <div id="content">
              <a name="top" id="top"></a>
                        <h1 class="firstHeading">Hacker</h1>
              <div id="bodyContent">
         ...I want to replace the lines with new lines which are added id
    <body  id="1" class="mediawiki ns-0 ltr page-Hacker">
         <div id="globalWrapper">
              <div id="column-content">
         <div id="content">
              <a id="2"name="top" id="top"></a>
                        <h1 id="3" class="firstHeading">Hacker</h1>
              <div id="bodyContent">
         Every line must have an id in the tag, I am not familar with html.tag or parser.
    Could you please provide some hint?
    Regards!

    public class AddIds  extends HTMLEditorKit.ParserCallback{
      public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos){
        ... // write the edited line out
    }

  • HTML Tag Problem OnInputProcessing

    Hi!
    Hope anybody can help.
    I have a MVC application. In our views, we can´t use HTMLB controlls. So we must use standard HTML controlls.
    With ?onInputProcessing it is possible to come in the on_handle_event Method in my controller class.
    The HTML statement in the view works fine :
    <a href="?onInputProcessing(NAVIGATION_MAIN_FUNCTIONS|BACK)">
    But in the select HTML Tag the statement doesn´t work.
        <select onchang e="?onInputProcessing(NAVIGATION_MAIN_FUNCTIONS|BACK)">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        </select>
    What`s wrong in the select tag??
    Regards,
    Anton

    Try below code, it will solve the issue
    < script t-ype="text/javascript">
    function triggerevent(event)
         document.getElementById("OnInputProcessing").value = event;
         document.getElementById("MYFORM").submit();  " Change the Form name here
    < / script >
        <select onchang e = "triggerevent_contact_dd('Your_event_name_here')">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
        </select>
        <input type="hidden" name="OnInputProcessing" value="value"/>

  • Struts tag problems in weblogic 5.1 sp12

              Hello,
              I am deploying a struts application in weblogic 5.1 sp 12. When I load any jsp
              page with a struts tag, e.g. <html:html>, it will throw exceptions as follows:
              Parsing of JSP File '/Feedback.jsp' failed:
              /Feedback.jsp(-1): Error in tag library at: 'bean': error introspecting class:
              'org.apache.struts.taglib.bean.CookieTag': weblogic.servlet.jsp.JspException:
              (line -1): Error in tag library at: 'bean': class org.apache.struts.taglib.bean.CookieTag
              doesn't implement javax.servlet.jsp.tagext.Tag
              probably occurred due to an error in /Feedback.jsp line -1:
              any comment is highly appreciated! I am following the directions posted on apache
              website about instaling struts with weblogic 5.1.
              

              Hello,
              I am deploying a struts application in weblogic 5.1 sp 12. When I load any jsp
              page with a struts tag, e.g. <html:html>, it will throw exceptions as follows:
              Parsing of JSP File '/Feedback.jsp' failed:
              /Feedback.jsp(-1): Error in tag library at: 'bean': error introspecting class:
              'org.apache.struts.taglib.bean.CookieTag': weblogic.servlet.jsp.JspException:
              (line -1): Error in tag library at: 'bean': class org.apache.struts.taglib.bean.CookieTag
              doesn't implement javax.servlet.jsp.tagext.Tag
              probably occurred due to an error in /Feedback.jsp line -1:
              any comment is highly appreciated! I am following the directions posted on apache
              website about instaling struts with weblogic 5.1.
              

  • HTML Tag problem when sending mails through APEX

    Hi,
    My code for sending mail is below:
    DECLARE
    l_body CLOB;
    l_body_html CLOB;
    cursor c2 is
    SELECT pn,pdt_name FROM lib_details WHERE a_date BETWEEN to_date(:P13_SDATE,'DD-MON_YYYY') AND to_date(:P13_EDATE,'DD-MON-YYYY');
    BEGIN
    for c_lib in c2
    loop
    l_body_html:=l_body_html ||
    '<html><body>
    ul>
    li>'||c_lib.pn||' , '||c_lib.pdt_name||' /li>
    /ul>'; p;
    l_body_html:=l_body_html ||'</body></html>';
    apex_mail.send(
    p_to => 'xxxx',
    p_from => 'xxxx',
    p_body => l_body_html,
    p_subj => 'Test Mail');
    END;
    Gives me the output in the format below:
    all the <html><body> tags also comes along with the email, though I get the correct output, what is the problem here?
    I am not able to figure this out. Can someone help?
    OUTPUT
    <html><body>
    ul> li>a,b
    /ul><html><body>
    ul> li>c,d
    /ul><html><body>
    PLEASE NOTE: I have intentionally removed the starting tags (<) of ul and li so that the post will not be formatted.
    Edited by: Suzi on Feb 9, 2012 1:18 PM

    >
    Gives me the output in the format below:
    all the <html><body> tags also comes along with the email, though I get the correct output, what is the problem here?
    I am not able to figure this out. Can someone help?For HTML output you need to send it using the <tt>p_body_html</tt> parameter, not <tt>p_body</tt>.
    PLEASE NOTE: I have intentionally removed the starting tags (&lt;) of ul and li so that the post will not be formatted.Posting code wrapped in <tt>\...\</tt> tags eliminates the need to resort to these bizarre circumlocutions.

  • Struts 1.0  problem with weblogic 6.1, can not getProperty

              Hi, I have a struts 1.0 based war application deployed to weblogic 6.1, and when
              I try to access a javabean property in my jsp,
              If it is a simple javabean
              <jsp:useBean id="book" scope="session" class="com.sssw.demo.silverbooks.BookBean"/>
              <jsp:getProperty name="book" property="title"/>
              thing are fine.
              But if it is a complicated one, like
              <logic:iterate id="featuredBook" name="featuredBooksCollection" property="books">
              BookId: <jsp:getProperty name="featuredBook" property="bookId"/>
              </logic:iterate>
              (featuredBooksCollection is a javabean, where its getBooks() return a collection
              of javabean of type BookBean)
              weblogic will say bookbean does not have a property named bookId,
              but if I change the
              <jsp:getProperty name="featuredBook" property="bookId"/>
              to
              BookId: <%=((BookBean)featuredBook).getBookId()%>
              Things would work.
              Does anyone know why weblogic has this strange behavior?
              Thanks a lot.
              Irene
              

              I have the same problem too. Does anyone know how to solve this problem
              Van
              "Irene Yip" <[email protected]> wrote:
              >
              >Hi, I have a struts 1.0 based war application deployed to weblogic 6.1,
              >and when
              >I try to access a javabean property in my jsp,
              >If it is a simple javabean
              ><jsp:useBean id="book" scope="session" class="com.sssw.demo.silverbooks.BookBean"/>
              ><jsp:getProperty name="book" property="title"/>
              >thing are fine.
              >
              >But if it is a complicated one, like
              ><logic:iterate id="featuredBook" name="featuredBooksCollection" property="books">
              >
              >BookId: <jsp:getProperty name="featuredBook" property="bookId"/>
              ></logic:iterate>
              >
              >(featuredBooksCollection is a javabean, where its getBooks() return a
              >collection
              >of javabean of type BookBean)
              >
              >weblogic will say bookbean does not have a property named bookId,
              >
              >but if I change the
              ><jsp:getProperty name="featuredBook" property="bookId"/>
              >to
              >BookId: <%=((BookBean)featuredBook).getBookId()%>
              >
              >Things would work.
              >
              >Does anyone know why weblogic has this strange behavior?
              >Thanks a lot.
              >
              >Irene
              

  • Java script with struts html tag

    the code show above is the main problem in the body of the function check() i just want to have a logic if the USERNAME is empty then it should alert("empty") if the name contains any spaces then it should alert("spaces are there")
    can u help this out
    <head>
    <script language="text/javascript">
    function check()
    </script>
    </head>
    <body>
    <html:form action="somename" ondbclick="check()">
    USERNAME:<html:text property="username"/>
    <html:submit/>
    </html:form>
    </body>

    <html:form action="somename" ondbclick="check()">why do you plan to check it on double clicking the html form? what if the user doesn't do a double click?!
    Maybe you could check it on the "onblur " event for the textbox. ->
    <html:text property="username" onblur="javascript:check();"/>If you are unsure about how to work on the javascript function (because I didnt exactly understand your query :) ) then just to get you started...
    function check()
             if(document.forms["0"].username.value == "")
                 alert("Empty textbox!");
             //put code for checking spaces
    }but do a little googling for the rest..
    And if I have entirely misread your query, then please clarify...

  • HTML tag problem when adding Google rich snippets in templates?

    The new Google plus Rich Snippets allow us to add a schema tag like this example:
    <html itemscope itemtype="http://schema.org/Article">
    I can do this on my .html pages but as soon as I make any changes to the .dwt template for the page it reverts all of the tags back to <html>
    How do I stop this happening?
    I have tried:
    Changing preferences in Dreamweaver's default code rewrite settings to "'Never Rewrite Code' for HTML document type " but this does not appear to fix things.
    Very frustrating as I have lost days of work.
    Any help would be appreciated
    many thanks
    Craig

    I've done what you have said (I think) however something is not quite right. I am asssuming that I need to add the schema below the <BODY> tag if I make the changes to the template as you have suggested.
    This is my practice page which is in a template:
    http://www.psychics.co.uk/lovepsychic/index.html
    Following the Adobe instruction on the forum: High at the top of the header section we get this code:
    <!-- InstanceParam name="GRS" type="text" value="itemscope itemtype=&quot;http://schema.org/Product"" -->
    For the customised body tag we get this:
    <body itemscope itemtype="http://schema.org/Product">
    Then on the left column of the page and below the navigation and below the <body> I have added this:
    <!-- Start Google snippet -->
    <h1 itemprop="name" content="Love Psychics Readings">Love Psychics - Psychic Love Predictions Online</h1> 
    <img itemprop="image" content="http://www.psychics.co.uk/images/schema/love.jpg" src="/images/stars.gif" width="160" height="76" alt="Psychics and Mediums Network"></img> 
    <p itemprop="description" content="Getting a reading with love psychics to find out about relationships, love, romance, marriage and family. Article about our Love psychics readings onlineservices.">Copyright Psychics &amp; Mediums Network - QKE Ltd.</p>
      <!-- End Google snippet -->
    I must be getting close but it just shows the normal Google plus stuff.
    I need to get your microdata markup into the body of the document somewhere - otherwise Google will use the something like <title> and <meta description>  tags and guess at an image.
    Any idea where I am going wrong or is it a quirk in Dreamweaver?

  • Displaying struts html tags dynamically

    hello..
    i am displaying the table row dynamically, row contain html elements on clicking the addRowbuutton. with in each row i want to display <html:hidden > element.but
    when i am wrote like ..
    form.innerHTMl="<html:hidden property='channels class' value='"+grouop+"'/>"+group;
    here group is javascript variable
    it throwing some javascriipt .
    please help ..
    thanking u,

    JSP is entirely serverside and Javascript is entirely clientside. Those two languages have nothing, nothing to do with each other.
    The html: taglib can only be parsed serverside. It prints HTML to the output (do a view source in the webpage, you won't see any JSP tags). Javascript can only intercept on the HTML of the output (that source which you've viewed), not on the JSP code. So, passing JSP tags through element.innerHTML is ultimately pointless. Pass plain vanilla HTML through it, not JSP tags.

  • HTML tag problem in jsf page

    Hello every body .I am newer in jsf.I have used the following segment in my jsf page .Now I want to read value from intl properties file in place of "*********************".How i will do it?plz help me Thanks in advance.
    <t:panelGrid id="guestUserIstallationhelpnotesGrid" columns="1" width="100%" border="0" columnClasses="next" style="align: right !important;"
                   cellpadding="8">
                        <f:verbatim>
                             <table class="tip" cellspacing="0" width="100%" height="50px" border="0">
                                  <tr>
                                       <td class="tip_headline">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td class="tip_text" ></f:verbatim>
                                            <p align="justify">************
                                            </p>
                                       </td>
                                  </tr>
                             </table>
                        </f:verbatim>
                   </t:panelGrid>

    Use the f:loadBundle component.

  • Struts bean tag problem

    Say I've got a bean, i use
    <logic:present name="personbean" scope="request">
    to load that bean in the jsp page.
    what should i do if i want to read a property which is actually a file name string, from that bean and include that string in the jsp page by "<%@ include file=filename %>" (see that filename is the param that i got from the property of the bean)
    please help me out here, i think i stuck there
    thanks

    Hi,
    the property "filename" of personaBean must be in scope, in this case request.
    You do this in the Action that calls the jsp where you use "filename".
    It depends on what sort of StrutsForm you use.
    I usually use DynaValidationForm:
    DynaValidationForm formD = (DyanValidationForm)form;(ActionForm you pass to the Action as parameter)
    formD.set("filename",filename);

Maybe you are looking for

  • Cannot reslove symbol class Date

    I am trying to get a clock to show the time in my program. However, when I try to compile the program a "cannot resolve symbol class Date" error appears. I can't figure out where the problem in my program is. Here is my source code. I would appreciat

  • Generate a ticket number

    Can I add a ticket number or request number (tracking number) to a form when a person fills out and hits submit. Then when they receive their submission notice can they get that number?

  • How can I open VeriStand with labview?

    Hello everyone, does anyone know how I can open VeriStand 2011 using labview, or is there a VI that allows you to open VeriStand from labview

  • Equivalent of "C static local" variable?

    Hi! I am trying to write a sub-VI that has multiple call modes (init, do1, do2) and needs to remember some variables set in the 'init' call. When I try the straightforward way of just placing indicators as temporary variables on the front panel, thes

  • Automatically adding user to company

    We're looking at using Delegated User Administration with Companies to limit the scope that some administrators have (they will only be able to assign certain roles to members of their company).  We want all new users to be members of the same compan