Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2006, 03:38 PM
Registered User
 
Join Date: Jul 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default form related

Hi I have a formbean which is submitting one user out of 10 user to my action class.

Now In database there is one table which conatins multiple rows.But out of all rows only some rows are shown to user depending upon the user.

now the problem is

I have to write a class where I will get the user name and on the basis of that name I have to fetch data from table.

so how to get this user name from form bean and based on this user condition how to fetch data.

if any once help on this condiation based code.it would be of great help.

 
Old August 2nd, 2006, 01:17 AM
Authorized User
 
Join Date: Aug 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sachin.tathod
Default

One thing u can do.
Fetch the total data from the tabel and display it depending on the user level .

SO u dont need to pass the user id and user level

At JSP level u can do it easily by checking the user level while displaying the particular item.

Sachin






Similar Threads
Thread Thread Starter Forum Replies Last Post
Related to DataSet jhansib4u C# 6 October 12th, 2007 01:51 AM
related to assembly Suneet Sharma General .NET 2 May 3rd, 2007 08:32 AM
Related Data on A Form wb8bgy Visual Basic 2005 Basics 0 December 26th, 2005 03:43 PM
Portal Related chinu_pranab Beginning PHP 1 May 28th, 2005 04:45 AM
Update Multiple Related Tables with 1 Form stephaniejones SQL Server ASP 4 July 13th, 2003 08:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.