File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes IDEA: web-based JSP editor for final markups... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "IDEA: web-based JSP editor for final markups..." Watch "IDEA: web-based JSP editor for final markups..." New topic
Author

IDEA: web-based JSP editor for final markups...

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Hi!
I just popped an idea in my head: wouldn't it be nice to have a webapp/dev directory (just like webapp/admin), where you could do some markups to your JSP after the app is deployed (so you don't have to change stuff on your computer and redeploy it, or ssh to the other machine - its nasty)... The basic outline of the editor is:
____________________________________________________
Top frame: This is where you see the page
____________________________________________________
Bottom frame: This is where you see its source code in a big ass textarea with a button such as modify
____________________________________________________
Both top frame and bottom frame are no problem to do... bottom one is simple file operations.
However, there's a problem. I want it to be so that whenever you click on a href in the top frame, the bottom frame also gets signaled to move to that page and do its thing...
So, is there anyway to signal from the top frame whenever you click on a href without modifying anything in the page itself?
Thank you, your help is greatly appreciated
Ivan
ib idris
Greenhorn

Joined: Aug 02, 2003
Posts: 29
Hi,
I don't really understand what you mean by signalling. So on top you have some JSP as a sort of preview and down the text of the JSP in a textarea. I see 1 problem. What happens if your JSP has a textarea wouldn't it get cut off in your big ass textarea. Nesting textarea in HTML forms is not allowed as far as I know. Or maybe I misread your intentions.
http://galileo.spaceports.com/~ibidris/
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
As far as I know, whatever text's in textarea isn't interpreted as HTML
ib idris
Greenhorn

Joined: Aug 02, 2003
Posts: 29
Hi,
yes but the textarea tag itself is an exception. Try nesting text areas.
http://galileo.spaceports.com/~ibidris/
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
ANYHOW
that's not the problem I am gonna face.. I will solve it by simply changing textarea to another tag. What I was asking is HOW can you send a message from 1 frame to another. Please dont chagne the subject this time.
ib idris
Greenhorn

Joined: Aug 02, 2003
Posts: 29
Yes,
ok how about a href="blabla" onLick="doYourTHing(params)"
doyourthing(params)
{
parent.bottomFrame.location.href = params;
}
Is that the idea?
http://galileo.spaceports.com/~ibidris/
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Yes, except that I explicitly asked for a way where you wouldn't have to modify anything in the web page you are viewing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IDEA: web-based JSP editor for final markups...