455
Suscriptores
Sin datos24 horas
Sin datos7 días
+230 días
Archivo de publicaciones
455
java.lang.String
-----------------
setContentType():
------------------
Content Type is also known as MIME Type.
(MIME stand for Multipurpose internet Mail
Extension). It is a HTTP header that provides
the description about what are you sending to
the browser (like send image, text, video etc.).
This is the format of http protocol to
carry the response contains to the client..
--> xml text/xml .xml
--> HTML text/html .html
PDF application/pdf .pdf
JPEG Image image/jpeg .jpeg
MP3 Music File audio/mpeg .mp3
------------------------------------------------------
response.getWriter()
=====================
The PrintWriter object is used to
transmit character text to the client.
ex:
---
PrintWriter out=response.getWriter();
=============================================
PrintWriter class
-------------------
The PrintWriter class of the java.io package can
be used to write out put data in a readabl from(text).
ex:
---
It can print int ,float, char and string data in text
format
PrintWriter class Methods (System.out also)
---------------------------
1. print():
2. println():
3. printf(): %d,%c,%f......etc
4. printerror():
=====================================================
1. getParameter():
------------------
--> it is used to obtain the value of a
parameter by name. from html element to in servlet
variable.
--> getParameter() method bind only one at once.
ex:
---
<form action="Login">
Name:<input type="text" name="uname">
</form>
String name=request.getParemeter("uname");
-------------------------------------------------
getParameterValues():
-----------------------
returns an array of String containing all
values of given parameter name.
It is mainly used to obtain values of
a Multi select list box and check box values into
java variables.
ex:
---
Hobbies:<input type="checkbox" name="hobbies" value="Gamming">Gamming
<input type="checkbox" name="hobbies" value="Programming">Programming
<input type="checkbox" name="hobbies" value="Chatting">Chatting
<input type="submit" value="save">
</form>
String hobbies[]=request.getParameterValues("hobbies");
====================================================================
455
Good evening Buddies,
The above listed candidates got shortlisted for Technical round in Smart gig. You guys should be there tomorrow by 9:30AM .
Carry your resume hard copy.
Be in formals.
All the best
455
1. J. Narendra
2. K.Sai Durga
3. k. Krishnaveni
4. P. Srilekha.
5. A. Divya. Bramaramba
6. R. Shirisha
7.0. Ganesh
8. G. Ashwini
9. B. Mounika
10. K. Aruna
11.G. Suresh.
455
import { useRef,useState } from "react";
const Display=()=>{
const ref1=useRef(null);
const ref2=useRef(null);
const [msg1,setMsg1]=useState("");
const [msg2,setMsg2]=useState("");
const display=()=>{
setMsg1(ref1.current.value);
setMsg2(ref2.current.value);
}
return(
<>
)
}
export default Display;
{msg1}
{msg2}
455
import { useRef,useState } from "react";
const Login=()=>{
const ref1=useRef(null);
const ref2=useRef(null);
const [msg,setMsg]=useState("");
const login=()=>{
ref1.current.value=="admin" && ref2.current.value=="admin@123" ? setMsg("Login Success") : setMsg("Login Fail");
}
return(
<>
)
}
export default Login;
