HanMing Low

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

Recent posts by HanMing Low

Hi,

Try



Hope this helps.

Cheers.


Han Ming
20 years ago
Hi,

Try this,
<%@ page import="your.constants.package.*" %>

Hope this helps.


Han Ming
20 years ago
JSP
Hi,
You need to define a ejb reference for your local bean in your ejb-jar.xml in order for you to use java:comp/env
e.g.

Cheers.


Han Ming
Hi,
Think you need to set another environment J2EE_HOME in addition to your JAVA_HOME.
Which version of J2EE server you are running?
If it is 1.3, then using JDK 1.3 is fine.
Cheers.

Han Ming
Hi,
I'm not sure if this will directly help you.
But as far as I know about using Struts tag on checkbox, the value you define for the checkbox must equals to the property value of the action form you set in back end in order for it to be checked by default.
e.g.
in Action
((MyActionForm) actionForm).setCheckBx("a");
in jsp
<html:checkbox property="checkBx" value="a" />
In this case, the setCheckBx value in java code ("a" in this case) must be equal to the tag value in the jsp.
So, if you setCheckBx("checked");
Your <html: ... value="checked" />
in order for the checked box to be checked by default.
Hope this helps.
Cheers.

Han Ming
20 years ago
Hi,
I think William has mentioned all the points in his code.
To forward to different jsp, all you need to do is to set the
forward = "failure.jsp";
at each catch statement
say
catch (DbEx ex) {
forward = "p1.jsp";
}
catch (AppEx ex) {
forward = "orig.jsp";
}
catch (SysEx ex) {
forward = "globalp.jsp";
}
I understand that you are not using Struts, but Struts does give you many ideas to the solution which I believe you will use in many web app dev.
So, if you have the time, I encourage you to pick up a book and read on it.
Moreover, the struts code is FREE.
It's the idea that you need to understand, whether you will be using struts or not is not important.
Cheers.

Han Ming
20 years ago
Hi,
You might wish to take a look at how Struts handle exception.
e.g.
catch (DatabaseException ex) {
saveError(ex, errorMessage);
}
say, this store to a request object, maybe "error" map.

Then, in your JSP, you can use something similar to Struts <html:errors />
e.g.
you retrieve the "error" map, and display the error accordingly.
Cheers.

Han Ming
20 years ago
Hi,
I'm not 100% sure, but it should be Axis.
Axis
Cheers.

Han Ming
20 years ago
Hi,
As far as I know, there isn't, the recommended way is to use GridBagLayout instead.
Hope this helps.
Cheers.

Han Ming
21 years ago
Hi,
It should be the temp directory.
What are the temp directory you have deleted and it is dependent on the deployment method you have used.
e.g.
using hot deployment by copying the files to applications directory,
you need to clear
applications/yourdeployment directory
yourserver/.wlnotdelete
yourserver/stage
+
update the config.xml
Hope this helps.
Cheers.

Han Ming
Hi,
StartWeblogic.sh or StartWeblogic.cmd
set STARTMODE=false
by default, it is false.
Cheers.

Han Ming
Hi,
If your Linux installation is by default setting, Linux by default enable the firewall setting.
Check if you firewall is blocking the network traffic.
Use ipchain to check it out.
Cheers.

Han Ming
21 years ago
Hi,
Thanks for the reply.
That answers my question.

Cheers.

Han Ming