aspose file tools*
The moose likes JSP and the fly likes Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp" Watch "Jsp" New topic
Author

Jsp

gowtham thurangi
Greenhorn

Joined: Apr 05, 2011
Posts: 13

Hi all,
Iam calling servlet from jsp. And in servlet it calls the methods in the another java class. I need to know the whether the java class method is called or not in Jsp.

S Jothimani
Greenhorn

Joined: Jun 29, 2011
Posts: 9
Hi Gowtham,

I need to know the whether the java class method is called or not in Jsp.


Java class methods can be called in servlets or can be in JSP either using scriptless or using Expression Languages.

Can you please post your question a bit elloborate ?
gowtham thurangi
Greenhorn

Joined: Apr 05, 2011
Posts: 13

Hi,

Actually iam calling servlet from jsp and in servlet some files are created and for each file creation the file name is sent to java class method. And in the same java class one more method is there that method will return the filename . So that method am calling from the same jsp where i had called servlet. So servlet sents the filename to java method1. And from same jsp am calling another method in same java class method.
But am not getting filename to jsp.

Example :

i have jsp name = index.jsp
servlet name=process.java
java class name= message.java
java method1= setFilename (String name)
java method2=getFilename()

First index.jsp will process.java and it calls the getFilename() for every minute to get the filename. Internally servlet process.java will call the java method1 i.e; setFilename() and sets the filename. Iam getting the filename to java class.But am not getting the filename to jsp.
Can You Help me...

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

It sounds like you do not have a good grasp of what JSP is and how it operates, or of the proper methods of constructing web apps.

I suggest reading this article to understand how JSP works, and then this article to understand how they are used in a web app.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp