Manjunath Gajula

Greenhorn
+ Follow
since Dec 21, 2011
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 Manjunath Gajula

Can you let me know what piece of code is there in your bean class?
Do you hit DB and get records when use paginate or do you keep values in session and get from there?
Keep your property in session when you hit for first time and make use of it
Also, i assume that you are passing attributes properly. BigDecimal, String, String, String.

And i hope you have ejbPostCreate() method.


public void ejbPostCreate(java.math.BigDecimal id, java.lang.String name, java.lang.String address, java.lang.String company) throws javax.ejb.CreateException {
}


The container invokes this method immediately after it calls ejbCreate.
Can you share your java doc for ejbCreate() method?

It should be something like this.
/**
*
* @param
* @param
* @param
* @param
* @return
*
* @ejb.create-method
* @throws javax.ejb.CreateException
*/
Assuming that you need values from one JSP to be accessed in other, you can try this out.
Hide attributes in both the JSP's and try accessing them. They should be available.
Hi Campbell Ritchie,
Thanks for your comment. yes i agree and it can be obj != null.
However, having a null check would be better is what i think. All the fields might not be mandatory and having a null check would save us there.


I welcome your comments.
9 years ago
Its better to have null check before you parse


if(null != request.getParameter("mob1")) {
int mob1 = Integer.parseInt(request.getParameter("mob1"));
}
9 years ago
Hi Ramesh,
Can you please let us know how do you handle exceptions in your application so that we can try to get a solution for you?
9 years ago
Hi Agarwal,
Why have you decided to disable BACK button? Are you facing any problem when user clicks on back button?
9 years ago
JSP
boolean myvar=true;
While(condition){
//Here my thread waits for some time......
out.println("first messege.......................")
myvar=false;
}
out.println("Value of myVar :: "+myVar);
if(myVar==true)
out.println("second messege")
9 years ago
JSP
In your case, First one would get printed when Condition satisfies where in second one would get printed every time irrespective of first one is printed or not.
So,
Define a variable outside first.
<bean:define id="print" value = "true"/>
While(condition){
//Here my thread waits for some time......
out.println("first messege.......................")
<bean:define id="print" value = "false"/>
}
<logic:equal name="print" value="true">
out.println("second messege")
</logic:equal>
So, When First one get printed, second one wont. Vice versa..
9 years ago
JSP
Put try catch and see while executing what piece of code, it is throwing null pointer.
<%try{
%> your JSP code should come here.
<%}catch(Exception e) {
%>
<%e.printStackTrace();%>

9 years ago