File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes give another jsp to action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "give another jsp to action" Watch "give another jsp to action" New topic
Author

give another jsp to action

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
this is my jsp


i need to send this bean another jsp.where should i declare that jsp?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Define the another JSP wherever in the context (from where it is accessible) and try using the bean like this:


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
ok.but i need to know when i click the submit button it should go to another jsp.how to do that?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Try,
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

(With the caveat that submitting to JSPs is considered poor practice.)
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
can i map a jsp using Deployment Discripter.
as example this is the way we map servlet


Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Please Consider David input.

For Your Information http://wiki.metawerx.net/wiki/Web.xml.JspFile
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237

in this example what is mean by tester/* .it is mean all url that include tester word?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Please check the same link, its shows which URL pattern call that servlet mapping.
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
this is my one jsp file


this is the jsp which i use print get to bean values.


but when i run first jsp it gives this error?



anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
this is the which print on server

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

please see the Sagar's first post
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
no.i can't get idia from that?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

your <jsp:getProperty property="name" name="one"/> is with out jsp:useBean . got it?
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
is it essential to use <jsp:getProperty property="name" name="one"/> inside the jsp:usebean tag
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
i chang the result.jsp as foccows.



but it don't compile.it says "Unknown type for identifier one.i am use eclips.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: give another jsp to action
 
Similar Threads
bean value gives null
NULL
include directive doesn't work
how to re set a existing bean
calling jsp directl from HTML form