Wednesday, July 14, 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")







Recommand Link:



mkv video format



Mp4 To Mp3 Converter



Recommend Converters And Optimizers



Compare Adventure And Roleplay



Hope Wii CELL Phone Deconde



My favorite Audio And Multimedia



Vacations AVI To DVD



REALPLAYER h.264



Youtube MOVIE to DAT Home



Infomation Audio Presentation Tools



Jiangmin Response To The Letter, Said Attorney Alibaba China Lagged Far Behind The Law



Converting mp3 to aac



M3U ID3 TO M3U



RER DVD To IPhone Converter



Swift DVD to Zune



Myth Of The Fastest Growing Job Market Promotion



Thursday, July 8, 2010

Bluesea CD-R M3U Sound to Midi Convert

Bluesea CD-R M3U Sound to Midi Convert is a powerful Windows tool that makes perfect copies of the original sound tracks as smaller sized MP3, WMA, and OGG in an easy way. With its advanced preferences, Bluesea CD-R M3U Sound to Midi Convert lets you encode only those MP3s which are of specific bit rate or which are of particular channel mode. The intuitive user interface is based largely on self-explanatory imagery controls that allow you to concentrate on your music conversion task rather than overwhelm you with software-specific terms. It can handle ID3v1/ID3v2 tags information as well as create M3U playlists. It is intended for extracting music tracks from audio CDs and converting them to popular sound file formats such as MP3, CD, CDA, CD-R, DVD-Audio, AAC, AC3, ID3, M3U, M4A, M4P, MP3 ID3 Tag, OGG, RA, WAV, WMA, MP2, APE, VQF, MPC, AMR, Midi, WAVE, and RM.



Recommand Link:



AC3 to WMA Deluxe



RM OGG Converter



Mpeg



Catalogs Education



SuperBurner RM to DVD



Youtube Movie Backup + Player Gold



How to convert .mp4 to .avi



Bluesea Wii DAT Converter



Cucusoft DVD to iPod Converter tools



New Search Or Lookup Tools



WinX-Media CD MP3/WAV/WMA Converter



mp4 converter free DOWNLOAD



Management And Distribution Specialist



convert Mp3 to m4a



Monday, July 5, 2010

Lohan iPhone Converter

Lohan iPhone Converter is a professional video converter to convert almost all popular video/movie formats to iPhone MP4 format. The output iPhone MP4 video files can be played on your Apple iPhone. All popular video/movie formats are supported, including AVI, MPEG/MPG/DAT, WMV, ASF, MP4, M4V, 3GP, 3G2, H264, MPEG4, AVC, MOV, QT, DivX, XviD, VOB, FLV, etc. The amazing output quality with super fast conversion speed is brough you by the built-in power MPEG4 encoder. All the output iPhone MP4 videos fit your Apple iPhone.



Recommand Link:



Hot Science Education



Converting video TO Sony NWZ-E436FBLU



ps3 video formats



Youtube Movie Save + Converter Home



Audio Video TOOLS Guide



Wizards And Components reviews



Professional RA APE To M3U Creator



Musical Instrument Simulator/Note Mapper



Perpetually iPhone VCD Encode



Christmas-Idea SVCD Copier



world TVRT SPECIAL Edition



Youtube Video to MPEG Top Rated



How to convert DVD to Archos 7



Open RMVB To DVD



Bluesea RM To DVD



ID3 to APE Recorder