manage-webapps

Configure webapp properties, servlet environments, and request routing in Apache OFBiz.

175|216|Updated Mar 5, 2017
One-click install
npx skills add https://github.com/apache/ofbiz-plugins --skill manage-webapps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-webapps
Source: https://github.com/apache/ofbiz-plugins/tree/main/ai-agent-skills/manage-webapps
Command: npx skills add https://github.com/apache/ofbiz-plugins --skill manage-webapps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of configuring and managing web applications within the Apache OFBiz framework, ensuring proper request routing and environment setup.

Core Features & Use Cases

  • Webapp Registration: Define and register new web applications within OFBiz components.
  • Request Routing: Configure how incoming web requests are mapped to specific application logic and views using controller.xml.
  • Servlet Environment Setup: Manage the initialization of web application environments via web.xml, including filters and servlets.
  • Use Case: When developing a new e-commerce feature, use this Skill to define its webapp, set its access permissions, and configure how users navigate to its different sections.

Quick Start

Define a new webapp named 'my-custom-app' with mount-point '/my-app' and base-permission 'CUSTOM_VIEW' in the 'ofbiz-component.xml' file.

Frequently Asked Questions about manage-webapps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure request routing in OFBiz using controller.xml?

To configure OFBiz request routing, you define request mappings within the controller.xml file that direct incoming web requests to specific application logic and views. This manages the request dispatch pipeline.

What is the process to register a new web application in OFBiz?

Registering a new OFBiz web application involves defining the webapp properties, such as its name, mount-point, and base-permission, inside the ofbiz-component.xml file. This establishes the component's web app structure.

How do I set up the servlet environment for an OFBiz webapp?

Setting up the OFBiz servlet environment requires configuring the web.xml file to initialize the web application environment, including defining servlets and filters for the component.

Can I modify security settings and access permissions when defining an OFBiz webapp?

Yes, you can modify security settings by specifying a base-permission, such as 'CUSTOM_VIEW', in the ofbiz-component.xml file during webapp registration to control user access to the application.

Why is my OFBiz request dispatching not routing to the correct view?

Incorrect OFBiz request dispatching often stems from misconfigured request mappings or missing view definitions in the controller.xml file, requiring debugging of the request pipeline to verify routing targets.