2-way SMS with JSP Server

2-way SMS with JSP Server SearchSearch
Author Message
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3609
Registered: 10-2002
Posted on Wednesday, October 20, 2004 - 10:02 pm:   

I received the following question via e-mail, and just thought I'd share this with the knowledge base on our forum.


quote:

hi..

currently, I am using nowSMS and try to use 2 way SMS that connect to my jsp server. When now SMS reply to sender, it said that command not complete. Request returned invalid content type: text/html.

I try to add this single tag into my JSP pages
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/plain">

but it still does not work.

Q1: Can you solve this problem?
Q2: Can you send me a sample pages that contain meta data text/plain?




I am not an expert in JSP, however the solution is to include the following in your response:

<%@ page contentType="text/plain" %>

This directive is for the JSP server, telling it the content type of your response so that the JSP server returns the correct content type in the HTTP header.