DeAlton Jones

Greenhorn
+ Follow
since Apr 04, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by DeAlton Jones

I figured it out. xml is read from the top down I had a public constraint that overrided the protected constraint in the wrong order
17 years ago
Hi Everyone,

I am trying to secure a particular web page in my project by using security constraint in my web.xml. I am authenticating against a LDAP Server and am successful in getting the roles for the particular user.

Most of the pages will be seen to anyone who successfully logs in but a few of the pages I want only people with an admin or super super role to see it.

so this is what i put in my web xml



While this seems to be correct the user still has access to the page the constraint then works when they try to use the page ex.(click on a submit button, or link on the page) then the browser displays no authorization page.

Is there anyway to get this working so that when the user gets stopped before they get to the page. I am successful on rendering links based on the roles returned but I want to prevent them from typing in the url to get to the resource.

Thanks in advance for you help

DeAlton
17 years ago
Check here

it has helped me
17 years ago
JSF
[Thread hijack removed. Please ask your own questions in a new topic.]
[ June 04, 2007: Message edited by: Bear Bibeault ]
17 years ago
JSP
Hi there,

Has anyone had success in executing a cics command from a java backerbean?

I have the jcics.jar file and have my import as the following,

import com.ibm.cics.server.*;

this will not compile yet these are the instructions that I have recieved from the Java application development for CICS Redbook.

not really looking for solutions as much as a direction..


Thanks

DeAlton
17 years ago
Hi Everyone,

I am wondering if anyone has ran across this problem. I am using Stored Procedures in my Web Project. From time to time my Stored Proc. will not show up in my DataDefinition view while in my Data Prospective. All it shows is an empty space were the proc should be. When I try to open it this is what my error log displays




!ENTRY org.eclipse.ui 4 4 Mar 21, 2007 07:55:02.531
!MESSAGE Invalid preference page path: Trace

!ENTRY update@/c:/RAD/eclipse/plugins/com.ibm.etools.logging.ui.nl1_6.0.1/ 0 0 Mar 21, 2007 07:55:41.359
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The Bundle-ClassPath entry "/" was not found in the bundle: update@/c:/RAD/eclipse/plugins/com.ibm.etools.logging.ui_6.0.1/
at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findClassPathEntry(EclipseClassLoader.java:262)
at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.buildClasspath(DefaultClassLoader.java:436)
at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultClassLoader.attachFragment(DefaultClassLoader.java:94)
at org.eclipse.osgi.framework.internal.core.BundleLoader.createBCL(BundleLoader.java:670)
at org.eclipse.osgi.framework.internal.core.BundleLoader.createBCLPrevileged(BundleLoader.java:652)
at org.eclipse.osgi.framework.internal.core.BundleLoader.createClassLoader(BundleLoader.java:350)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:307)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:336)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1313)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(Unknown Source)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(Unknown Source)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(Unknown Source)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Unknown Source)
at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode.createPage(Unknown Source)
at org.eclipse.jface.preference.PreferenceDialog.showPage(Unknown Source)
at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$3.run(Unknown Source)
at org.eclipse.core.internal.runtime.InternalPlatform.run(Unknown Source)
at org.eclipse.core.runtime.Platform.run(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.access$4(Unknown Source)
at org.eclipse.jface.util.OpenStrategy$3.run(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
at org.eclipse.jface.window.Window.open(Unknown Source)
at org.eclipse.ui.internal.OpenPreferencesAction.run(Unknown Source)
at org.eclipse.jface.action.Action.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)


Any direction would be greatly appreciated!!

Thanks

DeAlton
17 years ago
Thanks

I guess when attempting to pass a primitive where an Object needs to be i need to be more careful.

JAVA101 are you kidding??
18 years ago
JSF
Hi all!

I know that this must be a simple question. How can you set a boolean
SessionScope variable in a backerbean.
The code below



this is the error description from my problem console

The method put(Object, Object) in the type Map is not applicable for the arguments (String, boolean)

Any Ideas would be great!!!

I am using RAD ide.
18 years ago
JSF
Hi all!

I know that this must be a simple question. How can you set a boolean
SessionScope variable in a backerbean.
The code below



this is the error description from my problem console

The method put(Object, Object) in the type Map is not applicable for the arguments (String, boolean)

Any Ideas would be great!!!

I am using RAD ide.
18 years ago
JSF
more information

I get a the following for my sysouts
I am getting my session id
What is the return code 302, shouldn't it be 200
authenticated username is null. why?


18 years ago
Hi everyone!,

I am working on a simple login faces page that if the j_username and the j_password are correct navigate to a success page if not navigate to a failed page. I am using an LDAP to validate.




This code is pretty generic and a lot of people have had success with it. any and all help would be appreciated.

thanks
18 years ago
thank you very much!!

That worked Great!!

Originally posted by Lynette Dawson:
yeah just map your dataTable to a List on the backing bean and populate the list when the button is pressed.



I am not sure I know what you mean by map dataTable to a list. Can you elaborate a little more. I am trying to make this a reuseable class and I want to be able to use this class regardless of how many dataTables are on the page (which are done with jsp:include).

I have been able to achieve this by assigning a variable to the rows attribute in the HTML and based upon a conditioning in the backerbean show some or all of the records. But I do this for each dataTable.

I am trying to keep a global view in mind and not individually code each page.

18 years ago
JSF
Hi everyone,
I was wondering if there is anyway to access the components attributes from the backerbean and change them.

What i am trying to do is if a button is pressed I want to display all the records in a dataTable. It is easy to do for one table but I have multiple DataTables on my page as jsp includes. So I figure that there must be some way to access the components and change an attribute then refresh the page.

Still learning ...and learning...and learning
18 years ago
JSF