Re: Pagination

2009-05-25 Thread Murugesh
i got fix for this. i missed request uri in tag.
thanks for helping a lot.

is their any way to modify the display?

like the page no's and no of items coming on top , i need it to be bottom.
so where i have to chnage this?
On Mon, May 25, 2009 at 2:19 PM, Murugesh  wrote:

> Wow. it getting displayed. but if i click next page it got an error
> ie requset resource not available.
> is i missed anything?
>
>   On Mon, May 25, 2009 at 1:17 PM, Lukasz Lenart <
> lukasz.len...@googlemail.com> wrote:
>
>> 2009/5/25 Murugesh :
>> > i am getting list with  but not displaytag
>>
>> Did you try Chris suggestion?
>>
>>
>> Regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: Pagination

2009-05-25 Thread Murugesh
Wow. it getting displayed. but if i click next page it got an error
ie requset resource not available.
is i missed anything?

On Mon, May 25, 2009 at 1:17 PM, Lukasz Lenart  wrote:

> 2009/5/25 Murugesh :
> > i am getting list with  but not displaytag
>
> Did you try Chris suggestion?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Pagination

2009-05-25 Thread Murugesh
No Lukasz

my struts.xml is

/WEB-INF/components/packet/showData.jsp


i am getting list with  but not displaytag

On Mon, May 25, 2009 at 12:53 PM, Lukasz Lenart <
lukasz.len...@googlemail.com> wrote:

> End the last thing, action's configuration. As I noticed you don't use
> execute() method and maybe your are missing call to method
> call30Mdata(). And also try Chris suggestion.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Pagination

2009-05-25 Thread Murugesh
public class PacketsAction extends ActionBase {
 public ManagePacketsAction() {

   public String call30Mdata() throws ServiceException {
 DataManager dm = new DataManager();
   setMinDataList(dm.getMinsData(null, "getall"))
try {

}


 private List minDataList = null;
 public List getMinDataList() {
return minDataList;
}

public void setMinDataList(List minDataList) {
this.minDataList = minDataList;
}
}


On Mon, May 25, 2009 at 12:35 PM, Lukasz Lenart <
lukasz.len...@googlemail.com> wrote:

> 2009/5/25 Murugesh :
> >   > pagesize="10" >
> >  
> >  
> > 
>
> Could you also show action code?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Pagination

2009-05-24 Thread Murugesh
thanks Lukasz
 what i did is,

added  :displaytag-1.2.jar in the lib
added  :<%@ taglib uri="http://displaytag.sf.net"; prefix="display"%>  in my
JSP
code snippet is
 
 
 

thanks
murugesh

On Mon, May 25, 2009 at 12:15 PM, Lukasz Lenart <
lukasz.len...@googlemail.com> wrote:

> 2009/5/25 Murugesh :
> > can any one help me to achieve this?
>
> Could you show how did you try to use DisplayTag, some code example?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Fwd: Help

2009-05-24 Thread Murugesh
thanks
i have successfully implemented this.

thanks a lot for responsing.

2009/5/19 Paweł Wielgus 

> Hi Murugesh,
> read about session in HTTP.
>
> Best greetings,
> Paweł Wielgus.
>
>
> 2009/5/19 Murugesh :
>  > Thanks for reply
> >
> > like googles gmail, if u try to open 2nd gmail in same browser (multi
> > tabbed)it will take you to already logged in account.
> >
> > how to handle this in normal application?
> >
> >
> >
> >
> >
> > On Tue, May 19, 2009 at 12:29 PM, suhas kokal 
> wrote:
> >
> >>
> >> Hi,
> >>
> >> You don't need to do any thing as starting a new (same) application in
> >> another browser(from parent one) carries the session into another
> >> application.You can check this from the URL.
> >>
> >> Thanks
> >>
> >> Suhas
> >>
> >> --- On Tue, 19/5/09, Murugesh  wrote:
> >>
> >> > From: Murugesh 
> >> > Subject: Fwd: Help
> >> > To: "Struts Users Mailing List" 
> >> > Date: Tuesday, 19 May, 2009, 11:46 AM
> >>  > -- Forwarded message
> >> > --
> >> > From: Murugesh 
> >> > Date: Tue, May 19, 2009 at 11:41 AM
> >> > Subject: Help
> >> > To: user@struts.apache.org
> >> >
> >> >
> >> > consider an  application already running in the
> >> > browser and if user try to
> >> > run same application in the same browser.
> >> > here i need to skip the login form and automatically run
> >> > the existing
> >> > session r i need give somemessage like " application
> >> > already running". i am
> >> > using struts 2 (i think its not struts issue)
> >> >
> >> > can anyone help on this?
> >> >
> >> > regards
> >> > murugesh
> >> >
> >>
> >>
> >>  Explore and discover exciting holidays and getaways with Yahoo!
> India
> >> Travel http://in.travel.yahoo.com/
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >
>
> i mM
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Pagination

2009-05-24 Thread Murugesh
Hi cheers,

currently i am using belowjsp code to display my list "DataList" details.
now i want to add pagination using displaytag 1.2.


 
  
   


   
  
 


i have followed some steps but not getting any out put.

can any one help me to achieve this?

thnaks
murugesh


Re: Fwd: Help

2009-05-19 Thread Murugesh
Thanks for reply

like googles gmail, if u try to open 2nd gmail in same browser (multi
tabbed)it will take you to already logged in account.

how to handle this in normal application?





On Tue, May 19, 2009 at 12:29 PM, suhas kokal  wrote:

>
> Hi,
>
> You don't need to do any thing as starting a new (same) application in
> another browser(from parent one) carries the session into another
> application.You can check this from the URL.
>
> Thanks
>
> Suhas
>
> --- On Tue, 19/5/09, Murugesh  wrote:
>
> > From: Murugesh 
> > Subject: Fwd: Help
> > To: "Struts Users Mailing List" 
> > Date: Tuesday, 19 May, 2009, 11:46 AM
>  > -- Forwarded message
> > --
> > From: Murugesh 
> > Date: Tue, May 19, 2009 at 11:41 AM
> > Subject: Help
> > To: user@struts.apache.org
> >
> >
> > consider an  application already running in the
> > browser and if user try to
> > run same application in the same browser.
> > here i need to skip the login form and automatically run
> > the existing
> > session r i need give somemessage like " application
> > already running". i am
> > using struts 2 (i think its not struts issue)
> >
> > can anyone help on this?
> >
> > regards
> > murugesh
> >
>
>
>  Explore and discover exciting holidays and getaways with Yahoo! India
> Travel http://in.travel.yahoo.com/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Fwd: Help

2009-05-18 Thread Murugesh
-- Forwarded message --
From: Murugesh 
Date: Tue, May 19, 2009 at 11:41 AM
Subject: Help
To: user@struts.apache.org


consider an  application already running in the browser and if user try to
run same application in the same browser.
here i need to skip the login form and automatically run the existing
session r i need give somemessage like " application already running". i am
using struts 2 (i think its not struts issue)

can anyone help on this?

regards
murugesh


Re: unable to get the request parameters

2009-05-12 Thread Murugesh
Thanks a lot..

 i have changed my config of interceptors as










now its working fine.i will do unit test completely and update soon.

On Tue, May 12, 2009 at 5:22 PM, Nils-Helge Garli Hegvik
wrote:

> Here's an example:
> http://struts.apache.org/2.1.6/docs/interceptor-configuration.html
>
> Note how a custom stack is defined and how the custom stack is
> referring to the "defaultStack".
>
> Nils-H
>
> On Tue, May 12, 2009 at 1:33 PM, Murugesh  wrote:
> > and also am very new to Interceptors
> >
> > On Tue, May 12, 2009 at 5:00 PM, Murugesh  wrote:
> >
> >> Thanks Nils-H.
> >>
> >> i am not clear. can i have the sample for this?
> >>
> >>   On Tue, May 12, 2009 at 4:57 PM, Nils-Helge Garli Hegvik <
> >> nil...@gmail.com> wrote:
> >>
> >>> You have configured your interceptor as the only one in the stack.
> >>> When you create your own interceptor stack, make sure you also include
> >>> one of the framework stacks (e.g. basicStack).
> >>>
> >>> Nils-H
> >>>
> >>> On Tue, May 12, 2009 at 1:04 PM, Murugesh 
> wrote:
> >>> > 
> >>> >
> >>> >
> >>> > >>> > class="com.action.generic.logininterceptor"/>
> >>> >
> >>> >   
> >>> >   
> >>> >/login.jsp
> >>> >
> >>> >>>> class="com.action.device.ManagePacketsAction"
> >>> > method="show30MData">
> >>> > /data.jsp
> >>> > 
> >>> >
> >>> > I am have default interceptor named login. i am chking session
> >>> validation
> >>> > (like is user loggin r not ). it seems work but after running
> >>>  interceptor
> >>> > it backs to actionclass, here i am chking requset parameters  at that
> am
> >>> > geeting for all parameters.
> >>> >
> >>> > Without interceptor everything working fine.
> >>> >
> >>> >
> >>> >
> >>> > On Tue, May 12, 2009 at 4:27 PM, Nils-Helge Garli Hegvik
> >>> > wrote:
> >>> >
> >>> >> It would certainly be a lot easier to help if you could show your
> >>> >> configuration and code...
> >>> >>
> >>> >> Nils-H
> >>> >>
> >>> >> On Tue, May 12, 2009 at 12:54 PM, Murugesh 
> >>> wrote:
> >>> >> >  I am doing task on struts2. In that I have to use custom
> >>> >> > AutherizationInterceptor. In my custom Interceptor Im checking
> >>> weather
> >>> >> user
> >>> >> > is in session or not. And if he tries to attempt login I gave
> >>> parameter
> >>> >> in
> >>> >> > struts.xml as true So Im checking against it and interceptor
> >>> redirects
> >>> >> > action to Home. But my problem is unable to get the request
> >>> parameters in
> >>> >> > Any Action class if Session exist too.
> >>> >> >
> >>> >> > please help on this issue.
> >>> >> >
> >>> >>
> >>> >>
> -
> >>> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >>> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>> >>
> >>> >>
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >>> For additional commands, e-mail: user-h...@struts.apache.org
> >>>
> >>>
> >>
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: unable to get the request parameters

2009-05-12 Thread Murugesh
and also am very new to Interceptors

On Tue, May 12, 2009 at 5:00 PM, Murugesh  wrote:

> Thanks Nils-H.
>
> i am not clear. can i have the sample for this?
>
>   On Tue, May 12, 2009 at 4:57 PM, Nils-Helge Garli Hegvik <
> nil...@gmail.com> wrote:
>
>> You have configured your interceptor as the only one in the stack.
>> When you create your own interceptor stack, make sure you also include
>> one of the framework stacks (e.g. basicStack).
>>
>> Nils-H
>>
>> On Tue, May 12, 2009 at 1:04 PM, Murugesh  wrote:
>> > 
>> >
>> >
>> >> > class="com.action.generic.logininterceptor"/>
>> >
>> >   
>> >   
>> >/login.jsp
>> >
>> >   > class="com.action.device.ManagePacketsAction"
>> > method="show30MData">
>> > /data.jsp
>> > 
>> >
>> > I am have default interceptor named login. i am chking session
>> validation
>> > (like is user loggin r not ). it seems work but after running
>>  interceptor
>> > it backs to actionclass, here i am chking requset parameters  at that am
>> > geeting for all parameters.
>> >
>> > Without interceptor everything working fine.
>> >
>> >
>> >
>> > On Tue, May 12, 2009 at 4:27 PM, Nils-Helge Garli Hegvik
>> > wrote:
>> >
>> >> It would certainly be a lot easier to help if you could show your
>> >> configuration and code...
>> >>
>> >> Nils-H
>> >>
>> >> On Tue, May 12, 2009 at 12:54 PM, Murugesh 
>> wrote:
>> >> >  I am doing task on struts2. In that I have to use custom
>> >> > AutherizationInterceptor. In my custom Interceptor Im checking
>> weather
>> >> user
>> >> > is in session or not. And if he tries to attempt login I gave
>> parameter
>> >> in
>> >> > struts.xml as true So Im checking against it and interceptor
>> redirects
>> >> > action to Home. But my problem is unable to get the request
>> parameters in
>> >> > Any Action class if Session exist too.
>> >> >
>> >> > please help on this issue.
>> >> >
>> >>
>> >> -
>> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >> For additional commands, e-mail: user-h...@struts.apache.org
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: unable to get the request parameters

2009-05-12 Thread Murugesh
Thanks Nils-H.

i am not clear. can i have the sample for this?

On Tue, May 12, 2009 at 4:57 PM, Nils-Helge Garli Hegvik
wrote:

> You have configured your interceptor as the only one in the stack.
> When you create your own interceptor stack, make sure you also include
> one of the framework stacks (e.g. basicStack).
>
> Nils-H
>
> On Tue, May 12, 2009 at 1:04 PM, Murugesh  wrote:
> > 
> >
> >
> > > class="com.action.generic.logininterceptor"/>
> >
> >   
> >   
> >/login.jsp
> >
> >class="com.action.device.ManagePacketsAction"
> > method="show30MData">
> > /data.jsp
> > 
> >
> > I am have default interceptor named login. i am chking session validation
> > (like is user loggin r not ). it seems work but after running
>  interceptor
> > it backs to actionclass, here i am chking requset parameters  at that am
> > geeting for all parameters.
> >
> > Without interceptor everything working fine.
> >
> >
> >
> > On Tue, May 12, 2009 at 4:27 PM, Nils-Helge Garli Hegvik
> > wrote:
> >
> >> It would certainly be a lot easier to help if you could show your
> >> configuration and code...
> >>
> >> Nils-H
> >>
> >> On Tue, May 12, 2009 at 12:54 PM, Murugesh 
> wrote:
> >> >  I am doing task on struts2. In that I have to use custom
> >> > AutherizationInterceptor. In my custom Interceptor Im checking weather
> >> user
> >> > is in session or not. And if he tries to attempt login I gave
> parameter
> >> in
> >> > struts.xml as true So Im checking against it and interceptor redirects
> >> > action to Home. But my problem is unable to get the request parameters
> in
> >> > Any Action class if Session exist too.
> >> >
> >> > please help on this issue.
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >> For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: unable to get the request parameters

2009-05-12 Thread Murugesh
and my logininterceptor is
public class logininterceptor extends AbstractInterceptor  {
   private static final String USER_KEY = "isLoggedin";
 public String intercept(ActionInvocation invocation) throws Exception {
  Map session = invocation.getInvocationContext().getSession();
System.out.println(" calling intercep"+invocation.getAction());
  if(session.get(USER_KEY) == null) {
 System.out.println(" Not logged in");
   //addActionError(invocation, "You must be authenticated to access this
page");
   return Action.ERROR;
  }
System.out.println("Hey he already logged in");

  return invocation.invoke();
 }


On Tue, May 12, 2009 at 4:34 PM, Murugesh  wrote:

> 
> 
> 
>  class="com.action.generic.logininterceptor"/>
> 
>
>
> /login.jsp
> 
> class="com.action.device.ManagePacketsAction" method="show30MData">
> /data.jsp
> 
>
> I am have default interceptor named login. i am chking session validation
> (like is user loggin r not ). it seems work but after running  interceptor
> it backs to actionclass, here i am chking requset parameters  at that am
> geeting for all parameters.
>
> Without interceptor everything working fine.
>
>
>
> On Tue, May 12, 2009 at 4:27 PM, Nils-Helge Garli Hegvik  > wrote:
>
>> It would certainly be a lot easier to help if you could show your
>> configuration and code...
>>
>> Nils-H
>>
>> On Tue, May 12, 2009 at 12:54 PM, Murugesh  wrote:
>> >  I am doing task on struts2. In that I have to use custom
>> > AutherizationInterceptor. In my custom Interceptor Im checking weather
>> user
>> > is in session or not. And if he tries to attempt login I gave parameter
>> in
>> > struts.xml as true So Im checking against it and interceptor redirects
>> > action to Home. But my problem is unable to get the request parameters
>> in
>> > Any Action class if Session exist too.
>> >
>> > please help on this issue.
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: unable to get the request parameters

2009-05-12 Thread Murugesh





   
   
/login.jsp

   
/data.jsp


I am have default interceptor named login. i am chking session validation
(like is user loggin r not ). it seems work but after running  interceptor
it backs to actionclass, here i am chking requset parameters  at that am
geeting for all parameters.

Without interceptor everything working fine.



On Tue, May 12, 2009 at 4:27 PM, Nils-Helge Garli Hegvik
wrote:

> It would certainly be a lot easier to help if you could show your
> configuration and code...
>
> Nils-H
>
> On Tue, May 12, 2009 at 12:54 PM, Murugesh  wrote:
> >  I am doing task on struts2. In that I have to use custom
> > AutherizationInterceptor. In my custom Interceptor Im checking weather
> user
> > is in session or not. And if he tries to attempt login I gave parameter
> in
> > struts.xml as true So Im checking against it and interceptor redirects
> > action to Home. But my problem is unable to get the request parameters in
> > Any Action class if Session exist too.
> >
> > please help on this issue.
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


unable to get the request parameters

2009-05-12 Thread Murugesh
 I am doing task on struts2. In that I have to use custom
AutherizationInterceptor. In my custom Interceptor Im checking weather user
is in session or not. And if he tries to attempt login I gave parameter in
struts.xml as true So Im checking against it and interceptor redirects
action to Home. But my problem is unable to get the request parameters in
Any Action class if Session exist too.

please help on this issue.


Re: Align issues in struts 2 UI atgs

2009-05-08 Thread Murugesh
Thanks
now it's getting in a row. but the new issue is its coming top of the other
fields.

like we have four fields





while running this code snippet , i will get both button on top of username
field.

please suggest me to get it down?

On Fri, May 8, 2009 at 5:16 PM, Dave Newton  wrote:

>  Murugesh wrote:
>
>> i have tried out but not getting the solution.
>>
>> i need two buttons in a row
>>
>> like
>> 
>> 
>>
>> please give me a correct way to implemnt to get output in a single row..
>>
>
> Use the "simple" theme?
>
> Dave
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Align issues in struts 2 UI atgs

2009-05-08 Thread Murugesh
Hi guys

i have tried out but not getting the solution.

i need two buttons in a row

like



please give me a correct way to implemnt to get output in a single row..