This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

xinglee vn

Greenhorn
+ Follow
since Jul 09, 2003
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 xinglee vn

Hi All !
I'm coding a web application using struts, EJB and oracle. My web pages display ok most of Japanese character . but they can't display Roman numerals. Although I used encoding from ISO-8859-1 to Shift-JIS but when i view my pages on web they display "??" ... . How can i solve this problem . If anyone know please show me . it's very good if there is an example for these .
Thanks alot.
16 years ago
Hi Everyone !
I have one problem that I don't know how to solve . I want to write an ActionForm to use for all of jsp pages . this ActionForm don't mention those jsp pages has how many controls , and the name of these controls . I try to used Map Backed Action Forms but it doesn't work . If anyone know about that please show me .
Thanks alot .
Xinglee
16 years ago
Hi ! i have one page using frame like this :
<frameset bordercolor="#dddddd" frameborder="yes" rows="80,*" border="1" framespacing="1">
<html:frame href="head.do" frameName="head" scrolling="no" />
<frameset cols="21%,*" frameborder="no" border="1" framespacing="1">
<html:frame href="list.jsp" frameName="list" />
<html:frame href="body.do" frameName="body" />
</frameset>
</frameset>
in list.jsp I have some 4 links , each link in list.jsp i want to move to one part of body page(my body page get data form database) . but when i click on one the body page is refreshed , and return the null page (not contend data). please help me to solve my problem . thanks alot
17 years ago
Hello !
I have one jsp page using Struts . the length of this page is around 6000-7000 lines of code . so when i run this page it throws exception :
D:\JBoss\tomcat-4.1.x\work\MainEngine\localhost\kaigo\jsp\assessment\body1_jsp.java:6217: try 文のコードが大き過ぎます。
} catch (Throwable t) {
But when i cut it into short pages , it's ok . I think the reason is that my copiling page size is over 64k . If any one have any idea please show me . thanks alot .
-xingleevn-
17 years ago
Hello !
I have one jsp page using Struts . the length of this page is around 6000-7000 lines of code . so when i run this page it throws exception :
D:\JBoss\tomcat-4.1.x\work\MainEngine\localhost\kaigo\jsp\assessment\body1_jsp.java:6217: try 文のコードが大き過ぎます。
} catch (Throwable t) {
But when i cut it into short pages , it's ok . I think the reason is that my copiling page size is over 64k . If any one have any idea please show me . thanks alot .
-xingleevn-
17 years ago
Hi all !
I want to set value for Textbox(RadioButton/checkbox) with data from a bean . I write like this :
<bean efine id="abc" name="beanname"/>
<html:text property="usernameText" name="abc" value="name">
but the result is not right . If you had done these, please show me how . This is very important with me .
Thanks alot
17 years ago
Thanks for your answer , but it still doesn't work . I have an example code for paging but it failed too... please help me solve this problem
StrutsAction.java
private ActionForward performList(ActionMapping mapping,
ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
try {
DataSource ds = (DataSource) servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);
UsersDAO usersDAO = new UsersDAO(ds);
HttpSession session = request.getSession();
List users = usersDAO.SearchByRole("gold-member");
int offset;
int length = 25;
String pageOffset = request.getParameter("pager.offset");
if (pageOffset == null || pageOffset.equals("")) {
offset = 0;
} else {
offset = Integer.parseInt(pageOffset);
}
String url = request.getContextPath()+"/do"+mapping.getPath();
String pagerHeader = Pager.generate(offset, users.size(), length, url);
request.setAttribute("offset", new Integer(offset));
request.setAttribute("pagerHeader", pagerHeader);
request.setAttribute("length", new Integer(length));
request.setAttribute("USERS", users);
} catch (Exception ex) {
generalError(request, ex);
return mapping.findForward("failure");
}
}
list.jsp
<bean:write name="pagerHeader" scope="request" filter="false"/>
<logic:iterate id="users" offset="offset" length="length" name="USERS"> <tr bgcolor="#FFFFFF"> <td> <bean:write name="users" property="login"/> </td>
</tr>
...
</logic:iterate>
thanks alot
17 years ago
Hi !
can you show me how to set value for <html ption> using bean ? (I am beginner in Struts)
i have :
<logic:iterate id="exp" name="beanname">
<html:select property="Dept">
<html ption name="exp" value="<bean:write name="exp" property="id">"/>
</html:select>
</logic:iterate>
but it doesn't work ! pls help me as soon as posible . it's very Urgen . Thanks a lot
17 years ago
Hi All !
I have an Action File like this
public class IndexAction extends Action{
public ActionForward perform(
ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
try{
request.setAttribute("ass_f",Dept.getDepartments());
}
catch(SQLException e){
return null;
}
}
}
(Dept.getDepartments) return an Dept[] with all department information (name, id).
please show me how to paging with Struts . It's so good if have an clearly example . Very urgen ..
Thanks alot..
[ July 09, 2003: Message edited by: xinglee vn ]
17 years ago