reset password
Author Message
dgnstar
Posts: 12
Posted 15:53 May 02, 2013 |

I'm having trouble getting the DrivingTest.jsp to work on the server.

I'm using the jsp:useBean to store the DrivingTest.txt in the scope of the session, but on the server it give Error 500, unable to find the class.

the jsp file in is the root directory of my folder and the txt file is in a tmp folder i created.

Anyone have any ideas?

dthomas5
Posts: 38
Posted 15:59 May 02, 2013 |

Make sure that in: <jsp:useBean id="dt" class="controller.DrivingTest" scope="session" /> that the value in the "class" parameter is correct. For my system, "DrivingTest" is stored under the package "controller"

dgnstar
Posts: 12
Posted 16:07 May 02, 2013 |

 

I did that. As well as putting a copy of the txt, everywhere in every subfolder, and it still didnt work.
 
<jsp:useBean id="dt" class= "/tmp/DrivingTest.txt" scope="session"/>
 
dthomas5
Posts: 38
Posted 16:11 May 02, 2013 |

your using the wrong syntax to import a text file... 

<jsp:useBean is for using classes, not text file

jkiyomu
Posts: 27
Posted 16:24 May 02, 2013 |

What your going to need to do is go into your .java class file and the one that you load the file in and then changed the .txt file path to "/tmp/DrivingTest.txt" then save and transfer your build folder and then copy over the web.xml file and then you should be all set. DO NOT change anything in the jsp file.

 

Hope that helped

dgnstar
Posts: 12
Posted 16:52 May 02, 2013 |

I got it!!! Thanks guys!!