I have been searching the web for a few days trying to get an insight into how I would locate this program. I have been told that if I were using struts that there would be a config.xml file someplace that would link the html page with a java class.
Is the same thing true for a non-struts application?
Any and all suggestions would be greatly appreciated.
If you have trouble interpreting what you see, please post back.
Joined: Apr 03, 2005
Thanks again Bear,
The attributes for the FORM tag consist of name=htmlfile action=application method=post vsform="true"
The only remaining question that I have is in regard to determining the entry point to the class file that the name attribute is pointing to. I am editing the java program in Sun Java Studio Enterprise 8.1. When I click on the Navigator button and select the Inheritance View, I see 9 objects listed.
I have looked in all of the objects with the exception of the second to last one which I don't have the source code to so it is a class file. I would assume that I should be looking for a file that has a "main" class. That may not be true, but I don't know how to determine the entry point.
What I am trying to accomplish is this. I made a modification to the html that is displayed and submits to the top level of the class file. My modification works however another action that formerly displayed a message in a status control in the html is now displaying an alert message box.
I do appreciate any help you can through my direction. If you could even recommend a reference manual that would explain these things to me, I will get it and study to find out what I need to know.
Originally posted by Doug Harding: action=application
That is odd. Most servlet paths will start with /.
I would assume that I should be looking for a file that has a "main" class. That may not be true
It is not true. Java web apps do not have main classes. They are based on the servlet specification. Assuming that the target of the submission is a servlet, it will be a class that extends HttpServlet. But if the app is wired differently all bets are off until you can determine what the form action "application" maps to.
Is there an entry in the web.xml for "application"? [ September 11, 2007: Message edited by: Bear Bibeault ]
Joined: Apr 03, 2005
There are actually two entries for "application" in the web.xml. In my last message I had changed the actual names of the name and application attributes because this system I am working on is one we have licensed from a fairly large software company.
Let's change the application attribute to be application=General_Accounting name=payvoucher
Sir Bear, your help with this issue is being invaluable. Can you recommend a book that I could use as a reference for this area? I am a big believer in getting the proper tools when I do a job. I'm just not sure what the proper tool would be.
Thanks again for the knowledge you are transfering to me.
According to your mapping the action should be /General_Accounting and that would map to the servlet at: packagename.General_Accounting.General_AccountingServlet
With regards to resources, I'm a big believer in the horse's mouth: grab a copy of the Servlet Spec and start reading. It's actually an easier read than you might think, and it has all the info you need to know about servlets.