*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19649
    
  18

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to write text into Gmail Message Body by other browser
 
Similar Threads
a question about google app and gmail
bookmarking of a request
Is there a mod_rewrite for Tomcat to make URLs SEO friendly?
What is the disadvantage of Post method?
is there a way to convert html to JSON