|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
linking to a servlet from a html link
I am new at writing java servlets.
How can I link to a java servlet using html links? Will the following work? <a href="<host>:<port>/<class_name>?sessionid=23"> MY LINK </a> Thanks in advance |
|
#2
|
|||
|
|||
|
use this
form action = "<host>:<port>/servlet/name_of_servlet" |
|
#3
|
|||
|
|||
|
Hi,
it's not always host>:<port>/servlet/name_of_servlet U can change mapping of Ur servlets, so U don't need to specify "servlet" folder Ciao |
|
#4
|
|||
|
|||
|
I want to run a servlet when a html link in clicked.
By html link I mean: <a href="...something"> Link leading to my servlet </a> I know how to run a servlet from a form element. |
|
#5
|
|||
|
|||
|
depending on where your document root is....
i just call <A HREF='/servlets/servletname'> if its in a package, then the /servlets/com.cma.servletname... it all depends on where you start from when you call /servlets |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > linking to a servlet from a html link |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|