Ir para conteúdo
Fórum Script Brasil

MrHeleno

Membros
  • Total de itens

    6
  • Registro em

  • Última visita

Sobre MrHeleno

  • Data de Nascimento 17/03/1992

Contatos

  • MSN
    heleno_marcos@hotmail.com

Perfil

  • Gender
    Male

MrHeleno's Achievements

0

Reputação

  1. MrHeleno

    Gráficos

    Bom dia... estou tentando fazer gráficos em páginas jsp.... se alguém puder enviar um exemplo........ gratoo
  2. \n não mais vou tentar aki.... grato \n não funciona aparece no textarea e não dá a quebra de linha
  3. Bom dia... estou precisando fazer quebra de linha dentro de textarea estou salvando no banco algo como: Solução Inicial:XXXXXXXXXXXXXXXXXXXXXXXX Solução Final: XXXXXXXXXXXXXXXXXXXXXXXX preciso que no text area apareça algo como: Solução Inicial:XXXXXXXXXXXXXXXXXXXXXXXX Solução Final: XXXXXXXXXXXXXXXXXXXXXXXX preciso saber como faço isso... já tentei colocar no banco <br /> &Chr(13); Chr(13) Chr(13); &Chr(13) Chr("13") Chr('13') e nada funcionou... o que posso gravar no banco para que faça esta quebra de linha? desde já grato
  4. Bom Dia.... Estou tratando o erro 404 atravez do arquivo web.xml da seguinte forma: <error-page> <error-code>404</error-code> <location>erro.jsp</location> </error-page> e a página de erro assim: <html> <head> <title>Erro!</title> <link type="text/css" rel="stylesheet" href="../../css/template_css.css" /> </head> <body> <center> <table cellpadding=0 cellspacing=0 border=1 bordercolor="#2886be" width='80%'> <tr> <td> <table align="center" border="0" cellspacing="2" cellpadding="2" width="70%"> <th> <font color="#000000">Sessão Expirada. Retorne à tela inicial para novo login.</font> </th> <tr> <td align="center"> <input class="button" type="button" value="voltar" onclick=parent.location='../login.jsp' /> </td> </tr> </table> </td> </tr> </table> </body> </html> so q tenho páginas pop-up como trato isto? existe algun if possivel q identifique se é popup ou não?
  5. MrHeleno

    Erro de Classe JAVA

    Bom dia, Estou iniciando no desenvolvimento HTML/JavaScript/CSS/Ajax /JSP/Java... Fiz a seguinte classe java p/ interação com o ajax... package beans; import java.io.IOException; import java.sql.SQLException; import javax.servlet.*; import javax.servlet.http.*; import conexao.Conexao; public class ServletAjax extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; private String serv; private Conexao con = null; private String rs; protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { setServ(request.getParameter("servico").trim()); try { setRs(null); con = new Conexao(); con.executeQuery("SELECT subtipo FROM SubTipo WHERE tipo='"+serv+"'"); } catch (SQLException e) { e.printStackTrace(); } /*response.getWriter().write("");*/ } public void setServ(String valor) { this.serv = valor; } public String getServ() { return serv; } public void setRs(String valor) { this.rs = valor; } public String getRs() { return rs; } } E quando uso o javac da os seguintes erros: beans/ServletAjax.java:6: package javax.servlet does not exist import javax.servlet.*; ^ beans/ServletAjax.java:7: package javax.servlet.http does not exist import javax.servlet.http.*; ^ beans/ServletAjax.java:10: cannot find symbol symbol: class HttpServlet public class ServletAjax extends HttpServlet ^ beans/ServletAjax.java:20: cannot find symbol symbol : class HttpServletRequest location: class beans.ServletAjax protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ beans/ServletAjax.java:20: cannot find symbol symbol : class HttpServletResponse location: class beans.ServletAjax protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ beans/ServletAjax.java:20: cannot find symbol symbol : class ServletException location: class beans.ServletAjax protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ 6 errors Minhas variaveis de ambiente estão configuradas da seguinte forma: PATH = C:\jdk1.5.0\bin JAVA_HOME = C:\jdk1.5.0 CLASSPATH = .;JAVA_HOME e todas as livrarias necessarias estão dentro da livraria do sistema...... Ambiente de desenvolvimento: eclipse = 3.4 jdk = 1.5 servidor = TomCat 5.5.17
  6. Bom Dia Galera... é o seguinte, eu tenho um código assim Página Index.jsp <html> <head> <title>HelpDesk - Departamento de Polícia Rodoviária Federal</title> </head> <frameset rows="150,517*" frameborder="NO" border="0" framespacing="0" cols="*"> <frame name="topFrame" scrolling="NO" noresize src="cabecalho.htm" > <frame name="mainFrame" src="VerificarSenha.jsp"> </frameset> <noframes><body bgcolor="#FFFFFF"> </body></noframes> </html> e ta dando erro no cabecalho.htm <head> <title>HelpDesk - Departamento de Polícia Rodoviária Federal</title> <link type="text/css" rel=stylesheet href="css/template_css.css"> </script> </head> <body leftmargin="0" topmargin="0"> <table width="1106" height="122" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; margin-top: 0; margin-bottom: 0"> <FORM name=governo style="border-collapse: collapse; margin-top: 0; margin-bottom: 0"> <TR bgColor=#ffcc00> <TD width=1106> <DIV align=center><img src="imagens/background.jpg" width="1106" height="122"></DIV> </TD> </TR> <TR> <TD align=center> <a href="cliente/HDcadastro.jsp" target="mainFrame">Solicitar Atendimento</a> <img src="imagens/spaces,gif" width=30 height=1> <a href="cliente/HDlista.jsp" target="mainFrame">Verificar Fila de Espera</a> <img src="imagens/spaces,gif" width=30 height=1> <a href="" onclick="parent.window.close();">Sair</a> </TD> </TR> </FORM> </table> </body> </html> o q q sucede... quando aparce a telhinha perguntando se quer fechar a janela se você clik em ok ela fecha... se você clik em não da pau nos outos links........... alguém sabe como resolver???
×
×
  • Criar Novo...