aspose file tools*
The moose likes JSP and the fly likes jsp:useBean doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:useBean doubt" Watch "jsp:useBean doubt" New topic
Author

jsp:useBean doubt

naga raaju
Greenhorn

Joined: Mar 14, 2008
Posts: 29
hi guys,

i want to develop an website using jsp. actually i am using the javascript for actions in my page. but i am facing a problem with Internetexplorer what it is my javascript code supports only on IE not in mozilla.so i want to change the code in jsp:usebean concept.is there any possible to devlop in jsp:usebean.
what my requirement is i have one dropdown list and button.choose that list and click the button .the result will print on one frame in the same page.here i used intially javascript for that .but i change to jsp usebean so how to get the result into frame in the same page.can you give any idea.
bye
Naga
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

Sir,please do some work by yourself.If you want someone to help you
you have to write a little codes by yourself ,of course if you have any problem in your code ,sure they will help you.

clearly define here what problem you got in which code and leave the rest up
to javaranch's expert.

best regards
omi


Back to Java , again.
naga raaju
Greenhorn

Joined: Mar 14, 2008
Posts: 29
hai what my doubt is

reload.html

<html>
<head>
</head>
<body>
<form action="reload.jsp" method="post">
<label name="exchangelabel">SHIRTS :</label>
<select name="shirts">
<option selected>--select--</option>
<option>PANAMERICA</option>
<option>SKUMAR</option>
<option>PETERENGLAND</option>
<option>VIMAL</option>
</select>  

<label name="exchangelabel">PANTS :</label>
<select name="pants">
<option selected>--select--</option>
<option>OXEMBERG</option>
<option>ALLENSOLLY</option>
<option>TIBRE</option>
<option>9GMS</option>
</select>  
<input type="submit" value="click">
<iframe name ="mframe" src="http://www.google.com" height="300" width="800" frameborder="0" scrolling="auto"> </iframe>
</body>
</html>



what my doubt is when i press the button submit .i need to print some data into iframe mframe.with out using javascript.

i want to use jsp:usebeans so any possbility.
bye
Naga
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

Do like following :
//Create Person bean


//Employee bean



//jsp file


Note:Put the code as I put here.I hope I need not tell you about bean rules.

best regards,
omi
naga raaju
Greenhorn

Joined: Mar 14, 2008
Posts: 29
thanks for your help.

by
Naga
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

no problem brother any time
[ March 25, 2008: Message edited by: omi sharma ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jsp:useBean doubt