Sunday, July 25, 2010

On the JSP page Jump and forward the request



JSP page forwards the request collection Jump

1, response.sendRedirect (url)

The request is redirected, the parameters of the original page is not here, that use request.getParameter ("param") returns null

2, forward the request forwarding, refer to the original page request, response objects passed a new page, so this page has the same old request, response object. This request.getParameter ("param") to the corresponding values can be

3, distinguish ServletContext.getRequestDispatcher and ServletRequest.getRequestDispatcher

ServletContext.getRequestDispatcher relative context path must be the absolute path

ServletRequest.getRequestDispatcher may be a relative can also be absolutely

4, attention is this: After using the forward forward to see in the browser address bar shows is not transmitted before forwarding the post. If the test.jsp to good.jsp forward, then the address bar shows test.jsp. This is because the forward was carried out on the server side, the browser did not know, but redirection is carried out in the client, so Use response.sentRedirect ("red.jsp") will be directly directed to red.jsp. And that brings me index.jsp servlet if the request is then carried out forawrd servlet forward to another red.jsp page, but view the results, in the address bar displays the name of the servlet that will only rather than red.jsp, if you want to know the name of the final page to see that only the search code.

reference it:

Server-side to turn the four kinds of methods:

1. ServletContext of getRequestDispatcher ()

2. ServletContext of getNamedDispatcher ()

3. ServletRequest of getRequestDispatcher ()

4. ServletResponse of sendRedirect () to turn.

1.2.3 => forward () 4. SendRedirect ()

Using the forward method because it more efficient. Only way forward can not be used (for example, to turn to a non web application), then use ServletResponse the sendRedirect () method.

Comparison with sendRedirect

Although sendRedirect methods can browse the web browser, redirect to another page, but the two are not the same in principle.

a.: Action is to use server-side, the data output to the buffer mechanism, the previous page is still output to the client before the cancellation of the output data, and then output the data to another Web page, to redirect the browser effect.

Advantages: two pages within the object request can be shared between the variables.

b. sendRedirect: action through the HTTP protocol Header, redirect the browser to issue commands, therefore, does not involve the issue to the server-side buffer.

However, as sendRedirect method acting on the client, so redirect there around the page can not share the variables in the request object.

Solution: response.sendRedirect ("sendRedirect.htm? Name = sparkwu & E-Mail = spark.wu @ cobra-tech.com")







Recommended links:



Photoshop effect of creating non-mainstream MTV



Ninetowns Submitted To The U.S. SEC Annual Report FY08 Net Profit Down 72% Correction



Graphics come from paint in



Foxconn Jumped Reproduction Of A Female Employee Jumped 7th Floor



News SERVERS Specialist



Correct UNDERSTANDING of the importance of examinations and the usual accumulation of [2]



Compare Themes And Wallpaper



Response To Illegal Cash Payments, Said Bao Claimed "seriously Inaccurate Information"



Dvd Audio Ripper



Rm To Avi



CHINA IPTV-What is the short board?



convert 3GP to mp4



Games Arcade evaluation



BPR Get To The Root



Aac files



Comprehensive understanding of redirection 301



Thursday, July 15, 2010

UFC Wins Platinum authorized agent UGS



UFC 2005 the company due to sale of UGS products and services, outstanding contribution to the work, won the "UGS Platinum authorized agent" of the honorary title.

January 18, "UGS Channel Partner Senior Forum" held in Nanjing, China from more than 100 large UGS channel partners attended the meeting. UGS Global Channel Sales Director Tony Jolly President, Greater China General Manager Mr. Yuan Chaoming, Greater China, Channel Sales Director Mr. Qiu Chuqun were summarized in 2005 UGS in the world and China, good performance, and to 2006 channels of sales made encouraging plan.

Mr. Yuan Chaoming pointed out that 2005 was a welcome UGS business growth, ensuring UGS PLM industry leader in the position. The agency's growth from the channel was significantly higher than the growth from direct sales, which indicates that support for UGS, to strengthen the channel's policy has been successful. Mr. Yuan Chaoming also said, in 2006, UGS in the sales force, technical Zhi Chi, opening up new market, further enhancing their channel agent for the support, and greater expectations of sources Acting Nenggou of Chenggong.

Mr. Qiu Chuqun that, as a senior partner of UGS, UFC has long adhere to the standards of customer satisfaction as the ultimate aim, created a technical ability, QOS excellent technical team to develop PLM market made a positive contribution . "UGS Platinum authorized agent" of honor is on the performance of the company's praises UFC, UFC will help the company continue to grow, to provide customers with better products and services. UFC general manager Mr. Wang Hugen that we will continue to uphold our established practice to serve as the foundation, to provide customers with first-class products, to ensure that customers receive the best service, and constantly expand our range of services, customer satisfaction, thereby the company's development into a new level. UFC Since its inception in 1995, has more than 500 domestic enterprises to provide a PLM solution. In addition to more than the company has experienced CAD / CAM / CAE software applications engineers, but also possesses the largest number of experienced PDM implementation team. Meanwhile, UFC company to provide customers with a CAE engineering consulting, enterprise information and other items of general planning and implementation of value-added services, access to the customer's approval and favor.







Recommand Link:



Premier Online Gaming



Youtube Movie To MOV Pack



Free System Tuner



SUPERBURNER 3GP Converter



Flac to aac



Vob File Converter



M4A MP2 to BLACKBERRY



Compare 0



Best Video to PSP Converter Tools



GOOGLE video format



free flv to mp4 converter



ALO Audio Center



Premier GAMES Action



Youtube Movie to DAT Popular



Sunday, July 4, 2010

ColeSoft Ultimate Video Converter

ColeSoft Ultimate Video Coverter converts videos to play on almost any portable device including iPod, iPhone, Zune, PSP, video capable MP3 players, video capable mobile phones, and Pocket P.C., etc. Meanwhile, it can also support output almost any audio/video format including Video format(H264, MP4, WMV, AVI, MOV, RM, 3GP, flv, SWF, mpeg-1, mpeg-2, VideoCD, SuperVideoCD, DVD, etc.) and Audio format(AC3, AAC, MP2, MP3, MP4, RA, WMA, etc.). It's the most powerful all in one video file converter on the planet.



Recommand Link:



Apple iPhone CONVERSION



Moyea DVD to PSP CONVERTER



1-Click Zune Platinum



Youtube to Cell Phone Shareware



Professional VCD Encode



Simple Business



YOUTUBE Video to ASX Professional



YASA WMV Video Converter



Lists Audio Speech



HD to iPod Classic6 converter



WorldCup DVD to RMVB



Evaluate GRAPHIC



youtube to Wmv



Youtube FLV to Pocket PC Now