Re: java.lang.NullPointerException struts form is null

2004-03-02 Thread jasper_lin18
Please check these 2 lines of your code more
carefully.

> Teacher teacher= null;
> teacher.setLast(teacherAddForm.getLast());

Because teacher is null. When you called
teacher.setLast(...), NullPointerException occured.

Regards

-
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Avoiding app server restarts while doing struts development

2004-03-02 Thread jasper_lin18
I am using Weblogic 6.1.
I always deploy a developing web application as a
DIRECTORY instead of WAR file. I found that I can
deploy new java class by simply copy it into the right
place of WEB-INF/classes directory (not to mention JSP
files, it works for JSP too). But it doesn't work for
resource bundle properties files. Weblogic 6.1 will
auto-deploy the whole web application when it finds
that there are some new class file in WEB-INF/classes.
But after several times of auto-reploying processes,
the server usually encounters some sort of
"out-of-memory" problem. Then you have to restart
Weblogic again.

Regards,
Vincent


 --- Marco Mistroni <[EMAIL PROTECTED]>
的訊息:> HI,
>   I guess those changes,which have 'context scope',
> need 
> Always a redeploy
> Only changes that don't need a redeploy can be jsp
> changes (provided
> that
> You deploy your application as a 'directory' rather
> than war file)
> 
> Regards
>   marco
> 
> -Original Message-
> From: Abhishek Srivastava
> [mailto:[EMAIL PROTECTED] 
> Sent: 01 March 2004 11:28
> To: 'Struts Users Mailing List'
> Subject: Avoiding app server restarts while doing
> struts development
> 
> Hello All,
> 
> I develop my apps on weblogic app server. When doing
> development on
> struts I
> feel for every little operation (change in resource
> file, change in
> source
> file, change config files) it requires me to either
> redeploy the app or
> to
> restart the app server. 
> 
> I have tried to switch to the debug mode, but still
> the number of
> redeploys
> or restarts have not reduced.
> 
> I find these very time-consuming. 
> 
> Has someone figured out a way in which they can do
> development without
> redeployment at every single change? 
> 
> Regards,
> Abhishek.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

-
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]