Have you tried to run this at all yet?  It looks to me like it won't work.
Here's why.

you are attempting to use an include directive (<%@ include ...) which is a
COMPILE TIME directive and change its behavior at RUN TIME (by having it
inside an if/else block)

This is an important distinction -- "<%@ include" acts like you take that
file and paste it in with your source code BEFORE it is compiled.  If you
think about that a while you should see that you won't be able to do what
you're trying to do.

-----Original Message-----
From: Ze Luis [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:56 PM
To: [EMAIL PROTECTED]
Subject: change html form elements within a <%@ include file
fileex.html>


this is my code:

<% response.setHeader("Pragma","no-cache");%>
<%@ page import="java.io.*" %>
<%@ page import="javax.servlet.*"%>
<%@ page import="javax.servlet.http.*"%>
<%@ page import="javax.servlet.http.HttpSession"%>
<%@ page import="java.io.IOException"%>
<%@ page import="java.io.*"%>
<%@ page import="java.net.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.Properties"%>
<%@ page import="java.net.InetAddress"%>
<%@ page import="java.rmi.*"%>
<%@page language="java" errorPage="errorpage.jsp" %>
<%@ include file="carregadriversqlserver.jsp" %>
<%-- Verifica se o usuario esta logado --%>
<%session = request.getSession(true);%>
<% if (session.getValue("login.Logado") == "sim")
{
 response.sendRedirect("nao_logado.html"); }
else
{  %>
 <%@ include file="altera_senha_colegio.html"%>
<%--

 here i need set the value of a text element in a form within
 "altera_senha_colegio.html" named "Teste" with "value changed" value.
 is it possible?
 examples are welcome...
 thanks

--%>
 <%
 }
%>
<%-- Termino da verificacao do Login de usuario --%>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to