mendy smith

Greenhorn
+ Follow
since Jan 30, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by mendy smith

I have a form with lot of buttons and want to clear this form. When i click on the clear button, i want to clear this form in such a way that it does not reset to default values. It has to set all the html fields values to "" because this form will be used to update as well as create new form. I am doing the clear part as shown in the following clearForm function.
Url for creating and updating this form http://localhost:8080/temp.jsp -- for creating a new form http://localhost:8080/temp.jsp?id=1234 -- for updating this form
function clearForm()
{
document.myform.reset();
window.location.href="http://localhost:8080/temp.jsp";
}
This clears out all the fields, but the problem is when i press the back button i can still see the data in all the text fields and the url to be "http://localhost:8080/temp.jsp?id=1234"
how do i set the previous history to just "http://localhost:8080/temp.jsp" and not the parameter part.
Is there a way to clear the Back button history?
Appreciate your help!
Thanks,
Thanks maha anna for the suggestions!
My point is i don't want to pass a value to this reps attribute in my .jsp file. I want to check whether this attribute is present(null) or not. Can we do the following?
From your example:
------------------
//this is part of my .jsp file
<csajsp:repeat reps>
//set method in tag class
public void setReps(String reps)
{
}
Thanks,
Appreciate any further suggestions!

24 years ago
Is there a way to pass an attribute without passing a value actually to it in the jsp file to the jsp tag. I just want to check whether it is null or not, basically make this optional.
Thanks,
Apreciate your help!
24 years ago
I meant optional parameter check in jsp tag library.....
Appreciate your help!
24 years ago
If we want to make some of the parameters optional to my jsp page then i have set the required element attribute of that optional parameter in my ".tld" file to false right. If i have this set up to false then i can still have this parameter in my jsp page right. This set up doesn't work. How to make some of the parameters optional.
Can anyone please let me know.
Appreciate your help!
Thanks in advance!!
24 years ago
Is there a way to cache entity bean instances in weblogic5.1.0 version. I my case its "read mostly". I want to set "idleTimeoutSeconds". How to acheive this?
Thanks,
Appreciate your help!
24 years ago
This means there is some problem in your .tld file. If your .tld file is correct, you can see a java file being created.
Check your .tld file format from sun's format.
Here is the sample ".tld" file
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<!-- a tag library descriptor -->
<taglib>
<!-- after this the default space is
"http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
-->
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>mytag</shortname>
<uri></uri>
<info>
A simple tab library for the examples
</info>
<tag>
<name>example</name>
<tagclass>com.test.ExampleTag</tagclass>
<info> Display JSP sources </info>
</tag>
</taglib>

Hope this helps!
24 years ago
What are the different ways of sharing data between tags? which is the best and when will each type be appropriate. could anyone please expand on this topic.
Appreciate u'r feedback,
Thanks.
24 years ago
If i extend a class from BodyTagSupport, do i have to get the jspWriter object from the bodyContent object itself. I can also get the jspWriter object from the pageContext object right, but when i try to output the contents from the jspWriter object obtained from pageContext it doesn't output anything, but when i output from the jspWriter object obtained from body content object ie body.getEnclosingWriter(), then it works fine. So what's the difference.
Thanks and appreciate your feedback.
24 years ago
Hi,
What i have is Entity Bean, is the deployment going to be different for Entity Bean. What is a client class? I am pretty new to this EJB stuff. I don't see any InitialContext object being created anyWhere in my ejb classes. I have an interface by name AH which extends EJBHome which has only one method findByPrimaryKey(primaryKey);
This is all i have in my EJB folder
I have 2 classes and 2 interfaces
I have an interface called A which extends EJBObject
I have a class AB which implements EntityBean
I have an interface AH which extends EJBHome
I have a class APK which implements Serializable
I understand that, you have stateless session bean. Is there any difference in the deployment for different type of Bean(Session, Entity)? I am still having the same problem saying that No container managed fields were set for CMP bean A.
Appreciate your help!
Thanks lokesh for u'r help.
24 years ago
Thanx Lokesh for u'r help! I followed all the steps you have specified. After i specify my HomeJNDI name , when i save i don't see any xml files generated. It just says saved 'xyz'. What should i specify in the "Home JNDI Name" , is it just the name of my home interface or should i specify the packagename.myhomeInterfaceName, i tried both ways. When i save, it says it saved. In the console tab at the very end of the tool, i see Null text data?? when i click on the problems, nothing is displayed. When i followed the next step in generating container, then i got a message saying No container managed fields were set for CMP bean A(this is my bean class) and a window popped up saying container generator failed. I don't know what's going on? Could you please let me know where i might have gone wrong.
Appreciate your help.
Thanks again!
24 years ago
Could anyone please let me know how to deploy the ejb using deployer tool on windows system. How to create jar file using deployer tool and deploying ejb on weblogic 5.1 server.I am having problems even creating the .jar file using deployer tool.
Thanks,
Appreciate u'r help!
24 years ago
I am just curious to know whether it is a good idea to have many tag handler classes with not much details in each tag class or is it good to have everything we need to do in a particular tag handler class. I am not sure which is the efficient way of doing this. Let's say there is a report , in which we need to have forward , backward, first or last pages to be reviewed back and forth, then is it a good idea to have 4 tags or is is good to have 1 tag taking an attribute value(parameter value like "first", "last"...).
Thanks,
24 years ago
Thanks Tony! I also think so, probably i should test and see.
24 years ago
Can we use more than 1 ".tld" file in any jsp page?
Thanks,
24 years ago