sandeep Kumar

Ranch Hand
+ Follow
since Sep 19, 2007
Merit badge: grant badges
For More
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 sandeep Kumar

Thanks for your inputs Alin. As HTTP_REFERER is not 100% reliable to be used, I'm planning to use Session scoped variable from which this would be implemented.
11 years ago
Ya Pramod We'll have to use some server side coding to achieve the functionalities where ever JS is diabled. But how do I capture the previous page's url in present page when JS is disabled. To be more elaborative, In my application there is a JSP say one.jsp. There are many flows through which a user gets navigated to one.jsp. In one.jsp, there is an anchor tag "back" which on click of this link, user should get navigated to the previous page form which he/she had arrived to one.jsp.
Hope this clarifies the requirement.
A small code snippet to capture the previous page's URL when JS is disabled in browser; will be helpful.
11 years ago
Alin,

I know about <noscript> tag. What I need is back button behavior(user getting navigated to previous page) for the anchor link when JS is disabled.
11 years ago
Alin,

First of all thanks you very much for your immediate response. This will be an HTML anchor tag in JSP.

11 years ago
Hi All,

I have strange requirement. It is as shown below:

When JS is disabled, there is a "back" link which when user clicks on that link, user should be navigated to previous page. Can any one please help me on this.

Thanks in advance for your inputs.

~ Sandeep.
11 years ago
Hi All,

I came across a strange scenario where user-agent is coming null and due to which our application is breaking. It is strange for me for user-agent being null.
Please clarify the below queries.
1) What are the cases when user-agent will be null for a web client?
2) Is user-agent being null according to W3C standards?

I'm not sure if this is the place this query has to be posted. Can any one of you please help me out with the clarification. It would be really greatful!!!

Thanks in Advance.
~ Sandeep.
12 years ago
Hi Adam,

I think If you are able to generate XML out of all the data you need, you may apply an XSLT transformer to display it on JSP.

Thanks,
Sandeep.
13 years ago
JSF
Hi,

I'm interested in this. I have around 6 years of experience in almost all Java/J2EE technologies and have around 3 years of experience in Ecommerce Applications.


Regards,
Sandeep.
13 years ago
Hi All,

Could some one give pointers to start learning Android development. And I would like to know how is the market for Android?

This may be a generic question. But I think this is the right place to post.

Thanks in Advance.

Regards,
Sandeep.
13 years ago
Hi Eric,

First of all thanks for your reply.

I just wanted to check if on client's machine java script is enabled or disabled from my java file (servlet or JSP)
and accordingly request will be navigated to specified JSP page.

I have tried with <noscript> tag using in a <form> element in JSP. But seems to be not working. I have tried with IE7.

Please find the below code.



This code always returns null, either active script option is enabled or disabled.

In IE7, I have disabled the java script using:

Tools --> Internet options --> "security" tab --> "Custom level" button --> Scripting --> Active scripting



Thanks to suggest me on this.

Thanks & Regards,
Sandeep.
Hi All,

I need small help.
I would like to know "How to test if javascript is enabled or not using Java in client's browser.

Any pointer or a code snippet will be helpful.

Thanks in Advance.

Regards,
Sandeep.
yep. I think sending through request would be right choice for my requirement.

Paul, Thanks for your reply.
Aniruddh: I dont want to persist the session object. Thank you for your suggestion.

Cheers,
Sandeep.
14 years ago
Hi Paul Sturrock,

First of all thanks for your reply.

Due to some client specific constraints, I cannot use the Database. Keeping apart form Database and RMI, Can you please suggest me the other way.

What if I serialize the object into a flat file and then FTP that file? I think this would again be some performance hit.
Is there any way we can send the data in request to another application?
14 years ago
Hi,

I have a requirement as below:

There are two web applications running on the same server instance. If there is a requirement as I have to use data in session object of webApp1 in webApp2.

Can you please suggest me the best way to implement it?

Thanks in Advance.

Cheers,
Sandeep.
14 years ago
Hi All,

There is some problem with my Eclipse 3.4 Ganymede in launching work bench.
I had not launched eclipse for 3 weeks. Today when I have launched the eclipse, work bench is not getting launched.
On looking to the log file in my work space. it shows an exception stated below.

!MESSAGE Cannot set a null prefix table
!STACK 0
java.lang.NullPointerException: Cannot set a null prefix table
at org.eclipse.jface.bindings.CachedBindingSet.setPrefixTable(CachedBindingSet.java:346)
at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1765)
at org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689)
at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:152)
at org.eclipse.core.commands.contexts.ContextManager.removeActiveContext(ContextManager.java:232)
at org.eclipse.ui.internal.contexts.ContextAuthority.updateContext(ContextAuthority.java:767)
at org.eclipse.ui.internal.contexts.ContextAuthority.deactivateContext(ContextAuthority.java:362)
at org.eclipse.ui.internal.contexts.ContextService.deactivateContext(ContextService.java:140)
at org.eclipse.ui.internal.contexts.ContextService.deactivateContexts(ContextService.java:154)
at org.eclipse.ui.internal.contexts.SlaveContextService.dispose(SlaveContextService.java:240)
at org.eclipse.ui.internal.services.ServiceLocator.dispose(ServiceLocator.java:142)
at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1627)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:722)
at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:698)
at org.eclipse.ui.internal.WorkbenchWindow$3.run(WorkbenchWindow.java:814)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:812)
at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:912)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:909)
at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:838)
at org.eclipse.ui.internal.Workbench$23.run(Workbench.java:1082)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1080)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1052)
at org.eclipse.ui.internal.handlers.QuitHandler.execute(QuitHandler.java:41)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Can any one please suggest me how to get rid of this?

Many Thanks,
Sandeep.