Re: html:submit problem need help

2002-09-04 Thread Aamir Majeed

I think ur code will work if u just write different value of ur sumit button
means


 

and take value of parameter from request within ur Action class
means
if ("login".equalsIgnoreCase(request.getParameter("submit"))){
// login code
}
else if ("signout".equalsIgnoreCase(request.getParameter("submit"))){
//submit code
}
 Regards
Aamir
- Original Message -
From: "Dan Walker" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 10:01 PM
Subject: Re: html:submit problem need help


> I think this link:
>
> http://husted.com/struts/tips/002.htm
>
> addresses that issue.
> -Dan
>
> On Tuesday 03 September 2002 11:53, you wrote:
> > Hi,
> >
> > I have 2 buttons on my jsp and i want to find out which button is
pressed
> > in my Action class, but i m not getting the submit parameter in request,
my
> > code is as below
> >
> > I am 2 buttons on my jsp as below
> >
> > 
> >
> > Login
> >
> > signout
> >
> > 
> >
> > my struts-config.xml is as below
> >
> >  > type="org.apache.struts.validator.DynaValidatorForm">
> >
> > 
> >
> > 
> >
> >  > input="/pages/test.jsp" name="test" >
> >
> > 
> >
> > 
> >
> > 
> >
> > and my Action class is
> >
> > Enumeration enm = request.getParameterNames();
> > while(enm.hasMoreElements())
> > {
> >   System.out.println("paramters are " + enm.nextElement());
> > }
> > String submitVal = request.getParameter("submit");
> > System.out.println("value of submit " + submitVal);
> >
> > if("Login".equals(submitVal))
> > {
> > return mapping.findForward("login");
> > }
> > else if("Signout".equals(submitVal))
> > {
> > return mapping.findForward("signout");
> > }
> > else
> > {
> > return mapping.findForward("login");
> > }
> >
> > when i print the value of submitVal , it is null
> >
> > Ashish
> >
> >
> >
> >
> > A$HI$H
> >
> >
> > -
> > Do You Yahoo!?
> > Yahoo! Finance - Get real-time stock quotes
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Multiple Option select in advance

2002-08-16 Thread Aamir Majeed


Hi,

 Is any body told me that how can we select some options of mutiple 
select 

options in advance.

Regards

Aamir

 



-
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs