i used JBoss 7.1 and jquery,javascript
in my application JBoss server deploye Test.war--html,WEB-INF
<servlet>
<servlet-name>Test</servlet-name>
<servlet-class>
web.servlet.MainServlet
</servlet-class>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/Testing</url-pattern>
</servlet-mapping>
//this is web.xml configuration
my html code request is
var request = $.ajax({
type: "GET",
url: URL, //"Test/Test"
data: "data from js",
contentType:"text/xml",
processData:true,
cache :false
});
its worked done(local host:2014/Test/html/Signup.html).
now i want using apache2.4 html files kept in apache2.4/html and java files are in JBoss server(WEB-INF).
apache2.4 httpd.conf configuration is
Listen 85
ServerName localhost:2014
Require all granted under <directory>
DocumentRoot "C:/Apache24/html"
then opend login page(local host:85),then signup request sent
i got error in
request.fail(function){
alert("faile")
}
help me for this(i want work with simple local host:85).
i used JBoss 7.1 and jquery,javascript
in my application JBoss server deploye Test.war--html,WEB-INF
<servlet>
<servlet-name>Test</servlet-name>
<servlet-class>
web.servlet.MainServlet
</servlet-class>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/Testing</url-pattern>
</servlet-mapping>
//this is web.xml configuration
my html code request is
var request = $.ajax({
type: "GET",
url: URL, //"Test/Test"
data: "data from js",
contentType:"text/xml",
processData:true,
cache :false
});
its worked done(local host:2014/Test/html/Signup.html).
now i want using apache2.4 html files kept in apache2.4/html and java files are in JBoss server(WEB-INF).
apache2.4 httpd.conf configuration is
Listen 85
ServerName localhost:2014
Require all granted under <directory>
DocumentRoot "C:/Apache24/html"
then opend login page(local host:85),then signup request sent
i got error in
request.fail(function){
alert("faile")
}
help me for this(i want work with simple local host:85).
0 commentaires:
Enregistrer un commentaire