Click here to Skip to main content
14,241,760 members
   

Java

 
AnswerRe: JavaScript Syntax Pin
CHill6010-Jan-19 22:19
protectorCHill6010-Jan-19 22:19 
QuestionConnection between client and server Through websocket and vertx api Pin
Mr_z7-Jan-19 4:31
memberMr_z7-Jan-19 4:31 
AnswerRe: Connection between client and server Through websocket and vertx api Pin
Richard MacCutchan7-Jan-19 5:29
protectorRichard MacCutchan7-Jan-19 5:29 
GeneralRe: Connection between client and server Through websocket and vertx api Pin
Mr_z7-Jan-19 5:35
memberMr_z7-Jan-19 5:35 
GeneralRe: Connection between client and server Through websocket and vertx api Pin
Richard MacCutchan7-Jan-19 6:11
protectorRichard MacCutchan7-Jan-19 6:11 
GeneralRe: Connection between client and server Through websocket and vertx api Pin
Mr_z7-Jan-19 6:31
memberMr_z7-Jan-19 6:31 
GeneralRe: Connection between client and server Through websocket and vertx api Pin
Richard MacCutchan7-Jan-19 6:38
protectorRichard MacCutchan7-Jan-19 6:38 
QuestionServlet page redirecting Pin
Valentinor4-Jan-19 21:22
memberValentinor4-Jan-19 21:22 
I just started to learn Java Servlet, but I can't really make it work.
I'm trying to do something basic first, to see how it works, read data from a form, print the 2 values to in the console and then redirect the user to another page.
Using the following code (what I though it will do it), redirects me to another page that doesn't exist "/Testare?firstName=Example+First&lastName=Example+Last"
I'm using Apache Tomcat for server.

The form is on Home.html:
<form action="Testare" method="GET">
    First name:<br> <input type="text" name="firstName"><br>
    Last name:<br> <input type="text" name="lastName"><br>
    <br> <input type="submit" value="Submit">
</form>

Testare servlet doGet trying to print and then redirect to "Test.html":
System.out.println("First name: " + request.getParameter("firstName") + "\nLast name: "
        + request.getParameter("lastName"));
response.sendRedirect("Test.html");

AnswerRe: Servlet page redirecting Pin
jschell5-Jan-19 6:39
memberjschell5-Jan-19 6:39 
GeneralRe: Servlet page redirecting Pin
Valentinor10-Jan-19 22:55
memberValentinor10-Jan-19 22:55 
QuestionCode to Read Raw data from Wireless Modem in java Pin
Member 1409909024-Dec-18 0:53
memberMember 1409909024-Dec-18 0:53 
AnswerRe: Code to Read Raw data from Wireless Modem in java Pin
Richard MacCutchan24-Dec-18 0:58
protectorRichard MacCutchan24-Dec-18 0:58 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Member 1409909024-Dec-18 1:03
memberMember 1409909024-Dec-18 1:03 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Richard MacCutchan24-Dec-18 1:04
protectorRichard MacCutchan24-Dec-18 1:04 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Member 1409909026-Dec-18 0:48
memberMember 1409909026-Dec-18 0:48 
GeneralRe: Code to Read Raw data from Wireless Modem in java Pin
Richard MacCutchan26-Dec-18 2:10
protectorRichard MacCutchan26-Dec-18 2:10 
AnswerRe: Code to Read Raw data from Wireless Modem in java Pin
jschell27-Dec-18 13:27
memberjschell27-Dec-18 13:27 
QuestionJava Panel Program Pin
Member 1408268117-Dec-18 11:36
memberMember 1408268117-Dec-18 11:36 
AnswerRe: Java Panel Program Pin
Richard MacCutchan17-Dec-18 22:33
protectorRichard MacCutchan17-Dec-18 22:33 
Questionjava program cannot compile Pin
Member 1409285317-Dec-18 9:55
memberMember 1409285317-Dec-18 9:55 
AnswerRe: java program cannot compile Pin
Richard MacCutchan17-Dec-18 22:23
protectorRichard MacCutchan17-Dec-18 22:23 
QuestionConnecting to website and checking elements Pin
Valentinor15-Dec-18 1:57
memberValentinor15-Dec-18 1:57 
AnswerRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 3:49
protectorRichard MacCutchan15-Dec-18 3:49 
GeneralRe: Connecting to website and checking elements Pin
Valentinor15-Dec-18 4:19
memberValentinor15-Dec-18 4:19 
GeneralRe: Connecting to website and checking elements Pin
Richard MacCutchan15-Dec-18 4:40
protectorRichard MacCutchan15-Dec-18 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.