• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp

 
gowtham thurangi
Greenhorn
Posts: 13
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic