Struts Security

2003-09-04 Thread Eyunni Srilatha
 HI,
I want to password protect a folder in Struts.I have many  folders 
under jsp
like 'test','general','report'.I want to protect only the 'report' 
folder.I have written this code in web.xml but its blocking all my 
folders from accessing .
I want only report folder to be password protected. can anybosy 
plez tell me this.

  
 SecureReportJSP
 Protect the reports
 /report/* //I have give lke 
this
  /jsp/report/login.jsp //and 
laso like this
 GET
 POST
  

 

 
Thanx in advance.Plez help me in this

___
Meet your old school or college friends from
1 Million + database...
Click here to reunite www.batchmates.com/rediff.asp


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


RE: Newbie Q: Cannot load JDBC driver class using Datasource Connection

2003-06-08 Thread Srilatha
I guess u need to put the jdbc2_0-stdext.jar IN THE LIB folder and if u r
using mysql put the
mysql-connector-java-3.0.6-stable-bin.jar also

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 07, 2003 11:29 PM
To: [EMAIL PROTECTED]
Subject: Newbie Q: Cannot load JDBC driver class using Datasource
Connection


Am I missing something here? Tomcat keeps on giving me the following
exception about my JDBC connection driver not being loaded when I try to
establish a
datasource connection to a mysql database in struts :

Initializing application data source org.apache.struts.action.DATA_SOURCE
java.sql.SQLException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529)
at
org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:38
1)
at
org.apache.struts.action.ActionServlet.initApplicationDataSources(ActionServ
let.java:942)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:457)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
essorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

My struts-config.xml looks like this :


























Info: This driver , com.mysql.jdbc.Driver, does establish connection to this
same database with no exception when I use it in a normal java class.

Can someone tell me or atleast point me to where I can find further
help/information. I could not find anything at
http://jakarta.apache.org/struts/faqs/database.html  and also in this list's
archives.

Thanks,

robert


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



RE: doubt with dropdown list box

2003-06-06 Thread Srilatha
hey,
nobody uses Hashtables in in Struts?Its a wonder really


-Original Message-
From: Srilatha [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 6:04 PM
To: Struts Users Mailing List; Nagendra Kumar O V S
Subject: RE: doubt with dropdown list box


The problem here is I need to use Hashtables only bcoz most of my routines
are returning Hashtables
I dont know exactly but is it possible thru  ??how can I do
this...

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 5:46 PM
To: [EMAIL PROTECTED]
Subject: Re: doubt with dropdown list box



hi,
 works best with a collection of dataobjects.
use




here arrList  could be arraylist of name value pairs,
something like
ArrayList  arrList = new ArrayList();
arrList.put(new LabelValueBean("label","value"));
arrList.put(new LabelValueBean("label1","value2"));
arrList.put(new LabelValueBean("label2","value2"));

LabelValueBean class is provided by struts

AFAI hashtable does't fit in here.
u will have to iterate thro' the hashtable , if u want to still use the
hashmap
or go by arraylist to make things easier

--nagendra

---Original Message---

From: Struts Users Mailing List
Date: Friday, June 06, 2003 05:23:19 PM
To: [EMAIL PROTECTED]
Subject: doubt with dropdown list box

hi,
I'm a newbie to STRUTS.
I have a doubt in pre-populating a dropdown listbox in Struts ..while
loading the JSP itslef the listbox has to be populated.
I have a JavaBean wich has a method called getDetailsinHt() which is
returning hashtable
its something like this- ht.put((new Long(LoginId )),sDetails);
sDetails is a String array - String[] sDetails = new String[4];
this string array contains first,middle and last names
How canI do this.I havebeen doing this since hours but in vain..:(
someody plez help me.

The code is like this:

Test
{
public Test{}

public long id;
public String name[];

public long getId() {
return (id);
}

public void setId(long id) {
this.id = id;
}

public String[] getNames() {
return this.name;
}

public void setName(String[] name) {
this.name = name;
}
public Hashtable getDetailsinHt()
{
Hashtable ht=new Hashtable();
String[] sDetails = new String[4];
sDetails[0] = "Name";
sDetails[1] = "Name";
sDetails[2] = "Name";
ht.put((new Long(LoginId )),sDetails);
return ht;
}
}


in my ActionForm I'm writing theget andset methods like

public Hashtable getUserId() {
return userId;

public void setUserId(Hashtable userId) {
this.userId= userId;
}

public Hashtable getList()
{
UserList iab=new UserList();
try
{
Hashtable users=iab.getUserList(0);
}catch(Exception e){}
return users;
}

and in my JSP
I'm giving as




but I'm not able to populate the list box.here I guess I'm doing
something wrong with the
-- property="id" labelProperty="name"/>

Can somebodt plez tellme where I'm wrong??
Thanx


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


.



  IncrediMail - Email has finally evolved - Click Here


-
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: doubt with dropdown list box

2003-06-06 Thread Srilatha
The problem here is I need to use Hashtables only bcoz most of my routines
are returning Hashtables
I dont know exactly but is it possible thru  ??how can I do
this...

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 5:46 PM
To: [EMAIL PROTECTED]
Subject: Re: doubt with dropdown list box



hi,
 works best with a collection of dataobjects.
use




here arrList  could be arraylist of name value pairs,
something like
ArrayList  arrList = new ArrayList();
arrList.put(new LabelValueBean("label","value"));
arrList.put(new LabelValueBean("label1","value2"));
arrList.put(new LabelValueBean("label2","value2"));

LabelValueBean class is provided by struts

AFAI hashtable does't fit in here.
u will have to iterate thro' the hashtable , if u want to still use the
hashmap
or go by arraylist to make things easier

--nagendra

---Original Message---

From: Struts Users Mailing List
Date: Friday, June 06, 2003 05:23:19 PM
To: [EMAIL PROTECTED]
Subject: doubt with dropdown list box

hi,
I'm a newbie to STRUTS.
I have a doubt in pre-populating a dropdown listbox in Struts ..while
loading the JSP itslef the listbox has to be populated.
I have a JavaBean wich has a method called getDetailsinHt() which is
returning hashtable
its something like this- ht.put((new Long(LoginId )),sDetails);
sDetails is a String array - String[] sDetails = new String[4];
this string array contains first,middle and last names
How canI do this.I havebeen doing this since hours but in vain..:(
someody plez help me.

The code is like this:

Test
{
public Test{}

public long id;
public String name[];

public long getId() {
return (id);
}

public void setId(long id) {
this.id = id;
}

public String[] getNames() {
return this.name;
}

public void setName(String[] name) {
this.name = name;
}
public Hashtable getDetailsinHt()
{
Hashtable ht=new Hashtable();
String[] sDetails = new String[4];
sDetails[0] = "Name";
sDetails[1] = "Name";
sDetails[2] = "Name";
ht.put((new Long(LoginId )),sDetails);
return ht;
}
}


in my ActionForm I'm writing theget andset methods like

public Hashtable getUserId() {
return userId;

public void setUserId(Hashtable userId) {
this.userId= userId;
}

public Hashtable getList()
{
UserList iab=new UserList();
try
{
Hashtable users=iab.getUserList(0);
}catch(Exception e){}
return users;
}

and in my JSP
I'm giving as




but I'm not able to populate the list box.here I guess I'm doing
something wrong with the
-- property="id" labelProperty="name"/>

Can somebodt plez tellme where I'm wrong??
Thanx


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


.



  IncrediMail - Email has finally evolved - Click Here


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



doubt with dropdown list box

2003-06-06 Thread Srilatha
hi,
I'm a newbie to STRUTS.
I have a doubt in pre-populating a dropdown listbox in Struts ..while
loading the JSP itslef the listbox has to be populated.
I have  a JavaBean wich has a method called getDetailsinHt() which is
returning hashtable
its something like this- ht.put((new Long(LoginId )),sDetails);
sDetails is a String array - String[] sDetails = new String[4];
this string array contains first,middle and last names
How canI do this.I havebeen doing this since hours but in vain..:(
someody plez help me.

The code is like this:

Test
{
  public Test{}

  public long id;
  public String name[];

  public long getId() {
return (id);
  }

  public void setId(long id) {
this.id = id;
  }

  public String[] getNames() {
  return this.name;
  }

  public void setName(String[] name) {
this.name = name;
  }
public Hashtable getDetailsinHt()
{
Hashtable ht=new Hashtable();
String[] sDetails = new String[4];
sDetails[0] = "Name";
sDetails[1] = "Name";
sDetails[2] = "Name";
ht.put((new Long(LoginId )),sDetails);
return ht;
}
}


in my ActionForm I'm writing theget andset methods like

public Hashtable getUserId() {
   return userId;

public void setUserId(Hashtable userId) {
   this.userId= userId;
}

public Hashtable getList()
 {
  UserList iab=new UserList();
  try
  {
 Hashtable users=iab.getUserList(0);
  }catch(Exception e){}
  return users;
 }

and in  my JSP
I'm giving as
 
   
  
   
but I'm not able to populate the list box.here I guess  I'm doing
something wrong with the
-- property="id" labelProperty="name"/>

Can somebodt plez tellme where I'm wrong??
Thanx


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



RE: bluestone trail 6

2001-08-23 Thread Srilatha Ravuri

Yep!

-Original Message-
From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 9:58 AM
To: [EMAIL PROTECTED]
Subject: RE: bluestone trail 6


Are you using Tomcat?


>From: Srilatha Ravuri <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: bluestone trail 6
>Date: Thu, 23 Aug 2001 08:17:16 -0500
>MIME-Version: 1.0
>Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD4E4D850012400431D740D02A2912B50; Thu, 23 Aug 2001 06:17:57 -0700
>Received: (qmail 8226 invoked by uid 500); 23 Aug 2001 13:17:43 -
>Received: (qmail 8216 invoked from network); 23 Aug 2001 13:17:43 -
>Received: from smtp2.hntb.com (HELO hntbw21.hntb.org) (198.51.229.202)  by 
>h31.sny.collab.net with SMTP; 23 Aug 2001 13:17:43 -
>Received: by hntbw21.hntb.org with Internet Mail Service (5.5.2653.19)id 
>; Thu, 23 Aug 2001 08:17:17 -0500
>From struts-user-return-15842-bhamidik Thu, 23 Aug 2001 06:18:55 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>Message-ID: <[EMAIL PROTECTED]>
>X-Mailer: Internet Mail Service (5.5.2653.19)
>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>
>I too got the same error.My mistake was in struts-config.xml (which is 
>under
>folder /WEB-INF/struts-config.xml).
>where I gave a different name for the package and trying out with type as
>"logon.LogonForm" and "logon.LogonAction" as in the tutorial.Later I named
>my package as logon and corrected it.It worked.
>
>
>   
> 
>   
>
>
>   
>   
>
>  type="logon.LogonAction"
> name="logonForm">
>
>Thanks
>
>-Original Message-
>From: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 23, 2001 7:50 AM
>To: '[EMAIL PROTECTED]'
>Subject: bluestone trail 6
>Importance: Low
>
>
>
>I tried bluestone Trail 6
>the jsp is simple:
>
><%@ page language="java" %>
><%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
>
>>Logon
>
>
>
>
>Username:
>Password:
>  
>
>
>
>
>
>I got the following exception:
>"javax.servlet.ServletException: Cannot find ActionMappings or
>ActionFormBeans collection "
>
>Thanks for any help!
>Ebi
>
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



RE: bluestone trail 6

2001-08-23 Thread Srilatha Ravuri

I too got the same error.My mistake was in struts-config.xml (which is under
folder /WEB-INF/struts-config.xml).
where I gave a different name for the package and trying out with type as
"logon.LogonForm" and "logon.LogonAction" as in the tutorial.Later I named
my package as logon and corrected it.It worked.


  

   


  
  



Thanks

-Original Message-
From: Tamanaei, ITS PersWi C500, DA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 7:50 AM
To: '[EMAIL PROTECTED]'
Subject: bluestone trail 6
Importance: Low



I tried bluestone Trail 6 
the jsp is simple: 

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>


Logon




Username:
Password:
 





I got the following exception: 
"javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection "

Thanks for any help! 
Ebi