Logging In To Outlook WebApp Using ApacheHttpClient

Jun 3, 2014

I've been trying to create a tool that extracts emails from inbox using Apache HttpClient, however I'm stuck at the logging in part itself.This is the code. (I've written it all in a main class and removed exception handling for brevity). More in code comments.

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.CookieHandler;
import java.net.CookieManager;
import java.util.ArrayList;
import java.util.List;

[code]....

Now the thing is, after execution I am returned the login-page again instead of the inbox, which leads me to believe that login did not take place at all.Also the response to the post method in the browser has two cookies "cdata"; "sessionid" populated with values however I get them as empty. I believe that I am losing my session between the first get request and the subsequent post.

View Replies


ADVERTISEMENT

JSP :: Providing Security To Webapp Folder

May 12, 2014

I have JSP application naming myProject ,which has been deployed in webapp folder in tomcat. I want to provide security for myProject folder. I mean, I want to protect it from copying by someone else. Is there any way to do the same. I tried by hiding the folder using one of hiding software, but when I do that, I was not able to access those files in web browser.

View Replies View Related

JSF :: Page Content In OUTLOOK Body Not Getting Breaks

Jun 3, 2014

I have a requirement. I got a JSF page(parent page). When a button(say SEND EMAIL) is pressed, an email window (OUTLOOK) will be displayed as a popup. I have to populate whatever the text data of parent page as the body of the mail.

I am using mailto method : eg :

Here is my code:
==============
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest origRequest = (HttpServletRequest) context.getExternalContext().getRequest();
context.getExternalContext().redirect(String.format("mailto:"+mailTo+"?subject=" + subject +"&body=" + body + "&cc="+mailCc+""));

till here it is fine..

My problem is body part is not getting breaks. I have tried
, ,
, <br>, <br></br> etc.. what ever stuff i found in google..

E.g. my email body looks like below.. it consists of url link also.

====================================================
Hi,

This is to inform you etc... ,

Please follow this Hyperlink link to navigate to your page.. etc.

regards..

======================================================

View Replies View Related

Web Services :: Invoke Client From Webapp Based On Some Scheduler

Nov 21, 2014

I need to invoke a restful webservice Client(Rest) from my Webapp based on some scheduler . Also I need to persist the data which the webservice returns in response. So basically-

1. Scheduler triggers, I need to build the rest service request (JSON) and invoke it.
2. Capture the response of the webservice and persist the data in DB.

Technical stack used- Spring MVC

View Replies View Related

Servlets :: How To Convert Webapp Into Desktop / Standalone Application

Nov 20, 2014

I have a web app using spring MVC + hibernate on the server side and jquery, ajax, javascript on the client side.

What I wish to do is to convert it into an exe file to make it standalone app.

Is there a software out there that can accomplish it? I don't want to recreate it from the scratch and I only know how to do web apps.

View Replies View Related

Open Source Java API For Creating Tasks To MS Outlook?

May 28, 2014

I am looking for pure java API to be able to create/read outlook tasks.

Any open source API's available for the same.

View Replies View Related

Read Encrypted TXT File (Outlook Item) In Java

Aug 4, 2014

I have an encrypted MSCONS.txt file as Outlook item. I also have a Digital Certificate file (Certificate.pfx) with a password.

How I can read the actual MSCONS.txt file in my java application? Any sample code snippet ...

View Replies View Related

Logging In Separate File

Oct 14, 2014

in log4j,in a web aplication i need loging in separate file,logging for action package in one file and dao in another file in action package log a class if this is possible in a class then a level in a file another level in another file.

View Replies View Related

Emailing Logging Reports

Feb 2, 2014


I've been working on a lesson in logging in Java, formatting in XML. I'm trying to add an appender to e-mail the error log, but can't seem to get it to work. Is there a piece I'm missing? The rest of my appenders are working fine. The error I get is that it cannot create an appender of this type. The console also seems to think that I defined the appender after I call for it, but it is above. Here is what I put together:

<appender name="EMAIL" class="ch.qos.logback.classic.net.SMTPAppender" >
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>

[Code] ....

And then call it within the logger:

<appender-ref ref="EMAIL" />

View Replies View Related

Web Services :: Logging In SOAP Transaction

Dec 21, 2014

I have created a SOAP client and initiate the transaction using proxy objects.Need to log the raw SOAP request/response XML message.

PaymentsAppServiceProxy proxy=new PaymentsAppServiceProxy();
QueryTransactionRequest request=new QueryTransactionRequest();
//Need to print the actual XML from the request
try {
QueryTransactionResponse response=proxy.queryTransaction(request);

[code]....

View Replies View Related

User Location After Logging In Java?

Nov 6, 2014

I am trying to find geo-location of a user after logging in... I referred [URL] but its too complicated for a java beginner like me.

View Replies View Related

Java EE SDK :: Any Way To Find How Many Users Are Logging On To Site

Dec 25, 2011

Is there a way to find how many users are logging on to my site at a specific time?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved