Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »

View Poll Results: 新版本哪些改动最好
投票 ***  [100%] 3
更换皮肤 ***  [0%] 0
Voters: 3 
This poll has expired

No member browsing this thread
Thread Status: Active
Total posts in this thread: 9
Post new Thread
Author
Previous Thread This topic has been viewed 2516 times and has 8 replies Next Thread
Male wmj2003
Member
Member's Avatar


Joined: Jan 17, 2005
Post Count: 81
Status: Offline
Reply to this Post  Reply with Quote 
强烈建议大家使用最新的版本。优点多多。

强烈建议大家使用最新的版本。优点多多。

搜索中文,请将form表单的method该为post;

中文附件的文件解决方案如下:(我是参考前面成员发的帖子)
类net.myvietnam.mvncore.util.StringUtil;

//added by wangmj 为了附件显示中文名字。
public static String toUtf8String(String s) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if ((c >= 0) && (c <= 255)) {
sb.append(c);
} else {
byte[] b;
try {
b = Character.toString(c).getBytes("utf-8");
} catch (Exception ex) {
System.out.println(ex);
b = new byte[0];
}
for (int j = 0; j < b.length; j++) {
int k = b[j];
if (k < 0) {
k += 256;
}
sb.append("%" + Integer.toHexString(k).toUpperCase());
}
}
}
return sb.toString();
}


另外修改这个类,可以参考附件
package com.mvnforum.user;

public class AttachmentWebHandler {
----------------------------------------
永不言败!

[Jul 18, 2006 4:05:40 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male wmj2003
Member
Member's Avatar


Joined: Jan 17, 2005
Post Count: 81
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

附件
----------------------------------------
Attachment AttachmentWebHandler.java (36152 bytes) (Download count: 27)

----------------------------------------
永不言败!

[Jul 18, 2006 7:23:50 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male wmj2003
Member
Member's Avatar


Joined: Jan 17, 2005
Post Count: 81
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

记住还要修改User/header.jsp中的form的method为post。实现中文搜索。
----------------------------------------
永不言败!

[Jul 18, 2006 7:25:51 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male airportcn
Stranger




Joined: Jul 20, 2006
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

总共应该修改三个文件的method为post

header.jsp
search.jsp
searchresult.jsp
[Jul 20, 2006 9:50:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male cnwangchao
Stranger




Joined: Jul 12, 2006
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

缓存功能也加入了。

www.cnpoint.com 我的站点
[Jul 22, 2006 11:48:37 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male isis
Stranger
Member's Avatar


Joined: Jul 24, 2006
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

public static String toUtf8String(String s) {}

请问这个method是否应该被call呢?如:

Class.toUtf8String(string)/ 因为是(static method)

如果应该被call,应该放在那个package和哪个file呢?

如果不被call,这程序放这有什么用?
[Jul 26, 2006 11:03:37 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male megacb
mvnForum developer




Joined: Jan 21, 2008
Post Count: 123
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

Strongly suggest that you use the latest version of mvnforum smile
[Feb 12, 2008 2:30:17 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male jieh
Stranger




Joined: May 11, 2005
Post Count: 8
Status: Offline
Reply to this Post  Reply with Quote 
smile Re: 强烈建议大家使用最新的版本。优点多多。

請問您是用 Enterprise 版嗎?
----------------------------------------
小惡魔座右銘知識跟八卦一樣,越多人知道越有價值知識最好的備份方法,散播!
[Feb 12, 2008 9:20:43 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.imp.idv.tw [Link] Report threatening or abusive post: please login first  Go to top 
Male zhaoyuyang2006
Stranger
Member's Avatar


Joined: Mar 12, 2008
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: 强烈建议大家使用最新的版本。优点多多。

请问mvnfourm1.1的配置文档么?
[Mar 12, 2008 5:31:50 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread