473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Calling servlet in Jboss from a javascript

Hi

Need some help on javascript. I need to know how to call a servlet
from a javascript function.

web-inf (jboss) path for servlet is:
com.purpleace.ripple.admin.contacts.servlet.AdminR eport

web xml <servet-mapping> is :

<servlet-mapping>
<servlet-name>adminreport</servlet-name>
<url-pattern>
/servlet/com.purpleace.ripple.admin.contacts.servlet.AdminR epo
rt
</url-pattern>
</servlet-mapping>

I tried these but got this error: HTTP Status 404

- parent.frames['mainFrame'].location.replace
('com/purpleace/ripple/admin/contacts/servlet/AdminReport');

- parent.frames['mainFrame'].location.replace
('com.purpleace.ripple.admin.contacts.servlet.Admi nReport');
Thanks for your time
Rose

Jul 23 '05 #1
2 2449
Dont know about "servlet" or "<servet-mapping> "

but you should see a problem anyway.

"Rose Girl" <ro*********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi

Need some help on javascript. I need to know how to call a servlet
from a javascript function.

web-inf (jboss) path for servlet is:
com.purpleace.ripple.admin.contacts.servlet.AdminR eport

web xml <servet-mapping> is :

<servlet-mapping>
<servlet-name>adminreport</servlet-name>
<url-pattern>
/servlet/com.purpleace.ripple.admin.contacts.servlet.AdminR epo
rt
</url-pattern>
</servlet-mapping>

I tried these but got this error: HTTP Status 404

- parent.frames['mainFrame'].location.replace
('com/purpleace/ripple/admin/contacts/servlet/AdminReport');

- parent.frames['mainFrame'].location.replace
('com.purpleace.ripple.admin.contacts.servlet.Admi nReport');
Thanks for your time
Rose


Jul 23 '05 #2
Servlet != servet.

both legit though.


"Rose Girl" <ro*********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi

Need some help on javascript. I need to know how to call a servlet
from a javascript function.

web-inf (jboss) path for servlet is:
com.purpleace.ripple.admin.contacts.servlet.AdminR eport

web xml <servet-mapping> is :

<servlet-mapping>
<servlet-name>adminreport</servlet-name>
<url-pattern>
/servlet/com.purpleace.ripple.admin.contacts.servlet.AdminR epo
rt
</url-pattern>
</servlet-mapping>

I tried these but got this error: HTTP Status 404

- parent.frames['mainFrame'].location.replace
('com/purpleace/ripple/admin/contacts/servlet/AdminReport');

- parent.frames['mainFrame'].location.replace
('com.purpleace.ripple.admin.contacts.servlet.Admi nReport');
Thanks for your time
Rose


Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Morgan | last post by:
I'm trying to get php to run on my webserver as a Java Servlet, it works the first time but fails the second time and crashes the JVM with the following error: I have tried the latest versions...
0
by: Jeff | last post by:
I am currently developing an application where I call command line programs and capture the output. This is fine. What I am doing is creating a web interface for these programs using...
3
by: ppcguy | last post by:
i've got a progress bar that tracks a process running on a server (java servlet). i know i can refresh the page and update the status...but this results in the page being redrawn everytime. ...
9
by: misdst23 | last post by:
Hi, I know I can call a static java method within javascript by using the <% ... %tags. But how can pass a javascript variable ? function thefunction() { var = javascriptvariable ;
0
by: nuhu jibrin | last post by:
Good day all, Please, i can't compile my ejb classes in JBoss-4.0.5.GA or JBoss-4.0.2 after proper installation (because i can log on to the server via http://localhost:8080/ after using ...
2
by: archanagp | last post by:
Hi, I am trying to develop a portlet which has a javascript function which uses ajax to call a servlet in the server. The portlet I am trying to develop is in websphere application developer. My...
6
by: Sushmita | last post by:
hi all, I have wrriten code for a small web application. From my JSP page i am not able to call the servlet.. its throwing an exception. "javax.servlet.ServletException: Wrapper cannot find...
1
by: khatarnakkhatri | last post by:
java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at...
2
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.