Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Java Beginner

Thread view: 
Daniele - 18 Mar 2006 04:29 GMT
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!
Big Jim - 18 Mar 2006 23:59 GMT
> 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
[quoted text clipped - 25 lines]
>
> 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.
Daniele - 19 Mar 2006 00:16 GMT
Ok, thanks.

>> 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
[quoted text clipped - 31 lines]
> If it's java you're particularly interested in have a look at the struts
> framework.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.