Jyoti Jadhav

Greenhorn
+ Follow
since Nov 15, 2007
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 Jyoti Jadhav

hi all,

I want some link where I can find following things
1. create java web service in eclipse
2. deploy the web service in web logic 8.1

thanks
13 years ago

Originally posted by Eric Pascarello:


thanks,
now its working..

Originally posted by Eric Pascarello:
The target on the href has no effect when you are posting the form. You have the wrong target in your form.

Eric



what should i do if i want a output from servlet to some other frame(not on the frame on which request has generated)

thanks..
this is report_by_admin.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<frameset rows="20%,80%" bgcolor="#FFCCFF">

<frame src="criteria.jsp">
<frame src="report.jsp" name="report1">
</frameset>



</HTML>

*******************************
this is criteria.jsp

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<script language="javascript">
function search_by_status()
{
document.form1.USER_ACTION.value="STATUS"
document.form1.action="report_status"

document.form1.submit()
}
</script>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY bgcolor="#FFCCFF">
<form name="form1" method="post" action="">
<%@ page language="Java"
import="java.util.*,
com.massif.iticket.dao.*,
com.massif.iticket.dto.*
"%>
<% statusDAO r2=new statusDAO();%>
<% List l2=r2.getallStatus();%>
<table bgcolor="#FFCCFF">
<tr>
<td>Report by Status</td>
</tr>
<tr>
<td>
<select name="statusSelect">
<% for(int i=0;i<l2.size();i++)
{
statusDTO rdto3=(statusDTO)l2.get(i);%>
<option value="<%=rdto3.getStatus_id()%>"><%=rdto3.getStatus_name()%></option>
<%}%>
</select>
</td>
<td>
<input type="hidden" name="USER_ACTION">
<A target="report1" style="cursor:hand" onclikc = "search_by_status()" >go</A>
</td>
</tr>

</table>
</form>
</BODY>
</HTML>
output is coming but it is on the criteria.jsp but i want it on report.jsp .on report1 frame.

please help me
thanks in advance..

Originally posted by Bear Bibeault:

Why are you trying to replace the element with a string? Or are you really intending to set its value? Hint, hint.



Thanks
i wanted to set a value and i got the mistake.thanks..

Originally posted by Ben Souther:
You didn't include line numbers.
Which is line 6?

Where is it blowing up, on the server or in your browser?



line 6 is document.form1.USER_ACTION="STATUS" and error in in browser.

Originally posted by Bear Bibeault:
The fact that your page is generted from a JSP is moot. You will use HTML and CSS just as with any other page.



i tried with html <inpiut type="button align="right" name="logout" value="Logout">
but button is not moving to ri side


error is on 6 line
can anyone help
thanks..


[BSouther: Added UBB CODE tags]
[ December 11, 2007: Message edited by: Ben Souther ]
hi
How to align a button on rightmost top corner of the page in jsp.

thanks in advance.

Originally posted by Jeanne Boyarsky:
Jyoti,
The best way is to store the values in the HttpSession before going to the error page. That way the next time you paint the JSP, they are available to you.



Hey Jeanne,

Thanks a lot..
16 years ago
JSP
in jsp page(enter_product_data.jsp) i am entering product details and on submit i am checking product id for duplicate records and if product id exists in database i am showing a page having error message.

for coming from servlet to error message page i used requestdiapatcher's forward method.

that page contains back button.

back button onclick i wrote script.
function backgo()
{
document.form1.action="enter_product_data.jsp"
document.form1.submit()
}

but when i come to this enter_product_data.jsp page again i want all the datails as it is.what is the way to get it.
16 years ago
JSP

Originally posted by Rob Prime:
Are you sure you are not getting a ClassCastException?

Here, you are casting a java.util.Date object as java.sql.Date. The object isn't an instance of java.sql.Date however.

To create a java.sql.Date from a java.util.Date you have to do the following:

The same goes for Time and Timestamp.




thanks
it worked.

Originally posted by Paul Campbell:
are you in auto-commit mode?



yes i am in autocommit mode because executing
select @@autocommit;
giving me value 1.

Originally posted by Paul Campbell:
are you in auto-commit mode?



how to check the auto commit mode?and i should or should not in auto commit mode..

thanks
hi
in my program i am entering a string parsing it to date and storing it in table.
i am not getting any error but the table is not upfdating..
code is...

con2=GetConnection();
PreparedStatement st=con2.prepareStatement("INSERT INTO employee VALUES(?,?,?,?,?,?)");

String s="12/03/2007";
SimpleDateFormat df=new SimpleDateFormat("mm/dd/yyyy");
java.util.Date p=df.parse(s);
st.setString(1,"7");
st.setString(2,"manasi");
st.setString(3,"tilak");
st.setDate(4,(Date) p);
st.setString(5,"400000");
st.setString(6,"n");

st.executeUpdate();