473,322 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

unable to import class com.opensymphony.xwork2.ActionContext not found

I am usin struts java jdeveloper jsp
getting following error
unable to import class com.opensymphony.xwork2.ActionContext not found
Imported class com.opensymphony.xwork2.ActionContext not found gettin the above error,
Expand|Select|Wrap|Line Numbers
  1. import com.opensymphony.xwork2.ActionSupport;
  2. import com.opensymphony.xwork2.ActionContext;
  3. import java.util.*;
  4.  
  5. public class loginAction extends ActionSupport {
  6.   private String userId;
  7.   private String password;
  8.   public String execute() throws Exception{
  9.  
  10.     if ("admin".equals(userId) && "admin".equals(password)) {
  11.       Map session = ActionContext.getContext().getSession();
  12.       session.put("logged-in","true");
  13.             return SUCCESS;
  14.         }
  15.     else{
  16.        return ERROR;
  17.     }
  18.     }
  19.  
  20.     public String logout() throws Exception {
  21.  
  22.     Map session = ActionContext.getContext().getSession();
  23.     session.remove("logged-in");
  24.         return SUCCESS;
  25.     }
  26.  
  27.     public String getPassword() {
  28.         return password;
  29.     }
  30.  
  31.     public void setPassword(String password) {
  32.         this.password = password;
  33.     }
  34.  
  35.     public String getUserId() {
  36.         return userId;
  37.     }
  38.  
  39.     public void setUserId(String userId) {
  40.         this.userId = userId;
  41.     }
  42.  
Mar 29 '11 #1
0 1763

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: harold fellermann | last post by:
Hi all, I have a problem pickling an extension class. As written in the Extending/Embedding Manual, I provided a function __reduce__ that returns the appropreate tuple. This seams to work fine,...
1
by: Edgar Thoemmes | last post by:
I have used the import class module from http://www.mvps.org/access/modules/mdl0057.htm. This reads the file correctly and is half of what I need, Can anyone give me any tips/hints on appending...
3
by: Jason | last post by:
I have created a dll from a C++ class using .Net and have imported it into my C# applications (one webservice, one standalone app). It works fine for a while, but will eventually fail to produce...
1
by: [Yosi] | last post by:
I have an API (*.DLL) written with C/C++ language, I successfully import the functions from C# application by : static extern ................ Now: How can I do the same with Class? How to...
2
by: Shapper | last post by:
Hello, In the main root of my web site together with my aspx and aspx.vb files I have the file global.vb. This file has a class with all the functions which are used in many aspx.vb files and...
3
by: alex | last post by:
Code: ========================================= template <class T, int Len> class COciVariable { public: T m_Var; }; template <class T>
1
by: Ronde | last post by:
Hi all, A newbie here. And I am using Visual Web Developer 2005 Express with C# to develop my web application. Here is the situation I am running into and need some help here. Thanks a lot in...
5
by: vshalpatel | last post by:
Hi I want to use SQL*Loader , an Oracle-supplied utility to load data from a flat file into one database tables. for this I have write the scripts in the SQL*LOADER control file named ...
3
by: Mathias Fritsch | last post by:
I am using FindControl in my page and try to cast the control found to a specific control. ((Controls_Footer)this.Master.FindControl("Footer1")).OnPrintToPdf += new...
3
by: waqar100 | last post by:
Hi,Experts,I am a new one. I have made class in java,using netbeans 6.0.1 this getting error if i mouse over on the class name"class shape is public,should be declared in a file named shape.java", ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.