Re: Java Beginner




"Daniele" <danielebarone@xxxxxxxx> wrote in message
news:441b7ed1$0$18292$4fafbaef@xxxxxxxxxxxxxxxxxxxxxx
Hello, I've started studying and practicing Java for not too long. What do
you guys think is the best way to WEB PROGRAMMING with Java. I've tried
servlets and Jsp, they work fine, I mean the page can show dynamic context
and it can be very useful, but the page is always STATIC.

For example :

Let's say that I have a log in page, created with only HTML code. In this
page I have a POST method with an action to my index.jsp passing to it the
user and password. Now in my jsp page I check the validity of my log-in
values and then I show, for example, all the clients of the COMPANY that
has logged in, and for this I don't seem to have many problems with the
code.
--open the db connection
--check the validity of username and password
--I show all the clients for this Id
<table>

while (RECORDSET.NEXT){

--I add a row with the clients data in the html table for each record
fetched for this company ID, //in order to insert them dinamically
}

Now, my huge problem is : lets say that I want to modify the name (for
example) of one client...How can I pass the ID or even the name of my
client...

It is pretty hard to explain, hope you guys can help!

The POST method can send values to the server, have a look at HTML forms.

If it's java you're particularly interested in have a look at the struts
framework.


.



Relevant Pages

  • MVC in JSP (was: template in servlet)
    ... JSP = viel HTML mit wenig Java ... ... HTML ins JSP, ... public void setUser(String user) { ...
    (de.comp.lang.java)
  • Re: Java Beginner
    ... Let's say that I have a log in page, created with only HTML code. ... Now in my jsp page I check the validity of my ... --I show all the clients for this Id ... If it's java you're particularly interested in have a look at the struts ...
    (comp.lang.java.programmer)
  • Re: JSP and Servlet
    ... > Anyone can tell me what is the difference between JSP and Servlet? ... Servlets are written in pure Java. ... Requests for a web page go to a Java ... JSP's are HTML pages with some Java hacked into them. ...
    (comp.lang.java.programmer)
  • Re: java for the .Net developer hence jsp vs servlet
    ... In the first web application there was only html forms and cgi. ... works cgi with std in- and output and java don't works with it very well. ... many times so servlets are faster then cgi-scripts. ... The solution to this problem is jsp. ...
    (comp.lang.java.help)
  • executing a jsp from a java application
    ... I have a jsp that checks which clients that are connected. ... Now I want to write a Java application that is to always be running on ... minimal webbrowser that would load the jsp page, ...
    (comp.lang.java.programmer)