You can do this by:
In JSP:
And Create a separate class file , like this:
public class ServletNames
{
public static final StringMY_SERVLET = "RelativePath/MyServlet" ;
}
- Original Message -
From: Kumar, Ashutosh(sdc) <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday,
In onSubmit event call a function. Based on your requirement , the function
will set the value of the action and submit the form.
See hint:
function callMe()
{
if (cond1)
document.test.action = "Servlet1";
else
document.test.action = "Servlet2";
document.test.submit();
}
You can do it by using
getServletContext().setAttribute("varName",actualVarName);
- Original Message -
From: Raja Nagendra Kumar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 24, 2000 12:41 PM
Subject: Application Scope Objects in Servlets
> Hi!
>
> Can any one poin
Make it document.myform.D1.selected ="val3";
- Original Message -
From: Leena Diwan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 19, 2000 3:00 PM
Subject: change the "selected" option of select option
> hello !
>
> Sorry this is a bit off the topic.
>
> I want to