Loading repository data…
Loading repository data…
analistadeperon / repository
User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@page contentType="text/html" import="java sercer face .util.*, java server face.text.*" bash: %@page: No such file or directory <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <h1>Hello World!</h1> <% int dia = Integer.parseInt((new SimpleDateFormat("dd")) .format(new Date())); out.println("<br>Hoje é dia" + dia); %> </body> If(condição){ Codificação se verdadeiro;} else {Condificação se falso;} If(condição){ Codificação se verdadeiro;} else if(condição) {Condificação se a segunda condição for verdadeira;} else {Codificação se a segunda condição for falsa;} <%@page contentType="text/html" import="java.util.*, java.text.*" pageEncoding="ISO-8859-1"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <% out.println("<h1>Hello Tarefas gerenciadas!</h1>"); int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); if(mes==1){ out.println("documento " + dia + " de Janeiro de " + ano); }else if(mes==02){ out.println("documento " + dia + " de Fevereiro de " + ano); }else if(mes==3){ out.println("documento " + dia + " de Março de " + ano); }else if(mes==4){ out.println("documento " + dia + " de Abril de " + ano); }else if(mes==5){ out.println("documento" + dia + " de Maio de " + ano); }else if(mes==6){ out.println("documento " + dia + " de Junho de " + ano); }else if(mes==7){ out.println("documento " + dia + " de Julho de " + ano); }else if(mes==8){ out.println("documento" + dia + " de Agosto de " + ano); }else if(mes==9){ out.println("documento " + dia + " de Setembro de " + ano); }else if(mes==10){ out.println("documento " + dia + " de Outubro de " + ano); }else if(mes==11){ out.println("documento " + dia + " de Novembro de " + ano); }else if(mes==12){out.println("documento " + dia + " de Dezembro de " + ano); } <%@page contentType="text/html" import="java.util.*, java.text.*" pageEncoding="ISO-8859-1"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <% out.println("<h1>Hello World!</h1>"); int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); switch(mes){ case 1: out.println("documento" + dia + " de Janeiro de " + ano); break; case 2: out.println("documento " + dia + " de Fevereiro de " + ano); break; case 3: out.println("documento " + dia + " de Março de " + ano); break; default: out.println("Ola"); } %> </body> </html> %> </body> </html></html> <%! public String fncMES(int mes) { String retorno =""; switch(mes){ case 1: retorno="Janeiro";break; case 2: retorno="Fevereiro";break; case 3: retorno="Março";break; case 4: retorno="Abril";break; case 5: retorno="Maio";break; case 6: retorno="Junho";break; case 7: retorno="Julho";break; case 8: retorno="Agosto";break; case 9: retorno="Setembro";break; case 10: retorno="Outubro";break; case 11: retorno="Novembro";break; case 12: retorno="Dezembro";break; } return retorno; } %> <h1> Pagina JSP </h1> <h4> <% int mes = Integer.parseInt(new SimpleDateFormat("M").format(new Date())); int dia = Integer.parseInt(new SimpleDateFormat("dd").format(new Date())); int ano = Integer.parseInt(new SimpleDateFormat("yyyy").format(new Date())); out.println("documento " + dia + " de " + fncMES(mes) + " de " + ano); %></h4> <!DOCTYPE HTML JAVA SERVER FACE PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <%@include file="topo.jsp"%> <form action="trataform.jsp" method="post"> Nome:<input type="text" name="txtnome"/><br> E-Mail:<input type="text" name="txtemail"/><br> Data de Nascimento:<input type="text" name="txtdtnasc"/><br> <input type="submit" value="Enviar"/> </form> <%@include file="rodape.jsp"%> </body> </html> "http://www.github.com/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <%@include file="topo.jsp"%> Dados do formulario<br> <% String nome = request.getParameter("txtnome"); if(nome=="") out.println("Nome não foi digitato"); else out.println("Seu nome é " + nome); %> <br>E-Mail: <%=request.getParameter("txtemail")%><br> Data de Nascimento: <%=request.getParameter("txtdtnasc")%><br> <%@include file="rodape.jsp"%> </body> </html> User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ pageEncoding="ISO-8859-1"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; > charset=ISO-8859-1"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <h1>Hello World!</h1> bash: !: event not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <% bash: %: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int dia = Integer.parseInt((new SimpleDateFormat("dd")) bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ .format(new Date())); bash: syntax error near unexpected token `new' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("<br>Hoje é dia" + dia); bash: syntax error near unexpected token `"<br>Hoje é dia"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ If(condição){ Codificação se verdadeiro;} else {Condificação se falso;} bash: syntax error near unexpected token `condição' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ If(condição){ Codificação se verdadeiro;} bash: syntax error near unexpected token `condição' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ else if(condição) {Condificação se a segunda condição for verdadeira;} bash: syntax error near unexpected token `else' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ else {Codificação se a segunda condição for falsa;} bash: syntax error near unexpected token `else' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@page contentType="text/html" import="java.util.*, java.text.*" pageEncoding="ISO-8859-1"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <% bash: %: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("<h1>Hello Tarefas gerenciadas!</h1>"); bash: !: event not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ if(mes==1){ bash: syntax error near unexpected token `{' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Janeiro de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==02){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Fevereiro de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==3){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Março de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==4){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Abril de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==5){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento" + dia + " de Maio de " + ano); bash: syntax error near unexpected token `"documento"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==6){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Junho de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==7){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Julho de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==8){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento" + dia + " de Agosto de " + ano); bash: syntax error near unexpected token `"documento"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==9){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Setembro de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==10){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Outubro de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==11){ bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Novembro de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==12){out.println("documento " + dia + " de Dezembro de " + ano); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ } bash: syntax error near unexpected token `}' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@page contentType="text/html" import="java.util.*, java.text.*" pageEncoding="ISO-8859-1"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <% bash: %: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("<h1>Hello World!</h1>"); bash: !: event not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ switch(mes){ bash: syntax error near unexpected token `mes' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 1: > out.println("documento" + dia + " de Janeiro de " + ano); bash: syntax error near unexpected token `out.println' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ break; bash: break: only meaningful in a `for', `while', or `until' loop User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 2: > out.println("documento " + dia + " de Fevereiro de " + ano); bash: syntax error near unexpected token `out.println' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ break; bash: break: only meaningful in a `for', `while', or `until' loop User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 3: > out.println("documento " + dia + " de Março de " + ano); bash: syntax error near unexpected token `out.println' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ break; bash: break: only meaningful in a `for', `while', or `until' loop User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ default: bash: default:: command not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("Ola"); bash: syntax error near unexpected token `"Ola"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ } bash: syntax error near unexpected token `}' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </html></html> bash: syntax error near unexpected token `<' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%! bash: %!: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ public String fncMES(int mes) bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ { > String retorno =""; > switch(mes){ bash: syntax error near unexpected token `mes' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 1: retorno="Janeiro";break; bash: syntax error near unexpected token `retorno="Janeiro"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 2: retorno="Fevereiro";break; bash: syntax error near unexpected token `retorno="Fevereiro"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 3: retorno="Março";break; bash: syntax error near unexpected token `retorno="Março"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 4: retorno="Abril";break; bash: syntax error near unexpected token `retorno="Abril"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 5: retorno="Maio";break; bash: syntax error near unexpected token `retorno="Maio"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 6: retorno="Junho";break; bash: syntax error near unexpected token `retorno="Junho"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 7: retorno="Julho";break; bash: syntax error near unexpected token `retorno="Julho"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 8: retorno="Agosto";break; bash: syntax error near unexpected token `retorno="Agosto"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 9: retorno="Setembro";break; bash: syntax error near unexpected token `retorno="Setembro"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 10: retorno="Outubro";break; bash: syntax error near unexpected token `retorno="Outubro"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 11: retorno="Novembro";break; bash: syntax error near unexpected token `retorno="Novembro"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ case 12: retorno="Dezembro";break; bash: syntax error near unexpected token `retorno="Dezembro"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ } bash: syntax error near unexpected token `}' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ return retorno; bash: return: retorno: numeric argument required bash: return: can only `return' from a function or sourced script User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ } bash: syntax error near unexpected token `}' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <h1> Pagina JSP </h1> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <h4> <% bash: syntax error near unexpected token `<' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int mes = Integer.parseInt(new SimpleDateFormat("M").format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int dia = Integer.parseInt(new SimpleDateFormat("dd").format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int ano = Integer.parseInt(new SimpleDateFormat("yyyy").format(new Date())); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de " + fncMES(mes) + " de " + ano); bash: syntax error near unexpected token `"documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %></h4> bash: syntax error near unexpected token `<' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <!DOCTYPE HTML JAVA SERVER FACE PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" bash: !DOCTYPE: event not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ "http://www.w3.org/TR/html4/loose.dtd"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@include file="topo.jsp"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <form action="trataform.jsp" method="post"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ Nome:<input type="text" name="txtnome"/><br> bash: syntax error near unexpected token `<' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ E-Mail:<input type="text" name="txtemail"/><br> bash: syntax error near unexpected token `<' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ Data de Nascimento:<input type="text" name="txtdtnasc"/><br> bash: syntax error near unexpected token `<' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <input type="submit" value="Enviar"/> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </form> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@include file="rodape.jsp"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ "http://www.github.com/TR/html4/loose.dtd"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@include file="topo.jsp"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ Dados do formulario<br> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <% bash: %: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ String nome = request.getParameter("txtnome"); bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ if(nome=="") > out.println("Nome não foi digitato"); bash: syntax error near unexpected token `"Nome não foi digitato"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ else bash: syntax error near unexpected token `else' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("Seu nome é " + nome); bash: syntax error near unexpected token `"Seu nome é "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <br>E-Mail: <%=request.getParameter("txtemail")%><br> bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ Data de Nascimento: <%=request.getParameter("txtdtnasc")%><br> bash: syntax error near unexpected token `(' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@include file="rodape.jsp"%> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </body> bash: syntax error near unexpected token `newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </html>
User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@page contentType="text/html" import="java sercer face .util., java server face.text." bash: %@page: No such file or directory <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <h1>Hello World!</h1> <% int dia = Integer.parseInt((new SimpleDateFormat("dd")) .format(new Date())); out.println("<br>Hoje é dia" + dia); %> </body> If(condição){ Codificação se verdadeiro;} else {Condificação se falso;} If(condição){ Codificação se verdadeiro;} else if(condição) {Condificação se a segunda condição for verdadeira;} else {Codificação se a segunda condição for falsa;} <%@page contentType="text/html" import="java.util., java.text." pageEncoding="ISO-8859-1"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <% out.println("<h1>Hello Tarefas gerenciadas!</h1>"); int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); if(mes==1){ out.println("documento " + dia + " de Janeiro de " + ano); }else if(mes==02){ out.println("documento " + dia + " de Fevereiro de " + ano); }else if(mes==3){ out.println("documento " + dia + " de Março de " + ano); }else if(mes==4){ out.println("documento " + dia + " de Abril de " + ano); }else if(mes==5){ out.println("documento" + dia + " de Maio de " + ano); }else if(mes==6){ out.println("documento " + dia + " de Junho de " + ano); }else if(mes==7){ out.println("documento " + dia + " de Julho de " + ano); }else if(mes==8){ out.println("documento" + dia + " de Agosto de " + ano); }else if(mes==9){ out.println("documento " + dia + " de Setembro de " + ano); }else if(mes==10){ out.println("documento " + dia + " de Outubro de " + ano); }else if(mes==11){ out.println("documento " + dia + " de Novembro de " + ano); }else if(mes==12){out.println("documento " + dia + " de Dezembro de " + ano); } <%@page contentType="text/html" import="java.util." pageEncoding="ISO-8859-1"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <% out.println("<h1>Hello World!</h1>"); int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); switch(mes){ case 1: out.println("documento" + dia + " de Janeiro de " + ano); break; case 2: out.println("documento " + dia + " de Fevereiro de " + ano); break; case 3: out.println("documento " + dia + " de Março de " + ano); break; default: out.println("Ola"); } %> </body> </html> %> </body> </html></html> <%! public String fncMES(int mes) { String retorno =""; switch(mes){ case 1: retorno="Janeiro";break; case 2: retorno="Fevereiro";break; case 3: retorno="Março";break; case 4: retorno="Abril";break; case 5: retorno="Maio";break; case 6: retorno="Junho";break; case 7: retorno="Julho";break; case 8: retorno="Agosto";break; case 9: retorno="Setembro";break; case 10: retorno="Outubro";break; case 11: retorno="Novembro";break; case 12: retorno="Dezembro";break; } return retorno; } %> <h1> Pagina JSP </h1> <h4> <% int mes = Integer.parseInt(new SimpleDateFormat("M").format(new Date())); int dia = Integer.parseInt(new SimpleDateFormat("dd").format(new Date())); int ano = Integer.parseInt(new SimpleDateFormat("yyyy").format(new Date())); out.println("documento " + dia + " de " + fncMES(mes) + " de " + ano); %></h4> <!DOCTYPE HTML JAVA SERVER FACE PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <%@include file="topo.jsp"%> <form action="trataform.jsp" method="post"> Nome:<input type="text" name="txtnome"/><br> E-Mail:<input type="text" name="txtemail"/><br> Data de Nascimento:<input type="text" name="txtdtnasc"/><br> <input type="submit" value="Enviar"/> </form> <%@include file="rodape.jsp"%> </body> </html> " <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>JSP Page</title> </head> <body> <%@include file="topo.jsp"%> Dados do formulario<br> <% String nome = request.getParameter("txtnome"); if(nome=="") out.println("Nome não foi digitato"); else out.println("Seu nome é " + nome); %> <br>E-Mail: <%=request.getParameter("txtemail")%><br> Data de Nascimento: <%=request.getParameter("txtdtnasc")%><br> <%@include file="rodape.jsp"%> </body> </html> User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ pageEncoding="ISO-8859-1"%> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ .format(new Date())); bash: syntax error near unexpected token "<br>Hoje é dia"' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ %> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ If(condição){ Codificação se verdadeiro;} else {Condificação se falso;} bash: syntax error near unexpected token condição' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ else if(condição) {Condificação se a segunda condição for verdadeira;} bash: syntax error near unexpected token else' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <%@page contentType="text/html" import="java.util." pageEncoding="ISO-8859-1"%> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <head> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <title>JSP Page</title> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <body> bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int mes = Integer.parseInt((new SimpleDateFormat("M")).format(new Date())); bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ if(mes==1){ bash: syntax error near unexpected token "documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==02){ bash: syntax error near unexpected token "documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==3){ bash: syntax error near unexpected token "documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ }else if(mes==4){ bash: syntax error near unexpected token "documento "' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $
newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; > charset=ISO-8859-1"> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <h1>Hello World!</h1> bash: !: event not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <% bash: %: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int dia = Integer.parseInt((new SimpleDateFormat("dd")) bash: syntax error near unexpected token new' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("<br>Hoje é dia" + dia); bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </body> bash: syntax error near unexpected token condição' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ If(condição){ Codificação se verdadeiro;} bash: syntax error near unexpected token else' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ else {Codificação se a segunda condição for falsa;} bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <html> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ </head> bash: syntax error near unexpected token newline' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ <% bash: %: No such file or directory User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("<h1>Hello Tarefas gerenciadas!</h1>"); bash: !: event not found User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int dia = Integer.parseInt((new SimpleDateFormat("dd")).format(new Date())); bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ int ano = Integer.parseInt((new SimpleDateFormat("yyyy")).format(new Date())); bash: syntax error near unexpected token {' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Janeiro de " + ano); bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Fevereiro de " + ano); bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Março de " + ano); bash: syntax error near unexpected token (' User@DESKTOP-4Q3U2OK MINGW64 ~/Desktop/matheus (master) $ out.println("documento " + dia + " de Abril de " + ano); bash: syntax error near unexpected token