joseph prabhu

Ranch Hand
+ Follow
since Feb 26, 2008
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 joseph prabhu

Hi i am using same code as follows


it gives javascript error as . what syntax i have to change for this?

12 years ago
JSP
my jsp code is

12 years ago
I am using struts 1.1 , so the execute method return return mapping.findForward("success");

In struts.xml the jsp is defined. when the code starts executing the jsp it gives exception in server log , not in page. Page gets successfully loaded.

Thanks

12 years ago
I got same exception as

Exception thrown : java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained

my code is



Exception arises only when code start executing JSP page.


Could you please help?

12 years ago
What i am doing , i have written an html file in my local desktop(not hosted in any server). In the html head in have included remote .do in the head



so in the html i have included the search autocomplete from remote site in the head . when i do searching the server responds with data in server log. But the respond is not painting as css which is present there.

But when i hit the URL directly https://devlopenvironment/project/index.do and search autocomplete is working.

when i debug the code i found that the following code (the body of jQuery.get body is not executing)

jQuery.get(constructURL(q), function(data) {
getData(q, data ); });

Can you help Now.
I have following code




This get method is not calling when i call from html.

Regards
Joe
The code i have written to get the data and to format in jsonp format. is below




The expected output in jsp is

callback({"q":["A","B"]})

But my output is

callback(["A","B"]).

Please help how to format is
12 years ago
Hi

My code is below



see the second for loop , i am using concat method and concatenning the ""," to the individual string and final string is set in a request attribute and in jsp using that attribute and printing in browser.

Can some body help.

Regards
Joe



that "","" is concatenning to final results at every request in browser i made. It is very strange.
>
12 years ago
Hi All,

I use some some string concatenation(plus operator or concat method) Using String class. and have final output and it is return to jsp. Whenever new request is made the results of concat method alone get repeated for each request. How can be overcome this? Please suggest it is very urgent.


Regards

Joseph Prabhu
12 years ago
sorry web.xml has following init param


<init-param>
<param-name>config</param-name>
<param-value>/.*[\\/]struts-config.*.xml$</param-value>
</init-param>
12 years ago
I am using websphere 6.1 with struts 1.1 .

my web.xml has init param as

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
I have used regular expression
Since the there are many folders in web-inf folder and each folder may/may not have struts-config.xml or may be in other name struts-config[a-z].xml

Please help
12 years ago
I am setting LocalEnviromment , Log is below. Please tell what i should change, where?


Deregister the mbean because of uncaught init() exception thrown by servlet lastStart: javax.servlet.ServletException: startup failure:Messaging Startup Failed! The Message Router, Host Accessor or the Resource Adapter failed to start properly!
at com.citigroup.cdcla.jfp.webapp.JFPLastStartupServlet.init(JFPLastStartupServlet.java:85)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1142)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:150)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:504)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:283)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:273)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:340)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
---- Begin backtrace for Nested Throwables
java.lang.Throwable: Messaging Startup Failed! The Message Router, Host Accessor or the Resource Adapter failed to start properly!
at com.citigroup.cdcla.jfp.messaging.startup.MessagingStartupListener.contextInitialized(MessagingStartupListener.java:98)
at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:621)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:274)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:273)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:340)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Thanks
Joe
12 years ago
I started Struts2. I here by attach the zip file which contains all (web.xml , index.jsp and welcomeuser.java and welcomeuser.jsp).
first login page gets executed sucesfully , i enter the data and press submit , i think it moves to WelcomeUser.jsp and prints as $ {message}. Did any jar file to be added here?

Any body please help me?

Regards
Joe



13 years ago