URLConnection problems(Sending parameters with URL)
Guys i have some problems with sending parameters through URL using URLConnection class.
That's my code:
URL url = new URL("http://kiosk.homebank.kz:9090/default.asp?action=SaveContact&src=C_HOMEBANK&ClientId="+request.getParameter("ClientId")+
"&IdService="+request.getParameter("IdService")+
"&Contact="+URLEncoder.encode(request.getParameter("Contact"),"utf-8")+
"&Number="+URLEncoder.encode(request.getParameter("Number"),"utf-8")+
"&Work="+URLEncoder.encode(request.getParameter("Work"),"utf-8")+
"&Mobile="+URLEncoder.encode(request.getParameter("Mobile"),"utf-8"));
URLConnection connection = url.openConnection();
connection.setDoInput(true);
connection.setDoOutput(true);I want just send these parameters without going to this link. How can i do it using URLConnection class? Help please!
Try using this set method in the URL class (query is the parameters):
protected void set(String protocol,
String host,
int port,
String authority,
String userInfo,
String path,
String query,
String ref)
Similar Messages
-
Problems sending emails with iPhone 3G and outlook exchange
I have a problem sending email with exchange. Receiving and answering mail works fine and calender updates work fine. However when I initiate an email from the phone it syncs and ends up in the sent folder in the computer but never reaches the recipient. I have tried this many times with different recipients and phones. It only happens from my iphone and ipad. Any suggestions?
Any help much appreciatedThe iPhone you returned is still syncing against your server and locking out your account. Someone possibly has access to your mail data. I'd recommend having your Exchange Administrator install the Microsoft Exchange Server ActiveSync Web Administration Tool (http://www.microsoft.com/downloads/details.aspx?FamilyID=E6851D23-D145-4DBF-A2CC -E0B4C6301453&displaylang=en) and attempt to wipe/delete/block that other iPhone.
Message was edited by: ethanm -
Problem sending attachements with gmail account on mail
Hello:
I have a lot of problems sending attachments with my gmail account using mail.
1. Attachments are not big.
2. I don't have the same problem with other non gmail accounts.
3. When ever I have this problem I go to gamil.com and I am able to send the attachment with no problem.
Any suggestions?
ThanksNo idea ?
Nemrod -
Problem sending mail with attachments???
Hi Everybody,
I have got a problem sending mail with attachments...
I am able to send a plain mail ... but when i am trying to send mail along with an attachment ... its not being sent....
its not showing any error it is simply hanging...
what should i do?
If u know any solns please do suggest me....
Thanks in advanceactivation.jar is already there...
initially i wrote a swing program as a front end and it was working abs fine... in my sense it was properly sending mails along with the attachments...
when i changed the front-end to JSP handled by Servlets i am getting a problem...
and even the swing program stopped working ...
now swing program is getting compiled but it is hanging at run time showing an exception "Exception occured during event dispatching"
i dont understand what probably may be the problem...
if u can trace out, please give me any suggestions
Thanks in advance and regards -
Xcode send post parameters with URL
Hello Developers
How are you?
I am a new developer at all and only 2 weeks working with Objective-c. I came from VoIP PBX World, knows little bit php, shell
So my question is:
I am working right now on Bill application for mobile operator
To send parameters in a blind mode by xcode
I installed POSTER Plugin to my Firefox that can emulate login with 2 parameters (login and password) to this web site and
return me a content from my account there.
So I don't know which instrument in XCODE can do the same as POSTER PLUGIN.
I have a link where I send parameters
"https://www.golantelecom.co.il/rpc/web.account.rpc.php?action=login&p_action="
and parameters I sent
Content-type: application/x-www-form-urlencoded
username=123456&password=PASSWORD
I can't send it from my browser like a get request in this case
https://www.golantelecom.co.il/rpc/web.account.rpc.php?action=login&p_action=use rname=123456&password=PASSWORD it's not working
How I can emulate this same from Xcode?
Very appreciate for your helpHi,
For this thing, you dnt need to use any plugin. What you can do is take the "username=123456&password=PASSWORD" text into string format. And convert that into some encoded format. Ask the server people decode the content what you are sending from device. Check the iPhone Code. May it works...
Eg:
NSMutableURLRequest *req = [[[NSMutableURLRequest alloc] init]autorelease];
[req setURL:[NSURL URLWithString:url]];
[req setHTTPMethod:kPOST];
[req setHTTPBody:[postParam dataUsingEncoding:NSUTF8StringEncoding]];
NSURLConnection *connGet = [[[NSURLConnection alloc]initWithRequest:req delegate:self] autorelease];
if(connGet)
NSLog(@"Connected successfully");
else {
[AppDelegate showAlert:kAlertUnableToConnect];
NSLog(@"Not connected successfully");
Thanks,
Rajesh.. -
Problem sending .pdf with email in ECC 6.0
hi there,
we are upgrading from r/3 4.6.c to ECC 6.0.
i have the following problem: in many z-ababs we convert spool-files to pdf-files and send them with function SO_NEW_DOCUMENT_ATT_SEND_API1 via email.
well, this is working okay, BUT: the ending '.pdf' is missing in the filename:
in R/3 4.6.c it looks like the following:
zfl_reporting.pdf
Now it looks like this:
zfl_reporting
So the file is not recognized as pdf-file. You have to add a .pdf manually to open it.
We can't do this as we send the pdf-files thousands of times to our customers.
Any ideas ?
reg, Martinhi
Posted below is the sample code..
find the bolded ones...
REPORT ZMAIL_PDF NO STANDARD PAGE HEADING.
Data for mailing purpose
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Spool table
TABLES : TSP01.
Data required for creating spool
DATA: MSTR_PRINT_PARMS LIKE PRI_PARAMS VALUE 'LP01',
MC_VALID(1),
MI_BYTECOUNT TYPE I,
MI_LENGTH TYPE I,
MI_RQIDENT LIKE TSP01-RQIDENT,
REP LIKE PRI_PARAMS-PLIST.
Internal table for capturing data into PDF format
DATA: MTAB_PDF LIKE TLINE OCCURS 0 WITH HEADER LINE.
File name
DATA : MC_FILENAME LIKE RLGRAP-FILENAME.
SELECTION SCREEN
PARAMETERS : P_REPID LIKE SY-REPID,
P_LINSZ LIKE SY-LINSZ DEFAULT 132,
P_PAART LIKE SY-PAART DEFAULT 'X_65_132'.
START-OF-SELECTION.
<b> CONCATENATE 'C:\'
P_REPID
'.PDF'
INTO MC_FILENAME.</b>
MOVE SY-REPID TO REP.
Get print parameters
PERFORM GET_PRINT_PARAMS.
Send output of the required program to Spool
SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS MSTR_PRINT_PARMS
VIA SELECTION-SCREEN AND RETURN.
Get the the spool number that is just created
PERFORM GET_SPOOL_NUMBER USING SY-REPID SY-UNAME
CHANGING MI_RQIDENT.
Convert Spool to PDF & download the same
PERFORM SPOOL_2_PDF.
Upload downloaded PDF file for mailing
PERFORM UPLOAD_PDF_FILE.
Send mail with PDF attachment
PERFORM SEND_MAIL.
FORM get_spool_number *
Get the most recent spool created by user/report *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid
f_uname
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = sy-repid
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
*& Form send_mail
text
--> p1 text
<-- p2 text
form send_mail.
Creation of the document to be sent
DOC_CHNG-OBJ_NAME = 'TEST'.
DOC_CHNG-OBJ_DESCR = 'TEST MAIL WITH PDF ATTACHMENT'. "mail subject
OBJTXT = 'Test mail with PDF attachment'.
APPEND OBJTXT.
CLEAR OBJTXT.
APPEND OBJTXT.
APPEND OBJTXT.
OBJTXT = 'Please double click the attachment to verify'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'Sample PDF attachement'. "
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
<b> OBJPACK-DOC_TYPE = 'PDF'.</b>
OBJPACK-OBJ_NAME = 'TEST'.
OBJPACK-OBJ_DESCR = 'Test.PDF'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
For sending mail to Internet Address
RECLIST-RECEIVER = '[email protected].
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE :/ 'MAIL SENT....'.
WHEN 1.
WRITE :/ 'TOO MANY RECEIVERS'.
WHEN 2.
WRITE :/ 'DOCUMENT NOT SENT'.
WHEN 4.
WRITE :/ 'NO SEND AUTHORIZATION'.
WHEN OTHERS.
WRITE :/ 'ERROR OCCURED WHILE SENDING MAIL'.
ENDCASE.
endform. " send_mail
*& Form GET_PRINT_PARAMS
FORM GET_PRINT_PARAMS.
call function 'GET_PRINT_PARAMETERS'
exporting destination = 'LP01'
copies = 1
list_name = rep
list_text = 'LIST ..... TO SAP-SPOOL'
immediately = 'X'
release = 'X'
new_list_id = 'X'
expiration = 1
line_size = 132
line_count = 65
layout = 'X_PAPER'
sap_cover_page = 'X'
cover_page = 'X'
receiver = sy-uname
department = 'System'
no_dialog = 'X'
importing out_parameters = mstr_print_parms
valid = mc_valid.
ENDFORM. " GET_PRINT_PARAMS
*& Form SPOOL_2_PDF
FORM SPOOL_2_PDF.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
call function 'WS_DOWNLOAD'
exporting
bin_filesize = mi_bytecount
<b> filename = mc_filename</b>
filetype = 'BIN'
tables
data_tab = mtab_pdf
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
ENDFORM. " SPOOL_2_PDF
*& Form UPLOAD_PDF_FILE
FORM UPLOAD_PDF_FILE.
call function 'WS_UPLOAD'
exporting
<b> filename = mc_filename</b>
filetype = 'BIN'
tables
data_tab = OBJBIN
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
ENDFORM. " UPLOAD_PDF_FILE
**reward if helpful
regards,
madhumitha -
Problem sending email with attachment by android
Good Morning, I'm Luca.
I have this problem:
through a smartphone with Android system,
synchronized via ActiveSync, the user
is unable to send emails with attachments.
While you can receive them and
open them without problem.
We have a server with Exchange 2010.
Is there any authorization that I have to give
you?
Other devices, always with Android system,
with other accounts of course,
does not have the same problem.
Thank you very much
Best regardsLuca, if one user is able to send attachments, the other should be able to as well. However, if an attachment is too large, it won't be delivered.
Agreed, This does sound like a size limitation issue.
Have the person try to send the same file from his outlook on his PC and see if he can send it out, that should be a good indication. -
Problem sending emails with exchange server
Hello,
I have a MacBook pro OS X 10.9.2 and I am unable to send emails through Mail (I have an exchange account). Everything was working well until yesterday: I could send and receive emails through my exchange account using Mail. I can still receive all my messages but I can't send anything now.
My internet connexion is fine, and I am able to connect to my exchange account on internet. I also have an ipad and I don't have any problem sending/receiving emails. Can somebody help me with this issue ?
Thanks a lot in advance !OS X Mail: Troubleshooting sending and receiving email messages
-
Problem sending mail with roaming profile (Outlook 2010)
Hello all,
I hope you will be able to help me.
Here's the problem I have with Outlook 2010:
When a user opens a roaming profile on another
PC or on his new
PC, everything works perfectly except
Outlook.
Outlook opens normally with all email
accounts, you can even see the email, no worries
about that.
But when we want to send an email, it
gets stuck in the outbox.
Some additional info:
- In the account settings,
you can test the account settings, it says
that everything is working (sending and receiving)
- The only way I found today to
operate the account is to
completely remove and reconfigure
- There is an error message
that says I can not write on the file C:\Users\UserName\AppData\Roaming\Microsoft\Outlook\accountName.pst
- The problem occurs with
all users, not just one in particular
- The accounts are IMAP
- Incoming emails work
Thank you for your help.Hi Tim,
This is a known issue in Outlook, we don't recommend using IMAP account with roaming profile.
For more information, you might want to read this similar thread:
https://social.technet.microsoft.com/Forums/office/en-US/f9b1bf03-d468-46e8-b40d-76fac11fd66c/outlook-2010-creates-new-imap-pst-files-at-random-and-cannot-send-mail-roaming-profiles-and-imap?forum=outlook
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Problem sending emails with gmail on iPhone
Everytime I send email with gmail on my iPhone. The message doesn't show up in the folder sent messages (only on the server). This never happens with my iCloud account or when I send email from Mail in osx. Does anyone have a solution for this?
Take a look at this link, https://discussions.apple.com/message/21206691#21206691
-
Problem sending email with Yahoo ISP
All of a sudden today could not send emails (receive emails OK) on all 3 computers on two different sub accounts using the old flash.net ISP (Yahoo). I'm using Apple Mail 2.1. Called Yahoo and had to change the outgoing mail server from mail.flash.net to smtp.sbcglobal.net and all 3 computers were able to send mail again.
Interestingly tried it on Entourage and didn't work. smtp.flash.yahoo.com worked for send email with Entourage. Didn't know the outgoing mail server was application dependent. Thought maybe this information would save sombody a call to yahoo. Terry
Power Mac G4 1 GHz Dual Mac OS X (10.4.8)Interesting.
A mail server is a mail server, is a mail server.
Usually, the SMTP server config will either work or it won't.
Interesting that your Mail.app needs one config, and entourage another.
I'll bet entourage will need to have the new config soon, or there was something else borked on your Mail.app config. -
Caching problem for iViews with URL parameters
Hi,
We have a big problem with <b>iView caching.</b>
Our objective is to use <b>SAP Netweaver Portal 2004s & External Facing portal </b> for a public Internet Portal
For performances reasons we need to activate iviews caching on the principal iviews. But the problem is that a page called with different parameters generates exactly the same html result
<u>example --> The display of a news item:</u>
/irj/portal/anonymous/index.htm?rid=/news_123.xml
gives the same cached result as
/irj/portal/anonymous/index.htm?rid=/news_456.xml
The caching level is "shared" because all users are anonymous !
The iview caching seems to be occuring on component (iView) level and not on URL level
Can someone help ?
At the moment we have performances of 10 seconds for a page, and with caching it's becoming less than 1 second, so we really need the caching !!!
Thanks
LaurentHello
I hope you get your answer since, nevertheless it could help other.
Have you tried to put the cache level to "session" instead of "user" or "shared" at the iview level?
Regards
Benoit -
Problem sending form with fmt:message key=" " / tag system and jsp code
I have developt my new web page using jsp. I have done a booking form, please se below here. There are two pages, bookings.jsp and booking_sent.jsp. The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
The problem i have is when i send the form it opens a page where you only see all the tags, no text at all. For more information follow this link and try out the form;
http://www.neptunediving.com/neptune/general/bookings.jsp/
When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
BOOKINGS.JSP
<%@page import="com.neptunediving.*"%>
<%@include file="../WEB-INF/include/LangSupport.jsp"%>
<%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><fmt:message key="bookings.title1" /></title>
<META NAME="description" Content="<fmt:message key="bookings.description1" />
<fmt:message key="bookings.description2" />
<fmt:message key="bookings.description3" />">
<meta name="keywords" CONTENT="<fmt:message key="bookings.keywords1" />
<fmt:message key="bookings.keywords2" />
<fmt:message key="bookings.keywords3" />">
<meta name="robots" CONTENT="index, follow">
<link rel="shortcut icon" href="favicon.ico" >
<meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
<meta name="Author" CONTENT="Jesper Nykvist">
<META NAME="revisit-after" CONTENT="45 days">
<META NAME="classification" CONTENT="diving">
<META NAME="classification" CONTENT="scuba">
<META NAME="classification" CONTENT="accommodation">
<META NAME="classification" CONTENT="travel">
<META NAME="classification" CONTENT="restaurants">
<META NAME="distribution" CONTENT="global">
<meta name="FreeFind" content="neverFollowScript">
<meta name="FreeFind" content="noFollowQueries">
<link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="Return"></a>
<div class="pageHead">
<div align="center"><%@include
file="../WEB-INF/include/header.jsp"%></div>
</div>
<table class="nav" cellspacing="0">
<tbody>
<%@include file="../WEB-INF/include/bookings.jsp"%>
<table width="100%" height="362" cellspacing="0" class="listTable">
<tbody>
<tr class="subhead">
<td width="54%" height="31"><%@include
file="../WEB-INF/include/freefind.jsp"%></td>
<td width="46%">
<h1><span class="date"> <%@include
file="../WEB-INF/include/showtime.jsp"%> </span></h1>
</td>
</tr>
<tr>
<td height="169" colspan="2">
<h2 align="center" class="listTable"><fmt:message key="general.bookings.header1" /></h2>
<h2 align="center" class="listTable"><fmt:message key="general.bookings.header2" /></h2>
<hr />
<p align="center"><fmt:message key="general.bookings.header3" />
<fmt:message key="general.bookings.header4" />
<fmt:message key="general.bookings.header5" /></p>
<p align="center"><fmt:message key="general.bookings.header6" />
<fmt:message key="general.bookings.header7" />
<fmt:message key="general.bookings.header8" /></p>
<hr />
</td>
</tr>
<tr>
<td height="20" colspan="2">
<form id="bookings" name="bookings" method="post"
action="booking_sent.jsp">
<h2 class="newsBody"><fmt:message key="general.bookings.header9" /></h2>
<table width="100%" border="1" cellpadding="4">
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text1" /></p>
</td>
<td width="30%"><input type="text" name="from" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text2" /></p>
</td>
<td width="30%"><input type="text" name="email" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text3" /></p>
</td>
<td width="30%"><select name="region">
<option><fmt:message key="general.bookings.text4" /></option>
<option><fmt:message key="general.bookings.text5" /></option>
<option><fmt:message key="general.bookings.text6" /></option>
<option><fmt:message key="general.bookings.text7" /></option>
<option><fmt:message key="general.bookings.text8" /></option>
<option><fmt:message key="general.bookings.text9" /></option>
<option><fmt:message key="general.bookings.text10" /></option>
<option><fmt:message key="general.bookings.text11" /></option>
<option><fmt:message key="general.bookings.text12" /></option>
<option><fmt:message key="general.bookings.text13" /></option>
<option><fmt:message key="general.bookings.text14" /></option>
</select>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text15" /></p>
</td>
<td width="30%"><select name="language">
<option><fmt:message key="general.bookings.text16" /></option>
<option><fmt:message key="general.bookings.text17" /></option>
<option><fmt:message key="general.bookings.text18" /></option>
<option><fmt:message key="general.bookings.text19" /></option>
<option><fmt:message key="general.bookings.text20" /></option>
<option><fmt:message key="general.bookings.text21" /></option>
<option><fmt:message key="general.bookings.text22" /></option>
<option><fmt:message key="general.bookings.text23" /></option>
<option><fmt:message key="general.bookings.text24" /></option>
<option><fmt:message key="general.bookings.text25" /></option>
<option><fmt:message key="general.bookings.text26" /></option>
</select>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text27" />
<fmt:message key="general.bookings.text28" />
<fmt:message key="general.bookings.text29" /></p>
</td>
<td width="30%">
<p class="listTable"><fmt:message key="general.bookings.text30" /><input type="radio"
name="mailing" value="Yes" />
<class="listTable"><fmt:message key="general.bookings.text31" /><input type="radio"
name="mailing" value="No" checked="checked" /></p>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text32" /></p>
</td>
<td width="30%"><select name="find us">
<option><fmt:message key="general.bookings.text33" /></option>
<option><fmt:message key="general.bookings.text34" /></option>
<option><fmt:message key="general.bookings.text35" /></option>
<option><fmt:message key="general.bookings.text36" /></option>
<option><fmt:message key="general.bookings.text37" /></option>
<option><fmt:message key="general.bookings.text38" /></option>
<option><fmt:message key="general.bookings.text39" /></option>
<option><fmt:message key="general.bookings.text40" /></option>
<option><fmt:message key="general.bookings.text41" /></option>
<option><fmt:message key="general.bookings.text42" /></option>
</select>
</td>
</tr>
<tr>
</table>
<br />
<h2 class="newsBody"><fmt:message key="general.bookings.text43" /></h2>
<table width="100%" border="1" cellpadding="4">
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text44" /></p>
</td>
<td width="30%"><input type="text" name="flight no, from"
size="30" maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text45" /></p>
</td>
<td width="30%"><input type="text"
name="arrival time, place" size="30" maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text46" />
<fmt:message key="general.bookings.text47" /></p>
</td>
<td width="30%">
<p class="listTable"><fmt:message key="general.bookings.text48" /><input type="radio"
name="transport" value="Pick-up" />
<class ="listtable="listTable""><fmt:message key="general.bookings.text49" /><input type="radio"
name="transport" value="Bus" checked="checked" /></p>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text50" /></p>
</td>
<td width="30%"><input type="text" name="stay from" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text51" /></p>
</td>
<td width="30%"><input type="text" name="stay to" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text52" /></p>
</td>
<td width="30%"><input type="text" name="guests (adults)" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text53" /></p>
</td>
<td width="30%"><input type="text" name="guests (children)" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text54" /></p>
</td>
<td width="30%"><input type="text" name="rooms (fan)" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text55" /></p>
</td>
<td width="30%"><input type="text" name="rooms (air-con)" size="30"
maxlength="25" />
</td>
</tr>
<tr>
</table>
<br />
<h2 class="newsBody"><fmt:message key="general.bookings.text56" /></h2>
<table width="100%" border="1" cellpadding="4">
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text57" /></p>
</td>
<td width="30%">
<p class="listTable"><fmt:message key="general.bookings.text58" /><input type="radio"
name="certified diver" value="Yes" />
<class="listTable"><fmt:message key="general.bookings.text59" /><input type="radio"
name="certified diver" value="No" checked="checked" /></p>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text60" />
<fmt:message key="general.bookings.text61" /></p>
</td>
<td width="30%">
<p class="listTable"><fmt:message key="general.bookings.text62" /><input type="radio"
name="introductory course" value="Yes" />
<class ="listTable""><fmt:message key="general.bookings.text63" /><input type="radio"
name="introductory course" value="No" checked="checked" /></p>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text64" /></p>
</td>
<td width="30%"><select name="where to dive">
<option><fmt:message key="general.bookings.text65" /></option>
<option><fmt:message key="general.bookings.text66" /></option>
<option><fmt:message key="general.bookings.text67" /></option>
</select></td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text68" /></p>
</td>
<td width="30%"><select name="dive course(s)">
<option><fmt:message key="general.bookings.text69" /></option>
<option><fmt:message key="general.bookings.text70" /></option>
<option><fmt:message key="general.bookings.text71" /></option>
<option><fmt:message key="general.bookings.text72" /></option>
<option><fmt:message key="general.bookings.text73" /></option>
<option><fmt:message key="general.bookings.text74" /></option>
<option><fmt:message key="general.bookings.text75" /></option>
<option><fmt:message key="general.bookings.text76" /></option>
<option><fmt:message key="general.bookings.text77" /></option>
<option><fmt:message key="general.bookings.text78" /></option>
<option><fmt:message key="general.bookings.text79" /></option>
<option><fmt:message key="general.bookings.text80" /></option>
</select>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text81" /></p>
</td>
<td width="30%"><input type="text" name="other dive course"
size="30" maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text82" /></p>
</td>
<td width="30%"><select name="divepackage / safari">
<option><fmt:message key="general.bookings.text83" /></option>
<option><fmt:message key="general.bookings.text84" /></option>
<option><fmt:message key="general.bookings.text85" /></option>
<option><fmt:message key="general.bookings.text86" /></option>
<option><fmt:message key="general.bookings.text87" /></option>
<option><fmt:message key="general.bookings.text88" /></option>
<option><fmt:message key="general.bookings.text89" /></option>
<option><fmt:message key="general.bookings.text90" /></option>
<option><fmt:message key="general.bookings.text91" /></option>
<option><fmt:message key="general.bookings.text92" /></option>
<option><fmt:message key="general.bookings.text93" /></option>
</select>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text94" /></p>
</td>
<td width="30%"><input type="text" name="dive package or safari from" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.bookings.text95" /></p>
</td>
<td width="30%"><input type="text" name="dive package or safari to" size="30"
maxlength="25" />
</td>
</tr>
<tr>
</table>
<br />
<h2 class="newsBody"><fmt:message key="general.bookings.text96" /></h2>
<fmt:message key="general.bookings.text97" />
<fmt:message key="general.bookings.text98" />
<fmt:message key="general.bookings.text99" /></p>
<div align="left"> <textarea name="comments" cols="55" rows="10"></textarea>
<div>
<br />
<input name="Submit" type="submit" value="<fmt:message key="general.bookings.button1" />" />
<input type="reset" name="Clear form and start again..!"
value="<fmt:message key="general.bookings.button2" />" /></p>
</form>
</td>
</tr>
<tr>
<td height="29" colspan="2"><a href="#Return"><img
src='<%=URLHelper.getURL("images/arrow.gif")%>'
alt="Return to top" width="21" height="21" border="0" /></a>
<fmt:message key="general.bookings.link1" />
</td>
</tr>
<tr>
<td height="105" colspan="2">
<hr />
<div class="pageFoot">
<div align="center"><font size="-1"><b><font
size="3" face="Verdana, Arial, Helvetica, sans-serif"> <%@include
file="../WEB-INF/include/footer.jsp"%>
</div>
</td>
</tr>
</tbody>
</table>
<p><br style="clear: both;" />
</p>
</tbody>
</table>
</body>
</html>
BOOKING_SENT.JSP
<%@page import="com.neptunediving.*"%>
<%@include file="../WEB-INF/include/LangSupport.jsp"%>
<%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
<%
String message;
message = "Booking";
message += "\r\nFrom: " + request.getParameter("from");
message += "\r\nEmail: " + request.getParameter("email");
message += "\r\nRegion: " + request.getParameter("region");
message += "\r\nlanguage: " + request.getParameter("language");
message += "\r\nMailing: " + request.getParameter("mailing");
message += "\r\nFind us: " + request.getParameter("find us");
message += "\r\nFlight: " + request.getParameter("flight no, from");
message += "\r\nArrival: " + request.getParameter("arrival time, place");
message += "\r\nPickup: " + request.getParameter("transport");
message += "\r\nStay from: " + request.getParameter("stay from");
message += "\r\nStay to: " + request.getParameter("stay to");
message += "\r\nAdult: " + request.getParameter("guests (adults)");
message += "\r\nChildren: " + request.getParameter("guests (children)");
message += "\r\nFan: " + request.getParameter("rooms (fan)");
message += "\r\nAir-con: " + request.getParameter("rooms (air-con)");
message += "\r\nCertification: " + request.getParameter("certified diver");
message += "\r\nIntroductory dive: " + request.getParameter("introductory course");
message += "\r\nWhere to dive: " + request.getParameter("where to dive");
message += "\r\nDive courses: " + request.getParameter("dive course(s)");
message += "\r\nOther dive course: " + request.getParameter("other dive course");
message += "\r\nDive package or safari: " + request.getParameter("divepackage / safari");
message += "\r\nDive package or safari from: " + request.getParameter("dive package or safari from");
message += "\r\nDive package or safari to: " + request.getParameter("dive package or safari to");
message += "\r\nComments: " + request.getParameter("comments");
Mailer mailer = new Mailer();
mailer.sendMail(request.getParameter("from") + "<" + request.getParameter("email") + ">",
"booking_sent",
message);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><fmt:message key="booking_sent.title1" /></title>
<META NAME="description" Content="<fmt:message key="booking_sent.description1" />
<fmt:message key="booking_sent.description2" />
<fmt:message key="booking_sent.description3" />">
<meta name="keywords" CONTENT="<fmt:message key="booking_sent.keywords1" />
<fmt:message key="booking_sent.keywords2" />
<fmt:message key="booking_sent.keywords3" />">
<meta name="robots" CONTENT="index, follow">
<link rel="shortcut icon" href="favicon.ico" >
<meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
<meta name="Author" CONTENT="Jesper Nykvist">
<META NAME="revisit-after" CONTENT="45 days">
<META NAME="classification" CONTENT="diving">
<META NAME="classification" CONTENT="scuba">
<META NAME="classification" CONTENT="accommodation">
<META NAME="classification" CONTENT="travel">
<META NAME="classification" CONTENT="restaurants">
<META NAME="distribution" CONTENT="global">
<meta name="FreeFind" content="neverFollowScript">
<meta name="FreeFind" content="noFollowQueries">
<link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="Return"></a>
<div class="pageHead">
<div align="center"><%@include
file="../WEB-INF/include/header.jsp"%></div>
</div>
<table class="nav" cellspacing="0">
<tbody>
<%@include file="../WEB-INF/include/bookings.jsp"%>
<table width="100%" height="362" cellspacing="0" class="listTable">
<tbody>
<tr class="subhead">
<td width="54%" height="31"><%@include
file="../WEB-INF/include/freefind.jsp"%></td>
<td width="46%">
<h1><span class="date"> <%@include
file="../WEB-INF/include/showtime.jsp"%> </span></h1>
</td>
</tr>
<tr>
<td height="169" colspan="2">
<h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header1" /></h2>
<h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header2" /></h2>
<hr />
<p align="center"><fmt:message key="general.booking_sent.header3" />
<fmt:message key="general.booking_sent.header4" />
<fmt:message key="general.booking_sent.header5" /></p>
<p align="center"><fmt:message key="general.booking_sent.header6" />
<fmt:message key="general.booking_sent.header7" />
<fmt:message key="general.booking_sent.header8" /></p>
<hr />
</td>
</tr>
<tr>
<td height="20" colspan="2">
<form id="bookings" name="bookings" method="post"
action="booking_sent.jsp">
<h2 class="newsBody"><fmt:message key="general.booking_sent.header9" /></h2>
<table width="100%" border="1" cellpadding="4">
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text1" /></p>
</td>
<td width="30%"><input type="text" name="from" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text2" /></p>
</td>
<td width="30%"><input type="text" name="email" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text3" /></p>
</td>
<td width="30%"><select name="region">
<option><fmt:message key="general.booking_sent.text4" /></option>
<option><fmt:message key="general.booking_sent.text5" /></option>
<option><fmt:message key="general.booking_sent.text6" /></option>
<option><fmt:message key="general.booking_sent.text7" /></option>
<option><fmt:message key="general.booking_sent.text8" /></option>
<option><fmt:message key="general.booking_sent.text9" /></option>
<option><fmt:message key="general.booking_sent.text10" /></option>
<option><fmt:message key="general.booking_sent.text11" /></option>
<option><fmt:message key="general.booking_sent.text12" /></option>
<option><fmt:message key="general.booking_sent.text13" /></option>
<option><fmt:message key="general.booking_sent.text14" /></option>
</select>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text15" /></p>
</td>
<td width="30%"><select name="language">
<option><fmt:message key="general.booking_sent.text16" /></option>
<option><fmt:message key="general.booking_sent.text17" /></option>
<option><fmt:message key="general.booking_sent.text18" /></option>
<option><fmt:message key="general.booking_sent.text19" /></option>
<option><fmt:message key="general.booking_sent.text20" /></option>
<option><fmt:message key="general.booking_sent.text21" /></option>
<option><fmt:message key="general.booking_sent.text22" /></option>
<option><fmt:message key="general.booking_sent.text23" /></option>
<option><fmt:message key="general.booking_sent.text24" /></option>
<option><fmt:message key="general.booking_sent.text25" /></option>
<option><fmt:message key="general.booking_sent.text26" /></option>
</select>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text27" />
<fmt:message key="general.booking_sent.text28" />
<fmt:message key="general.booking_sent.text29" /></p>
</td>
<td width="30%">
<p class="listTable"><fmt:message key="general.booking_sent.text30" /><input type="radio"
name="mailing" value="Yes" />
<class="listTable"><fmt:message key="general.booking_sent.text31" /><input type="radio"
name="mailing" value="No" checked="checked" /></p>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text32" /></p>
</td>
<td width="30%"><select name="find us">
<option><fmt:message key="general.booking_sent.text33" /></option>
<option><fmt:message key="general.booking_sent.text34" /></option>
<option><fmt:message key="general.booking_sent.text35" /></option>
<option><fmt:message key="general.booking_sent.text36" /></option>
<option><fmt:message key="general.booking_sent.text37" /></option>
<option><fmt:message key="general.booking_sent.text38" /></option>
<option><fmt:message key="general.booking_sent.text39" /></option>
<option><fmt:message key="general.booking_sent.text40" /></option>
<option><fmt:message key="general.booking_sent.text41" /></option>
<option><fmt:message key="general.booking_sent.text42" /></option>
</select>
</td>
</tr>
<tr>
</table>
<br />
<h2 class="newsBody"><fmt:message key="general.booking_sent.text43" /></h2>
<table width="100%" border="1" cellpadding="4">
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text44" /></p>
</td>
<td width="30%"><input type="text" name="flight no, from"
size="30" maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text45" /></p>
</td>
<td width="30%"><input type="text"
name="arrival time, place" size="30" maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text46" />
<fmt:message key="general.booking_sent.text47" /></p>
</td>
<td width="30%">
<p class="listTable"><fmt:message key="general.booking_sent.text48" /><input type="radio"
name="transport" value="Pick-up" />
<class ="listtable="listTable""><fmt:message key="general.booking_sent.text49" /><input type="radio"
name="transport" value="Bus" checked="checked" /></p>
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text50" /></p>
</td>
<td width="30%"><input type="text" name="stay from" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text51" /></p>
</td>
<td width="30%"><input type="text" name="stay to" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text52" /></p>
</td>
<td width="30%"><input type="text" name="guests (adults)" size="30"
maxlength="25" />
</td>
</tr>
<tr>
<td width="70%">
<p class="listTable"><fmt:message key="general.booking_sent.text53" /></p>
</td>
<td width="30%"><input type="text" name="guests (children)" size="30"
maxlength="25" />
</td>
Nope, can't delete posts on this forum,
I have developed my new web page using jsp. I have done a booking form,
There are two pages, bookings.jsp and booking_sent.jsp.
The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
The problem i have is when i send the form it opens a page where you only see all the tags, no text at all.
For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
Tried going to that URL and got an error page served by Apache Webserver
Maybe you haven't got the correct connector going between the webserver and the application server? -
Have an annoying problem with sending out emails. I am running Mail 4.2.
If there are any URL's in the mail body copy or URL's in any document that is attached, the email just refuses to go out. An error message is returned with ' cannot send message using the server ...' with options like 'Edit Message' 'Try later' 'Edit SMTP Server List' etc., However, if all URL's are removed from the email body and the attached document (if any) the mail goes through.
Can someone please tell me how to solve this. Sending URL's in an email is very important to me.
I use my domain email hosted on godaddy servers. email.secureserver.com. Emails of the same domain configured on windows machines work perfectly.Hi Roger. Thanks much. I configured Gmail and it goes through with Gmail SMTP. I will take this up with godaddy guys.
You've been of great help.
Thanks Again! -
Problem sending emails with Mac Mail 1.3.11
Desperately in need of help. I'm able to receive but not send email using Mac Mail. I keep getting an error message:
"This message could not be delivered and will remain in your Outbox until it can be delivered.
The sender address [email protected] was rejected by the server"
I have already tried the following at the advice of AppleCare reps:-
Have verified & repaired disk utilities & keychains
Have reinstalled the operating system
Have trashed the mail.plist file
Have trashed the outbox.mbox file
Getting quite frustrated now because we have a mac bookpro with identical mail settings and it is able to send and receive mail without any problems.Could it be the version of Mail I'm running ?
I initially thought that the problem related to having switched to a new ISP but the fact that one of the mac's has no problem has led me to be less convinced of that idea.
Any suggestions gratefully accepted.
Many thanksI am having the same problem exactly. I can read e-mail, but get the same error message trying to send it. I can't use .Mac anymore--have to use alternate e-mail for the last month--since some time in October 2006.
I haven't changed anything on my G4, haven't upgraded anything, and the problem started about the time .Mac reported some customers were unable to use Mail for a couple of days in October.
I see nobody answered your post. Did you ever get your mail to work? I have repaired permissions, but I don't think it has anything to do with that.
Thanks,
iMama
G4 Quicksilver 867Mhz 60GB Mac OS X (10.3.8) Maxtor 120GB internal; LaCie 150GB external HD
Maybe you are looking for
-
What's iOS is the best performance for iP4 & 3Gs
Hi all guys here. How are you all guys? I'm new here. I'm now running IOS 4.1 for my both iPhone(3Gs and 4) But i want the new features. Can anyone here recommend me what the best IOS for iP3Gs and iP4? ( d best performance ) Without battery draining
-
OS X crashing to much...errr
Hey guys so basically my mac was perfect when my bro gave it to me. its a powermac G4, and i reformatted recentley due to crashing problems. Whenever i have Azureus open, with lets say itunes, or more than one program it crashes. the whole screen dim
-
How to create an handle for Miniport driver Ioctl interface?
Hi All, I am trying to create an handle for my miniport driver Ioctl interface, but it showing the following error while opening the handle with CreateFile API. "you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprec
-
Where is the January Upgrade for iPod Touch?
I have been attempting to download the January Upgrade for iPod Touch for days. I cannot find where to download it. Several people have given me links, but it gives me a message box that says it is unavailible in the United States. What do I do?
-
Weblogic apache plugin and webservices
Can I use the weblogic plugin on a DMZ based Apache server and use a 3 tier architecture to implement webservices. Using this model can a external application contact my webservices running in my internal network and can my weblogic/webservices serve