Armand Deluvak

Greenhorn
+ Follow
since Apr 29, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Armand Deluvak

Bear,
Thank you for your reply. Problem is that this is for a class project that is requiring it be done using jsp and javabeans. As I don't know javascript anyway, I'm going to keep plugging away at a jsp solution.
The logical thing to do, it seems to me, would be have each different button target a different jsp page, but as forms can't be nested in an html page, it doesn't look like that could be done. If you know a way to do that, I'd be interested.
Thanks,
Armand
21 years ago
JSP
My html form page has a number of text fields of data to submit to a database. It also has five buttons which will determine what action is to be taken on that data. The html page uses <method=post action=decision.jsp>. The decision.jsp page is only used to determine which other .jsp page would redisplay the form with its processed data.
I am frustrated with making the decision.jsp page work. My latest effort uses the following "if" statement construction:

<% if( request.getParameter("Add") == "Add" ) { %>

<jsp:forward page="add.jsp"/>
<% } %>
<% else if( request.getParameter("Update") == "Update" ) { %>

<jsp:forward page="update.jsp"/>
<% } %>
...and so on...

Is this the proper way to make the choice and also to get another .jps page to display?
I have tried to test this page by having it display an ordinary html page that says "I am the add.jsp page" or "I am the update.jsp page" but it won't even do that.
Thank you,
Armand
21 years ago
JSP
Bill,
Thank you. I'll give that a try.
Armand
21 years ago
JSP
Hello,
I would like to call a .jsp page from a javabean method. How do I do this?
Thanks,
Armand
21 years ago
JSP
Hello,
I am somewhat unsure of what syntax and/or methods to use when passing fields from an html form page to a database (such as MSAcess) when using a .jsp file as a controller which calls the needed methods in a javabean.
Specifically, my html form has several textfields of information to be filled out by the user, and it has several input buttons to determine what actions are to be performed on that data entered into the textfields. If I declare that method=post and that action=foo.jsp, am I right to believe that in that foo.jsp file I can use, say, some if(name=buttonA){a.foobean}; else if(name-buttonB){b.foobean}; etc. logic that will call the appropriate methods in the bean?
Also, if in the foo.jsp file I use the
<jsp:setProperty name="entity" property="*"/>
that that will automatically set ALL of those field properities in the foobean -- given that the bean has the appropriate setter and getter methods?
This brings me up to my real confusion which is do I need to use a doPost(request, response) method anywhere in dealing with properties going between the html page and the bean, or is the doPost method only for use in dealing with the jdbc from the bean, or am I totally clueless in this matter?
Thank you,
Armand
21 years ago
JSP