Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!

danny liu

Ranch Hand
+ Follow
since Jan 22, 2004
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 danny liu

The substitute can be <c:set var>, which is from jstl. I would suggest that you use the combination of struts tags and jstl tags, or struts-el tags.
13 years ago
Do html tags support "focus" demand?

Thanks.

Dan
13 years ago
Hi,

I just followed the installation instructions and added treeview components onto a jsp page.

The node cannot expand or collapse and there is no javascript reference in the generated html content.

Does anyone have experience on this?

Thanks.
Dan
13 years ago
As far as I know, SSL needs to be supported by the web server, Tomcat, Apache or Websphere. There is basically no work to be done in Struts.
13 years ago
You can. Just use ForwardAction.
13 years ago
after some investigations, I found out this is a bug of "validwhen". A custom validation needs to be attached.
13 years ago
Hi,

I have to double field to validate. This field only exists when the promotion type is 'SP' or 'MP'. So I cannot use "double" function to validate it.

However, *this* >0 seems not to work for double. Any comment is welcome.

<field property="claimInfo.payoutInfo.amount" depends="validwhen">
<arg0 key="ClaimInfo.PayoutInfo.Amount"/>
<var>
<var-name>test</var-name>
<var-value>(((claimInfo.promotionInfo.type != "SP") and (claimInfo.promotionInfo.type != "MP"))
or ((*this* != null) and (*this* > 0)))
</var-value>
</var>
</field>


Dan
13 years ago
I have a client using French Canadian in her browser, which means the locale is French. However, the web site is English and she came across a validation problem when entering a date of US format. The validator verifies it with the French date format because the client's locale is French.

Any idea to fix this? Thanks.
Dan
13 years ago
Here is a little bit tricky case. The form structure is as below.
claimForm
----- claimInfo
--- replacementInfo
---replacementList
-----replacementItem
.....
-----replacementItem

I want display the replacement items with full path.

Here is my nested approach

<nested:root name="claimForm">
<nested:nest property="claimInfo.replacementInfo" >
<nested efine id="dropdown" property="manufacturerList"/>
<nested:iterate property="replacementList" id="replacementItem">

<tr><td>
<nested:select name="replacementItem" property="manufacturer" indexed="true">
<option value="">Select Manufacturer</option>
<html ptions collection="dropdown" property="manufacturerName"/>
</nested:select>
</td>
<td>
<nested:text name="replacementItem" property="model" indexed="true"/>
</td>
<td>
<nested:text name="replacementItem" property="seer" indexed="true"/>
</td></tr>


</nested:iterate>

</nested:nest>
</nested:root>

Here is the result



<tr><td>
<select name="replacementItem[0].manufacturer"><option value="">Select Manufacturer</option>
<option value="American Standard">American Standard</option>
<option value="Bryant">Bryant</option>
<option value="Carrier">Carrier</option>
<option value="Goodman">Goodman</option>
<option value="Lennox">Lennox</option>
<option value="Other">Other</option>
<option value="Rheem">Rheem</option>
<option value="Ruud">Ruud</option>
<option value="Trane">Trane</option>
<option value="York">York</option></select>
</td>
<td>
<input type="text" name="replacementItem[0].model" value="">
</td>
<td>
<input type="text" name="replacementItem[0].seer" value="">
</td></tr>




<tr><td>
<select name="replacementItem[1].manufacturer"><option value="">Select Manufacturer</option>
<option value="American Standard">American Standard</option>
<option value="Bryant">Bryant</option>
<option value="Carrier">Carrier</option>
<option value="Goodman">Goodman</option>
<option value="Lennox">Lennox</option>
<option value="Other">Other</option>
<option value="Rheem">Rheem</option>
<option value="Ruud">Ruud</option>
<option value="Trane">Trane</option>
<option value="York">York</option></select>
</td>
<td>
<input type="text" name="replacementItem[1].model" value="">
</td>
<td>
<input type="text" name="replacementItem[1].seer" value="">
</td></tr>




<tr><td>
<select name="replacementItem[2].manufacturer"><option value="">Select Manufacturer</option>
<option value="American Standard">American Standard</option>
<option value="Bryant">Bryant</option>
<option value="Carrier">Carrier</option>
<option value="Goodman">Goodman</option>
<option value="Lennox">Lennox</option>
<option value="Other">Other</option>
<option value="Rheem">Rheem</option>
<option value="Ruud">Ruud</option>
<option value="Trane">Trane</option>
<option value="York">York</option></select>
</td>
<td>
<input type="text" name="replacementItem[2].model" value="">
</td>
<td>
<input type="text" name="replacementItem[2].seer" value="">
</td></tr>




<tr><td>
<select name="replacementItem[3].manufacturer"><option value="">Select Manufacturer</option>
<option value="American Standard">American Standard</option>
<option value="Bryant">Bryant</option>
<option value="Carrier">Carrier</option>
<option value="Goodman">Goodman</option>
<option value="Lennox">Lennox</option>
<option value="Other">Other</option>
<option value="Rheem">Rheem</option>
<option value="Ruud">Ruud</option>
<option value="Trane">Trane</option>
<option value="York">York</option></select>
</td>
<td>
<input type="text" name="replacementItem[3].model" value="">
</td>
<td>
<input type="text" name="replacementItem[3].seer" value="">
</td></tr>


Could someone figure out why the full path cannot be generated?

Thanks.

Dan
13 years ago
Thanks folks.
13 years ago
Hi,

A background process is very time-consuming and need to display a "Please wait...." message to the client. How to do that in Struts?

Thanks.
13 years ago
Johnny,

Just write a simple program to connect to Oracle first. If it works,that proves the driver and the connection URL are correct. Then you can move on to check the bugs in the xml file.

Without viewing the data source definition, the ranchers are hard to give you good advices.

Dan
[ October 09, 2005: Message edited by: danny liu ]
15 years ago
I prefer J2EE to .Net.

.Net is only suitable for small to middle size projecst.
15 years ago
just stay where you are and be nice.
15 years ago