Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes how to write text into Gmail Message Body by other browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to write text into Gmail Message Body by other browser" Watch "how to write text into Gmail Message Body by other browser" New topic
Author

how to write text into Gmail Message Body by other browser

umibe hosizora
Greenhorn

Joined: Apr 03, 2011
Posts: 2

I would like to do the following:

1. Open a web page → login gmail → compose mail
2. Open other web page → Select a bookmark, open a java webapp(worked in tomcat)
3. The webapp will copy some text into the above Gmail's Message Body

●bookmark uses bookmarklet(javascript).
umibe hosizora
Greenhorn

Joined: Apr 03, 2011
Posts: 2
if the two pages are different tabs in same browser , is it possible?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19759
    
  20

Proper browsers disallow this, as this behaviour (called cross-site scripting, or XSS) offers a great potential for hacking sites.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to write text into Gmail Message Body by other browser