How to use jsp:forward

I would like to show my code, because i'm not sure what u mean at the moment...i want to display the error message on the registration.jsp page and not on a new page...
registration.jsp:
<HTML>
<HEAD>
<TITLE>New Player</TITLE>
<content = "registration.html">
<LINK REL=stylesheet TYPE="text/css" HREF="style.css">
<SCRIPT>
function validateText(regForm)
if(regForm.firstName.value=="")
return false;
if(regForm.surname.value=="")
return false;
if(regForm.email.value=="")
return false;
if(regForm.teamName.value=="")
return false;
if(regForm.pass1.value=="")
return false;
if(regForm.pass2.value=="")
return false;
return true;
function validatePass(regForm)
if(regForm.pass1.value!==regForm.pass2.value)
return false;
return true;
function validatePassw(regForm)
var pWord = regForm.pass1.value;
if(pWord.length > 8)
return false;
else if(pWord.length < 4)
return false;
return true;
function validateTeamn(regForm)
var tName = regForm.teamName.value;
if(tName.length > 15)
return false;
return true;
function validateEmail(email)
var result = false
var theStr = new String(email)
var index = theStr.indexOf("@");
if (index > 0)
var pindex = theStr.indexOf(".",index);
if ((pindex > index+1) && (theStr.length > pindex+1))
result = true;
return result;
function doSubmit(regForm)
if(validateText(regForm)==false)
alert("Please complete all text fields");
return false;
else if (!validateEmail(regForm.email.value))
alert("Please enter email address in the form: [email protected]");
return false;
else if(validateTeamn(regForm)==false)
alert("Team Name too long");
return false;
else if(validatePass(regForm)==false)
alert("Passwords did not match, please retype password");
return false;
else if(validatePassw(regForm)==false)
alert("Incorrect password length, please retype password");
return false;
//alert("Your details are being submitted");
//return;
</SCRIPT>
</HEAD>
<BODY>
<FONT size=4>
Please enter the following information in the space provided below:
</FONT>
<CENTER>
<FORM NAME="regForm" ACTION="confirm.jsp" METHOD=POST onSubmit="return doSubmit(regForm);">
<B><U>Personal Details:</U></B><BR>
<FONT SIZE=2 color="blue">(Your Team Name should be no more than 15 characters long<BR>
& Your Password should be between 4-8 characters)</FONT><BR>
<TABLE>
<TR>
<TD ALIGN="right">
First Name:
</TD>
<TD ALIGN="left">
<INPUT TYPE="text" SIZE=20 NAME="firstName">
</TD>
</TR>
<TR>
<TD ALIGN="right">
Surname:
</TD>
<TD ALIGN="left">
<INPUT TYPE="text" SIZE=20 NAME="surname">
</TD>
</TR>
<TR>
<TD ALIGN="right">
Email Address:
</TD>
<TD ALIGN="left">
<INPUT TYPE="text" SIZE=20 NAME="email">
</TD>
</TR>
<TR>
<TD ALIGN="right">
Team Name:
</TD>
<TD ALIGN="left">
<INPUT TYPE="text" SIZE=20 MAXLENGTH=30 NAME="teamName">
</TD>
</TR>
<TR>
<TD ALIGN="right">
Password:
</TD>
<TD ALIGN="left">
<INPUT TYPE="password" SIZE=8 MAXLENGTH=20 NAME="pass1">
</TD>
</TR>
<TR>
<TD ALIGN="right">
Re-enter Password:
</TD>
<TD ALIGN="left">
<INPUT TYPE="password" SIZE=8 MAXLENGTH=15 NAME="pass2">
</TD>
</TR>
</TABLE>
<INPUT TYPE="submit" VALUE="Register">
<INPUT TYPE="reset" VALUE="Clear Form">
</FORM>
</CENTER>
</BODY>
</HTML>
confirm.jsp:
<html>
<head>
<basefont face="Arial">
</head>
<body>
<center>
<%@ page language="java" import="java.sql.*" %>
<%
// load driver
Class.forName("org.postgresql.Driver");
// create connection url
String URL = "jdbc:postgresql://dbhost/ug59sxn";
// pass database parameters to JDBC driver
Connection Conn = DriverManager.getConnection(URL, "ug59sxn", "hupeswop");
boolean verify = false;
String email;
String email2;
email = request.getParameter("email");
// query statement
Statement SQLStatement = Conn.createStatement();
// generate query
String Query = "SELECT email FROM usertable " +
"WHERE email = '"+email+"'";
// get result
ResultSet SQLResult = SQLStatement.executeQuery(Query);
// check for email
while(SQLResult.next())
email2 = SQLResult.getString(1);
if(email.equalsIgnoreCase(email2))
verify=true;
out.println("email already exists, please type another one");
if(verify==false)
%>
<jsp:forward page="reg2.jsp"></jsp:forward>
<%
// close connections
SQLResult.close();
SQLStatement.close();
Conn.close();
%>
</center>
</body>
</html>
So what u r saying..i should put into my confirm.jsp -
%>
<jsp:forward page="registration.jsp">
<jsp:param name="errorMessage" value="Email already exist" />
</jsp:forward>
<%
but the part where i'm abit confused, what am i supposed to put in the registration.jsp page?
thanx for the help in advance.

Hi,
In confirm.jsp You can put the error message in a header with response.setAttribute(sMsg, "Please type proper values"); or you can put it in session or cookie.
And get this information in the regestration.jsp and display it.

Similar Messages

  • How to use jsp:plugin type="applet" in jsp

    Hi ,
    I have a JSP File.
    How to use jsp:plugin tag in that.
    When I specify the file name in code="applet.class" Then it is giving an error saying that It could not find the class.
    What is the solution for this.

    its not working.. it shows exception class not found exception.
    i have placed the jsp and applet class in the same folder. but its not working.
    jsp file path : OracleSpatial\mypackage\webmap.jsp
    applet class : OracleSpatial\mypackage\demoApplet.class
    demoApplet class inside package "mypackage".
    code inside JSP is :
    <jsp:plugin type="applet"
    code="mypackage.demoApplet.class" width = "100%" height = "100%" >
    </jsp:plugin>

  • Problem using jsp:forward in java script

    hi,
    when I use jsp forward tag inside java script i'm getting a problem that
    when the jsp is invoked it is getting forwarded to the page specified in the forward tag, without checking the if conditions. Following code may give you a better idea.
    <html>
    <script>
    function test()
    if(document.f.htemp.value=="true")
    alert("jus");
    else
    var s=document.f.htemp.value;
    alert(s);
    <jsp:forward page="success.jsp" />
    </script>
    <body>
    <form name="f" method=post>
    <input type=text name=htemp value="true">
    <input type=button onclick="test()">
    </form>
    </body>
    </html>
    please help me,thanks inadvance
    regards
    chandu

    What pgeuens means is that you can't mix javascript and jsp/java code in this way.
    ALL of the jsp/java code gets executed at the server end.
    This produces an HTML page (with embedded javascript) which gets sent to the client.
    The client then runs javascript code in response to events (onLoad, onClick, onChange etc etc)
    So in this case, the jsp:forward will always be executed, because as far as the server is concerned, the javascript is just template text.
    If you WANT to do a conditional forwarding on the server side you do it in java ie (horribly using scriptlet)
    <%
    if (testCondition){
    %>
      <jsp:forward>
    %<
    %>Or if you want to test what the client has entered client side, all you can do is submit the form, or navigate to a URL
    <script>
    function test()
    if(document.f.htemp.value=="true")
    alert("jus");
    else
    var s=document.f.htemp.value;
    alert(s);
    document.f1.action="success.jsp";
    document.f.submit();
    </script>You cannot run JSP code based on your javascript code.
    Java. Javascript. Not the same thing.
    Hope this helps,
    evnafets

  • How to use JSP in apache web server

    hi all,
    can anybody tell me how to use JSPs in Apache Web Server.
    Thanks
    sir

    You would need a servlet container to run Servlets and JSPs. And Apache's Tomcat is one such free container available. Download Tomcat from http://jakarta.apache.org and integrate with Apache WS
    HTH

  • I have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?

    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?
    thanks!

    You'd do something like:
    <%
    //vvv this part can potentially be done in initialization
    Context ctx = getInitialContext();
    BeanHome home =
    (BeanHome)PortableRemoteObject.narrow(ctx.lookup("the.jndi.name"),
    BeanHome.class);
    Bean b = home.create();
    //^^^
    Result r = b.invokeMethod();
    %>
    "toxin" <[email protected]> wrote in message
    news:3d2e95e5$[email protected]..
    >
    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke theEJB's method?
    thanks!

  • How to use JSP custom tag lib in PAR file?

    Hi All,
    I am trying to customize mastheaderpar file. For that I have downloaded relevant par file and making the changes accordingly.
    As part of the changes I would require to use JSP custom tag library in my par file.
    I have the TLD file and relevant classes in the jar file. I would like to know where and what kind of modifications have to be done to use the jsp custom tag library.
    I tried modifying some things in portalapp.xml but was not successful.
    Please help me on how to proceed with this? It would be great if you can provide the xml entry to use this tag library
    Thanks
    Santhosh

    Hi Johny,
    Thanks for the reply. Actually I am able to change colors etc. with out any problem.
    My requirement is to use XMLTaglib in mastheader par file. This tag lib is from apache tomcat. I have the relevant TLD and class files. I copied TLD file into taglib dir of portal-inf and class file in src api.
    And I have added the following line in portalapp.xml under component-profile section of default
    <property name="tlxtag" value="/SERVICE/Newmastheader/taglib/taglibs-xtags.tld">
    Is this the right way to use tag lib? Actually before adding this line I used to get the error saying "Error parsing taglib", but now the error does not occur and I am getting new error. This is an exception in one of the taglib classes.
    Could any one provide me some inputs on how to check this error?
    Thanks
    Santhosh

  • How to use JSP in Web Dynpro

    Hi
         I want to use JSP and servlet pages in my web dynpro application
    how can we add the JSP pages in web dynpro aaplication or how can I achive this functionality?
    Thanks
    Ninad

    Hi,
    Have a look at this thread,
    Re: web dynpro jsp
    Regards,
    Saravanan K

  • How to use jsp in weblogic 5.1

    Hi all,
    We have PeopleSoft application running on
    Weblogic 5.1 SP12.
    How do we use JSP files in this weblogic version ?
    We are trying to use a custom jsp file.
    Quick help is much appreciated..
    Thanks
    Maddy

    WebLogic 8.1 supports JSP 1.2, which doesn't natively implement the JSTL or the expression language. If you download the Jakarta Taglibs implementation of the JSTL (for JSP 1.2, not JSP 2.0), then you can use the JSTL taglib as a normal taglib. Note that this doesn't give you the ability to use the other JSP 2.0 tag features, like using the expression language in body content.
              Make sure that you use the uri value specified in the tld that you're using. I believe the values are different between the JSP 1.2 and JSP 2.0 versions.

  • How to implement jsp:forward...

    I included a <jsp:forward...> directive in my jsp page.
    How do I tell that it has only to be executed when
    a 'submit' button is pushed ?
    Can I add it to the 'action' attribute of a form?

    sudhabharathi, yes I tried but remember, I want to create a html-jsp-servlet-jsp environment following the MVC2 rules. Thus jsp with only Beans, servlet which changes the info inside the Bean and forward request to another JSP which display's the info, etc...
    When I change the code as :
    <FORM action="com.clipper.beans.FQController" method=post target=_parent>
    the servlet loads but I cannot get the bean-data into the servlet.
    The code in servlet is as follows:
    try
         FreightQuotation fq = (FreightQuotation) req.getAttribute("FQ");
         System.out.println("fq object created");
         System.out.println("fq.getGoodsDescription =" + fq.getGoodsDescription());
         FreightQuotationCBean fqc = (FreightQuotationCBean) req.getAttribute("FQC");
         System.out.println("fqc object created");
         System.out.println("fqc.aAS400data.getGoodsDescription() value =" + fqc.aAS400data.getGoodsDescription());
         getServletConfig().getServletContext().
              getRequestDispatcher("../jsp/quotagentdetail.jsp").
              forward(req, res);
    catch (Exception e)
         System.out.println("FQController ended abnormally");
         e.printStackTrace();
    where executions stops after the message 'fq object created'. The servlets fails at statement:
    System.out.println("fq.getGoodsDescription =" + fq.getGoodsDescription());and prints the "FQController ended abnormally" message.
    The fq.getGoodsDescription() is a valid getter!
    This leads me to the fact that the servlet doesn't receive the bean...

  • How to use jsp:scriptlet in site template

    hi all,
    I want to use <jsp:scriptlet> in site template, but jdev showed me an error msg when I put <jsp:scriptlet> in site template:
    scriptlet can not work properly with OJSP, I checked the forums, one possible solution is to encapsulate java code in jsp taglib, but I dislike this solution.
    Is there a way to disable OJSP? or any solution to use java code in site template?
    Best regards

    I believe the official word is if you are trying to use java code in a scriptlet in your site template then you are doing something wrong.
    The goal is to keep java code separate from the template and pages. Any logic should go to your supporting serviece objects and all of your front-end work should be accomplished using available or custom tags.
    Can you describe what you are trying to accomplish with this java code in your template?

  • How to use RequestDispatcher.forward method  in a portlet

    I have a servlet (HelloServlet2) that acts as the controller. This is a very simplified example. This servlet calls the dispatcher.foward(req, res) method to foward to a JSP page for displaying. At this point I get a FileNotFoundException. The HelloServlet2 is in the standard location WEB-INF/classes/com/a2i/industrial/servlet/HelloServlet2.java.
    How come it's looking in Industrial/servlet/HelloServlet2 instead of Industrial/WEB-INF/classes/..? If I access the servlet by http://host:port/Industrial/HelloServlet2, it works fine. I have another portlet (servlet) that doesn't call the forward method and it works fine too. Thanks for your help.
    Here is the web.xml:
    <servlet>
    <servlet-name>HelloServlet2</servlet-name>
    <display-name>HelloServlet2</display-name>
    <servlet-class>com.a2i.industrial.servlet.HelloServlet2</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet2</servlet-name>
    <url-pattern>/HelloServlet2/*</url-pattern>
    </servlet-mapping>
    Here is the calling code from HelloServlet2:
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    RequestDispatcher dispatcher= getServletContext().getRequestDispatcher("/hello.jsp");
    dispatcher.forward(req, res);
    Here is the portlet definition:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>2</id>
    <name>HelloServlet2</name>
    <title>Hello Servlet2</title>
    <shortTitle>Hello Servlet2</shortTitle>
    <description>This is the "hello world" sample implemented using Java Servlets and the extensible renderer architecture.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Hello Servlet timed out</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <autoRedirect>true</autoRedirect>
    <showPage>/servlet/HelloServlet2</showPage>
    </renderer>
    </portlet>
    Here is the stack trace:
    7/15/03 10:43 AM industrial: JspServlet: unable to dispatch to requested page: java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.runtimev2.JspPageCompiler.fromReader(JspPageCompiler.java:345)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:250)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.a2i.industrial.servlet.HelloServlet2.doGet(HelloServlet2.java:21)
         at com.a2i.industrial.servlet.HelloServlet2.doPost(HelloServlet2.java:14)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
         at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
         at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
         at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    7/15/03 10:43 AM industrial: ERROR: ResourceRenderer.renderBody - Resource "/servlet/HelloServlet2" returned HTTP Status: 404. Error message: OracleJSP:
    java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified). Content returned follows....

    Thanks for you help David. I changed my code from getServletContext().getRequestDispatcher(jspPage).forward(req, res) to getServletContext().getNamedDispatcher(jspPage).forward(req, res). It worked but I run into the same problem with jsp:include.
    I am using the July 2003 of the PDK. I followed the direction for installing version 2 but I did not redeploy with the new jpdk.ear since one was already deployed. After redeploying with the new jpdk.ear, it fixed the jsp:include problem I was having. The problem with using getServletContext().getRequestDispatcher(jspPage).forward(req, res) STILL exist. I am not sure what the deal is.
    Oh, I also tried the code below and it doesn't work.
    path = req.getContextPath() + jspPage
    getServletContext().getRequestDispatcher(path).forward(req, res)
    In any case, using getNamedDispatcher() is working fine. I am still curious about getRequestDispatcher() though.

  • How to use JSP files in virtual directory in WL 5.1

              Using WL 5.1 sp9 on Win 2000 sp3
              Following a previous post I've got this far setting up a virtual directory -
              weblogic.httpd.register.tempstuff=weblogic.servlet.FileServlet
              weblogic.httpd.initArgs.tempstuff=docHome=c:/tempstuff
              From the browser http://p1900:7001/tempstuff/test.html
              displays the html page but how do I set it up so I can access a .JSP page in there?
              I've tried changing the line to
              weblogic.httpd.register.tempstuff=weblogic.servlet.JSPServlet
              but keeps giving errors
              any ideas
              thanks
              harry
              

    You should be able to just bring the files into DreamWeaver. It should edit the HTML part of the JSP just fine.

  • How to use jsp:plugin action with type = bean

    Hi everybody,
    I'm new to JSP so it could be a stupid question but I'm wondering how can I use a jsp:plugin action with a type equal to "bean".
    Everyone is talking about type equal to applet so the browser can display this applet but if the type will be a bean so then
    does it mean I can send a javaBean class to the client?
    If yes, then can the javaBean object be executed on a client machine?
    Or maybe I'm wrong. I don't know how it works.
    Please give me a resolution.
    Thanks,
    Rafal.

    its not working.. it shows exception class not found exception.
    i have placed the jsp and applet class in the same folder. but its not working.
    jsp file path : OracleSpatial\mypackage\webmap.jsp
    applet class : OracleSpatial\mypackage\demoApplet.class
    demoApplet class inside package "mypackage".
    code inside JSP is :
    <jsp:plugin type="applet"
    code="mypackage.demoApplet.class" width = "100%" height = "100%" >
    </jsp:plugin>

  • How to use jsp and xhtml files in an application

    This is web.xml file,
    <web-app>
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.xhtml</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    </web-app>
    If i configure like this, i am not able to work with jsp file.
    So, how to configure web.xml file to work with both jsp and xhtml file.
    Thanks,
    Vinutha.

    Hi Sam,
    To Use properties file you need to keep the properties file in a location and in the code you need to mention the path from where it should read in the runtime.
    Fuego.Io.PropertiesFile propfile;
    propfile.load(fileName : "<Path: C:/sample.properties>"); //Path: Place the properties file in the respective directory/drive and mention the path
    String val = propfile.get(key : "One"); //One - is the key against which the value should be mentioned in the properties file like <One = 1>. It should return 1
    logMessage("Value: " + val);
    To use the Enum in your project first create a Module in your catalogue component and then right click on module create New Enumeration say ProcessStatus
    Uncheck the Is Sequential if you want to keep key/value as pair. Click on add +* and mention the Name and Value say ABORTED as Name and Value as Aborted. To use it in your project conditional path write the condion as somevariable == String(ProcessStatus.ABORTED)
    Hope this will help you.
    Bibhu

  • In javascript  how to use jsp tag value

    i want to change td value while clicking the options.In the td contains jsp page.while clicking the options i want to load particular jsp within in the td.i change the td value using innerHTML by assigning value this format <jsp:include page="..."/>.It's gives some error .
    JspTranslate:Attribute has no value
    code:
    function rightPageload(strPage) {
    pageval='<jsp:include page="/jsp/library/"'+strPage+'"/>'
    document.getElementById("d1").innerHTML=pageval;
    }

    Do you want to use taglibs or develop custom tags? Either way take a look at these:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
    http://www.stardeveloper.com/articles/display.html?article=2001081301&page=1
    http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
    http://jakarta.apache.org/taglibs/tutorial.html
    http://www.ibm.com/developerworks/edu/j-dw-java-custom-i.html
    http://www.herongyang.com/jsp/tag.html

Maybe you are looking for

  • TS4449 I can no longer hear music on my iPhone unless I use an ear piece could you please help

    For a couple of days now I can no longer hear music (or if I play a video with audio) unless I connect an ear piece. I can't find anything in setting that turns this feature on or off unless I have some hardware problem. Help?

  • IPod touch 4G won't update, -43 error

    My friend in Estonia has a 4G iPod touch. iTunes is telling her an update is available. She accepts, it backs up - then she gets a -43 error. Any ideas? Windows 7, iTunes 10.5.

  • "Add Row" in Details.  Displayed "Rows" disapear.

    I've created an application using the Master Detail form. I would like to "add" new rows, by inserting a new blank row in my Master Form. Currently it goes to the second page and gives me an input form. I'd like to add the new record directly to the

  • Creating an extension that uses JDev's Edit Menu

    Hi, I'm working on an editor extension to JDeveloper, and I'd like the extension to use JDev's existing "Edit" menu. For example, when you select something in my editor, then click "Edit-->Cut," I'd like the IDE to perform a certain IdeAction that do

  • Mac App Store: Barra in inglese!

    Salve, NOn ci ho fatto mai caso, ma solo oggi mi sono accorto che la barra di Mac App Store quella dove c'è Top Charts, Updates ecc è in inglese. Si può mettere in Italiano?