| |

VerySource

 Forgot password?
 Register
Search
View: 9|Reply: 1

xmlHttp.responseXML.getElementsByTagName cannot get the value, urgent

[Copy link]

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

Post time: 2020-2-23 14:00:01
| Show all posts |Read mode
If the requested address is a static XML file, it can be parsed normally, but when the request address is replaced with JSP, the XML content is written out in response.getWriter (). Write in the JSP, it cannot be received by the client. why? The XML content has been printed on the server:
<? xml version = "1.0" encoding = "UTF-8"?> <root> <ShopMember name = "zyaa"> <value> afaf </ value> </ ShopMember> <ShopMember name = "zyaaa"> <value > zyaa_a </ value> </ ShopMember> </ root>
Reply

Use magic Report

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

 Author| Post time: 2020-5-6 12:45:01
| Show all posts
Checked, it is said that you have to use Servlet, JSP seems not to work, I try it out, depressed.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list