| |

VerySource

 Forgot password?
 Register
Search
View: 789|Reply: 4

jsp value problem

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-11 18:20:01
| Show all posts |Read mode
The source code is as follows
<c: forEach items = "$ {trfm_fn: getParticularTrfm (param.currentUserID, param.begin_date, param.end_date)}" "var =" current "varStatus =" status ">
<tr class = "tr_bg1">
<c: choose>
<c: when test = "$ {status.first}">
<td width = "20"> <input checked name = "docId" type = "radio" value = "$ {current.docId}"> </ td>
</ c: when>
<c: otherwise>
<td width = "20"> <input name = "docId" type = "radio" value = "$ {current.docId}"> </ td>
</ c: otherwise>
</ c: choose>
<c: set value = "$ {union_fn: getProDetail (current.pjtId)}" var = "current1" />
<c: set var = "pjtName" value = "$ {current1.projectName}" />
<td width = "80"> <c: out value = "$ {pjtName}" /> </ td>
<td width = "80"> <c: out value = "$ {current.applyDate}" /> </ td>
<td width = "80"> <c: out value = "$ {current.allMoney}" /> </ td>
<input type = "hidden" name = "allMoney" value = "$ {current.allMoney}">
<c: choose>
<c: when test = "$ {current.applyStatus == 0}">
<td width = "80"> <c: out value = "submit" /> </ td>
</ c: when>
<c: when test = "$ {current.applyStatus == 1}">
<td width = "80"> <c: out value = "approving" /> </ td>
</ c: when>
<c: when test = "$ {current.applyStatus == 2}">
<td width = "80"> <c: out value = "Confirm" /> </ td>
</ c: when>
<c: when test = "$ {current.applyStatus == 3}">
<td width = "80"> <c: out value = "Deny" /> </ td>
</ c: when>
</ c: choose>
<input type = "hidden" name = "pjtname" value = "$ {pjtName}">
<input type = "hidden" name = "reason" value = "$ {current.reason}">
<c: set var = "count" value = "$ {count + 1}" />
</ c: forEach>
I want to get the allmoney value of the selected docId, pass to the next page, online etc.
Reply

Use magic Report

0

Threads

10

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-16 12:54:01
| Show all posts
Use js to traverse the checkbox, and then submit it to the next page through the url. You can also set another hidden value to this selected value and submit it to the next page.
Reply

Use magic Report

0

Threads

13

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-17 22:09:01
| Show all posts
hidden domain
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-20 23:54:02
| Show all posts
Write the radio's onselect event and assign the allmoney value corresponding to the radio to a hidden.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-26 20:27:01
| Show all posts
The first time I open a webpage, how does the default option allmoney pass?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list