Package level Variable

2008-06-19 Thread Prashant Saraf
Hi,

 

Can we create a variable which can be access at package level? If use
exit from package level then that variable get removed from session.

 

Regards

Prashant Saraf

 



RE: Single user Login

2008-06-05 Thread Prashant Saraf
Hi Jim,

Thanks for the help.. I did try it before what u said, but things are
going worst when user is login off with session time out or close the
browser, 
If user login again after browser crash or browser close then they have
to wait till session timeout is not done.
 

-Original Message-
From: Jim Kiley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 10:37 PM
To: Struts Users Mailing List
Subject: Re: Single user Login

If you want to implement a full-blown security scheme like Spring
Security,
there are ways to do it.  If you don't (and that is understandable),
you're
going to need to track whether or not a given user is already logged in,
at
the application level.

One solution, which is absolutely quick-and-dirty, and undoubtedly NOT a
best practice, would be to stash a Set of userids in the application
scope,
using the ApplicationAware interface, and then compare the user who's
trying
to log in to that set of userids.  The complexity you'll get there is
removing the userid from the application scope when the user's session
times
out or he logs out.

jk

On Thu, Jun 5, 2008 at 12:58 PM, Prashant Saraf <[EMAIL PROTECTED]> wrote:

> Does anyone know how to do it?
>
> -----Original Message-
> From: Prashant Saraf [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2008 7:14 PM
> To: Struts Users Mailing List
> Subject: RE: Single user Login
>
> Hi ,
>  I am managing it by DB check. My Helper class is checking either user
> is valid or not with DB.
>
> Regards
> PS.
>
>
> -Original Message-
> From: Jim Kiley [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2008 7:10 PM
> To: Struts Users Mailing List
> Subject: Re: Single user Login
>
> This really depends on how you are currently managing authentication.
> How
> are you currently managing authentication?
>
> On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <[EMAIL PROTECTED]>
wrote:
>
> > Hi,
> >
> > I want to know how to do single user login, that is user should not
> > login form multiple location at the same time.
> >
> > Regards,
> >
> > Prashant Saraf
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Single user Login

2008-06-05 Thread Prashant Saraf
Does anyone know how to do it?

-Original Message-
From: Prashant Saraf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 7:14 PM
To: Struts Users Mailing List
Subject: RE: Single user Login

Hi ,
 I am managing it by DB check. My Helper class is checking either user
is valid or not with DB.

Regards
PS.


-Original Message-
From: Jim Kiley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 7:10 PM
To: Struts Users Mailing List
Subject: Re: Single user Login

This really depends on how you are currently managing authentication.
How
are you currently managing authentication?

On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I want to know how to do single user login, that is user should not
> login form multiple location at the same time.
>
> Regards,
>
> Prashant Saraf
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Single user Login

2008-06-05 Thread Prashant Saraf
Hi ,
 I am managing it by DB check. My Helper class is checking either user
is valid or not with DB.

Regards
PS.


-Original Message-
From: Jim Kiley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 7:10 PM
To: Struts Users Mailing List
Subject: Re: Single user Login

This really depends on how you are currently managing authentication.
How
are you currently managing authentication?

On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I want to know how to do single user login, that is user should not
> login form multiple location at the same time.
>
> Regards,
>
> Prashant Saraf
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Single user Login

2008-06-05 Thread Prashant Saraf
Hi,

I want to know how to do single user login, that is user should not
login form multiple location at the same time. 

Regards,

Prashant Saraf

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: POJO Action Class

2008-04-12 Thread Prashant Saraf
hi,
i changed the build path in eclipse to 
HelloWorld/WebContent/WEB-INF/classes
and checked in 
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/
now there are class files. Still getting same error :(
 



From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Sun 4/13/2008 1:07 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class



Hi,

Try to look into
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/

and see if you have there compiled class in package com.prayog.apps.LoginUser


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: POJO Action Class

2008-04-12 Thread Prashant Saraf
no only java file is there!!



From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Sun 4/13/2008 1:07 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class



Hi,

Try to look into
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/

and see if you have there compiled class in package com.prayog.apps.LoginUser


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: POJO Action Class

2008-04-12 Thread Prashant Saraf
sorry all of you but still gating same error 
Action class [com.prayog.apps.LoginUser] not found - action - 
file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)

at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)

at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)

at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)

at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)

at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)

at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)

at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)

at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)

at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:566)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Apr 13, 2008 12:57:12 AM org.apache.catalina.core.StandardContext start

SEVERE: Error filterStart

Apr 13, 2008 12:57:12 AM org.apache.catalina.core.StandardContext start

SEVERE: Context [/HelloWorld] startup failed due to previous errors




From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Sun 4/13/2008 12:39 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class



Look carefully at the first line of the output.  You have misspelled User.
  (*Chris*)

On Sat, Apr 12, 2008 at 11:53 AM, Prashant Saraf <[EMAIL PROTECTED]> wrote:
> Thanks for the reply,
>  It comes when container starts,
>  i had created a caller jsp which put user name and password. in 
> LoginUser.java i m checking. either the user-name password are correct. if 
> correct forward to success page, else send to same login page.
>
>
>  Here is strack trace.
>
>  SEVERE: Exception starting filter struts2
>
>  Action class [com.prayog.apps.LoginUesr] not found - action - 
> file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
>
>  at 
> org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>
>  at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
>
>  at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>
>  at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>
>  at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>
>  at 
> org.apache.struts2.dispatcher.FilterDispatcher.init(Filter

RE: POJO Action Class

2008-04-12 Thread Prashant Saraf
oppss sorry to intrupt all of you.. stupid mistake :(



From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Sun 4/13/2008 12:39 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class



Look carefully at the first line of the output.  You have misspelled User.
  (*Chris*)

On Sat, Apr 12, 2008 at 11:53 AM, Prashant Saraf <[EMAIL PROTECTED]> wrote:
> Thanks for the reply,
>  It comes when container starts,
>  i had created a caller jsp which put user name and password. in 
> LoginUser.java i m checking. either the user-name password are correct. if 
> correct forward to success page, else send to same login page.
>
>
>  Here is strack trace.
>
>  SEVERE: Exception starting filter struts2
>
>  Action class [com.prayog.apps.LoginUesr] not found - action - 
> file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
>
>  at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
>
>  at 
> org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>
>  at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
>
>  at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>
>  at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>
>  at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>
>  at 
> org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>
>  at 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>
>  at 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>
>  at 
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
>
>  at 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
>
>  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
>
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
>  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>
>  at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>
>  at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
>  at java.lang.reflect.Method.invoke(Unknown Source)
>
>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
>  Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
>  SEVERE: Error filterStart
>
>  Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
>  SEVERE: Context [/HelloWorld] startup failed due to previous errors
>
>  Apr 12, 2008 10:53:38 PM org.apache.coyote.http11.Http11Protocol start
>
>  INFO: Starting Coyote HTTP/1.1 on http-8080
>
>  Apr 12, 2008 10:53:38 PM org.apache.jk.common.ChannelSocket init
>
>  INFO: JK: ajp13 listening on /0.0.0.0:8009
>
>  Apr 12, 2008 10:53:38 PM org.apache.jk.server.JkMain start
>
>  INFO: Jk running ID=0 time=0/16 config=null
>
>  Apr 12, 2008 10:53:38 PM org.apache.catalina.startup.Catalina start
>
>  INFO: Server startup in 744 ms
>
>
>
>  
>
>  From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
>  Sent: Sat 4/12/2008 11:58 PM
>
> To: Struts Users Mailing List
>  Subject: Re: POJO Action Class
>
>
>
>
>
> Class and config looks ok, could paste the whole stack trace? When you
>  get such error, when starting conatiner or when requesting the action?
>  Could you also show how you call the action in web browser?
>
>
>

RE: POJO Action Class

2008-04-12 Thread Prashant Saraf
Thanks for the reply,
It comes when container starts,
i had created a caller jsp which put user name and password. in LoginUser.java 
i m checking. either the user-name password are correct. if correct forward to 
success page, else send to same login page. 
 
 
Here is strack trace.
 
SEVERE: Exception starting filter struts2

Action class [com.prayog.apps.LoginUesr] not found - action - 
file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)

at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)

at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)

at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)

at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)

at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)

at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)

at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)

at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)

at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)

at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

at org.apache.catalina.core.StandardService.start(StandardService.java:516)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

at org.apache.catalina.startup.Catalina.start(Catalina.java:566)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start

SEVERE: Error filterStart

Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/HelloWorld] startup failed due to previous errors

Apr 12, 2008 10:53:38 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Apr 12, 2008 10:53:38 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Apr 12, 2008 10:53:38 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/16 config=null

Apr 12, 2008 10:53:38 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 744 ms




From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Sat 4/12/2008 11:58 PM
To: Struts Users Mailing List
Subject: Re: POJO Action Class



Class and config looks ok, could paste the whole stack trace? When you
get such error, when starting conatiner or when requesting the action?
Could you also show how you call the action in web browser?


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: POJO Action Class

2008-04-12 Thread Prashant Saraf
sure here is my Struts.xml
 
 
http://struts.apache.org/dtds/struts-2.0.dtd";>







helloWorld.jsp





login.jsp

success.jsp










From: Lukasz Lenart [mailto:[EMAIL PROTECTED]
Sent: Sat 4/12/2008 11:16 PM
To: Struts Users Mailing List
Subject: Re: POJO Action Class



>  Error says : "Action class not found"

Could you show your struts.xml?


Regards
--
Lukasz

http://www.linkedin.com/in/lukaszlenart

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



POJO Action Class

2008-04-12 Thread Prashant Saraf
Hi,
Hi I am new to Struts 2, I created a POJO Class, but freamwrok gives error on 
it. How to define Pojo Action Class? 
 
Error says : "Action class not found" 
 
here is my class :
 
 
/**
 * 
 */
package com.prayog.apps;
/**
 * @author Administrator
 *
 */
public class LoginUser {
 private String userID;
 private String userPassword;
 /**
  * @return the userID
  */
 public String getUserID() {
  return userID;
 }
 /**
  * @param userID the userID to set
  */
 public void setUserID(String userID) {
  this.userID = userID;
 }
 /**
  * @return the userPassword
  */
 public String getUserPassword() {
  return userPassword;
 }
 /**
  * @param userPassword the userPassword to set
  */
 public void setUserPassword(String userPassword) {
  this.userPassword = userPassword;
 }
 
 public String execute() throws Exception {
  if("psaraf".equals(userID) && "psaraf".equals(userPassword))
   return "SUCCESS";
  else
   return "loginForm";  
 }
 
}

 
if i want to make this class as POJO Action Class do i need to make any special 
changes in struts.xml?
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



eclipse and struts 2

2008-03-26 Thread Prashant Saraf
Hi,
I am using eclipse for creating struts 2 application. I have few
doubts.
1. does it is necessary to put all pojo classes(action/form) into
WEB-INF/classes/appName?
2. can someone provide project structure of struts 2 project in eclipse?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Use of ExtJS

2008-03-26 Thread Prashant Saraf
Hi,

Can we use ExtJS with Struts 2 Tags?

Regards,
Prashant.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

about nested:write and Html

2007-02-26 Thread Prashant Saraf

Hi
I am using nested:write for print some text that has some html code. in
browser it shows code and not the code effect. how to do that.

--
Cup of Java + Suger of XML = Secure WebApp


need help in Tag-lib

2006-11-24 Thread Prashant Saraf

Hi all..
I had following problem




   
   

   
   
   
   Edit
   
   
   
   
   
   

   

 

It gives following error

An exception occured trying to convert String
"http://localhost:7003/cctc/pic1"; to type "java.lang.Long" (null)

I am having one more problem.. can i assign value came from forEach which
iterate from vector of bean to my  useBean. if yes how.

Thanks in advance


--
Cup of Java + Suger of XML = Secure WebApp