bhaskarvignesh chandra sekaran

Greenhorn
+ Follow
since Jun 27, 2009
bhaskarvignesh likes ...
Android Eclipse IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by bhaskarvignesh chandra sekaran

I am getting this response if i try to deploy a web application in glassfish, but it works perfectly if i deploy it in tomcat. So it should be some classpath clash issue with glassfish. Has anyone come across this error? Please help me out.

Web services URL : http://localhost:8080/isuite/UserDetailsServices
Response generated : Invalid wsdl request http://localhost:8080/isuite/UserDetailsServices for web service UserDetailsServicesService

11 years ago
Yes Joe, I agree with you and am also using Glassfish's security features. But there are few cases where you may need to develop applications which are not container dependent.

For e.g,

I hosted a java application on a web server, where am only asked to place the war files and the providers will only deploy the war file. There are few limitations where by you can overcome by creating our own database design with security roles and permissions and make our application Container independant

Thanks
11 years ago
Hello..

I am not a guy with much experience in designing a system. But i can give you some advices of what i followed in one of the applications i did.

Make the following tables

Create some user and group tables ...

1) User (id,Firstname,lastname,email...)
2) Group (id,groupname,description...)
3) UserGroup (UserID,GroupID)

Create roles and permission tables ...
4) Menu (id,name,link,isActive,isSubMenuOf) here isSubMenuOf is the id of the parent menu, its null for parent menu
5) Role (id,name,description)
6) Permissions (id,menuID,permittedRoleID)

Assign a Role to either an Individual User or a group of Users..

7) UserGroupRoles (id,isGroup,UserID,GroupID,RoleID)


Now for a particular Menu item to be displayed

1) get the permittedRoleID for the menu item from Permissions table
2) get the UserID,GroupID and check against the UserGroupRoles table for the matching RoleID
3) If rows returned , then he has the permission to that link, else no

Let me know if you find anything better in the future.

Thanks
Vignesh

11 years ago
Thanks Robb and Ravi,

Can you show me some examples? Does glassfish support Virtual Hosting?
11 years ago
JSP
Hi guys,

How can we make the context name of the web application non casesensitive?
For example,

If i have my context defined as ITrack, we should be able to access the application using the following addresses

http://localhost:80/ITrack
http://localhost:80/itrack
http://localhost:80/ITRACK

Your help is appreciated.

Thanks
11 years ago
JSP

Try this piece of code

request.getContextPath()+"/xxx/public_html/ YOUR CONTEXT DIR HERE");
12 years ago

how to access the my context


What on Earth does that have to do with your original question?


The thing on Earth is that , Since i got access to my context, am able to create directories and upload files in them in my actual web-hosting space provided.
12 years ago
I got the solution , with the below code

12 years ago
hi,

i have hosted a web application in Tomcat using Jsp/servlet. My problem is am not able to access the ServletContext path. My jsp code is



My guess is that they have deployed my context app in a folder other than tomcat/web-app

how to access the my context
Please help
12 years ago
If IIS crashes , so will .NET ( ) , java can run on any server , any platform.( )
12 years ago
hi,

i have hosted a web application in Tomcat using Jsp/servlet. My problem is am not able to access the ServletContext path. My jsp code is

My guess is that they have deployed my context app in a folder other than tomcat/web-app

how to access the my context
Please help
12 years ago
Ya the "if" condition is fine.
12 years ago
Your piece of code means "Get an Old session "...if its not an old session, it will return null.
12 years ago
Hi guys ,

I completed Sun Certification for Web Component Development successfully with 89 %, Thanks to the authors of HEAD FIRST SERVLETS & JSP.
Special thanks to Bert & Kathy.
12 years ago
Hi Gaurav,

i can suggest you the best book for preparing scwcd, try HEAD FIRST SERVLETS and JSP by kathy siera, bert bates.

i completed my exam with 89%, this books s very user friendly , not much theory , with just concepts & facts that ll be driven straight into your mind.

All the best.