Struts Download action portlet:UnsupportedEncodingException

Hi,
I'm developing a struts application inside Oracle Portal, when i click on a
action link i need to download a file.
<pdk-struts-html:link action="/fileDownload2Action?file=myfile.txt">Click Here to See the PDF</pdk-struts-html:link>
i've tried to use org.apache.struts.actions.DownloadAction as follows:
public class MyExampleFileDownload extends DownloadAction{
protected StreamInfo getStreamInfo(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// File Name
String fileName = mapping.getParameter();
// Set the content disposition
response.setHeader("Content-disposition",
"attachment; filename=" + fileName);
// Download a "pdf" file - gets the file name from the
// Action Mapping's parameter
String contentType = "application/pdf";
File file = new File(fileName);
return new FileStreamInfo(contentType, file);
but on the forward i receive the following exception:
received IOException
java.io.UnsupportedEncodingException: Media Type of a TextResponseWrapper must start with "text/"
at oracle.webdb.provider.v2.utils.http.TextResponseWrapper.getData(Unknown Source)
at oracle.webdb.provider.v2.utils.http.TextResponseWrapper.getData(Unknown Source)
at oracle.portal.provider.v2.render.http.AbstractResourceRenderer.renderBody(Unknown Source)
at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
---end
so it seems that struts forward in oracle have to be only text/html files
but i don't wanto to go tio another page, just download a file on the same page
after some control in my action.
Could you suggest me any alternative solution?
Regards,
Francesco Rizzello

Hi,
I have done everything as mentioned by various web sites to develop a pdk-struts form, my java code compiles, the jsps compiles everything compiles correctly, and the portal shows up.
I also put a HTML form in it.
When a I deploy I can see and work with the HTML form but the portal is not recogniziing the pdk-struts tags, though I made the pdk-struts-html.tld part of the WEB-INF/ yet it wont show up the pdk-struts form.
Any help regarding this will be highly appreciated.
Regards,
Ram Srinivasan

Similar Messages

  • How to return and display an image created by a Struts 2 action object?

    Hi all, I'm Andrea and this is my first post on SDN.
    I'm developing a web based application using Struts 2 and I've got a problem with images management. It follows a brief description:
    Using a form in a jsp page it is possible to make a call to the execute() method implemented in a class, extending ActionSupport.
    At the end of the method there's the following instruction:
    BufferedImage image = generateChart();
    My problem is that I need to return this image to the client, so that his browser could display it.
    Unfortunately I don't know exactly how to proceed.
    I've seen it's possible to define result type for Struts 2 actions through xml config file, but I don't what I need to write into che action class.
    Could you help me with this topic?

    Ok I found the answer to your problem. If you download the tutorial they have the code there it's in one folder. I hope this helps.
    http://java.sun.com/docs/books/tutorial/

  • How to get the end of a download action ?

    Hello !
    My web application must download zip file.
    Actually, the servlet's code for download is like this :
    response.setContentType("application/download");
    response.setHeader("Content-Disposition","inline; filename=DownloadFile");
    ServletOutputStream l_ServletOutputStream = response.getOutputStream();
    l_ServletOutputStream.write(l_ByteArrayOutputStream.toByteArray());
    l_ServletOutputStream.flush();
    The client can see a popup dialog box asking him to save the file on disk or open it or cancel. In case of save action, file is downloaded but I don't know when this action finished. Is there any event to catch or something else that inform about the end of downloading action ( I have to refresh the display with a new JSP ) ?
    Thanks for your help !

    Propably to correct way would be to use HTTP-headers to indicate the length of the file, so actual application download is possible also through other clients, rather than the specific one, so you could do:
    response.setHeader("Content-length",l_ByteArrayOutputStream.toByteArray().length);I'm not really sure if servlets do this automatically, they really should though, but I'm hazy on their implementation and you might want to check the HTTP specification on whether or not the length of the headers should be included in the Content-length field, as it might be required to.
    Tuomas Rinta

  • How do i add a download action for dxf files. firefox assumes its a text file and just opens it with no download action dialog box

    I want to add a download action for dxf files so they open in Autodesk trueview. The steps described here (http://support.mozilla.com/en-US/kb/Managing%20file%20types#w_adding-download-actions) say to click on a link for the filetype you want to add an action to but firefox thinks the dxf is a text file and just opens it in a new tab with no download action dialog box.

    Use the right-click context menu and choose "Save Link As" or hold down the alt key and left-click the link.

  • How do I download actions into my Elements 8?

    How do I download actions into my elements 8?

    The Texas Chicks site has good instructions.
    http://www.texaschicksblogsandpics.com/photography-page/installing-actions-in-photoshop-el ements/

  • How to call another action from Struts dispatch action?

    Hi all,
    there is a method in dispatch action that needs data from another chained action. How should other action determine which method in dispatch action will receive response and how should these data be returned from called action? Called action does not have associated form bean
    thanks,

    Not sure, why are there then "chained actions" is struts practice? Struts allows action without form bean to be configured and the action is a class?

  • Can we download Action Voip Software on Mac Book Pro?

    Can we download Action Voip Software on Mac Book Pro?

    You can download absolutely anything to the MBP, but if you want to run Action VOIP on it, you'll have to install MS Windows to run it in.

  • How to make a download from portlet?

    Hi there!
    How to do make a download in portlet. Standart methods don't work becouse Portal inserts it's headers first the file gets to a user.
    What can I do?
    Thanks in advance!

    Check out the Portal Development Kit (PDK) available at http://portalstudio.oracle.com/
    Hope this helps,
    Rob

  • PSE 8 folder location for downloaded actions missing

    Trying to download actions for use in PSE 8. I'm running Windows 7 64 bit. Adobe help + several websites instruct to download actions to
    C:\ProgramData\Adobe\Photoshop Elements\8.0\Locale\en_US\Workflow Panels\actions
    However, this folder does not exist:
    Suggestions welcome!!!

    You have to tell windows to show hidden files and folders.
    Then you should see the program data folder.
    MTSTUNER

  • Urgent: unable to call a plsql stored procedure with a struts data action

    Hello ALL,
    I'm trying to call a plsql stored procedure within a struts DataAction,
    The scenario is:
    When a user a click on a button, then it should call a specific stored procedure,,
    I create struts data action a class to handle the event which is to call the procedure
    Here is my code:
    public class RequestAction extends DataForwardAction
    public void onCall(DataActionContext ctx)
    String amDef = "model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
    try{
    AppModuleImpl myAm = (AppModuleImpl)am;
    DBTransaction tr = (DBTransaction) myAm.getTransaction();
    CallableStatement stmt = tr.createCallableStatement
    ("begin pkg_test.test; end;", DBTransaction.DEFAULT);
    stmt.execute();
    stmt.close();
    tr.commit();
    catch(Exception e){System.out.println(e.getMessage());}
    Configuration.releaseRootApplicationModule(am,true);
    but when I ran the application and click on the button, I got the following Exception:
    04/07/08 00:45:50 ORA-06550: line 1, column 7:
    PLS-00201: identifier 'PKG_TEST.TEST' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    It seems that the DBTransaction object unable to see the stored procedure,
    Am I do something wrong or miss something???
    I've checked the examples on the OTN HOW TO, and searched in the JDeveloper Forum but unable to find an answer,
    Please anyone can help???
    Thanks a lot
    With Regards,
    Hayat

    Here's an example application that illustrates how to do this. I haven't had a chance to writeup a little paper to go with it yet, but will as soon as I have a chance.
    http://otn.oracle.com/products/jdev/tips/muench/storedproc/CallStoredProc.zip
    See the "callStoredProcedure" method in the application module in the Model project.
    See the "callStoredProcedure" method binding in the binding container of the "CallStoredProcedure" data page.
    Notice the name "event_callStoredProcedure" of the (Call Stored Procedure) button on the CallStoredProcedure.jsp page which triggers the declaratively invocation of the method.
    You could also call the method from code in a custom data action.
    The code example illustrates how to create your own JDBC prepared statement for invoking the stored procedure, and doing it in a way that is efficient by keeping the prepared statement around across invocations.

  • Where do I go on the Net to download action files?

    Where do I go on the Net to download action files?

    Just google "actions photoshop elements" without the quotes. You'll get enough hits to keep you busy for a long, long time.

  • EJB3 Injection - how to Inject it into struts 2 Action

    What is suggested/most common/proper way of injecting EJBs into Struts 2 Actions?
    Is there a standard way to do so?
    I am currently migrating code from JBoss4.2.3.GA to JBoss5.1.0.GA. One of the most important difference is @EJB annotation in servlets.
    I was hoping I could get rid of our custom interceptor/annotation and replace it with something more standard. I have been google-ing a bit, but couldn't find anything that can be considered as standard way of doing it. I have found couple of interceptors/annotations online, but they are not much different than custom solution we have. Further more, I am not sure are the answers I have found outdated with new versions of Struts/Jboss.
    Thanks.

    you need a plugin for struts2
    http://code.google.com/p/struts2ejb3-jboss-plugin/
    after that you can use @InjectEJB instead the @EJB.

  • Download action listener maximum length

    Hi,
    What should be the mzximum size of a file to be downloaded using a filedownload action listener
    I am trying to download a file coming from bi publisher from adf and i have used filedownload action listener
    But whenever the data is more than 200 kb or so it is failing and i am getting empty file. i have downloaded files of 156kb size or so...
    What is the max size of it
    Thanks,
    Vinay

    on click of download bt with download action listener the following method is called
        public void GenerateAirportAndAgent(FacesContext facesContext,
                                            OutputStream outputStream) {
            StringBuffer errorMessage = new StringBuffer();       
            ViewObjectImpl tripLocDetailsVO = (ViewObjectImpl) ADFUtils.findIterator("TripLocationDetailsIterator").getViewObject();
            String tripNumberString = null;
            BigDecimal tripNumber = null;
            Object tripNumberParam = tripLocDetailsVO.getNamedWhereClauseParam("bindTripNumber");
            if(tripNumberParam != null){
              tripNumber = (BigDecimal)tripNumberParam;
              tripNumberString = tripNumber.toString();
            String tripLocIDString = null;
            if(AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID") != null){
                tripLocIDString = (String)AdfFacesContext.getCurrentInstance().getPageFlowScope().get("AIRPORT_TRIP_LOCATION_ID");    
            String icao = null;
            Object icaoParam = tripLocDetailsVO.getNamedWhereClauseParam("bindIcao");
            if(icaoParam != null){
              icao = icaoParam.toString();
            tripLocDetailsVO.setRangeSize(-1);
            Row[] aircraftBriefVORows = tripLocDetailsVO.getAllRowsInRange();
              StringBuffer DST=new StringBuffer();
               StringBuffer STD=new StringBuffer();
            for (int i = 0; i < aircraftBriefVORows.length; i++) {
               ViewRowImpl tripLocationRow = (ViewRowImpl)aircraftBriefVORows;
    //For each dept row, getting reference to empVO which contains all employees corresponding to current dept
    RowIterator airPortLOcationVO = (RowIterator)tripLocationRow.getAttribute("AirportLocation");
    while(airPortLOcationVO.hasNext()){
    Row airportLocationRow = airPortLOcationVO.next();
    DST.append((String)airportLocationRow.getAttribute("DSTNew")+",");
    STD.append((String)airportLocationRow.getAttribute("STDNew")+",");
    HashMap parameterValueList = new HashMap();
    if(tripNumberString!=null)
    parameterValueList.put("REPORT_NAME", "AIRPORT_AND_AGENT");
    parameterValueList.put("TRIP_NUMBER", tripNumberString);
    parameterValueList.put("ICAO", icao);
    parameterValueList.put("AIRPORT_TRIP_LOCATION_ID", tripLocIDString);
    parameterValueList.put("DST",DST.toString());
    parameterValueList.put("STD",STD.toString());
    try{
    ReportResponse reportResponse = reportOutputResp(parameterValueList,
    AirportAndAgentBriefTemplate,
    AirportAndAgentReport,
    errorMessage);
    outputStream.write(reportResponse.getReportBytes());
    outputStream.flush();
    catch(Exception e){
    errorMessage.append("Error in generating downloadable Document.\n");
    errorMessage.append(e.getMessage());
    errorMessage.append(". Current User:"+bipUserName);
    errorMessage.append(". Accessing Report:"+AirportAndAgentReport);
    System.out.println(errorMessage.toString());;
    e.printStackTrace();
    else{
    System.out.println("Error: TripNumber is null, cant Print Report");
    errorMessage.append("TripNumber is not Valid, Please try again");
    System.out.println(errorMessage.toString());
    facesContext.responseComplete();
    public ReportResponse reportOutputResp(HashMap parameterValueList,
    String templateName,
    String reportAbsoPath,
    StringBuffer errorMessage){
    publicReportServiceService = new PublicReportServiceService();
    PublicReportService publicReportService = publicReportServiceService.getPublicReportService();
    String sessionToken=null;
    ReportResponse reportResponse=null;
    String reportName = "";
    String tripNumber = null;
    String hotelReqId =null;
    String transReqId =null;
    String icao = null;
    String tripLocId = null;
    String tripLegNum = null;
    String dst = null;
    String std = null;
    if(parameterValueList.get("REPORT_NAME") != null){
    reportName = (String)parameterValueList.get("REPORT_NAME");
    if(parameterValueList.get("TRIP_NUMBER") != null){
    tripNumber = (String)parameterValueList.get("TRIP_NUMBER");
    if(parameterValueList.get("ICAO") != null){
    icao = (String)parameterValueList.get("ICAO");
    if(parameterValueList.get("HOTEL_REQUEST_ID") != null){
    hotelReqId = (String)parameterValueList.get("HOTEL_REQUEST_ID");
    if(parameterValueList.get("TRANS_REQUEST_ID") != null){
    transReqId = (String)parameterValueList.get("TRANS_REQUEST_ID");
    if(parameterValueList.get("TRIP_LOCATION_ID") != null){
    tripLocId = (String)parameterValueList.get("TRIP_LOCATION_ID");
    if(parameterValueList.get("LEG_NUMBER") != null){
    tripLegNum = (String)parameterValueList.get("LEG_NUMBER");
    if(parameterValueList.get("AIRPORT_TRIP_LOCATION_ID") != null){
    tripLocId = (String)parameterValueList.get("AIRPORT_TRIP_LOCATION_ID");
    if (parameterValueList.get("DST") !=null){
    dst =(String)parameterValueList.get("DST");
    if (parameterValueList.get("STD") !=null){
    std =(String)parameterValueList.get("STD");
    System.err.println("reportName -- "+ reportName);
    System.err.println("tripNumber -- "+ tripNumber);
    System.err.println("hotelReqId -- "+ hotelReqId);
    System.err.println("icao -- "+ icao);
    System.err.println("transReqId -- "+ transReqId);
    System.err.println("tripLocId -- "+ tripLocId);
    System.err.println("tripLegNum -- "+ tripLegNum);
    System.err.println("DST -- "+ dst);
    System.err.println("STD -- "+ std);
    try{
    sessionToken = publicReportService.login(bipUserName, bipPassword);
    ReportRequest reportRequest = new ReportRequest();
    reportRequest.setAttributeFormat("rtf");//The output format of the requested report pdf, rtf, html
    //reportRequest.setAttributeFormat("English (United States)");//The locale selection for the report. Example: fr-FR
    reportRequest.setAttributeTemplate(templateName);//The template to apply to the report
    reportRequest.setFlattenXML(false); //True indicates that the XML is to be flattened. This flag is used for the Analyzer for Microsoft Excel because Excel requires XML data structure to be flattened.
    ArrayOfParamNameValue arr = new ArrayOfParamNameValue();
    List<ParamNameValue> list = arr.getItem();
    //Setting Trip Number
    if(tripNumber != null){
    ParamNameValue paramName = new ParamNameValue();
    paramName.setName("P_TRIP_NUMBER");
    ArrayOfString value = new ArrayOfString();
    List<String> trp_number = value.getItem();
    trp_number.add(tripNumber);
    paramName.setValues(value);
    list.add(paramName);
    //Setting ICAO
    if(icao != null && !reportName.equals("PERMIT_BRIEF") && !reportName.equals("ITINERARY_BRIEF")){
    ParamNameValue paramNameIcao = new ParamNameValue();
    paramNameIcao.setName("P_ICAO");
    ArrayOfString icao_value = new ArrayOfString();
    List<String> trp_icao = icao_value.getItem();
    trp_icao.add(icao);
    paramNameIcao.setValues(icao_value);
    List<ParamNameValue> listIcao = arr.getItem();
    listIcao.add(paramNameIcao);
    //Setting Hotel Request ID
    if(hotelReqId != null && reportName.equals("HOTEL_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_REQ_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(hotelReqId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Transportation Request ID
    if(transReqId != null && reportName.equals("TRANS_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_TRANS_REQ_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(transReqId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Trip Location ID
    if(tripLocId != null && (reportName.equals("HANDLING_BRIEF") || reportName.equals("AIRPORT_AND_AGENT"))){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_TRIP_LOC_ID");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(tripLocId);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting DST
    if(dst != null && reportName.equals("AIRPORT_AND_AGENT")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_DST");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(dst);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting STD
    if(std != null && reportName.equals("AIRPORT_AND_AGENT")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_STD");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(std);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    //Setting Trip Leg Number
    if(tripLegNum != null && reportName.equals("PERMIT_BRIEF")){
    ParamNameValue paramNameReqID = new ParamNameValue();
    paramNameReqID.setName("P_LEG_NUM");
    ArrayOfString reqID_value = new ArrayOfString();
    List<String> trp_reqID = reqID_value.getItem();
    trp_reqID.add(tripLegNum);
    paramNameReqID.setValues(reqID_value);
    List<ParamNameValue> listReqID = arr.getItem();
    listReqID.add(paramNameReqID);
    reportRequest.setParameterNameValues(arr);
    //reportRequest.setParameterNameValues(paramNameValue);
    reportRequest.setReportAbsolutePath(reportAbsoPath); //The absolute path to the report in the BI Publisher repository. For example: /HR Manager/HR Reports/Employee Listing.xdo.
    reportRequest.setReportData(null);//If you are providing the data directly for the report use this element to pass the data
    reportRequest.setSizeOfDataChunkDownload(-1);//If you set flattenXML to true, or if you do not want to chunk the data, set this parameter to -1 to return all data back to the client.
    reportResponse = publicReportService.runReportInSession(reportRequest, sessionToken);
    catch(Exception e){
    errorMessage.append("There was a problem in getting the report.\n");
    errorMessage.append("Please try again. \n If problem persists contact System Administrastor with below Message.\n");
    errorMessage.append(e.getMessage());
    errorMessage.append(". Current User:"+bipUserName);
    errorMessage.append(". Accessing Report:"+reportAbsoPath);
    System.out.println(errorMessage.toString());
    //outputStream.write(generatePDF(errorMessage.toString()));
    //outputStream.flush();
    e.printStackTrace();
    finally{
    try{
    if(sessionToken!=null)
    publicReportService.logout(sessionToken);
    catch(Exception e){}
    return reportResponse;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

  • Struts Support: Parsing Portlet JSP File failed

    I've manually edited a my .portlet file to contain a strutsContent element (copied
    from the struts.porlet in the JSR 168 and Struts Support sample). When I run my
    portal I get an error message:
    java.lang.RuntimeException: Didn't find TagInfo for tag:strutsContent
    Can anyone help?
    Thanks in advance,
    --Andy

    Subbu,
    Thanks for the tip - netuix_taglib.jar was indeed the not the correct version.
    Interestingly, this file is not mentioned in the "JSR 168 and Struts Support"
    install docs. I have replaced this file and the struts-example webapp now starts
    (after setting up an action to forward to the index page).
    However, I am having problems with the message bundle properties files ApplicationResources.properties
    and AlternateApplicationResources.properties as neither of these files are being
    picked up.
    These files are located in org/apache/struts/webapp/example in WEB-INF/src and
    WEB-INF/classes of my webapp (i.e. <WEBAPP>/WEB-INF - my struts-example resides
    in <WEBAPP>/struts-example).
    I've also tried adding <init-param>'s to the <WEB-APP>/WEB-INF/web.xml file for
    the action servlet as follows:
    <servlet>
    <servlet-name>action</servlet-name>
    <init-param>
    <param-name>application</param-name>
    <param-value>org.apache.struts.webapp.example.ApplicationResources</param-value>
    </init-param>
    <init-param>
    <param-name>alternate</param-name>
    <param-value>org.apache.struts.webapp.example.AlternateApplicationResources</param-value>
    </init-param>
    </servlet>
    When I use the logon action as the starting action for the portlet, I get:
    Error opening /struts-example/logon.jsp.
    The source of this error is javax.servlet.ServletException: Cannot find message
    resources under key alternate at weblogic.servlet.jsp.PageContextImpl.handlePageException...
    Any help would be appreciated.
    --Andy
    Subbu Allamaraju <subbuATbeaDOTcom> wrote:
    Andy,
    Does this webapp contain the patched versions of netuix_servlet.jar and
    netuix_taglib.jar? Also make sure that the patched netuix_system.jar
    is
    in the system classpath.
    Subbu
    Andy Hull wrote:
    I've manually edited a my .portlet file to contain a strutsContentelement (copied
    from the struts.porlet in the JSR 168 and Struts Support sample). WhenI run my
    portal I get an error message:
    java.lang.RuntimeException: Didn't find TagInfo for tag:strutsContent
    Can anyone help?
    Thanks in advance,
    --Andy

  • Struts- two actions with same path in struts config

    hai
    I am having html:select tag with two options (View And Download) in a form.My form signature is like <html:form action="select">.I mapped two options(View,Download) with same action path.When i click view it doesn't forwards(remains idle) and no error is shown.But i click download it forwards to the appropriate page.If iam having two tags with same action path the second is only working.This problem doesn't comes when iam having one tag alone.
    My code is here:
    -----------Select.jsp----------------
    <html:form action="Select">
    <html:select property="id">
    <html:option value="view">View</html:option>
    <html:option value="download">Download</html:option>
    </html:select>
    </html:form>
    ----------------Struts-config.xml------------
    <form-beans>
    <form-bean name="viewForm" type="ViewForm"/>
    <form-bean name="download" type="DownloadForm"/>
    </form-beans>
    <action-mappings>
    <action path="/Select"
    name="viewForm"
    type="ViewAction"
    input="/Select.jsp">
    <forward name="success" path="/Success.jsp"/>
    </action>
    <action path="/Select"
    name="downloadForm"
    type="DownloadAction"
    input="/Select.jsp">
    <forward name="success" path="/Welcome.jsp"/>
    </action>
    </action-mappings>
    Can i have action tag with same paths like this.If not please provide me a solution

    I have created two success pages.
    I have created two findForward in my ActionClasspublic ActionForward execute(ActionMapping mapping,...............)
    if(a==view)
    return mapping.findForward("success");
    else
    return mapping.findForward("success1");
    ----------------Struts-config.xml------------
    <form-beans>
    <form-bean name="viewdownloadForm" type="ViewdownloadForm"/>
    </form-beans>
    <action-mappings>
    <action path="/Select"
    name="viewdownloadForm"
    type="ViewdownloadAction"
    input="/Select.jsp">
    <forward name="success" path="/Success.jsp"/>
    <forward name="success1" path="/Success1.jsp"/>
    </action>

Maybe you are looking for

  • WSDL generation from existing WebService

    Hello everybody, we have got an existing WebService which we want to migrate to XI. Because we don't want to change the clients interfaces we would like to import the WSDL and XSD and than generate a WSDL from XI. First problem: The WebService exists

  • Send XML to Client: call-program cannot pass ampersand in parameter

    In WLI Studio, I have tried to use the action "Send XML to Client" with following information: <call-program mode="async" name="IEXPLORE.EXE"> <actionid>1027425345078</actionid> <parm>http://pttserver:7001/pttWebApp/Test.jsp?First=a&Second=b&Third=c<

  • Sent in my LiveView about a month ago, still no response

    I sent it to: SBE LTD FREEPOST NAT19593 Ashford Kent TN23 7BR shortly after aug 24. I've emailed asking for a status but they've yet to give me one.

  • Conversion of EUR into USD

    Hi all can anybody help me in converting the EUR values to USD for example the value is 32.000,00 in EUR and this EUR value i need to convert into USD. thanks in advance anju

  • Version Management on PR with Release Strategy

    We are using Release Strategies on PR, along them Version Management activation is also required. All configuration have been done, Versions are automatically triggering in PR's without release, however in PR with release new version is not reflectin