• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jsp

 
Greenhorn
Posts: 13
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic